Interface AMUser

  • All Superinterfaces:
    AMConstants, AMObject

    public interface AMUser
    extends AMObject
    Deprecated.
    As of Sun Java System Access Manager 7.1.
    This interface provides methods to manage user. AMUser objects can be obtained by using AMStoreConnection. A handle to this object can be obtained by using the DN of the object.
     AMStoreConnection amsc = new AMStoreConnection(ssotoken); if
     (amsc.doesEntryExist(uDN)) { AMUser user = amsc.getUser(uDN); }
     
    • Method Detail

      • rename

        String rename​(String newName,
                      boolean deleteOldName)
               throws AMException,
                      SSOException
        Deprecated.
        Renames the user name (ie., naming attribute of user entry) in the data store.

        Note: This operation directly commits the the user name changes to the data store. However, it does not save the modified/added attributes. For saving them explicitly to the data store, use store() method to save the attributes.

        Parameters:
        newName - The new user name
        deleteOldName - if true deletes the old name, otherwise retains the old name.
        Returns:
        the new DN value for the user
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • getFilteredRoleDNs

        Set getFilteredRoleDNs()
                        throws AMException,
                               SSOException
        Deprecated.
        Gets all the filtered roles the user is in.
        Returns:
        The Set of filtered role DN's the user is in.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • getRoleDNs

        Set getRoleDNs()
                throws AMException,
                       SSOException
        Deprecated.
        Gets all the static roles the user is in.
        Returns:
        The Set of static role DN's the user is in.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • getAllRoleDNs

        Set getAllRoleDNs()
                   throws AMException,
                          SSOException
        Deprecated.
        Gets all the static and filtered roles the user is in.
        Returns:
        The Set of static and filtered role DN's the user is in.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • assignRole

        void assignRole​(AMRole role)
                 throws AMException,
                        SSOException
        Deprecated.
        Assigns a role to the user.
        Parameters:
        role - The Role that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • assignRole

        void assignRole​(String roleDN)
                 throws AMException,
                        SSOException
        Deprecated.
        Assigns a role to the user.
        Parameters:
        roleDN - The role DN that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • removeRole

        void removeRole​(AMRole role)
                 throws AMException,
                        SSOException
        Deprecated.
        Removes a role that is assigned to the user.
        Parameters:
        role - The Role that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • removeRole

        void removeRole​(String roleDN)
                 throws AMException,
                        SSOException
        Deprecated.
        Removes a role that is assigned to the user.
        Parameters:
        roleDN - The role DN that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • getStaticGroupDNs

        Set getStaticGroupDNs()
                       throws AMException,
                              SSOException
        Deprecated.
        Gets all the static groups the user is in.
        Returns:
        The Set of static group DN's the user is in.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • assignStaticGroup

        void assignStaticGroup​(AMStaticGroup group)
                        throws AMException,
                               SSOException
        Deprecated.
        Assigns a static group to the user.
        Parameters:
        group - The static group that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store.
        SSOException - if the single sign on token is no longer valid.
      • assignStaticGroup

        void assignStaticGroup​(String groupDN)
                        throws AMException,
                               SSOException
        Deprecated.
        Assigns a static group to the user.
        Parameters:
        groupDN - The static group DN that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • removeStaticGroup

        void removeStaticGroup​(AMStaticGroup group)
                        throws AMException,
                               SSOException
        Deprecated.
        Removes a static group that is assigned to the user.
        Parameters:
        group - The static group that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • removeStaticGroup

        void removeStaticGroup​(String groupDN)
                        throws AMException,
                               SSOException
        Deprecated.
        Removes a static group that is assigned to the user.
        Parameters:
        groupDN - The static group DN that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • getAssignableDynamicGroupDNs

        Set getAssignableDynamicGroupDNs()
                                  throws AMException,
                                         SSOException
        Deprecated.
        Gets all the assignable dynamic groups the user is in.
        Returns:
        The Set of assignable dynamic group DN's the user is in.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • assignAssignableDynamicGroup

        void assignAssignableDynamicGroup​(AMAssignableDynamicGroup assignableDynamicGroup)
                                   throws AMException,
                                          SSOException
        Deprecated.
        Assigns a assignable dynamic group to the user.
        Parameters:
        assignableDynamicGroup - The assignable dynamic group that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • assignAssignableDynamicGroup

        void assignAssignableDynamicGroup​(String assignableDynamicGroupDN)
                                   throws AMException,
                                          SSOException
        Deprecated.
        Assigns a assignable dynamic group to the user.
        Parameters:
        assignableDynamicGroupDN - The assignable dynamic group DN that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • removeAssignableDynamicGroup

        void removeAssignableDynamicGroup​(AMAssignableDynamicGroup assignableDynamicGroup)
                                   throws AMException,
                                          SSOException
        Deprecated.
        Removes a assignable dynamic group that is assigned to the user.
        Parameters:
        assignableDynamicGroup - The assignable dynamic group that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • removeAssignableDynamicGroup

        void removeAssignableDynamicGroup​(String assignableDynamicGroupDN)
                                   throws AMException,
                                          SSOException
        Deprecated.
        Removes a assignable dynamic group that is assigned to the user.
        Parameters:
        assignableDynamicGroupDN - The assignable dynamic group DN that the user is assigned to.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • activate

        void activate()
               throws AMException,
                      SSOException
        Deprecated.
        Activates the user.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • deactivate

        void deactivate()
                 throws AMException,
                        SSOException
        Deprecated.
        Deactivates the user.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • isActivated

        boolean isActivated()
                     throws AMException,
                            SSOException
        Deprecated.
        Returns true if the user is activated.
        Returns:
        true if the user is activated.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.
      • getAssignedServices

        Set getAssignedServices()
                         throws AMException,
                                SSOException
        Deprecated.
        Gets all service names that are assigned to the user.
        Specified by:
        getAssignedServices in interface AMObject
        Returns:
        The Set of service names that are assigned to the user.
        Throws:
        AMException - if an error is encountered when trying to access/retrieve data from the data store
        SSOException - if the single sign on token is no longer valid.