ESIGroupInfoManager
The ESIGroupInfoManager is a factory which creates ESIGroupInfo objects and makes them available to other objects. Implements the Singleton pattern to ensure that only one instance exists in a VM.
ESIGroupInfoManager()
The default constructor is declared as protected. This forces access to the constructor via the static method instance of the class. The constructor invokes buildTargetGroupMapInfo() to populate the HashMap in groupInfoTargetMap.
getGroupInfo(groupName : String) : ESIGroupInfo
Returns the ESIGroupInfo for the supplied group name. This method is currently not used.
getGroupInfo(groupName : String, target : ESITarget) : ESIGroupInfo
Returns the ESIGroupInfo object for the input group name and distribution target. Fetches the required output from the HashMap in groupInfoTargetMap.
* 
The HashMap in groupInfoTargetMap contains ESITargetResponseMetaInfo objects as keys and certain LinkedHashMap objects as values. Each Linked HashMap object has group names as keys and ESIGroupInfo objects as values.
* 
ESITargetResponseMetaInfo is an inner class defined withinESIGroupInfoManager, having the ESITarget and the relevant ESI response meta information file path as its attributes. In essence, it represents a given ESITarget object, but since a user can modify the associated ESI response meta information file path any time, the class holds the target and its path together, thereby ensuring uniqueness of the key that is stored in groupInfoTargetMap.
getGroupInfos() : Collection
Returns an ordered collection of all ESIGroupInfo objects. This method is currently not used.
getGroupInfos(target : ESITarget) : Collection
Returns an ordered collection of all ESIGroupInfo objects for the input distribution target.
<<Static>> instance() : ESIGroupInfoManager
Gets the value of the _instance attribute. If the attribute is null, create an instance and store it in the attribute before returning its value.
getGroupInfo (groupName : String, contained : WTContained) : ESIGroupInfo
Returns the ESIGroupInfo object with the passed name and for the organization associated with the contained instance. This method is currently not used.
getGroupInfos (contained : WTContained) : Collection
Returns a collection of all the ESIGroupInfo objects that are applicable to theorganization associated with the contained instance. This method is currently not used.
buildTargetGroupMapInfo() : void
Populates the HashMap in groupInfoTargetMap by invoking refreshTargetGroupMapInfo() for every active ESITarget object in the database.
refreshTargetGroupMapInfo(target : ESITarget) : boolean
Adds an entry to the HashMap in groupInfoTargetMap by parsing the contents of the ESI response meta information file that is referenced by the input distribution target. Returns a true if the file could be parsed successfully. A false is returned if some error was encountered while parsing the file.
clearTargetGroupMapInfo(target : ESITarget) : void
Removes the entry for the input distribution target from the HashMap in groupInfoTargetMap.
Was this helpful?