|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectARoad0.gWork.ViewInBase_Facade
public class ViewInBase_Facade
This class is the "facade" (GoF pattern) for all the operations about views that are called by Gui1, Gui2 and gDMak objects.
Field Summary | |
---|---|
private static int |
INITIAL_CAPACITY
|
private static ViewInBase_Facade |
instance__
|
static java.util.List<ImmutableSource> |
L_SK_EP
A static list reserved to populateSketchView(). |
static java.util.List<BaseObject> |
L_SK_RES
A static list reserved to populateSketchView(). |
static java.lang.String |
NOTHAN_VIEW_INDICATOR
|
static RightsMediatorImpl |
SKETCH_MEDIATOR
The RightsMediator for the sketch view. |
static java.lang.String |
VIEW_FRAME_INDICATOR
|
Constructor Summary | |
---|---|
private |
ViewInBase_Facade()
only one private constructor |
Method Summary | |
---|---|
static void |
closeOpenView(ViewInBase _view)
Closes any open view without save it. |
static EPRViewInBase |
createEPRView(ImmutableName _name,
java.util.Set _l_BaseObject)
Creates a new view for EligibleParties and Resources, then registers and saves it. |
static NoThanViewInBase |
createNoThanView(ImmutableName _name,
java.util.Set _l_BaseObject)
COMMENTS TO DO Creates a new view for EligibleParties and Resources, then registers and saves it. |
static SketchViewInBase |
createSketchView(ImmutableName _name)
Creates a new sketch view without registering nor saving it in the base. |
static ViewInBase |
createView(ImmutableName _name,
java.util.Map _m_BaseObjects)
Creates a new classical view for BaseObjects, then save it. |
static java.util.Map |
getAllStandardOpenViews()
|
static ViewInBase |
getArchitectureView()
|
static java.util.List |
getClosedViews()
The 'Architecture' view is not returned in the list, to forbid its direct opening by the user. |
static java.util.Set<ImmutableName> |
getElementsOfOneView(ImmutableName _name,
boolean _acsNames)
Get the elements of a closed or opened ViewInBase. |
static ViewInBase_Facade |
getInstance()
Only method to get an instance. |
static java.util.Map |
getOpenFullViews()
Do not return the Architecture view and the Sketch view. |
static java.util.Map |
getOpenNoThanViews()
Do not return the Architecture view and the Sketch view. |
static boolean |
isNoThanViewName(ImmutableName _name)
Check if the component name before the last component equals ' |
static boolean |
isOpenView(ImmutableName _name)
getElementsOfOneView( ImmutableName _name, boolean _acsNames) throws BaseError |
static boolean |
knowsView(ImmutableName _name)
|
static EPRViewInBase |
openOrCreateEPRView(ImmutableName _name,
java.util.List _EPList,
java.util.List _ResourceList)
Gets the open EP-to-Resource view; opens the registered view if it is closed; creates it, if it is necessary. |
static NoThanViewInBase |
openOrCreateNoThanView(ImmutableName _name,
java.util.List _EPList)
Gets the NoThan view; opens the registered view if it is closed; creates it, if it is necessary. |
static ViewInBase |
openOrCreateView(ImmutableName _name,
java.util.List _l_BaseObjects)
Gets the BaseObjects view; open the registered view if it is closed; creates and saves it if necessary. |
static java.util.Map |
populateSketchView(SketchViewInBase _view,
BaseObject _center,
java.lang.String _type)
Detects the objects to put in a sketch view, around the center, and generates the DisplayableLinks which are applicable. |
static void |
removeView(ImmutableName _name)
Removes a view, and before, close and save it if it is open. |
static void |
saveAllViews()
No use. |
static void |
saveAndCloseOpenView(ViewInBase _view)
Closes any open view and save it. |
static void |
saveView(ImmutableName _name)
Saves the registered view on a file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String NOTHAN_VIEW_INDICATOR
public static final java.lang.String VIEW_FRAME_INDICATOR
private static ViewInBase_Facade instance__
private static final int INITIAL_CAPACITY
public static RightsMediatorImpl SKETCH_MEDIATOR
public static java.util.List<BaseObject> L_SK_RES
public static java.util.List<ImmutableSource> L_SK_EP
Constructor Detail |
---|
private ViewInBase_Facade()
Method Detail |
---|
public static ViewInBase_Facade getInstance()
public static boolean knowsView(ImmutableName _name)
_name
- of a view
public static boolean isOpenView(ImmutableName _name)
_name
- ImmutableName of a view
public static java.util.Set<ImmutableName> getElementsOfOneView(ImmutableName _name, boolean _acsNames) throws BaseError
_name
- of an opened or closed ViewInBase._acsNames
- false to get the view elements names, true to get the names of
the ACS which own the view elements
BaseError
- if the view is not known,
the open view has not the same name,
or ClassNotFoundException, IOException.public static java.util.List getClosedViews()
public static boolean isNoThanViewName(ImmutableName _name)
_name
- of a ViewInBase
public static java.util.Map getOpenFullViews()
public static java.util.Map getOpenNoThanViews()
public static java.util.Map getAllStandardOpenViews()
public static ViewInBase getArchitectureView()
public static void saveAllViews() throws BaseError
BaseError
- if an object is not open, objectName.lastComponent() is null,
FileNotFoundException or IOException.public static void saveView(ImmutableName _name)
_name
- ImmutableName of the view to savepublic static ViewInBase createView(ImmutableName _name, java.util.Map _m_BaseObjects) throws CreateError, BaseError
_name
- for the view to create.
No test of null nor empty._m_BaseObjects
- is the list of the BaseObjects in the view. May be null.
CreateError
- or BaseError if _name is already known in BaseManagerImpl,
or if _l_BaseObject contains a null, no BaseObject, or empty-name object.
BaseError
public static ViewInBase openOrCreateView(ImmutableName _name, java.util.List _l_BaseObjects) throws DialogError
_name
- ImmutableName for the view to create or open.
No test of null nor empty._l_BaseObjects
- is the list of the BaseObjects in the view.
May be null.
DialogError
- to display to the user.public static EPRViewInBase createEPRView(ImmutableName _name, java.util.Set _l_BaseObject) throws CreateError, BaseError
_name
- for the view to create.
No test of null nor empty._l_BaseObject
- is the list of the BaseObjects in the view. May be null.
BaseError
- or CreateError if _name is already known in BaseManagerImpl,
or if _l_BaseObject contains a null, no BaseObject, or empty-name object,
or if it contains an object that is not an eligible party nor a resource.
CreateError
public static NoThanViewInBase createNoThanView(ImmutableName _name, java.util.Set _l_BaseObject) throws BaseError, CreateError
_name
- for the view to create.
No test of null nor empty._l_BaseObject
- is the list of the BaseObjects in the view. May be null.
BaseError
- or CreateError if _name is already known in BaseManagerImpl,
or if _l_BaseObject contains a null, no BaseObject, or empty-name object,
or if it contains an object that is not an eligible party nor a resource.
CreateError
public static EPRViewInBase openOrCreateEPRView(ImmutableName _name, java.util.List _EPList, java.util.List _ResourceList) throws DialogError
_name
- ImmutableName for the view to create or open.
No test of null nor empty._EPList
- List of the eligible parties in the view.
may be null._ResourceList
- List of the resources in the view.
may be null.
DialogError
- to display to the user.public static NoThanViewInBase openOrCreateNoThanView(ImmutableName _name, java.util.List _EPList) throws DialogError
_name
- ImmutableName for the view to create or open.
No test of null nor empty._EPList
- List of the eligible parties in the view.
may be null.
DialogError
- to display to the user.public static SketchViewInBase createSketchView(ImmutableName _name) throws BaseError, CreateError
_name
- for the view to create. No test of null nor empty.
BaseError
- or CreateError if _l_BaseObject contains a null,
no BaseObject, or empty-name object,
or if it contains an object that is not an eligible party nor a resource.
CreateError
public static java.util.Map populateSketchView(SketchViewInBase _view, BaseObject _center, java.lang.String _type)
_view
- is the empty sketch view to populate. Never null._center
- is the center of the sketch view. Never null._type
- is the _center type, which is "actor", "resource", "ec_resource"
"groupid", "userid", "virtualfolder"
public static void saveAndCloseOpenView(ViewInBase _view)
_view
- ViewInBase to closepublic static void closeOpenView(ViewInBase _view) throws BaseError
_view
- ViewInBase to close
BaseError
- if _view is not open, ViewName.lastComponent() is null,
or FileNotFoundException, IOException.public static void removeView(ImmutableName _name) throws BaseError
_name
- ViewInBase to remove from the base
BaseError
- if the view is unknown, ViewName.lastComponent() is null,
or FileNotFoundException, IOException.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |