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

Method Summary
 void addEorPrivilegeForTypeToSource(PrivilegeForType _priv)
          Sets a privilege as applicable to this access source, and this is called only by the program.
 void removeEorPrivilegeToSource(Privilege _priv)
          Unregisters on the privilege when it is no more used by this privilege source.
 
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 java.lang.Comparable
compareTo
 

Method Detail

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.