|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.services.StandardManager
wt.vc.views.StandardViewService
public class StandardViewService
This implementation of ViewService caches the Views and
ViewAssociations, so ViewService calls do not hit
the database.
Use the newStandardViewService static factory method(s),
not the StandardViewService constructor, to construct instances
of this class. Instances must be constructed using the static factory(s),
in order to ensure proper initialization of the instance.
Supported API: true
Extendable: true
| 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. |
| Methods inherited from class wt.services.StandardManager |
|---|
getManagerService, getManagerStatus, getName, getStartupType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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.
newBranchForView in interface ViewServiceversion - 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 ViewServiceversion - 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 ViewServiceversion - 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 ViewServiceviewName -
WTException
ViewException
public View getView(ObjectIdentifier objId)
throws WTException,
ViewException
getView in interface ViewServiceobjId -
WTException
ViewException
public View getParent(View view)
throws WTException,
ViewException
getParent in interface ViewServiceview - The view to get the parent of; it must exist
WTException
ViewException
public View[] getAllParents(View view)
throws WTException,
ViewException
getAllParents in interface ViewServiceview - 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 ViewServiceview - viewToCheck -
WTException
ViewException
public View[] getChildren(View view)
throws WTException,
ViewException
getChildren in interface ViewServiceview - View to get children of; it must exist.
WTException
ViewException
public View[] getAllChildren(View view)
throws WTException,
ViewException
getAllChildren in interface ViewServiceview - View to get all children of; it must exist.
WTException
ViewException
public boolean isChildOf(View view,
View viewToCheck)
throws WTException,
ViewException
isChildOf in interface ViewServiceview - viewToCheck -
WTException
ViewException
public boolean isMemberOf(View view,
View viewToCheck)
throws WTException,
ViewException
isMemberOf in interface ViewServiceview - viewToCheck -
WTException
ViewException
public View[] getAllViews()
throws WTException,
ViewException
getAllViews in interface ViewServiceWTException
ViewException
public View[] getAllRootViews()
throws WTException,
ViewException
getAllRootViews in interface ViewServiceWTException
ViewException
public void insert(View parent,
View child,
View viewToInsert)
throws WTException,
ViewException
insert in interface ViewServiceparent - 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 ViewServiceviewManageable -
WTException
ViewException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||