|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.enterprise.EnterpriseServiceFwd
This service supports one RevisionControlled
object being made
from another RevisionControlled
object (or made
into if you look at it the other way) and persisting the relationship;
one method, saveCopy(CopyRules,RevisionControlled,RevisionControlled)
,
uses CopyRules
.
EnterpriseHelper
StandardEnterpriseService
has
listenersEnterpriseServiceEvent
WTException
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 | |
EnterpriseServiceFwd()
|
Method Summary | |
private static Manager |
getManager()
|
QueryResult |
getTemplates(WTContainer container,
QuerySpec querySpec,
OrderBy[] orderBys,
boolean includeEnabledOnly,
boolean lookup,
boolean removeOverridden)
Returns a QueryResult of Templateable objects. |
RevisionControlled |
navigateMadeFrom(RevisionControlled object)
Return the object that this object was made from (copied). |
QueryResult |
navigateMadeInto(RevisionControlled object)
Return a query result of the objects that were made from (copied from) this version of the object. |
RevisionControlled |
newCopy(RevisionControlled object)
Copy the object, but do not persist it. |
CopyObjectInfo[] |
newMultiObjectCopy(RevisionControlled[] originalObjects)
Copy the objects, but do not persist them. |
SortedEnumeration |
presentMadeInto(RevisionControlled object,
Vector displayAttributes,
String sortPreference,
Locale locale)
Return a sorted enumeration of the objects that were made from (copied from) this version of this object. |
RevisionControlled |
saveCopy(CopyRules rules,
RevisionControlled original,
RevisionControlled copy)
Used after the client has called newCopy and set any attributes on the object that it wants to change. |
RevisionControlled |
saveCopy(RevisionControlled original,
RevisionControlled copy)
Used after the client has called newCopy and set any attributes on the object that it wants to change. |
CopyObjectInfo[] |
saveMultiObjectCopy(CopyMultiRules copyMultiRules,
CopyObjectInfo[] copyInformation)
Used after the client has called newMultiObjectCopy and set any attributes on the objects that it wants to change. |
CopyObjectInfo[] |
saveMultiObjectCopy(CopyObjectInfo[] copyInformation)
Used after the client has called newMultiObjectCopy and set any attributes on the objects that it wants to change. |
boolean |
templatesExist(WTContainer container,
Class templateClass,
boolean enabledOnly,
boolean lookup)
Returns true if Templateable objects exist; otherwise returns
false. |
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 EnterpriseServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public RevisionControlled newCopy(RevisionControlled object) throws WTException
newCopy
in interface EnterpriseService
object
- The original object to copy.
WTException
public RevisionControlled saveCopy(RevisionControlled original, RevisionControlled copy) throws WTException
saveCopy
in interface EnterpriseService
original
- The original object that was copied.copy
- The new copy that needs to be persisted..
WTException
public RevisionControlled saveCopy(CopyRules rules, RevisionControlled original, RevisionControlled copy) throws WTException
saveCopy
in interface EnterpriseService
rules
- The rules that configure the save as. These rules will override the rules in the property file.original
- The original object that was copied.copy
- The new copy that needs to be persisted..
WTException
public RevisionControlled navigateMadeFrom(RevisionControlled object) throws WTException
navigateMadeFrom
in interface EnterpriseService
object
- Object to find what it was copied from.
WTException
public QueryResult navigateMadeInto(RevisionControlled object) throws WTException
navigateMadeInto
in interface EnterpriseService
object
- Object to find what was copied from it.
WTException
public SortedEnumeration presentMadeInto(RevisionControlled object, Vector displayAttributes, String sortPreference, Locale locale) throws WTException
presentMadeInto
in interface EnterpriseService
object
- Object to find what was copied from it.displayAttributes
- The list of attributes that the client wants to display from the results.sortPreference
- To specify the sort preference for post processing of the results.locale
- The locale of the client, used in the sorting of the results.
WTException
public CopyObjectInfo[] newMultiObjectCopy(RevisionControlled[] originalObjects) throws WTException
newMultiObjectCopy
in interface EnterpriseService
originalObjects
- The original objects to copy.
WTException
public CopyObjectInfo[] saveMultiObjectCopy(CopyObjectInfo[] copyInformation) throws WTException
saveMultiObjectCopy
in interface EnterpriseService
copyInformation
- Contains original, copy and rules for each object.
WTException
public CopyObjectInfo[] saveMultiObjectCopy(CopyMultiRules copyMultiRules, CopyObjectInfo[] copyInformation) throws WTException
saveMultiObjectCopy
in interface EnterpriseService
copyMultiRules
- The multi-rules that configure the save as. These rules will override the rules in the property file.copyInformation
- Container for original, copy and rules for each object.
WTException
public QueryResult getTemplates(WTContainer container, QuerySpec querySpec, OrderBy[] orderBys, boolean includeEnabledOnly, boolean lookup, boolean removeOverridden) throws WTException
Templateable
objects. The templates
returned are found in the given container and, if lookup is true,
up the container hierarchy. The querySpec provides the class to query
against as well as any additional query criteria.
getTemplates
in interface EnterpriseService
container
- The container to search for templates in.querySpec
- The QuerySpec (whose query class must be class assignable to Templateable) to use when searching for templates.orderBys
- If not null, an array of OrderBy statements for sorting the query result. Note: do not append these statements to the querySpec; all ordering should be done by passing OrderBy clauses in this array.includeEnabledOnly
- If true, return only enabled templates; otherwise, return latest iterations.lookup
- If true, go up the container's hierarchy when searching for templates; otherwise, find only templates in this container.removeOverridden
- If true, remove templates that have been overridden; otherwise, return all. An overridden template is a template for which there is another template of the same name in a descendent container.
WTException
public boolean templatesExist(WTContainer container, Class templateClass, boolean enabledOnly, boolean lookup) throws WTException
Templateable
objects exist; otherwise returns
false. Templates are searched for in the given container and, if
lookup is true, up the container hierarchy.
templatesExist
in interface EnterpriseService
container
- The container to search for templates in.templateClass
- The class of templates to search for. Children of this class are also searched.enabledOnly
- If true, search for only enabled templates; otherwise, search for any templates (regardless of enabled status).lookup
- If true, go up the container's hierarchy when searching for templates; otherwise, find only templates in this container.
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |