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

Method Summary
 void addEorPrivilegeForTypeToTarget(PrivilegeForType _priv)
          Sets a privilege as applicable to this access target, and called only by the program.
 void removeEorPrivilegeToTarget(Privilege _priv)
          Unregisters on the privilege when it is no more applicable to this access target.
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutablePrivilegeTarget
getEorImmutableL_TargetInheritedLinkedPrivileges, getEorL_TargetPrivilegeForLinks, getEorL_TargetPrivilegeForTypes, getEorL_TargetPrivileges, getM_TargetInheritedLinkedPRIRights, getType, selectInheritedPrivilege
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableTarget
getEorAliasAsInternalHardReference, getEorReferenceAsInternalHardAlias, getHasSoftAlias, getL_AcsOfSoftReferences, getL_SoftAlias
 
Methods inherited from interface ARoad0.gBaseInterface.BaseBeanManager
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface ARoad0.gBaseInterface.ImmutableLeaf
compareTo, getEorParent
 
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.BoundBean
addPropertyChangeListener, addPropertyChangeListener, removePropertyChangeListener, removePropertyChangeListener
 
Methods inherited from interface ARoad0.gBaseInterface.FinalizedObjectForUser
finalizeForUser
 
Methods inherited from interface ARoad0.gBaseInterface.FinalizedObject
finalizeForBase
 

Method Detail

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.