|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
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. |
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. |
Method Detail |
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.
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.
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.
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
viewName
-
WTException
ViewException
public View getView(ObjectIdentifier objId) throws WTException, ViewException
objId
-
WTException
ViewException
public View getParent(View view) throws WTException, ViewException
view
- The view to get the parent of; it must exist
WTException
ViewException
public View[] getAllParents(View view) throws WTException, ViewException
view
- The view to get the parents of; it must exist
WTException
ViewException
public boolean isParentOf(View view, View viewToCheck) throws WTException, ViewException
view
- viewToCheck
-
WTException
ViewException
public View[] getChildren(View view) throws WTException, ViewException
view
- View to get children of; it must exist.
WTException
ViewException
public View[] getAllChildren(View view) throws WTException, ViewException
view
- View to get all children of; it must exist.
WTException
ViewException
public boolean isChildOf(View view, View viewToCheck) throws WTException, ViewException
view
- viewToCheck
-
WTException
ViewException
public boolean isMemberOf(View view, View viewToCheck) throws WTException, ViewException
view
- viewToCheck
-
WTException
ViewException
public View[] getAllViews() throws WTException, ViewException
WTException
ViewException
public View[] getAllRootViews() throws WTException, ViewException
WTException
ViewException
public void insert(View parent, View child, View viewToInsert) throws WTException, ViewException
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
viewManageable
-
WTException
ViewException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |