|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ACSRun
This interface is responsible for returning the first immutable ACS properties and the first rights. It is used to create the acsrights before the selection of the allowed rights for each right type (Group, ACL,...). It contains the associations to handle at the creation or the deletion of some ACSObjects, by the mean of actions to do by the program. It allows to get the ACS vocabulary that defines the AcsAddon classes. This interface is then immplemented by both ACSFactoryImpl and ACSImpl. 'OneRight' is the single bound property.
Method Summary | |
---|---|
void |
addPropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Add a listener to the bean. |
void |
addRight(StringRight _right)
Register a new acsright in this ACS. |
java.lang.String |
getACSType()
Returns the ACS type, as ACSImpl.GENERIC, LINUX,... |
StringRight |
getFirstRightFromMeta(java.lang.String _metaRight)
Get a right which is registered by this ACS. |
StringRight |
getFullControlRight()
Get the first acsright which has 'full_control' as metaright, or this metaright if no acsright complies this condition. |
ImmutableName |
getISName()
Get the name of the information system which owns this acs. |
StringRight[] |
getL_Rights()
Get all the rights which are allowed in this ACSRun. |
java.util.Map<java.lang.String,java.lang.String[]> |
getM_AcsVocabulary()
Gets the ACS vocabulary. |
java.util.Map<java.lang.String,java.lang.String[]> |
getM_AssociationsOnNewObject()
Get the associations to handle at the creation or the deletion of some ACSObjects, by the mean of actions to do by the program. |
java.util.Map |
getM_CommentsOnProperties()
Gets comments to explain how this ACS simulates a real system/software. |
StringRight |
getOneRight(ImmutableName _name)
Get a right which is registered by this ACSRun. |
StringRight |
getOneRight(java.lang.String _nickName)
Get a right which is registered by this ACSRun. |
ImmutableName |
getParentName()
Get the mandatory parent name for the ACS in the IS nametree. |
void |
removePropertyChangeListener(java.lang.String _propertyName,
java.beans.PropertyChangeListener _l)
Add a listener to the bean. |
void |
removeRight(StringRight _right)
Unregisters a right in this ACSRun. |
Methods inherited from interface ARoad0.gBaseInterface.BaseObject |
---|
equals, getFullName, getName, getNickName, hashCode |
Methods inherited from interface ARoad0.gBaseInterface.BaseBeanManager |
---|
addPropertyChangeListener, removePropertyChangeListener |
Method Detail |
---|
ImmutableName getISName()
java.lang.String getACSType()
ImmutableName getParentName()
StringRight[] getL_Rights()
StringRight getFullControlRight()
StringRight getOneRight(java.lang.String _nickName)
_nickName
- is the nick name of the right, provided by StringRight.getNickName().
StringRight getOneRight(ImmutableName _name)
_name
- is the name of the right, provided by StringRight.getName().
StringRight getFirstRightFromMeta(java.lang.String _metaRight)
_metaRight
- is the right of the metaright of the searched right,
provided by StringRight.getRight().
void addRight(StringRight _right) throws CreateError
_right
- is the new right to register. Not null.
CreateError
- if the right is null, a metaright or if
the right is already used.void removeRight(StringRight _right) throws UpDateError
_right
- the right to unregister.
UpDateError
- if the right is null or not known.void addPropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
addPropertyChangeListener
in interface BaseBeanManager
void removePropertyChangeListener(java.lang.String _propertyName, java.beans.PropertyChangeListener _l)
removePropertyChangeListener
in interface BaseBeanManager
_propertyName
- name of the property_l
- listenerjava.util.Map<java.lang.String,java.lang.String[]> getM_AssociationsOnNewObject()
- 'Class'.'Property'.
- 'Class'.'Property'.
- 'Class'.'Property'.
- 'Class'.'Property'.
- 'Class'.
-
-
The allowed String map values depends lightly on the map key.
The values define one or several actions to do if the key matches.
There are 4 possible formats for the first value of the action N:
- N.
of an associate object to build up or to finalize when the master is build up
or finalized
- N.
- N.
- N.
to call on the associate previously created by the action number C.
After each first value, there is the optional list of the constraints on the arguments
of the constructor (case 1) or the method (cases 2 to 4),
and there is one constraint specification per argument.
Each argument constraint specification belongs to a set of 13 allowed formats,
presented herein for the action N:
- N.'PropertyName'.
- N.'PropertyName'.
- N.'PropertyName'.
- N.'PropertyName'.
- N.'PropertyName'.
- N.'PropertyName'.
- N.'PropertyName'.
for the same property, with some optional pre and post String values
- N.'PropertyName'.
the last component in the master name, with some optional
pre and post Name values as Strings
- N.'PropertyName'.
the context in the master name, with a post Name value as String
- N.'PropertyName'.
with a post Name value as String
- N.'PropertyName'.
value for the same property, with some optional pre and post String values
- N.'PropertyName'.
the last component in the associate number C name, with a post String value
- N.'PropertyName'.
the context in the associate number C name, with a post String value
The internal map may contain values where the first 2 characters are not 'N.', but
the first no-number value and its followings are returned by this method which is used by
StringMapPropertyEditor to edit the internal map.
java.util.Map getM_CommentsOnProperties()
java.util.Map<java.lang.String,java.lang.String[]> getM_AcsVocabulary()
- the AcsAddon editor, the AcsAddon package editor and the AcsAddon name, in three keys,
- how to name the L_ACS_TREE_UPPER_NODES_FOR_ONE_ACS constants for this ACS, as names of the ACS tree nodes in the proper ACS internal frame. An example is to replace the tree node 'Actors (right user target)' by 'Scripts'.
- what are the gBase classes to use, from the generic package or from the AcsAddon gBase package (see L_CLASSIC_CLASS_KEYS), like when the Addon Ubuntu subclasses ResourceImpl with ResourceUbuntuImpl. The full Java name of the subclass has to be put in the value array.
- If the ACS is an AcsAddon, what are the specific new classes in the AcsAddon gBase package (see ACSADDON_NEW_CLASSES). In this case, the class names are separated by one space, like in 'ExecutableUbuntu XXXXUbuntu YYYYUbuntu', without the full name of the classes.
- If the ACS is an AcsAddon, what are the non-generic rights in the ACSObjects on which the ACS constraints of the specialized rights are applicable, and in that case, what domain is applicable. An example is the domain 'GpORightsSet' for the property 'OtherRights', in Ubuntu, that is declared by the value 'OtherRights.GpORightsSet'.
A new ACSFactory in an AcsAddon package sets its vocabulary in its constructor, so it is possible to call this method just after the construction of the factory.
ACSFactoryUtilityImpl.L_ACS_TREE_UPPER_NODES_FOR_ONE_ACS
,
ACSFactoryUtilityImpl.L_CLASSIC_CLASS_KEYS
,
ACSFactoryUtilityImpl.L_ACS_TREE_GENERIC_UPPER_NODES
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |