org.esupportail.portal.channels.CStockage.channelAction.classic.sharing
Class GroupForSharing

java.lang.Object
  extended byorg.esupportail.portal.channels.CStockage.userManagement.AbstractUser
      extended byorg.esupportail.portal.channels.CStockage.userManagement.Group
          extended byorg.esupportail.portal.channels.CStockage.channelAction.classic.sharing.GroupForSharing

public class GroupForSharing
extends Group

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.lang.String idOfSharing
          The ID of this sharing in the database
protected static Log log
          Logger object
private  boolean manage
          If the group can manage the rights
private  boolean reading
          When used for acl management, to know if this user has reading rights
private  boolean writing
          When used for acl management, to know if this user has writing rights
 
Fields inherited from class org.esupportail.portal.channels.CStockage.userManagement.Group
 
Fields inherited from class org.esupportail.portal.channels.CStockage.userManagement.AbstractUser
displayName, key
 
Constructor Summary
GroupForSharing()
          Default constructor
GroupForSharing(org.jasig.portal.groups.EntityGroupImpl group)
          Constructor
GroupForSharing(java.lang.String hierarchy)
          Constructor
GroupForSharing(java.lang.String key, java.lang.String displayName)
          Constructor
 
Method Summary
 java.lang.Object clone()
          Clone this object to another similary one
 java.lang.String getIdOfSharing()
           
 boolean isManage()
           
 boolean isReading()
           
 boolean isWriting()
           
 void setIdOfSharing(java.lang.String idOfSharing)
           
 void setManage(boolean manage)
           
 void setReading(boolean reading)
           
 void setWriting(boolean writing)
           
 
Methods inherited from class org.esupportail.portal.channels.CStockage.userManagement.Group
getGroupHierarchy, toString
 
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


reading

private boolean reading
When used for acl management, to know if this user has reading rights


writing

private boolean writing
When used for acl management, to know if this user has writing rights


manage

private boolean manage
If the group can manage the rights


idOfSharing

private java.lang.String idOfSharing
The ID of this sharing in the database

Constructor Detail

GroupForSharing

public GroupForSharing()
Default constructor


GroupForSharing

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

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

GroupForSharing

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

Parameters:
group - this portal group value
Throws:
ServerException

GroupForSharing

public GroupForSharing(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

isReading

public boolean isReading()
Returns:
Returns the reading.

setReading

public void setReading(boolean reading)
Parameters:
reading - The reading to set.

isWriting

public boolean isWriting()
Returns:
Returns the writing.

setWriting

public void setWriting(boolean writing)
Parameters:
writing - The writing to set.

isManage

public boolean isManage()
Returns:
Returns the manage.

setManage

public void setManage(boolean manage)
Parameters:
manage - The manage to set.

getIdOfSharing

public java.lang.String getIdOfSharing()
Returns:
Returns the idOfSharing.

setIdOfSharing

public void setIdOfSharing(java.lang.String idOfSharing)
Parameters:
idOfSharing - The idOfSharing to set.

clone

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

Overrides:
clone in class Group
Returns:
this cloned object