com.silverpeas.workflow.engine.user
Class UserImpl

java.lang.Object
  extended by com.silverpeas.workflow.engine.user.UserImpl
All Implemented Interfaces:
User

public final class UserImpl
extends Object
implements User

A User implementation built upon the silverpeas user management system.


Constructor Summary
UserImpl(UserDetail userDetail)
          UserImpl is built from a UserDetail and admin .
 
Method Summary
 boolean equals(Object user)
          compare this user with another
 String getFullName()
          Returns the user full name (firstname lastname)
 List<String> getGroupIds()
           
 String getInfo(String infoName)
          Returns the named info
 String getUserId()
          Returns the user id
static String[] getUserInfoNames()
          returns all the known info for an user; Each returned value can be used as a parameter to the User method getInfo().
 int hashCode()
           
 void setGroupIds(List<String> groupIds)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserImpl

public UserImpl(UserDetail userDetail)
UserImpl is built from a UserDetail and admin .

Method Detail

getUserId

public String getUserId()
Returns the user id

Specified by:
getUserId in interface User
Returns:
user id

getFullName

public String getFullName()
Returns the user full name (firstname lastname)

Specified by:
getFullName in interface User
Returns:
user full name

getUserInfoNames

public static String[] getUserInfoNames()
returns all the known info for an user; Each returned value can be used as a parameter to the User method getInfo().


getInfo

public String getInfo(String infoName)
Returns the named info

Specified by:
getInfo in interface User

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object user)
compare this user with another

Overrides:
equals in class Object
Returns:
true if two users are the same

getGroupIds

public List<String> getGroupIds()
Specified by:
getGroupIds in interface User

setGroupIds

public void setGroupIds(List<String> groupIds)


Copyright © 2016 Silverpeas. All Rights Reserved.