org.ow2.bonita.identity.impl
Class UserImpl
java.lang.Object
org.ow2.bonita.identity.impl.UserImpl
- All Implemented Interfaces:
- java.io.Serializable, UserOp
public class UserImpl
- extends java.lang.Object
- implements UserOp
- Author:
- "Pierre Vigneras"
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
UserImpl
protected UserImpl()
UserImpl
public UserImpl(java.lang.String id)
- Parameters:
string
- string2
-
setMemberships
protected void setMemberships(java.util.Set<Membership> memberships)
getId
public java.lang.String getId()
- Specified by:
getId
in interface UserOp
setId
protected void setId(java.lang.String id)
getMemberships
public java.util.Set<Membership> getMemberships()
- Description copied from interface:
UserOp
- Return the memberships of this user.
The return set is a copy of the actual one. Any modifications made to the
returned set are not propagated to the backing store.
- Specified by:
getMemberships
in interface UserOp
- Returns:
- a set of Membership
- See Also:
Membership
getPermissions
public java.util.Set<java.security.Permission> getPermissions()
- Description copied from interface:
UserOp
- Get the set of permissions of this user.
The return Permissions is a copy of the actual one. Any modifications made
to the returned Permissions are not propagated to the backing store.
- Specified by:
getPermissions
in interface UserOp
- Returns:
- the set of permissions of this user
getProperties
public java.util.Properties getProperties()
- Description copied from interface:
UserOp
- Get the set of properties of this user.
The returned Properties is a copy of the actual one. Any modifications made
to the returned Properties are not propagated to the backing store.
- Specified by:
getProperties
in interface UserOp
- Returns:
- the properties of this user
setPermissions
public void setPermissions(java.util.Set<java.security.Permission> permissions)
- Specified by:
setPermissions
in interface UserOp
setProperties
public void setProperties(java.util.Properties properties)
- Specified by:
setProperties
in interface UserOp
isMember
public boolean isMember(GroupOp groupOp)
- Specified by:
isMember
in interface UserOp
- Returns:
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
hashcode
public int hashcode()
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
Copyright © 2009 OW2 Consortium. All Rights Reserved.