|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.AcsAddon.Accbee.Ubuntu.gBase.CAgoUserUbuntuImpl
public class CAgoUserUbuntuImpl
This class is an embedded one, responsible for modeling the AGO 'other' rights and the sticky bit on Ubuntu directories. It does not handle all the AGO rights. It is used as a private attribute of a composite class instance (called the master) which delegates the processing of some methods to this class. This class responsability covers both the AGO 'other' rights and the inherited group rights, since they depends on the sticky bit. The master class is a ResourceUbuntu, and the master transfers directly all the relevant actions to this class.
It is a javabean with the following bound properties: 'OtherRights', 'FromTheParentOther', 'InheritedOtherRights'. The listeners are proper to the master instance. Excepting for ViewInBaseEPRImpl, they are outside the gBase packages, transient (not serialized in this instance backup). They are called in any order. They receive only a copy of the new value, to protect the property. All the exceptions from the listeners are catched, and a dialog box is displayed to inform the user. This class is public to be overriden in the AcsAddons. This class has no subclass in this package. See the Copyright.
Field Summary | |
---|---|
protected java.beans.PropertyChangeSupport |
changeSupport_
manages all the property change listeners and also for its subclasses |
(package private) static CAgoUserUbuntuImpl |
EMPTY_INSTANCE
A reusable empty instance for initialization, to avoid the use of 'new' for temporary values. |
protected static int |
INCREMENT_CAPACITY
|
protected static int |
INITIAL_CAPACITY
|
protected static int |
INITIAL_CAPACITY_2
|
private StringRight[] |
l_otherRights_
The other rights of the Linux/Unix resource |
private ResourceUbuntu |
master_
The master is the instance for which this class operates as an embedded one. |
private boolean |
parentTreeORightsAllowToGoAcross
True if the master parent allows to go to the master for AGO other rigths. |
protected static int |
PRIME
|
static java.io.ObjectStreamField[] |
serialPersistentFields
variable for the JDK 2 serialization |
private static long |
serialVersionUID
|
Constructor Summary | |
---|---|
CAgoUserUbuntuImpl()
Default constructor. |
|
CAgoUserUbuntuImpl(ResourceUbuntu _master)
Used by the master constructor before the registration in the ACS. |
Method Summary | |
---|---|
protected void |
addPropertyChangeListener(java.beans.PropertyChangeListener _l)
Adds a listener to the bean, for all the bound properties. |
protected void |
addPropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Adds a listener to the bean. |
protected CAgoUserUbuntuImpl |
cloneC(ResourceUbuntu _master)
Clone for embedded class, without registering the new object in the ACSs. |
(package private) CAgoUserUbuntuImpl |
copy(ResourceUbuntu _masterCopy)
This method provides a copy of the instance with another master. |
boolean |
equals(java.lang.Object _obj)
Works even if the instance is finalized. |
protected void |
finalize()
This method calls finalizeForBase(). |
protected void |
finalizeForBase()
This method is called by finalize(), but finalize() may be not called. |
protected void |
finalizeFromDeserialization()
The instance is NOT removed as a listener, since there is no listener. |
protected void |
fireL_inheritedOtherRights(StringRight[] _l_old,
StringRight[] _l_new)
Fires the event 'InheritedOtherRights', from the parent of the resource 'other' category. |
protected void |
firePropertyChange(java.lang.String _propertyName,
java.lang.Object _oldValue,
java.lang.Object _newValue)
Fires an event to every registered listener, in any order. |
protected boolean |
getAGOAccessFromTheParentOther()
|
protected StringRight[] |
getL_inheritedGroupRights()
Gets the inherited rights from the parent of the resource group, including the control by the parent sticky bit. |
protected StringRight[] |
getL_inheritedOtherRights()
Gets the inherited rights from the parent of the resource for 'other' AGO rights. |
protected StringRight[] |
getL_otherRights()
Gets the access rights for the EligibleParties which are not the UserID or the GroupID owners of this resource, nor the root UserID. |
long |
getSerialVersionUID()
|
int |
hashCode()
|
protected void |
removePropertyChangeListener(java.beans.PropertyChangeListener _l)
Removes a listener to the bean, for all the bound properties. |
protected void |
removePropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Removes a listener to the bean. |
protected void |
setAGOAccessFromTheParentOther(boolean _b)
|
protected void |
setL_otherRights(StringRight[] _s)
Sets the rights for the EligibleParties which are not 'root' nor this resource userID, and which are not members of this resource groupID. |
java.lang.String |
toString()
Gets the name last component of each privilege. |
Methods inherited from class java.lang.Object |
---|
clone, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final int INITIAL_CAPACITY
protected static final int INITIAL_CAPACITY_2
protected static final int INCREMENT_CAPACITY
protected static final int PRIME
private static final long serialVersionUID
private ResourceUbuntu master_
private StringRight[] l_otherRights_
private boolean parentTreeORightsAllowToGoAcross
protected transient java.beans.PropertyChangeSupport changeSupport_
static final CAgoUserUbuntuImpl EMPTY_INSTANCE
public static final java.io.ObjectStreamField[] serialPersistentFields
Constructor Detail |
---|
CAgoUserUbuntuImpl()
CAgoUserUbuntuImpl(ResourceUbuntu _master) throws CreateError
_master
- which owns this instance
CreateError
- if _master is null.
Does not control the ACS management.Method Detail |
---|
CAgoUserUbuntuImpl copy(ResourceUbuntu _masterCopy) throws CreateError
_masterCopy
- is the master of the new copy
CreateError
- of the constructor with the same parameters.protected StringRight[] getL_otherRights()
protected void setL_otherRights(StringRight[] _s) throws UpDateError
_s
- array of acsrights and/or metarights. May be null.
UpDateError
- if the other rights are immutable,
or if there are more than 20 increasing chains to analyze from one lesser right, or
if the new rights contain a 'delete' or 'rename' right,
while its parent does not allow it through its deleting-renaming flag.protected StringRight[] getL_inheritedGroupRights()
protected StringRight[] getL_inheritedOtherRights()
protected boolean getAGOAccessFromTheParentOther()
protected void addPropertyChangeListener(java.beans.PropertyChangeListener _l)
_l
- PropertyChangeListener to add. Caution: the listener must NOT
have specific hashCode() and equals() methods, to work with HashSet
in the removing operations.protected void addPropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
_propertyName
- String is the name of the property_l
- PropertyChangeListener to add. Caution: the listener must NOT
have specific hashCode() and equals() methods, to work with HashSet
in the removing operations.protected void removePropertyChangeListener(java.beans.PropertyChangeListener _l)
_l
- PropertyChangeListener to removeprotected void removePropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
_propertyName
- String is the name of the property_l
- PropertyChangeListener to removeprotected CAgoUserUbuntuImpl cloneC(ResourceUbuntu _master)
_master
- must be a clone of this instance master
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object _obj)
equals
in class java.lang.Object
_obj
- to compare
public long getSerialVersionUID()
public java.lang.String toString()
toString
in class java.lang.Object
protected void setAGOAccessFromTheParentOther(boolean _b)
_b
- true if the parent authorizes its 'other' AGO category
to have access to this instance.protected final void fireL_inheritedOtherRights(StringRight[] _l_old, StringRight[] _l_new)
_l_old
- an array of the old access rights for the 'other' AGO category,
in the main ACS. May be empty._l_new
- an array of the new access rights for the 'other' AGO category,
in the main ACS. May be empty.protected void finalizeForBase() throws UpDateError
UpDateError
- is never thrown.protected void finalizeFromDeserialization()
protected void firePropertyChange(java.lang.String _propertyName, java.lang.Object _oldValue, java.lang.Object _newValue)
_propertyName
- name of the changing property_oldValue
- of the property_newValue
- of the property. No operation if equal to _oldValue
and not null.protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |