ARoad0.gBaseInterface
Interface PrivilegeTarget
- All Superinterfaces:
- ACSObject, BaseBeanManager, BaseObject, BoundBean, java.lang.Comparable, FinalizedObject, FinalizedObjectForUser, ImmutableLeaf, ImmutablePrivilegeTarget, ImmutableTarget, PrivilegeUser
- All Known Subinterfaces:
- Actor, ActorMySQL, ActorUbuntu, BasesSetMySQL, Directory, DirectoryMySQL, DirectoryUbuntu, ExecutableUbuntu, Resource, ResourceMySQL, ResourceUbuntu, VirtualFolder, VirtualFolderMySQL
- All Known Implementing Classes:
- ActorImpl, ActorMySQLImpl, ActorUbuntuImpl, BasesSetMySQLImpl, DirectoryImpl, DirectoryMySQLImpl, DirectoryUbuntuImpl, ExecutableUbuntuImpl, ResourceImpl, ResourceMySQLImpl, ResourceUbuntuImpl, VirtualFolderImpl, VirtualFolderMySQLImpl
public interface PrivilegeTarget
- extends ImmutablePrivilegeTarget
This interface is responsible for modeling
the target which is connected to Privileges.
Resources and VirtualFolders are PrivilegeTargets.
A privilege instance is contolled by the ACS, and it is
then appliable to any couple (source, target) which
belongs or not to the privilege ACS.
It is a javabean with the following bound properties:
'OneTargetTypedPrivilege', 'OneTargetLinkedPrivilege'.
See the Copyright.
- See Also:
to understand different types of privilege
,
PrivilegeSource
addEorPrivilegeForTypeToTarget
void addEorPrivilegeForTypeToTarget(PrivilegeForType _priv)
throws BaseError
- Sets a privilege as applicable to this access target, and called only by the program.
The program, not the user, is the only caller of this method
at any creation/deletion of a typed privilege or an access target.
Fires 'OneTargetTypedPrivilege' events.
- Parameters:
_priv
- to register in the target
- Throws:
BaseError
- if the ACS does not manage the privileges, or if
this instance is not a privilege target
removeEorPrivilegeToTarget
void removeEorPrivilegeToTarget(Privilege _priv)
throws BaseError
- Unregisters on the privilege when it is no more applicable to
this access target.
Fires 'OneTargetTypedPrivilege' and 'OneTargetLinkedPrivilege' events.
- Parameters:
_priv
- to remove from the target
- Throws:
BaseError
- for PrivilegeForLinks only, if the privilege
does not known this source. User-displayable message.