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

java.lang.Object
  extended byorg.esupportail.portal.channels.CStockage.userManagement.AbstractUser
      extended byorg.esupportail.portal.channels.CStockage.userManagement.User
          extended byorg.esupportail.portal.channels.CStockage.channelAction.classic.sharing.UserForSharing

public class UserForSharing
extends User

Id: User.java,v 1.0 7 oct. 2004 Copyright (c) 2004 Esup Portail (www.esup-portail.org) Classes: User Original Author: Yohan Colmant Represents a user 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.AbstractUser
displayName, key
 
Constructor Summary
UserForSharing()
          Default constructor
UserForSharing(org.esupportail.portal.channels.CAnnuaire.Personne pers)
          Constructor
UserForSharing(java.lang.String key)
          Constructor
UserForSharing(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.User
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

UserForSharing

public UserForSharing()
Default constructor


UserForSharing

public UserForSharing(java.lang.String key,
                      java.lang.String displayName)
Constructor

Parameters:
key - The key
displayName - The displayed user name

UserForSharing

public UserForSharing(java.lang.String key)
               throws PropertiesException
Constructor

Parameters:
key - The key

UserForSharing

public UserForSharing(org.esupportail.portal.channels.CAnnuaire.Personne pers)
               throws PropertiesException
Constructor

Parameters:
pers - The retrieved people
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 User
Returns:
this cloned object