org.norther.tammi.root.realm
Class SimplePersistentGroup

java.lang.Object
  extended by org.norther.tammi.root.realm.SimplePersistentGroup
All Implemented Interfaces:
Serializable, Cloneable, PersistentGroup
Direct Known Subclasses:
IdBasedPersistentGroup

public class SimplePersistentGroup
extends Object
implements PersistentGroup, Serializable, Cloneable

The default implementation of PersistentGroup.

Version:
$Id: SimplePersistentGroup.java,v 1.7 2009/09/28 15:08:35 cvsimp Exp $
Author:
Ilkka Priha
See Also:
Serialized Form

Constructor Summary
SimplePersistentGroup()
          The default constructor.
SimplePersistentGroup(String name)
          Constructs a new group.
 
Method Summary
 Object clone()
           
 boolean equals(Object other)
           
 Collection<PersistentGroup> getChildren()
          Gets the children of the group.
 String getDescription()
          Gets the description of the group.
 String getHangword()
          Gets the hangword of the group.
 Object getId()
          Gets the unique id of the group.
 Collection<PersistentUser> getMembers()
          Gets the members of the group.
 String getName()
          Gets the name of the group.
 Collection<PersistentGroup> getParents()
          Gets the parents of the group.
 String getPassword()
          Gets the password of the group.
 PersistentUser getUser()
          Gets the user of the group.
 Object getUserId()
          Gets the user id of the group.
 int hashCode()
           
 void setChildren(Collection<PersistentGroup> groups)
          Sets the children of the group.
 void setDescription(String descr)
          Sets the description of the group.
 void setHangword(String pswd)
          Sets the hangword of the group.
 void setId(Object id)
          Sets the unique id of the group.
 void setMembers(Collection<PersistentUser> members)
          Sets the members of the group.
 void setName(String name)
          Sets the name of the group.
 void setParents(Collection<PersistentGroup> groups)
          Sets the parents of the group.
 void setPassword(String pswd)
          Sets the password of the group.
 void setUser(PersistentUser user)
          Sets the user of the group.
 void setUserId(Object uid)
          Sets the user id of the group.
 String toString()
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimplePersistentGroup

public SimplePersistentGroup()
The default constructor.


SimplePersistentGroup

public SimplePersistentGroup(String name)
Constructs a new group.

Parameters:
name - the group name.
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getId

public Object getId()
Description copied from interface: PersistentGroup
Gets the unique id of the group.

Specified by:
getId in interface PersistentGroup
Returns:
the group id.

setId

public void setId(Object id)
Description copied from interface: PersistentGroup
Sets the unique id of the group.

Specified by:
setId in interface PersistentGroup
Parameters:
id - the group id.

getName

public String getName()
Description copied from interface: PersistentGroup
Gets the name of the group.

Specified by:
getName in interface PersistentGroup
Returns:
the group name.

setName

public void setName(String name)
Description copied from interface: PersistentGroup
Sets the name of the group.

Specified by:
setName in interface PersistentGroup
Parameters:
name - the group name.

getPassword

public String getPassword()
Description copied from interface: PersistentGroup
Gets the password of the group.

Specified by:
getPassword in interface PersistentGroup
Returns:
the password.

setPassword

public void setPassword(String pswd)
Description copied from interface: PersistentGroup
Sets the password of the group.

Specified by:
setPassword in interface PersistentGroup
Parameters:
pswd - the password.

getHangword

public String getHangword()
Description copied from interface: PersistentGroup
Gets the hangword of the group.

Specified by:
getHangword in interface PersistentGroup
Returns:
the hangword.

setHangword

public void setHangword(String pswd)
Description copied from interface: PersistentGroup
Sets the hangword of the group.

Specified by:
setHangword in interface PersistentGroup
Parameters:
pswd - the hangword.

getDescription

public String getDescription()
Description copied from interface: PersistentGroup
Gets the description of the group.

Specified by:
getDescription in interface PersistentGroup
Returns:
the description.

setDescription

public void setDescription(String descr)
Description copied from interface: PersistentGroup
Sets the description of the group.

Specified by:
setDescription in interface PersistentGroup
Parameters:
descr - the description.

getUserId

public Object getUserId()
Description copied from interface: PersistentGroup
Gets the user id of the group.

Specified by:
getUserId in interface PersistentGroup
Returns:
the user id.

setUserId

public void setUserId(Object uid)
Description copied from interface: PersistentGroup
Sets the user id of the group.

Specified by:
setUserId in interface PersistentGroup
Parameters:
uid - the user id.

getUser

public PersistentUser getUser()
Description copied from interface: PersistentGroup
Gets the user of the group.

Specified by:
getUser in interface PersistentGroup
Returns:
the user as a PersistentUser instance.

setUser

public void setUser(PersistentUser user)
Description copied from interface: PersistentGroup
Sets the user of the group.

Specified by:
setUser in interface PersistentGroup
Parameters:
user - the user as a PersistentUser instance.

getMembers

public Collection<PersistentUser> getMembers()
Description copied from interface: PersistentGroup
Gets the members of the group.

Specified by:
getMembers in interface PersistentGroup
Returns:
the members as a collection of PersistentUser instances.

setMembers

public void setMembers(Collection<PersistentUser> members)
Description copied from interface: PersistentGroup
Sets the members of the group.

Specified by:
setMembers in interface PersistentGroup
Parameters:
members - the members as a collection of PersistentUser instances.

getParents

public Collection<PersistentGroup> getParents()
Description copied from interface: PersistentGroup
Gets the parents of the group.

Specified by:
getParents in interface PersistentGroup
Returns:
the groups as a collection of PersistentGroup instances.

setParents

public void setParents(Collection<PersistentGroup> groups)
Description copied from interface: PersistentGroup
Sets the parents of the group.

Specified by:
setParents in interface PersistentGroup
Parameters:
groups - the groups as a collection of PersistentGroup instances.

getChildren

public Collection<PersistentGroup> getChildren()
Description copied from interface: PersistentGroup
Gets the children of the group.

Specified by:
getChildren in interface PersistentGroup
Returns:
the groups as a collection of PersistentPersistent instances.

setChildren

public void setChildren(Collection<PersistentGroup> groups)
Description copied from interface: PersistentGroup
Sets the children of the group.

Specified by:
setChildren in interface PersistentGroup
Parameters:
groups - the groups as a collection of PersistentGroup instances.


Copyright © 2004 The Norther Organization. All rights reserved.