|
||||||||||
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
ARoad0.gBase.GroupIDImpl
ARoad0.AcsAddon.Accbee.MySQL.gBase.GroupIDMySQLImpl
ARoad0.AcsAddon.Accbee.MySQL.gBase.RoleMySQLImpl
public class RoleMySQLImpl
Currently unused. This class is responsible for modeling a MySQL Role.
Field Summary | |
---|---|
static RoleMySQLImpl |
EMPTY_INSTANCE
A reusable empty instance for initialization, to avoid the use of 'new' for temporary values. |
static java.io.ObjectStreamField[] |
serialPersistentFields
empty variable for the JDK 2 serialization |
private static long |
serialVersionUID__
|
Fields inherited from class ARoad0.gBase.GroupIDImpl |
---|
l_currentActors_, l_Members_, l_ownResources_, l_secGroupActors_, order_ |
Fields inherited from class ARoad0.gBase.GroupIDMemberImpl |
---|
isAdmin_, l_Groups_ |
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 | |
---|---|
RoleMySQLImpl()
The basic constructor |
|
RoleMySQLImpl(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'. |
|
RoleMySQLImpl(ImmutableName _name,
ACS _acs,
java.lang.String _epType,
boolean _isAdmin,
boolean _toRegisterInManager)
Used for the creation of a RoleIDMySQL instance. |
Method Summary | |
---|---|
void |
addEorMember(GroupIDMember _gm)
Adds a GroupIDMember as a member of this GroupID. |
void |
addGroupToGM(GroupID _grp)
Adds a group for which this GroupIDMember is a member, and sorts the groups in an ordered array that follows the third sorting order for the MySQL AclEntries, from the least-specific source to the more-specific ones. |
java.lang.Object |
copy(ImmutableName _name,
ACS _acs,
Directory _parent,
java.lang.Boolean _toRegisterInManager)
This method provides a copy of the instance with another name. |
protected RoleMySQLImpl |
copyOwnVariables(RoleMySQLImpl _result,
boolean _withoutInternalAcl)
This method provides a copy of the instance variables. |
java.lang.Object |
copyWithoutInternalAcl(ImmutableName _name,
ACS _acs,
Directory _parent,
java.lang.Boolean _toRegisterInManager)
This method provides a copy of the instance as copy(), but without copying the EligibleParty internal aclEntries. |
void |
finalizeForBase()
This method, if this instance is a host group, finalizes the accounts that are members having this group as first host. |
java.util.Map<java.lang.String,java.lang.String> |
getAddonInnerPropertiesToListen()
Gets the specific events to listen from an ACSObject, because these events should change the rights of an ACSObject in an ACS Addon. |
long |
getSerialVersionUID()
For the java serialization. |
boolean |
isConditionalACLtoResetAfterMembershipChangeInThisGroup(ImmutableAclEntry _acl,
ImmutableGroupIDMember _member)
Detects if it is a conditional AclEntry from this group ACS, for which a change in the groupidmember membership relation to this group is able to change the membership chain from the AclEntry source to at least one condition group of the AclEntry. |
void |
removeEorMember(GroupIDMember _gm)
Removes a groupID member, and updates the member through the removeGroupToGM() method, if the group is not immutable. |
void |
removeEorMemberWithoutControl(GroupIDMember _gm)
Removes the groupID member of a host, without any control like in the basic same method. |
Methods inherited from class ARoad0.AcsAddon.Accbee.MySQL.gBase.GroupIDMySQLImpl |
---|
addEorMemberToPatternNameGroup, copyOwnVariables, getNameFromHostComponent, isMemberOfMySQLPatternNameGroup, isSimpleHost |
Methods inherited from class ARoad0.gBase.GroupIDMemberImpl |
---|
addPropertyChangeListener, copy, copyOwnVariables, copyWithoutAcl, getEorL_GroupID, isAdmin, removeGroupToGM, removePropertyChangeListener |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface ARoad0.AcsAddon.Accbee.MySQL.gBaseInterface.GroupIDMySQL |
---|
isSimpleHost |
Methods inherited from interface ARoad0.gBaseInterface.GroupID |
---|
setEorL_Members, setOrder |
Methods inherited from interface ARoad0.gBaseInterface.ImmutableGroupID |
---|
containsAsIndirectMember, containsAsIndirectMemberWithoutAliasing, containsAsMember, containsAsMemberWithoutAliasing, getEorL_GroupIDCurrentActors, getEorL_GroupIDCurrentActorsAsSecondaryGroup, getEorL_GroupIDOwnResources, getEorL_Members, getFirstIntermediateForIndirectMember, getOrder, ownsResource |
Methods inherited from interface ARoad0.gBaseInterface.GroupIDMember |
---|
removeGroupToGM |
Methods inherited from interface ARoad0.gBaseInterface.EligibleParty |
---|
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.ImmutableGroupIDMember |
---|
getEorL_GroupID, isAdmin |
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, getPropertyChangeListeners, getVirtualFolders |
Methods inherited from interface ARoad0.gBaseInterface.BoundBean |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, 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 |
---|
equals, getFullName, getName, getNickName, hashCode |
Methods inherited from interface ARoad0.gBaseInterface.BaseBeanManager |
---|
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener |
Methods inherited from interface ARoad0.gBaseInterface.ImmutableTarget |
---|
getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getL_AcsOfSoftReferences, getL_SoftAlias, getType |
Field Detail |
---|
private static final long serialVersionUID__
public static final RoleMySQLImpl EMPTY_INSTANCE
public static final java.io.ObjectStreamField[] serialPersistentFields
Constructor Detail |
---|
public RoleMySQLImpl()
public RoleMySQLImpl(ImmutableName _name, ACS _acs, java.lang.String _epType, java.lang.Boolean _isAdmin) throws CreateError
_name
- ImmutableName of the groupID_acs
- ACS of the groupID_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.
CreateError
- if _name ends with '_tree>', or if
ACSImpl.newEorEligibleParty() throws it - the instance must then be deleted !public RoleMySQLImpl(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._toRegisterInManager
- false if this method must not register
the instance in its ACS.
CreateError
- if ACSImpl.newEorEligibleParty() throws it, or if
the pattern-name policy is not fulfilled
- the instance must then be deletedMethod Detail |
---|
public long getSerialVersionUID()
BasicImpl
getSerialVersionUID
in interface ImmutableBasic
getSerialVersionUID
in class GroupIDMySQLImpl
public java.util.Map<java.lang.String,java.lang.String> getAddonInnerPropertiesToListen()
- 'THIS' to say that the single object to listen is the ACSObject,
- 'ACS.method_name' to say that the list of objects to listen is returned by the method 'method_name' in the Addon ACS class.
For each map key, the values have the following format:
'AAA.method_name IF BBB'
where:
- AAA: THIS (mandatory),
- method_name: 'get' method name of the ACSObject that is associated, in the relevant BeanInfo class, to the event to listen (mandatory)
- IF BBB: where BBB is TRUE, or FALSE, or NULL, or NOT-NULL, to say that the event must be listened if and only if the returned value of the method_name is respectively a boolean TRUE, or FALSE, or an object NULL, or NOT-NULL (option).
When the map value starts with 'ACS', the ACS method to call has the ACSObject has one argument. Otherwise, the ACS or the ACSObject method has no argument. Called by ARoad0.UtilityImpl.removeAddonParentPropertyChangeListener().
getAddonInnerPropertiesToListen
in interface ACSObjectAddon
getAddonInnerPropertiesToListen
in class GroupIDMySQLImpl
AcsAddon.getAddonParentPropertiesToListen()
public void addEorMember(GroupIDMember _gm) throws CreateError
addEorMember
in interface GroupID
addEorMember
in class GroupIDMySQLImpl
_gm
- new member of the GroupID. No action if null, empty.
CreateError
- if _gm is a GroupID which has this instance has
direct or indirect member, if _gm is already a member, or if the _gm type
is not authorized by the ACS, or if the type does not allow the operation,
if this group is immutable, or if it is mutable and not the new member.public void removeEorMember(GroupIDMember _gm) throws CreateError
removeEorMember
in interface GroupID
removeEorMember
in class GroupIDMySQLImpl
_gm
- member of the GroupID. No action if unknown, null, empty.
CreateError
- if the argument is an account having this group as first group, or if
the type does not allow the operation, of if this group is standard group, a pattern-name
group, the AllAccounts or the AllSimpleGroups grouppublic void addGroupToGM(GroupID _grp)
addGroupToGM
in interface GroupIDMember
addGroupToGM
in class GroupIDMySQLImpl
_grp
- is the groupID to add. No action if it is null, or with null name.public void removeEorMemberWithoutControl(GroupIDMember _gm) throws CreateError
removeEorMemberWithoutControl
in class GroupIDMySQLImpl
_gm
- member of the GroupID. No action if unknown, null, empty.
CreateError
- if the type does not allow the operationpublic void finalizeForBase() throws UpDateError
finalizeForBase
in interface FinalizedObject
finalizeForBase
in class GroupIDMySQLImpl
UpDateError
- if RoleMySQLImpl.removeEorMemberWithoutControl() throws itpublic boolean isConditionalACLtoResetAfterMembershipChangeInThisGroup(ImmutableAclEntry _acl, ImmutableGroupIDMember _member)
isConditionalACLtoResetAfterMembershipChangeInThisGroup
in class GroupIDImpl
_acl
- from the _member ACS. Never null._member
- new or previous direct member of this group. Never null.
public java.lang.Object copy(ImmutableName _name, ACS _acs, Directory _parent, java.lang.Boolean _toRegisterInManager) throws CreateError
copy
in interface Copyable
copy
in class GroupIDMySQLImpl
_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._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 copyWithoutInternalAcl(ImmutableName _name, ACS _acs, Directory _parent, java.lang.Boolean _toRegisterInManager) throws CreateError
copyWithoutInternalAcl
in interface EligibleParty
copyWithoutInternalAcl
in class GroupIDMySQLImpl
_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._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.protected RoleMySQLImpl copyOwnVariables(RoleMySQLImpl _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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |