|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.vc.views.ViewServiceFwd
This service interface provides the general APIs needed to work with
View
and ViewManageable
objects and manage them with
the ViewService
; View
s can be placed in hierarchies
using ViewAssociation
links.
ViewHelper
has helper methodsStandardViewService
has no listenersViewException
Field Summary | |
private static String |
CLASSNAME
|
private static String |
FC_RESOURCE
|
(package private) static boolean |
SERVER
|
Fields inherited from interface wt.method.RemoteAccess |
versionID |
Constructor Summary | |
ViewServiceFwd()
|
Method Summary | |
View[] |
getAllChildren(View view)
Returns all the children of this view. |
View[] |
getAllParents(View view)
Returns all the parents of the view, if any. |
View[] |
getAllRootViews()
Return all root views, that is all views with no parent views. |
View[] |
getAllViews()
Return all defined views. |
View[] |
getChildren(View view)
Returns the immediate children of this view. |
View[] |
getEligibleViews(ViewManageable viewManageable)
For a particular version, returns all the valid views the version may be branched into. |
private static Manager |
getManager()
|
View |
getParent(View view)
Gets the immediate parent of this view, if one exists. |
View |
getView(ObjectIdentifier objId)
Returns the view object for this view identifier, if one exists. |
View |
getView(String viewName)
Returns the view object for this view name, if it exists. |
void |
insert(View parent,
View child,
View viewToInsert)
Inserts a view between other associated views. |
boolean |
isChildOf(View view,
View viewToCheck)
Returns true if the viewToCheck is a child of the view, false otherwise. |
boolean |
isMemberOf(View view,
View viewToCheck)
Returns true if the viewToCheck is contained in the same view association as the view, false otherwise. |
boolean |
isParentOf(View view,
View viewToCheck)
Returns true if the viewToCheck is a parent of the view, false otherwise. |
ViewManageable |
newBranchForView(ViewManageable version,
ObjectIdentifier viewId)
Creates a new version from the original version and assigns it to the specified view. |
ViewManageable |
newBranchForView(ViewManageable version,
String viewName)
Creates a new version from the original version and assigns it to the specified view. |
ViewManageable |
newBranchForView(ViewManageable version,
View view)
Creates a new version from the original version and assigns it to the specified view. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
static final boolean SERVER
private static final String FC_RESOURCE
private static final String CLASSNAME
Constructor Detail |
public ViewServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public ViewManageable newBranchForView(ViewManageable version, String viewName) throws WTPropertyVetoException, WTException, ViewException
wt.properties
entry wt.vc.views.newViewVersionClassicBehavior
to false
, you can change this behavior: rather than
creating B.A (Mfg) from B (Eng), the new version will be created from
A.A (Mfg). The result will still be B.A (Mfg), but the Mfg changes
will be preserved.
newBranchForView
in interface ViewService
version
- The version the new version is to be derived from.viewName
- The view name of the view to assign the new version to.
WTPropertyVetoException
WTException
ViewException
public ViewManageable newBranchForView(ViewManageable version, View view) throws WTPropertyVetoException, WTException, ViewException
wt.properties
entry wt.vc.views.newViewVersionClassicBehavior
to false
, you can change this behavior: rather than
creating B.A (Mfg) from B (Eng), the new version will be created from
A.A (Mfg). The result will still be B.A (Mfg), but the Mfg changes
will be preserved.
newBranchForView
in interface ViewService
version
- The version the new version is to be derived from.view
- The view to assign the new version to.
WTPropertyVetoException
WTException
ViewException
public ViewManageable newBranchForView(ViewManageable version, ObjectIdentifier viewId) throws WTPropertyVetoException, WTException, ViewException
wt.properties
entry wt.vc.views.newViewVersionClassicBehavior
to false
, you can change this behavior: rather than
creating B.A (Mfg) from B (Eng), the new version will be created from
A.A (Mfg). The result will still be B.A (Mfg), but the Mfg changes
will be preserved.
newBranchForView
in interface ViewService
version
- The version the new version will be derived from.viewId
- The Id of the view to assign the version from.
WTPropertyVetoException
WTException
ViewException
public View getView(String viewName) throws WTException, ViewException
getView
in interface ViewService
viewName
-
WTException
ViewException
public View getView(ObjectIdentifier objId) throws WTException, ViewException
getView
in interface ViewService
objId
-
WTException
ViewException
public View getParent(View view) throws WTException, ViewException
getParent
in interface ViewService
view
- The view to get the parent of; it must exist
WTException
ViewException
public View[] getAllParents(View view) throws WTException, ViewException
getAllParents
in interface ViewService
view
- The view to get the parents of; it must exist
WTException
ViewException
public boolean isParentOf(View view, View viewToCheck) throws WTException, ViewException
isParentOf
in interface ViewService
view
- viewToCheck
-
WTException
ViewException
public View[] getChildren(View view) throws WTException, ViewException
getChildren
in interface ViewService
view
- View to get children of; it must exist.
WTException
ViewException
public View[] getAllChildren(View view) throws WTException, ViewException
getAllChildren
in interface ViewService
view
- View to get all children of; it must exist.
WTException
ViewException
public boolean isChildOf(View view, View viewToCheck) throws WTException, ViewException
isChildOf
in interface ViewService
view
- viewToCheck
-
WTException
ViewException
public boolean isMemberOf(View view, View viewToCheck) throws WTException, ViewException
isMemberOf
in interface ViewService
view
- viewToCheck
-
WTException
ViewException
public View[] getAllViews() throws WTException, ViewException
getAllViews
in interface ViewService
WTException
ViewException
public View[] getAllRootViews() throws WTException, ViewException
getAllRootViews
in interface ViewService
WTException
ViewException
public void insert(View parent, View child, View viewToInsert) throws WTException, ViewException
insert
in interface ViewService
parent
- The parent view in a ViewAssociation.child
- A child of the parent. May be null, in which case the viewToInsert is inserted above all the parent's children.viewToInsert
- The view to insert.
WTException
ViewException
public View[] getEligibleViews(ViewManageable viewManageable) throws WTException, ViewException
getEligibleViews
in interface ViewService
viewManageable
-
WTException
ViewException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |