Class User

    • Field Detail

      • log

        protected static final org.apache.commons.logging.Log log
    • Constructor Detail

      • User

        public User​(String id)
        minimal constructor
      • User

        public User​(User obj)
    • Method Detail

      • getDisplayName

        public String getDisplayName()
      • markAffiliateAsDeleted

        @Deprecated
        public void markAffiliateAsDeleted​(String id)
        Deprecated.
      • removeAffiliation

        public void removeAffiliation​(String organizationId)
      • addUserNote

        public void addUserNote​(UserNote note)
      • saveNote

        public void saveNote​(UserNote note)
        Updates the underlying collection with the UserNote object that is being passed in. The note is added if its does note exist and updated if its does exist.
        Parameters:
        note -
      • removeNote

        public void removeNote​(UserNote note)
        Removes the note object from the underlying collection.
        Parameters:
        note -
      • getUserNote

        public UserNote getUserNote​(String noteId)
        Returns the note object for the specified noteId.
        Parameters:
        noteId -
        Returns:
      • addUserAttribute

        public void addUserAttribute​(UserAttribute entity)
      • saveAttribute

        public void saveAttribute​(UserAttribute attr)
        Updates the underlying collection with the UserAttribute object that is being passed in. The attribute is added if its does not exist and updated if its does exist.
        Parameters:
        attr -
      • removeAttributes

        public void removeAttributes​(UserAttribute attr)
        Removes the attribute object from the underlying collection.
        Parameters:
        attr -
      • getAttribute

        public UserAttribute getAttribute​(String name)
        Returns the attribute object that is specified by the NAME parameter.
        Parameters:
        name - - The attribute map is keyed on the NAME property.
        Returns:
      • getDefaultAddress

        public Address getDefaultAddress()
      • getAddressByName

        public Address getAddressByName​(String name)
      • getAddressByMetadataType

        public Address getAddressByMetadataType​(MetadataType metadataType)
      • getDefaultEmailAddress

        public EmailAddress getDefaultEmailAddress()
        Gets the first default email address for this user

        If there is no EmailAddress record with the default flag set to true, this function will return the first active Email Address

        Returns:
      • getDefaultPhone

        public Phone getDefaultPhone()
      • addPhone

        public void addPhone​(Phone phone)
      • getPhoneByName

        public Phone getPhoneByName​(String name)
      • getPhoneById

        public Phone getPhoneById​(String id)
      • getPhoneByMetadataType

        public Phone getPhoneByMetadataType​(MetadataType metadataType)
      • addAddress

        public void addAddress​(Address address)
      • markRoleAsDeleted

        @Deprecated
        public void markRoleAsDeleted​(String id)
        Deprecated.
      • removeRole

        public void removeRole​(String roleId)
      • removeGroup

        public void removeGroup​(String groupId)
      • removeGroup

        public void removeGroup​(Group group)
      • markGroupAsDeleted

        @Deprecated
        public void markGroupAsDeleted​(String groupId)
        Deprecated.
      • markLoginAsInactive

        public void markLoginAsInactive​(Login login)
      • markLoginAsDeleted

        public void markLoginAsDeleted​(Login login)
      • addGroup

        @Deprecated
        public void addGroup​(Group group)
        Deprecated.
        Use addGroupWithRights
        Parameters:
        group -
      • addGroup

        public void addGroup​(String id)
      • addRole

        public void addRole​(String id)
      • addResource

        public void addResource​(String id)
      • addOrganization

        public void addOrganization​(String id)
      • addResource

        @Deprecated
        public void addResource​(Resource resource)
        Deprecated.
        Use addResourceWithRights
        Parameters:
        resource -
      • removeResource

        public void removeResource​(String resourceId)
      • removeResource

        public void removeResource​(Resource resource)
      • addPrincipal

        public void addPrincipal​(Login login)
      • getPrincipalByManagedSysId

        public Login getPrincipalByManagedSysId​(String managedSysId)
      • getPrimaryPrincipal

        public Login getPrimaryPrincipal​(String managedSysId)
      • containsLogin

        public boolean containsLogin​(String loginId)
      • containsLoginWithManagedSystem

        public boolean containsLoginWithManagedSystem​(String managedSystemId)
      • mergeUser

        public void mergeUser​(User newData)
        method is used to merge user data during its trasfer during selfreg steps
        Parameters:
        newData - - merge from
      • updateUser

        public void updateUser​(User newUser)
      • setAccessRightIds

        public void setAccessRightIds​(Collection<String> accessRightIds)
      • addSupervisor

        public void addSupervisor​(User superiorUser,
                                  MetadataType type)
      • removeSupervisor

        public void removeSupervisor​(String supervisorId)
      • addSubordinate

        public void addSubordinate​(Supervisor supervisor)
      • removeSubordinate

        public void removeSubordinate​(String subordinateId)
      • getPublishedEmailAddress

        public EmailAddress getPublishedEmailAddress()
      • getDefActiveEmailAddress

        public EmailAddress getDefActiveEmailAddress()
      • addPrimaryAccount

        public void addPrimaryAccount​(String accountId,
                                      MetadataType type)
      • removePrimaryAccount

        public void removePrimaryAccount()
      • addRelatedAccount

        public void addRelatedAccount​(String relatedAccountId,
                                      MetadataType type)
      • removeRelatedAccount

        public void removeRelatedAccount​(String relatedAccountId)