org.pentaho.di.repository
Class UserInfo

java.lang.Object
  extended by org.pentaho.di.repository.UserInfo
All Implemented Interfaces:
IUser

public class UserInfo
extends Object
implements IUser


Field Summary
static String REPOSITORY_ELEMENT_TYPE
           
 
Constructor Summary
UserInfo()
           
UserInfo(IUser copyFrom)
          copy constructor
UserInfo(String login)
           
UserInfo(String login, String password, String username, String description, boolean enabled)
           
 
Method Summary
 String getDescription()
          Get the user's description
 String getLogin()
          Get the login for a the user
 String getName()
          The name of the user maps to the login id
 ObjectId getObjectId()
          Get the object id
 String getPassword()
          Get the password for the user
 RepositoryDirectory getRepositoryDirectory()
          Not used in this case, simply return root /
 String getRepositoryElementType()
           
 String getUsername()
          Get the user name for the user
 boolean isEnabled()
          Check if the user is enabled or not
 void setDescription(String description)
          Set the description of the user
 void setDisabled()
           
 void setEnabled()
           
 void setEnabled(boolean enabled)
          Make the user enabled or disabled
 void setLogin(String login)
          Set the login for the user
 void setName(String name)
          Set the name of the user.
 void setObjectId(ObjectId id)
          Set the object id of this user
 void setPassword(String password)
          Set the password for the
 void setRepositoryDirectory(RepositoryDirectory repositoryDirectory)
           
 void setUsername(String username)
          Set the user name for the user
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REPOSITORY_ELEMENT_TYPE

public static final String REPOSITORY_ELEMENT_TYPE
See Also:
Constant Field Values
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 ObjectId getObjectId()
Description copied from interface: IUser
Get the object id

Specified by:
getObjectId in interface IUser
Returns:
Object Id

setObjectId

public void setObjectId(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 RepositoryDirectory getRepositoryDirectory()
Not used in this case, simply return root /


setRepositoryDirectory

public void setRepositoryDirectory(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.