org.jbpm.identity
Class User

java.lang.Object
  extended by org.jbpm.identity.Entity
      extended by org.jbpm.identity.User
All Implemented Interfaces:
Serializable, Principal

public class User
extends Entity
implements Principal

user or a system.

See Also:
Serialized Form

Field Summary
protected  String email
           
protected  Set memberships
           
protected  String password
           
 
Fields inherited from class org.jbpm.identity.Entity
name, permissions
 
Constructor Summary
User()
           
User(String name)
           
 
Method Summary
 void addMembership(Membership membership)
           
 boolean equals(Object obj)
           
 String getEmail()
           
 Set getGroupsForGroupType(String groupType)
           
 Set getGroupsForMembershipRole(String membershipRole)
           
 Set getMemberships()
           
 String getPassword()
           
 int hashCode()
           
 void setEmail(String email)
           
 void setPassword(String password)
           
 String toString()
           
 
Methods inherited from class org.jbpm.identity.Entity
addPermission, getId, getName, getPermissions, removePermission
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.security.Principal
getName
 

Field Detail

password

protected String password

email

protected String email

memberships

protected Set memberships
Constructor Detail

User

public User()

User

public User(String name)
Method Detail

addMembership

public void addMembership(Membership membership)

getGroupsForGroupType

public Set getGroupsForGroupType(String groupType)

getGroupsForMembershipRole

public Set getGroupsForMembershipRole(String membershipRole)

setPassword

public void setPassword(String password)

getPassword

public String getPassword()

getMemberships

public Set getMemberships()

getEmail

public String getEmail()

setEmail

public void setEmail(String email)

equals

public boolean equals(Object obj)
Specified by:
equals in interface Principal
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

toString

public String toString()
Specified by:
toString in interface Principal
Overrides:
toString in class Object


Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.