Class UserInfo

  • All Implemented Interfaces:
    IUser

    public class UserInfo
    extends Object
    implements IUser
    • Constructor Detail

      • UserInfo

        public UserInfo​(IUser copyFrom)
        copy constructor
        Parameters:
        copyFrom -
      • UserInfo

        public UserInfo​(String login,
                        String password,
                        String username,
                        String description,
                        boolean enabled)
      • UserInfo

        public UserInfo​(String login)
      • UserInfo

        public UserInfo()
    • Method Detail

      • setLogin

        public void setLogin​(String login)
        Description copied from interface: IUser
        Set the login for the user
        Specified by:
        setLogin in interface IUser
      • getLogin

        public String getLogin()
        Description copied from interface: IUser
        Get the login for a the user
        Specified by:
        getLogin in interface IUser
        Returns:
        user login
      • setPassword

        public void setPassword​(String password)
        Description copied from interface: IUser
        Set the password for the
        Specified by:
        setPassword in interface IUser
      • getPassword

        public String getPassword()
        Description copied from interface: IUser
        Get the password for the user
        Specified by:
        getPassword in interface IUser
        Returns:
        user password
      • setUsername

        public void setUsername​(String username)
        Description copied from interface: IUser
        Set the user name for the user
        Specified by:
        setUsername in interface IUser
      • getUsername

        public String getUsername()
        Description copied from interface: IUser
        Get the user name for the user
        Specified by:
        getUsername in interface IUser
        Returns:
        user name
      • setDescription

        public void setDescription​(String description)
        Description copied from interface: IUser
        Set the description of the user
        Specified by:
        setDescription in interface IUser
      • getDescription

        public String getDescription()
        Description copied from interface: IUser
        Get the user's description
        Specified by:
        getDescription in interface IUser
        Returns:
        user description
      • setEnabled

        public void setEnabled()
      • setDisabled

        public void setDisabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
        Description copied from interface: IUser
        Make the user enabled or disabled
        Specified by:
        setEnabled in interface IUser
      • getObjectId

        public org.pentaho.di.repository.ObjectId getObjectId()
        Description copied from interface: IUser
        Get the object id
        Specified by:
        getObjectId in interface IUser
        Returns:
        Object Id
      • setObjectId

        public void setObjectId​(org.pentaho.di.repository.ObjectId id)
        Description copied from interface: IUser
        Set the object id of this user
        Specified by:
        setObjectId in interface IUser
      • isEnabled

        public boolean isEnabled()
        Description copied from interface: IUser
        Check if the user is enabled or not
        Specified by:
        isEnabled in interface IUser
        Returns:
        the enabled
      • getRepositoryDirectory

        public org.pentaho.di.repository.RepositoryDirectory getRepositoryDirectory()
        Not used in this case, simply return root /
      • setRepositoryDirectory

        public void setRepositoryDirectory​(org.pentaho.di.repository.RepositoryDirectory repositoryDirectory)
      • getRepositoryElementType

        public String getRepositoryElementType()
      • getName

        public String getName()
        The name of the user maps to the login id
        Specified by:
        getName in interface IUser
        Returns:
        name
      • setName

        public void setName​(String name)
        Set the name of the user.
        Specified by:
        setName in interface IUser
        Parameters:
        name - The name of the user maps to the login id.
      • isAdmin

        public Boolean isAdmin()
        Description copied from interface: IUser
        Check if the user is admin or not
        Specified by:
        isAdmin in interface IUser
        Returns:
        admin
      • setAdmin

        public void setAdmin​(Boolean admin)
        Description copied from interface: IUser
        Make the user admin or not
        Specified by:
        setAdmin in interface IUser