org.esupportail.portal.channels.CStockage.userManagement
Class Group

java.lang.Object
  extended byorg.esupportail.portal.channels.CStockage.userManagement.AbstractUser
      extended byorg.esupportail.portal.channels.CStockage.userManagement.Group
Direct Known Subclasses:
GroupForSharing

public class Group
extends AbstractUser

Id: Group.java,v 1.0 7 oct. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: Group Original Author: Yohan Colmant Represents a group for the management


Field Summary
private  java.util.Vector groupHierarchy
          This group hierarchy
protected static Log log
          Logger object
 
Fields inherited from class org.esupportail.portal.channels.CStockage.userManagement.AbstractUser
displayName, key
 
Constructor Summary
Group()
          Default constructor
Group(org.jasig.portal.groups.EntityGroupImpl group)
          Constructor
Group(java.lang.String hierarchy)
          Constructor
Group(java.lang.String key, java.lang.String displayName)
          Constructor
 
Method Summary
 java.lang.Object clone()
          Clone this object to another similary one
 java.util.Vector getGroupHierarchy()
          Get this group keys hierarchy from the root to the group key
 java.lang.String toString()
          Return a String from this group
 
Methods inherited from class org.esupportail.portal.channels.CStockage.userManagement.AbstractUser
equals, getDisplayName, getKey, setDisplayName, setKey
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

log

protected static final Log log
Logger object


groupHierarchy

private java.util.Vector groupHierarchy
This group hierarchy

Constructor Detail

Group

public Group()
Default constructor


Group

public Group(java.lang.String key,
             java.lang.String displayName)
      throws ServerException
Constructor

Parameters:
key - the group key
displayName - The displayed group name
Throws:
ServerException

Group

public Group(org.jasig.portal.groups.EntityGroupImpl group)
      throws ServerException
Constructor

Parameters:
group - this portal group value
Throws:
ServerException

Group

public Group(java.lang.String hierarchy)
      throws ServerException
Constructor

Parameters:
hierarchy - this portal group hierarchy in this form: G1/G2/G3 where G1 is the root
Throws:
ServerException
Method Detail

getGroupHierarchy

public java.util.Vector getGroupHierarchy()
Get this group keys hierarchy from the root to the group key

Returns:
a vector construct with each hierarchy node

clone

public java.lang.Object clone()
Clone this object to another similary one

Returns:
this cloned object

toString

public java.lang.String toString()
Return a String from this group

Overrides:
toString in class AbstractUser
Returns:
a String from this group