com.ibm.openpages.api.security

Interface IUser

    • Method Detail

      • changePassword

        void changePassword(java.lang.String newPassword)
        Changes the user password to the one specified as an argument.
        Parameters:
        newPassword - new assigned password
      • isMember

        boolean isMember(IGroup group)
        Verifies membership to the specified group.
        Parameters:
        group -
        Returns:
        true if the user belongs to the specified group; otherwise, returns false
      • update

        void update()
        Updates user information in the OpenPages database.
      • isSecurityAdministrator

        boolean isSecurityAdministrator()
        Verifies if the user is a security administrator. A security administrator should have at least one administrator permissions.
        Returns:
        true if the user has administrator permission; otherwise, returns false
      • getFirstName

        java.lang.String getFirstName()
        Returns the first name of the user.
        Returns:
        String
      • setFirstName

        void setFirstName(java.lang.String firstName)
        Sets the first name of the user.
        Parameters:
        firstName - user's first name
      • getLastName

        java.lang.String getLastName()
        Returns the last name of the user.
        Returns:
        String
      • setLastName

        void setLastName(java.lang.String lastName)
        Sets the last name of the user.
        Parameters:
        lastName - user's last name
      • getMiddleName

        java.lang.String getMiddleName()
        Returns the middle name of the user.
        Returns:
        String
      • setMiddleName

        void setMiddleName(java.lang.String middleName)
        Sets the middle name of the user.
        Parameters:
        middleName - user's middle name
      • passwordCreatedOn

        java.util.Date passwordCreatedOn()
        Returns the creation date for a password.
        Returns:
        creation date
      • passwordExpiresInDays

        int passwordExpiresInDays()
        Returns password duration in days.
        Returns:
        an integer representing the number of days remaining before password expiration
      • setPasswordExpiresInDays

        void setPasswordExpiresInDays(java.lang.Integer days)
        Sets password duration in days.
        Parameters:
        an - integer representing the number of days remaining before password expiration
      • canChangePassword

        boolean canChangePassword()
        Verifies if password can be changed.
        Returns:
        true if the password can be changed; otherwise, returns false
      • setCanChangePassword

        void setCanChangePassword(java.lang.Boolean canChangePassword)
        Sets whether a password can be changed
        Parameters:
        canChangePassword -
      • isTemporaryPassword

        boolean isTemporaryPassword()
        Verifies if password is temporary.
        Returns:
        true if the password is temporary; otherwise, returns false
      • setIsTemporaryPassword

        void setIsTemporaryPassword(java.lang.Boolean isTemporaryPassword)
        Sets whether a password is temporary
        Parameters:
        isTemporaryPassword -
      • isPasswordChangeFromAdmin

        boolean isPasswordChangeFromAdmin()
        Verifies if the last password change was performed by an administrator.
        Returns:
        true if the last password change was performed by an administrator; otherwise, returns false
      • lock

        void lock()
        Locks user-level security information.
      • unlock

        void unlock()
        Unlocks user-level security information.
      • setLocale

        void setLocale(java.util.Locale locale)
        Sets locale information associated with the user.
        Parameters:
        locale -
      • getRoleAssignments

        java.util.Iterator<IRoleAssignment> getRoleAssignments()
        Returns all role assignments for a user.
        Returns:
        Iterator
      • getRoleTemplates

        java.util.Iterator<IRoleTemplate> getRoleTemplates()
        Returns all roles for a user.
        Returns:
        Iterator
      • getEmailAddress

        java.lang.String getEmailAddress()
        Returns the email address associated with a user.
        Returns:
        user's email address
      • setEmailAddress

        void setEmailAddress(java.lang.String emailAddress)
        Sets the email address associated with a user.
        Parameters:
        emailAddress -
      • getDescription

        java.lang.String getDescription()
        Returns description information about the account.
        Returns:
        account description
      • setDescription

        void setDescription(java.lang.String description)
        Sets description information about the account.
        Parameters:
        description -
      • getAdminLevel

        int getAdminLevel()
        Returns the administration level associated to this user.
        Returns:
        an integer representing the user's administration level
      • getId

        Id getId()
        Returns OpenPages system Id of the user.
        Specified by:
        getId in interface ISecurityPrincipal
        Returns:
        Id of the user
      • isLocked

        boolean isLocked()
        Returns lock status.
        Returns:
        true if account is locked; otherwise, returns false
      • getPasswordCreationDate

        java.util.Date getPasswordCreationDate()
        Returns creation date for user password.
        Returns:
        Date
      • getGroups

        java.util.Iterator<IGroup> getGroups()
        Returns all the groups the user belongs to.
        Returns:
        Iterator
      • getGroupIds

        java.util.List<Id> getGroupIds()
        Returns a list of group Ids that the user belongs to.
        Returns:
        List
      • getDisplayName

        java.lang.String getDisplayName()
        Returns the display name according to application text information com.display.name.format
        Returns:
        The parsed display name string
      • getDisplayName

        java.lang.String getDisplayName(java.util.Locale locale)
        Returns the display name according to application text information com.display.name.format on the specified locale
        Returns:
        The parsed display name string
        Since:
        8.0.0.2

Licensed Materials - Property of IBM
© Copyright IBM Corp. 2013, 2018. All Rights Reserved.
US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.