ARoad0.gBaseInterface
Interface EligibleParty
- All Superinterfaces:
- ACSObject, BaseBeanManager, BaseObject, Basic, BoundBean, java.lang.Cloneable, java.lang.Comparable, Copyable, FinalizedObject, FinalizedObjectForUser, ImmutableBasic, ImmutableEligibleParty, ImmutablePrivilegeSource, ImmutableSource, PrivilegeSource, PrivilegeUser
- All Known Subinterfaces:
- Actor, ActorMySQL, ActorUbuntu, ExecutableUbuntu, GroupID, GroupIDMember, GroupIDMySQL, ProxyMySQL, RoleMySQL, UserID, UserIDMySQL, UserIDUbuntu
- All Known Implementing Classes:
- ActorImpl, ActorMySQLImpl, ActorUbuntuImpl, EligiblePartyImpl, ExecutableUbuntuImpl, GroupIDImpl, GroupIDMemberImpl, GroupIDMySQLImpl, ProxyMySQLImpl, RoleMySQLImpl, UserIDImpl, UserIDMySQLImpl, UserIDUbuntuImpl
public interface EligibleParty
- extends ImmutableEligibleParty, Basic, PrivilegeSource
This interface is is responsible for modeling the simplest rights user
for which an ACS grants access or denies access to
some targets through AclEntries or Privileges.
This kind of entity may be an account (UserID), a group (GroupID) or an actor (Actor).
This class manages the resources connected to the EligibleParty
through AclEntries, and it manages its Privileges.
This kind of entity may be an account (UserID),
a group (GroupID), a program (Executable),
an external network or a server (Actor), and so on.
This interface manages the resources connected to
the eligible party through aclEntries.
It is a javabean with the following bound properties:
'AclConnectedResources'.
The listeners are outside gBase and transient (not serialized),
and they are called in any order.
Method Summary |
java.lang.Object |
copyWithoutInternalAcl(ImmutableName _name,
ACS _acs,
Directory _parent,
java.lang.Boolean _toRegisterInManager)
This method provides a copy of the instance as Copyable.copy(),
but without copying the internal aclEntries. |
void |
setEPType(java.lang.String _st)
If _st is allowed by the ACS, set the type of this eligible party. |
Methods inherited from interface ARoad0.gBaseInterface.ImmutableBasic |
getComment, getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getImpliedViews, getIS_Name, getL_AcsOfSoftReferences, getL_SoftAlias, getPropertyChangeListeners, getSerialVersionUID, getVirtualFolders |
Methods inherited from interface ARoad0.gBaseInterface.Copyable |
copy |
setEPType
void setEPType(java.lang.String _st)
throws UpDateError
- If _st is allowed by the ACS, set the type of this eligible party.
This method is used to switch from an type
which forbids the updates of a protected property, and to return to this protecting type.
Then , it is possible to switch for example from 'actor' to
' actor', but not to ' group'.
From the default value '', any first update may be done.
Fire a PropertyChange for 'EPType'.
- Parameters:
_st
- type of the resource.
- Throws:
UpDateError
- if the type is null, equal to ,
or not known by the ACS, or not associated to the previous type.
copyWithoutInternalAcl
java.lang.Object copyWithoutInternalAcl(ImmutableName _name,
ACS _acs,
Directory _parent,
java.lang.Boolean _toRegisterInManager)
throws CreateError
- This method provides a copy of the instance as Copyable.copy(),
but without copying the internal aclEntries.
It is used in ACSImpl.copy().
Each internal variable that is an external
object reference have a shallow copy (no deep copy),
but without copy for the internal aclEntry nor the list of ViewInBase
that contains this instance.
- Parameters:
_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
- DirectoryImpl which belongs to _acs and will have the copy.
May be null. Must be null for some implementations._toRegisterInManager
- false if this method must not register
the instance in the ACS.
- Returns:
- a copy of the object, in the same class.
- Throws:
CreateError
- of the constructor with the same parameters,
or if _parent ACS is not _acs, or addAclEntry() exceptions.