org.ow2.bonita.identity.impl
Class GroupImpl

java.lang.Object
  extended by org.ow2.bonita.identity.impl.GroupImpl
All Implemented Interfaces:
java.io.Serializable, GroupOp

public class GroupImpl
extends java.lang.Object
implements GroupOp

Author:
"Pierre Vigneras"
See Also:
Serialized Form

Constructor Summary
protected GroupImpl()
           
  GroupImpl(java.lang.String id)
           
  GroupImpl(java.lang.String id, GroupOp parent)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.util.Set<GroupOp> getChildren()
          Get the set of children of this group.
 java.lang.String getId()
           
 java.util.Set<Membership> getMemberships()
          Get the set of memberships of this group.
 GroupOp getParent()
           
 java.util.Set<java.security.Permission> getPermissions()
          Get the set of permissions of this group.
 java.util.Properties getProperties()
          Get the Properties of this group.
 GroupOp getRoot()
           
 int hashcode()
           
 boolean hasMember(UserOp userOp)
           
protected static GroupImpl root()
           
protected  void setChildren(java.util.Set<GroupOp> children)
           
protected  void setId(java.lang.String id)
           
protected  void setMemberships(java.util.Set<Membership> memberships)
           
protected  void setParent(GroupOp parent)
           
 void setPermissions(java.util.Set<java.security.Permission> permissions)
           
 void setProperties(java.util.Properties properties)
           
protected static void setRoot(java.lang.String rootId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GroupImpl

protected GroupImpl()

GroupImpl

public GroupImpl(java.lang.String id)

GroupImpl

public GroupImpl(java.lang.String id,
                 GroupOp parent)
Method Detail

setRoot

protected static void setRoot(java.lang.String rootId)

root

protected static GroupImpl root()

setId

protected void setId(java.lang.String id)

getChildren

public java.util.Set<GroupOp> getChildren()
Description copied from interface: GroupOp
Get the set of children of this group. The returned set is a copy of the actual one. Any modifications made to the returned set are not propagated to the backing store.

Specified by:
getChildren in interface GroupOp
Returns:
the set of children of this user

getMemberships

public java.util.Set<Membership> getMemberships()
Description copied from interface: GroupOp
Get the set of memberships of this group. The returned 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 GroupOp
Returns:
the set of memberships of this group

setMemberships

protected void setMemberships(java.util.Set<Membership> memberships)

getId

public java.lang.String getId()
Specified by:
getId in interface GroupOp

getParent

public GroupOp getParent()
Specified by:
getParent in interface GroupOp

getPermissions

public java.util.Set<java.security.Permission> getPermissions()
Description copied from interface: GroupOp
Get the set of permissions of this group. The returned set is a copy of the actual one. Any modifications made to the returned set are not propagated to the backing store.

Specified by:
getPermissions in interface GroupOp
Returns:
the set of permissions of this group

getProperties

public java.util.Properties getProperties()
Description copied from interface: GroupOp
Get the Properties of this group. 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 GroupOp
Returns:
the properties of this group

getRoot

public GroupOp getRoot()
Specified by:
getRoot in interface GroupOp

setChildren

protected void setChildren(java.util.Set<GroupOp> children)

setParent

protected void setParent(GroupOp parent)

setPermissions

public void setPermissions(java.util.Set<java.security.Permission> permissions)
Specified by:
setPermissions in interface GroupOp

setProperties

public void setProperties(java.util.Properties properties)
Specified by:
setProperties in interface GroupOp

hasMember

public boolean hasMember(UserOp userOp)
Specified by:
hasMember in interface GroupOp
Returns:

hashcode

public int hashcode()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2009 OW2 Consortium. All Rights Reserved.