ARoad0.gBaseInterface
Interface PrivilegeSource
- All Superinterfaces:
- ACSObject, BaseBeanManager, BaseObject, java.lang.Comparable, ImmutablePrivilegeSource, ImmutableSource, PrivilegeUser
- All Known Subinterfaces:
- Actor, ActorMySQL, ActorUbuntu, EligibleParty, 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 PrivilegeSource
- extends ImmutablePrivilegeSource
This interface is responsible for modeling
the source which is connected to Privileges.
EligibleParties are PrivilegeSources.
A privilege instance is controlled by the ACS, and it is
then appliable to any couple (source, target) which
belong or not to the privilege ACS.
There are different types of privilege (defined in PrivilegeAbst class).
The sources and the targets are defined through
dynamic or static links to the privilege.
It is a javabean with the following bound properties:
'OneSourceTypedPrivilege' and 'OneSourceLinkedPrivilege'.
See the Copyright.
- See Also:
to understand the different types of privilege
,
PrivilegeTarget
Methods inherited from interface java.lang.Comparable |
compareTo |
addEorPrivilegeForTypeToSource
void addEorPrivilegeForTypeToSource(PrivilegeForType _priv)
throws BaseError
- Sets a privilege as applicable to this access source, and this is called only by the program.
The gBase classes are the only caller of this method
at any creation/deletion of a typed privilege or an access source.
Fires 'OneSourceTypedPrivilege' events.
- Parameters:
_priv
- is a Privilege to register in the source
- Throws:
BaseError
- if the ACS does not manage the privileges, or if
this instance is not a privilege source.
removeEorPrivilegeToSource
void removeEorPrivilegeToSource(Privilege _priv)
throws BaseError
- Unregisters on the privilege when it is no more used by
this privilege source.
Fires 'OneSourcePrivilege' events.
- Parameters:
_priv
- is a Privilege to register in the source
- Throws:
BaseError
- if the privilege does not known this source.
User-displayable message.