|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gWork.ACS_Facade
public class ACS_Facade
This class is the "facade" (GoF pattern) for some operations about ACS that are called by Gui1, Gui2 and gDMak objects. It contains only static methods.
Constructor Summary | |
---|---|
private |
ACS_Facade()
only one private constructor |
Method Summary | |
---|---|
static void |
closeDefaultBase()
Close the base without savings, with all the open ACS and all the open views first. |
static void |
closeOpenACS(ACSImpl _acs)
Close any open ACS without save it. |
static ImmutableAclEntry |
getAclEntry(ImmutableName _name)
Gets the AclEntry from its base object name, with a format like ACS:: acsName:: ELIGIBLEPARTY:: epName:: >> RESOURCE:: resName || positiveRight Called by ActionOpenBeamer.openSelection(). |
static ACSObject |
getACSObjectFromDetailledName(ACS _acs,
java.lang.String _detailledName)
Gets the ACSObject from its detailled name. |
static StringRight[] |
getAcsRightArray(ACSRun _acs)
Build up an ordered array of decreasing references to the acsrights, after a filtering of the metarights. |
static java.util.List |
getClosedACSnames()
Called by ActionOpenACS. |
static BaseObject |
getEorBaseObject(ImmutableName _name)
Gets the BaseObject object. |
static Actor[] |
getExtControlledActorArray(ImmutableACS _acs)
Builds up an array of references to the ACS external controlled actors (not eligible ones) for which an aclEntry in this ACS apply some rights, seeing the actor as a resource belonged by an another ACS. |
static Resource[] |
getExtControlledNonActorResourceArray(ImmutableACS _acs)
Build up an array of references to the ACS external controlled resources that are NOT actors and for which an external-oriented aclEntry, in this ACS, applies some rights. |
static Actor[] |
getExtEligibleActorArray(ImmutableACS _acs)
Builds up an array of references to the ACS external actors (not controlled!) |
static GroupID[] |
getExtEligibleGroupArray(ImmutableACS _acs)
Builds up an ordered array of references to the ACS external eligible GroupIDs, without duplicates. |
static UserID[] |
getExtEligibleUserArray(ImmutableACS _acs)
Build up an ordered array of references to the ACS external eligible UserIDs, without duplicates. |
static java.util.Map<java.lang.String,java.util.List<java.lang.String>> |
getImportedACS(ImmutableName _name)
Imports an ACS, opens and saves it. |
static java.util.Set |
getL_IS()
Return the names of the registered IS, which are also the IS nametree names. |
static Name |
getNameFromString(java.lang.String _text)
Get the name from the string returned by toString(). |
static java.util.Map |
getOpenACS()
|
static ImmutableAclEntry[] |
getOwnAclEntryArray(ACS _acs)
Returns up an ordered array of references to the ACS own AclEntries. |
static Actor[] |
getOwnActorArray(ACS _acs)
Builds up an array of references to the ACS own actors. |
static java.util.List<VirtualFolder> |
getOwnEPVirtualFolderList(ACS _acs)
Builds up an ordered array of references to the ACS own Eligible Party VirtualFolders. |
static GroupID[] |
getOwnGroupArray(ACS _acs)
Builds up an ordered array of references to the ACS own groupIDs. |
static java.util.List<Privilege> |
getOwnPrivilegeList(ACS _acs)
Builds up an ordered array of references to the ACS own Privileges. |
static java.util.List<VirtualFolder> |
getOwnResourceVirtualFolderList(ACS _acs)
Builds up an ordered array of references to the ACS own Resource VirtualFolders. |
static UserID[] |
getOwnUserArray(ACS _acs)
Builds up an ordered array of references to the ACS own userIDs. |
static ImmutablePrivilege |
getPrivilege(ImmutableName _name)
Gets the Privilege from its base object name. |
static boolean |
isOpenACS(ImmutableName _name)
|
static boolean |
knowsACS(ImmutableName _name)
|
static ACSImpl |
openOrGetACS(ImmutableName _name)
Get the open ACS, and before open it if it is closed. |
static void |
removeACS(ImmutableName _name)
Removes any ACS, close and save it before if necessary. |
static void |
saveACS(ImmutableName _name)
Save the ACS on a file.. |
static void |
saveAndCloseDefaultBase()
Save and close the base with the ACS and view lists, even if it is empty. |
static void |
saveAndCloseOpenACS(ACSImpl _acs)
Closes any open ACS and saves it before. |
static void |
saveDefaultBase()
Save the base with the ACS and view lists, even if it is empty. |
static boolean |
validateFrameName(ImmutableName _name)
Validate a name, mainly as a title of an internal frame, as without ' ::' nor ' >>', nor '<>' or ViewInBase_Facade.NOTHAN_VIEW_INDICATOR, nor non-null and not empty. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private ACS_Facade()
Method Detail |
---|
public static java.util.Set getL_IS()
public static boolean knowsACS(ImmutableName _name)
_name
- of an ACS
public static boolean isOpenACS(ImmutableName _name)
_name
- of an ACS
public static java.util.List getClosedACSnames()
public static java.util.Map getOpenACS()
public static void saveDefaultBase() throws BaseError
BaseError
- if an acs is not open, ACSname.lastComponent() is null,
FileNotFoundException or IOException.public static void closeDefaultBase() throws BaseError
BaseError
- if an acs is not opened.public static void saveAndCloseDefaultBase() throws BaseError
BaseError
- if an acs is not open, ACSname.lastComponent() is null,
FileNotFoundException or IOException.public static void saveACS(ImmutableName _name)
_name
- ImmutableName of the ACS to savepublic static ACSImpl openOrGetACS(ImmutableName _name) throws BaseError
_name
- of the ACS to get or open.
No test of null nor empty. Used only to open an ACS.
BaseError
- if the ACS is not known, the ACS is open, the open ACS has not
the same name, or ClassNotFoundException, IOException with
invalidClassException if the code of ACS has changed.public static void saveAndCloseOpenACS(ACSImpl _acs)
_acs
- is an ACS to closepublic static void closeOpenACS(ACSImpl _acs) throws BaseError
_acs
- to close
BaseError
- if _acs is not open, ACSname.lastComponent() is null,
or FileNotFoundException, IOException.public static void removeACS(ImmutableName _name) throws BaseError
_name
- of the ACS to remove from the base
BaseError
- if the ACS is unknown, ACSname.lastComponent() is null,
or FileNotFoundException, IOException.public static GroupID[] getOwnGroupArray(ACS _acs)
_acs
- is an ACS
public static UserID[] getOwnUserArray(ACS _acs)
_acs
- is an ACS
public static Actor[] getOwnActorArray(ACS _acs)
_acs
- is an ACS
public static ImmutableAclEntry[] getOwnAclEntryArray(ACS _acs)
_acs
- ACS
public static Actor[] getExtControlledActorArray(ImmutableACS _acs)
_acs
- is an ACS
public static Actor[] getExtEligibleActorArray(ImmutableACS _acs)
_acs
- is an ACS
public static GroupID[] getExtEligibleGroupArray(ImmutableACS _acs)
_acs
- is an ACS
public static UserID[] getExtEligibleUserArray(ImmutableACS _acs)
_acs
- is never null
public static Resource[] getExtControlledNonActorResourceArray(ImmutableACS _acs)
_acs
- ACS
public static StringRight[] getAcsRightArray(ACSRun _acs)
_acs
- is an ACS or an ACSFactoryImpl
public static BaseObject getEorBaseObject(ImmutableName _name) throws BaseError
_name
- of the object
BaseError
- if there is no object with this namepublic static ACSObject getACSObjectFromDetailledName(ACS _acs, java.lang.String _detailledName) throws BaseError
_acs
- of the object_detailledName
- of the object
BaseError
- if there is no object with this namepublic static Name getNameFromString(java.lang.String _text) throws BaseError
_text
- the name, as get through toString()
BaseError
- if the string argument is null or empty,
or if the string is not ended by ':: '.public static ImmutableAclEntry getAclEntry(ImmutableName _name) throws BaseError
_name
- name of the AclEntry
BaseError
- if the name has a wrong format, or
if it is not a known AclEntrypublic static ImmutablePrivilege getPrivilege(ImmutableName _name) throws BaseError
ACS:: ACS name
:: || PRIV_TYPE:: type
:: || SHORT_NAME:: shortPrivilege
:: || FIRST_RIGHT:: right name
:: || XXXX:: xxxx value
:: >> YYYY:: yyyy value
where:
- ':: ' is added by gBase.NameImpl.toString(),
- the type is one of the types defined in the PrivilegeAbst class,
- XXXX and YYYY are implementation-dependant values (see the relevant subclasses of PrivilegeAbst).
Called by ActionOpenBeamer.openSelection().
_name
- the name of the Privilege
BaseError
- if the privilege name has a wrong format, or
if it is an unknown privilegepublic static boolean validateFrameName(ImmutableName _name)
_name
- to validate
public static java.util.Map<java.lang.String,java.util.List<java.lang.String>> getImportedACS(ImmutableName _name) throws BaseError, DialogError
_name
- ImmutableName of the ACS to import. Its file name is built
with the two last components of the name, or with the single component
BaseError
- if the ACS name is known or null argument, or SecurityException
DialogError
- if the open ACS has not the same name,
or ClassNotFoundException, IOException with
invalidClassException, or wrong savingBaseManagerImpl.importACS(ARoad0.gBaseInterface.ImmutableName)
public static java.util.List<VirtualFolder> getOwnResourceVirtualFolderList(ACS _acs)
_acs
- is an ACS
public static java.util.List<VirtualFolder> getOwnEPVirtualFolderList(ACS _acs)
_acs
- is an ACS
public static java.util.List<Privilege> getOwnPrivilegeList(ACS _acs)
_acs
- is an ACS
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |