|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gBase.BasicImpl
ARoad0.gBase.EligiblePartyImpl
ARoad0.gBase.GroupIDMemberImpl
public class GroupIDMemberImpl
This class is responsible for modeling the entity which is a GroupID member. This class offers a method to get the groups the instance is member of. It is a javabean with the following bound properties: 'AssociatedGroups'. The listeners are proper to this instance, outside gBase, 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 has several subclasses in this package and in the AcsAddon packages. Most of the variables are protected.
Field Summary | |
---|---|
static GroupIDMemberImpl |
EMPTY_INSTANCE
A reusable empty instance for initialization, to avoid the use of 'new' for temporary values. |
protected boolean |
isAdmin_
true only if the instance has an administrative role in the ACS, for the technical administration or the users administration. |
protected GroupIDImpl[] |
l_Groups_
array of groupIDs that own directly this GroupIDMember. |
static java.io.ObjectStreamField[] |
serialPersistentFields
variable for the JDK 2 serialization ("l_Groups_",GroupIDImpl[].class), ("isAdmin_", Boolean.TYPE) |
private static long |
serialVersionUID__
|
Fields inherited from class ARoad0.gBase.EligiblePartyImpl |
---|
m_AclEntriesResources_ |
Fields inherited from class ARoad0.gBase.BasicImpl |
---|
aCS_, aCS_Name_, aliasHandler_, changeSupport_, comment_, folderMember_, INCREMENT_CAPACITY, INITIAL_CAPACITY, INITIAL_CAPACITY_2, iS_Name_, m_ConstrainedChildACS_, name_, PRIME, privHandler_, type_ |
Constructor Summary | |
---|---|
GroupIDMemberImpl()
Simple constructor that calls EligiblePartyImpl(). |
|
GroupIDMemberImpl(ImmutableName _name,
ACS _acs,
java.lang.String _epType,
java.lang.Boolean _isAdmin)
Constructor used in the beamer by the editor for the ACS EP list, from 'New'. |
|
GroupIDMemberImpl(ImmutableName _name,
ACS _acs,
java.lang.String _epType,
boolean _isAdmin,
boolean _toRegisterInManager)
Used for the creation of a GroupIDMember alias, without base registration. |
Method Summary | |
---|---|
void |
addGroupToGM(GroupID _grp)
Adds a group for which this GroupIDMember is a member. |
void |
addPropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Adds a listener to the bean. |
java.lang.Object |
clone()
Clone without register the new object in the ACSs. |
java.lang.Object |
copy(ImmutableName _name,
ACS _acs,
Directory _parent,
java.lang.Object _aliasRef,
java.lang.Boolean _toRegisterInManager)
This method provides a copy of the instance with another name. |
protected GroupIDMemberImpl |
copyOwnVariables(GroupIDMemberImpl _result,
boolean _withoutInternalAcl)
This method provides a copy of the instance variables. |
java.lang.Object |
copyWithoutAcl(ImmutableName _name,
ACS _acs,
Directory _parent,
java.lang.Object _aliasRef,
java.lang.Boolean _toRegisterInManager)
This method provides a copy of the instance as copy() but without copying the aclEntries. |
boolean |
equals(java.lang.Object _obj)
Does not compare the comment. |
protected void |
finalize()
This method removes the GroupIDMember from the ACS lists, but there is no guaranee that the JVM calls this method before the end of the application. |
void |
finalizeForBase()
super.finalizeForBase() removes the GroupIDMember in the ACS lists (main and controllers), and removes it in the resources connected through an AclEntry. |
protected void |
finalizeFromDeserialization()
This method finalizes each group in the groups set, since it is used after a deserialization. |
ImmutableGroupID[] |
getEorL_GroupID()
Gets the groups for which this GroupIDMember is a member. |
java.beans.PropertyChangeListener[] |
getPropertyChangeListeners(java.lang.String _propertyName)
Returns the change listeners for a property. |
long |
getSerialVersionUID()
For the java serialization. |
int |
hashCode()
|
boolean |
isAdmin()
True only if the group member has an administrative role in the ACS, for the technical administration or the users administration. |
void |
removeGroupToGM(ImmutableGroupID _grp)
Removes a group for which this GroupIDMember is a member. |
void |
removePropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Removes a listener to the bean. |
java.lang.String |
toString()
Gets the name last component of the instance. |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ARoad0.gBaseInterface.EligibleParty |
---|
copyWithoutInternalAcl, setEPType |
Methods inherited from interface ARoad0.gBaseInterface.Basic |
---|
finalizeForUser, setComment |
Methods inherited from interface ARoad0.gBaseInterface.PrivilegeSource |
---|
addEorPrivilegeForTypeToSource, removeEorPrivilegeToSource |
Methods inherited from interface ARoad0.gBaseInterface.ImmutableEligibleParty |
---|
getEorL_AclConnectedResources, getEPType, getM_ConstrainedChildACS |
Methods inherited from interface ARoad0.gBaseInterface.ImmutableBasic |
---|
getComment, getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getImpliedViews, getIS_Name, getL_AcsOfSoftReferences, getL_SoftAlias, getVirtualFolders |
Methods inherited from interface ARoad0.gBaseInterface.Copyable |
---|
copy |
Methods inherited from interface ARoad0.gBaseInterface.BoundBean |
---|
addPropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface ARoad0.gBaseInterface.ImmutablePrivilegeSource |
---|
getEorL_SourcePrivilegeForLinks, getEorL_SourcePrivilegeForTypes, getEorL_SourcePrivileges |
Methods inherited from interface ARoad0.gBaseInterface.ImmutableSource |
---|
getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getL_AcsOfSoftReferences, getL_SoftAlias, getType |
Methods inherited from interface ARoad0.gBaseInterface.ACSObject |
---|
getAcsName, getEorACS |
Methods inherited from interface ARoad0.gBaseInterface.BaseObject |
---|
getFullName, getName, getNickName |
Methods inherited from interface ARoad0.gBaseInterface.BaseBeanManager |
---|
addPropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface ARoad0.gBaseInterface.ImmutableTarget |
---|
getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getL_AcsOfSoftReferences, getL_SoftAlias, getType |
Field Detail |
---|
private static final long serialVersionUID__
protected boolean isAdmin_
protected GroupIDImpl[] l_Groups_
public static final GroupIDMemberImpl EMPTY_INSTANCE
public static final java.io.ObjectStreamField[] serialPersistentFields
Constructor Detail |
---|
public GroupIDMemberImpl()
public GroupIDMemberImpl(ImmutableName _name, ACS _acs, java.lang.String _epType, java.lang.Boolean _isAdmin) throws CreateError
_name
- ImmutableName of the GroupIDMember as a kind of eligible party_acs
- ACS owning the GroupIDMember_epType
- is the eligible party type, and may be null if the ACS allows it._isAdmin
- true only if the instance has an administrative role in the ACS,
for the technical administration or the users administration.
CreateError
- if ACSImpl.newEorEligibleParty() throws it - the instance
must then be deleted !public GroupIDMemberImpl(ImmutableName _name, ACS _acs, java.lang.String _epType, boolean _isAdmin, boolean _toRegisterInManager) throws CreateError
_name
- ImmutableName of the eligible party to create_acs
- Main ACS of the eligible party to create_epType
- is the eligible party type, and may be null if the ACS allows it._isAdmin
- true only if the instance has an administrative role in the ACS,
for the technical administration or the users administration._toRegisterInManager
- false if this method must not register
the instance in its ACS.
CreateError
- if ACSImpl.newEorEligibleParty() throws it -
the instance must then be deleted !Method Detail |
---|
public java.lang.Object copy(ImmutableName _name, ACS _acs, Directory _parent, java.lang.Object _aliasRef, java.lang.Boolean _toRegisterInManager) throws CreateError
_name
- copy name. Usually creates as an extension of _parent name._acs
- main ACS of the copy to create. May not be the ACS of this instance._parent
- is not used, wathever the value._aliasRef
- this argument is not used there._toRegisterInManager
- false if this method must not register
the instance in the ACS.
CreateError
- of the constructor with the same parameters,
or if _parent ACS is not _acs, or addAclEntry() exceptions.public java.lang.Object copyWithoutAcl(ImmutableName _name, ACS _acs, Directory _parent, java.lang.Object _aliasRef, java.lang.Boolean _toRegisterInManager) throws CreateError
_name
- copy name. Usually creates as an extension of _parent name._acs
- main ACS of the copy to create. May not be the ACS of this instance._parent
- is not used, wathever the value._aliasRef
- this argument is not used there._toRegisterInManager
- false if this method must not register
the instance in the ACS.
CreateError
- of the constructor with the same parameters,
or if _parent ACS is not _acs, or addAclEntry() exceptions.public ImmutableGroupID[] getEorL_GroupID()
getEorL_GroupID
in interface ImmutableGroupIDMember
public boolean isAdmin()
isAdmin
in interface ImmutableGroupIDMember
protected void finalize() throws java.lang.Throwable
finalize
in class BasicImpl
java.lang.Throwable
public void finalizeForBase() throws UpDateError
finalizeForBase
in interface FinalizedObject
finalizeForBase
in class EligiblePartyImpl
UpDateError
- if the GroupIDMember is unknown of the main ACS
(if it is a clone, typically), or if a linked immutable object fires an exceptionprotected void finalizeFromDeserialization()
finalizeFromDeserialization
in class EligiblePartyImpl
public java.lang.Object clone()
clone
in class EligiblePartyImpl
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object _obj)
EligiblePartyImpl
equals
in interface BaseObject
equals
in class EligiblePartyImpl
_obj
- Object to compare
public int hashCode()
hashCode
in interface BaseObject
hashCode
in class EligiblePartyImpl
public void addPropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
addPropertyChangeListener
in interface BaseBeanManager
addPropertyChangeListener
in interface BoundBean
addPropertyChangeListener
in class EligiblePartyImpl
_propertyName
- 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.public void removePropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
removePropertyChangeListener
in interface BaseBeanManager
removePropertyChangeListener
in interface BoundBean
removePropertyChangeListener
in class EligiblePartyImpl
_propertyName
- name of the property_l
- PropertyChangeListener to removepublic java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String _propertyName)
getPropertyChangeListeners
in interface ImmutableBasic
getPropertyChangeListeners
in class EligiblePartyImpl
_propertyName
- name of the listened property.
public java.lang.String toString()
BasicImpl
toString
in class BasicImpl
public long getSerialVersionUID()
BasicImpl
getSerialVersionUID
in interface ImmutableBasic
getSerialVersionUID
in class EligiblePartyImpl
protected GroupIDMemberImpl copyOwnVariables(GroupIDMemberImpl _result, boolean _withoutInternalAcl) throws CreateError
_result
- to update with this instance variables copies_withoutInternalAcl
- true if the internal aclEntries
- that is with a resource having the same ACS - must not be copied
CreateError
- of l_Groups_[i].addEorMember()public void addGroupToGM(GroupID _grp)
addGroupToGM
in interface GroupIDMember
_grp
- is the groupID to add. No action if it is null or known.public void removeGroupToGM(ImmutableGroupID _grp)
removeGroupToGM
in interface GroupIDMember
_grp
- group to remove
java.lang.InternalError
- if _grp is not found
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |