|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DetailledName
This is an interface to inform that it is an object with a detailled name which gives the key components of the object. Allows a clearer presentation of an object in the explorer and into the beamer. The beamer tests if an object is a DetailledName, and if yes, displays the detailled name rather than the name. Used for the AclEntries and the Privileges. To allow to get the BaseObject without errors, a detailled name needs to be completed by the ACS name. However, an external entity needs to include its ACS into its detailled name. The classes AclEntryImpl and PrivilegeAbstract implements the method getNameFromDetailledName().
To know if the detailled name is about an AclEntry or a Privilege, the following rules are applied:
- a detailled name contains at least one sequence '||' and at most one sequence '>>', - an AclEntry detailled name contains the one sequence '>>', and '>>' is before the first '||' sequence. - a Privilege detailled name may not contain the sequence '>>', and otherwise, '>>' is after the last '||' sequence.
For a type privilege, the possible forms are:
- privilegeType || nickName || first right || source type >> target type For a linked privilege, the possible forms are:
- privilegeType || nickName || first right, for a internal privilege,
- ACS: ACS_name | privilegeType || nickName || first right, for a external privilege.
The form of the detailled name for an internal ACL is:
- incomplete Eligible Party name >> incomplete Resource name || grant OR deny || first condition group last component.
The last part '|| first condition group last component' is there only if there is a condition group. The form of the detailled name for an external ACL is:
- ACS: ACS_name | (full or incomplete) Eligible Party name >> (full or incomplete) Resource name || grant OR deny || <Source ACS group> OR <Target ACS group> || first condition group last component.
An Eligible Party or Resource name is incomplete if it belongs to the AclEntry ACS. The condition group is put in the name or the detailled name only for a flexible conditional AclEntry. '<Source ACS group>' is used when the condition group belongs to the source (Eligible Party) ACS. Due to the method setValue() of CollectionPropertyEditor, there are 3 constraints:
- an array or a collection of DetailledName cannot be updated with a global 'set' method, nor a 'choiceMethodForNew' parameter. Some 'add/remove' methods are mandatory if there is no constructor/finalizing method.
- a DetailledName instance can be deleted through a 'finalizeForUser' method like a Privilege, or through any other method the BeanInfo property descriptor specifies, like an AclEntry where a Resource method is unused.
- it it not possible to use the beamer 'Prev.' to get the values of the previous property the beamer displays.
Method Summary | |
---|---|
java.lang.String |
getDetailledName()
This method returns the detailled name for the explorer, which gives the key components of the object. |
java.lang.String |
getDetailledNameFromName(ImmutableName _name)
Gets the detailled name from the BaseObject name. |
ImmutableName[] |
getKeyPropertiesFromDetailledName(java.lang.String _detailledName)
Extracts the key property names from the detailled name of an object. |
ImmutableName |
getNameFromDetailledName(ImmutableACS _acs,
java.lang.String _detailledName)
Extracts the BaseObject name from the detailled name of an object. |
Methods inherited from interface ARoad0.gBaseInterface.FinalizedObjectForUser |
---|
finalizeForUser |
Methods inherited from interface ARoad0.gBaseInterface.FinalizedObject |
---|
finalizeForBase |
Method Detail |
---|
java.lang.String getDetailledName()
java.lang.String getDetailledNameFromName(ImmutableName _name) throws BaseError
_name
- name of the BaseObject
BaseError
PrivilegeAbst.buildUpDetailledName(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
,
AclEntryImpl.buildUpDetailledName(ARoad0.gBaseInterface.ImmutableName, ARoad0.gBaseInterface.ImmutableName, boolean, java.lang.String)
ImmutableName[] getKeyPropertiesFromDetailledName(java.lang.String _detailledName) throws BaseError
_detailledName
- is the viewable name of the object
BaseError
ImmutableName getNameFromDetailledName(ImmutableACS _acs, java.lang.String _detailledName) throws BaseError
_acs
- ACS of the BaseObject_detailledName
- the viewable name of the object
BaseError
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |