|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.sandbox.SandboxServiceFwd
Remote interface for operations specific to sandbox containers.
Many of the get*() methods in this class take a Collecion as one of the input arguments. In general such a collection is presumed to be a collection of WTReferences or a WTCollection. When a WTCollection is passed in and the formal return result is a Set, the actual result type will be an instanceof WTSet. When a WTCollection is passed in and the formal return result is a Map, then an effort is made to return an appropriate WTKeyedMap or WTValuedMap. See such routines for details.
Although there are single-object-based methods in this interface, many
remain for historical compatibility and/or special use cases and the
multi-object methods are preferable whenever one has multiple input objects
to process in one's overall algorithm.
Supported API: false
Extendable: false
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 | |
SandboxServiceFwd()
|
Method Summary | |
SandboxBaseline |
addToSandboxBaseline(WTCollection wtCollOfBaselineables,
WTContainerRef sandboxContainer)
Add a collection of baselinables to the SandboxBaseline associated with the given sandbox container. |
SandboxBaseline |
addToSandboxBaseline(WTCollection wtCollOfBaselineables,
WTContainerRef sandboxContainer,
boolean replaceEntriesFromSameMasters)
Add a collection of baselinables to the SandboxBaseline associated with the given sandbox container. |
void |
checkin(WTKeyedMap inputRefToInitialCheckinDataMap,
String note)
Check-in a group of versioned objects from a sandbox container to the larger enterprise. |
Map |
checkin(WTKeyedMap inputRefToInitialCheckinDataMap,
String note,
InitialCheckinDataApplicator applicator,
boolean returnCheckedinVersions)
Check-in a group of versioned objects from a sandbox container to the larger enterprise. |
void |
checkout(WTCollection wtOrigCopiesSet,
WTContainerRef targetContainerRef,
Folder targetFolder,
String note)
Check-out a group of versioned objects from the larger enterprise to a sandbox container. |
Map |
checkout(WTCollection wtOrigCopiesSet,
WTContainerRef targetContainerRef,
Folder targetFolder,
String note,
boolean returnCheckedoutVersions)
Check-out a group of versioned objects from the larger enterprise to a sandbox container. |
Versioned |
getCheckedinCopyOf(Versioned version)
Given a sandbox iteration that has been checked in returns the resulting checked-in iteration -- otherwise returns null. |
Map |
getCheckedInCopyToSandboxCopyRefMap(Collection wtCollOfCheckedinCopies)
Gets map from any sandbox check ins in the input collection to sandbox copies. |
Map |
getCheckinsToSandboxesMap(Collection wtColl)
Gets map from any sandbox check ins from input collection to sandboxes containers from which they were checked in. |
private static Manager |
getManager()
|
Map |
getMapToSandboxBaselineIterations(Collection wtCollOfBaselineables,
WTContainerRef containerRef,
boolean restrictToSameBranch)
Gets map from any master, iteration, or version in the input collection to the corresponding iteration in the sandbox baseline. |
Versioned |
getOriginalCopyOf(Versioned version)
Similar to method of the same name in WorkInProgressService. |
Map |
getOriginalCopyToWorkingCopyRefMap(Collection wtColl)
Get map from any sandbox original copies in the input collection to corresopnding working copies. |
Map |
getOriginalCopyToWorkingCopyRefMap(Collection wtColl,
boolean allowWorkingCopyInputs)
Get map from any sandbox original copies in the input collection to corresopnding working copies. |
Map |
getOriginalsToSandboxesMap(Collection wtColl)
Gets map from any sandbox check out original copies in the input collection to sandboxes containers to which they have been checked out. |
Map |
getRefreshCandidates(WTContainerRef sandboxRef,
EPMDocConfigSpec docConfigSpec,
WTPartConfigSpec partConfigSpec,
boolean isDocCentric)
For all objects shared from PDM to Sandbox, returns newer iterations available in PDM. |
WTContainerRef |
getRelatedSandboxRef(Versioned originalCopy,
boolean previous)
Given an iteration, returns a reference to the "related" sandbox container. |
SandboxBaseline |
getSandboxBaseline(WTContainerRef sandboxContainer)
Returns the given sandbox container's baseline. |
Baselineable |
getSandboxBaselineIteration(Baselineable baselineable,
WTContainerRef containerRef)
Returns the iteration found in the sandbox baseline for the given object and containerRef. |
Versioned |
getSandboxCopyOf(Versioned version)
Given an iteration which resulted from a sandbox check-in, returns the original sandbox iteration -- otherwise returns null. |
Map |
getSandboxCopyToCheckedInCopyRefMap(Collection wtCollOfSandboxCopies)
Get map from any sandbox (inactive working) copies in input collection to corresponding checked-in copies. |
WTValuedMap |
getSandboxToBaselineRefMap(Collection wtCollOfSandboxRefs,
boolean inflateBaselineRefs)
Gets map from any sandbox containers in the input collection to the corresponding sandbox baselines. |
Set |
getSandboxWorkingCopySubset(Collection wtColl,
boolean excludeTerminalCopies)
Returns those objects from the input collection that are sandbox working copies. |
Set |
getSubsetCheckedOutToSandbox(Collection wtColl,
WTContainerRef containerRef)
Returns those objects from the input collection that are checked out to the given sandbox. |
WTSet |
getWorkingCopies(WTPrincipalReference principal,
boolean includePersonalCheckouts)
Get set of sandbox working copies checked out by a given individual. |
Versioned |
getWorkingCopyOf(Versioned version)
Similar to method of the same name in WorkInProgressService. |
Map |
getWorkingCopyToOriginalCopyRefMap(Collection wtColl)
Get map from any sandbox working copies in the input collection to corresopnding original copies. |
Map |
getWorkingCopyToOriginalCopyRefMap(Collection wtColl,
boolean allowOrigCopyInputs)
Get map from any sandbox working copies in the input collection to corresopnding original copies. |
boolean |
isCheckedOutToSandbox(Versioned version,
WTContainerRef containerRef)
Returns whether the given version is checked out to the given sandbox container. |
boolean |
isWorkingCopy(Versioned version)
Returns true if the given version branch was the direct result of a sandbox check-out, i.e. |
void |
preCheckinValidate(Map versionRefToInitialCheckinDataMap)
Attempts to validate InitialCheckinData items within versionRefToInitialCheckinDataMap against each other and existing masters for uniqueness, etc. |
void |
preCheckinValidate(Map versionRefToInitialCheckinDataMap,
InitialCheckinDataApplicator applicator)
Attempts to validate InitialCheckinData items within versionRefToInitialCheckinDataMap against each other and existing masters for uniqueness, etc. |
void |
removeObjects(WTCollection objectsToRemove)
Remove the given set of objects from the project. |
void |
undoCheckout(WTCollection inputRefs)
Undo check-out of a set of versioned objects from the sandbox container. |
Set |
undoCheckout(WTCollection inputRefs,
boolean returnOriginalCopies)
Undo check-out of a set of versioned objects from the sandbox container. |
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 SandboxServiceFwd()
Method Detail |
private static Manager getManager() throws WTException
WTException
public boolean isWorkingCopy(Versioned version) throws WTException
See getSandboxWorkingCopySubset() for a multi-object equivalent of
this routine.
Supported API: false
isWorkingCopy
in interface SandboxService
version
- sandbox version to make determination for
WTException
public Set getSandboxWorkingCopySubset(Collection wtColl, boolean excludeTerminalCopies) throws WTException
When the input Collection is a WTCollection, the actual method result
will be a WTSet.
Supported API: false
getSandboxWorkingCopySubset
in interface SandboxService
wtColl
- accepts a Collection of WTReferences or a WTCollectionexcludeTerminalCopies
- Whether TERMINAL (inactive/checked-in) working copies should be excluded.
WTException
public boolean isCheckedOutToSandbox(Versioned version, WTContainerRef containerRef) throws WTException
See getSubsetCheckedOutToSandbox() for a multi-object equivalent of
this routine.
Supported API: false
isCheckedOutToSandbox
in interface SandboxService
version
- sandbox version to make determination forcontainerRef
- reference to sandbox container
WTException
public Set getSubsetCheckedOutToSandbox(Collection wtColl, WTContainerRef containerRef) throws WTException
When the input Collection is a WTCollection, the actual method result
will be a WTSet.
Supported API: false
getSubsetCheckedOutToSandbox
in interface SandboxService
wtColl
- accepts a Collection of WTReferences or a WTCollectioncontainerRef
- reference to sandbox container
WTException
public WTContainerRef getRelatedSandboxRef(Versioned originalCopy, boolean previous) throws WTException
See getOriginalsToSandboxesMap() and getCheckinsToSandboxesMap() for
multi-object equivalents of this routine.
Supported API: false
getRelatedSandboxRef
in interface SandboxService
originalCopy
- sandbox checked out to find sandbox forprevious
- whether to return the "previous" sandbox (that from which this iteration was formed via a sandbox check-in) or the sandbox to which this iteration has been checked out to
WTException
public Map getOriginalsToSandboxesMap(Collection wtColl) throws WTException
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while reusing the input reference objects.
When the input Collection is a WTCollection, the output will be a
WTValuedMap.
Supported API: false
getOriginalsToSandboxesMap
in interface SandboxService
wtColl
- accepts a Collection of WTReferences or a WTCollection
WTException
public Map getCheckinsToSandboxesMap(Collection wtColl) throws WTException
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while reusing the input reference objects.
When the input Collection is a WTCollection, the output will be a
WTValuedMap.
Supported API: false
getCheckinsToSandboxesMap
in interface SandboxService
wtColl
- accepts a Collection of WTReferences or a WTCollection
WTException
public Versioned getOriginalCopyOf(Versioned version) throws WTException
See getWorkingCopyToOriginalCopyRefMap() methods for multi-object
equivalents of this method.
Supported API: false
getOriginalCopyOf
in interface SandboxService
version
- sandbox version object
WTException
public Map getWorkingCopyToOriginalCopyRefMap(Collection wtColl) throws WTException
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while reusing the input reference objects.
When the input Collection is a WTCollection, the output will be a
WTValuedMap.
Supported API: false
getWorkingCopyToOriginalCopyRefMap
in interface SandboxService
wtColl
- accepts a Collection of WTReferences or a WTCollection
WTException
public Map getWorkingCopyToOriginalCopyRefMap(Collection wtColl, boolean allowOrigCopyInputs) throws WTException
This method can optionally navigate for any sandbox original copies as well as working copies in its inputs (and thus including the correspoding working/original copy pair in the results), but in either case the returned map is always strictly from working copies to originals.
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while reusing the input reference objects.
When the input is a WTCollection and 'allowOrigCopyInputs' is false,
the output will be a WTValuedMap.
Supported API: false
getWorkingCopyToOriginalCopyRefMap
in interface SandboxService
wtColl
- accepts a Collection of WTReferences or a WTCollectionallowOrigCopyInputs
- whether method should navigate from original copies in the inputs as well
WTException
public Versioned getWorkingCopyOf(Versioned version) throws WTException
See getOriginalCopyToWorkingCopyRefMap() methods for multi-object
equivalents of this method.
Supported API: false
getWorkingCopyOf
in interface SandboxService
version
- sandbox version object
WTException
public Map getOriginalCopyToWorkingCopyRefMap(Collection wtColl) throws WTException
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while reusing the input reference objects.
When the input Collection is a WTCollection, the output will be a
WTValuedMap.
Supported API: false
getOriginalCopyToWorkingCopyRefMap
in interface SandboxService
wtColl
- accepts a Collection of WTReferences or a WTCollection
WTException
public Map getOriginalCopyToWorkingCopyRefMap(Collection wtColl, boolean allowWorkingCopyInputs) throws WTException
This method can optionally navigate from sandbox working copies as well as original copies in its inputs (and thus including the correspoding working/original copy pair in the results), but in either case the returned map is always strictly from working copies to originals.
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while resuing the input reference objects.
When the input is a WTCollection and 'allowWorkingCopyInputs' is
false, the output will be a WTValuedMap.
Supported API: false
getOriginalCopyToWorkingCopyRefMap
in interface SandboxService
wtColl
- accepts a Collection of WTReferences or a WTCollectionallowWorkingCopyInputs
- whether method should navigate from working copies in the inputs as well
WTException
public Versioned getSandboxCopyOf(Versioned version) throws WTException
See getCheckedInCopyToSandboxCopyRefMap() for a multi-object equivalent
to this method.
Supported API: false
getSandboxCopyOf
in interface SandboxService
version
- sandbox version object
WTException
public Map getCheckedInCopyToSandboxCopyRefMap(Collection wtCollOfCheckedinCopies) throws WTException
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while reusing the input reference objects.
When the input Collection is a WTCollection, the output will be a
WTValuedMap.
Supported API: false
getCheckedInCopyToSandboxCopyRefMap
in interface SandboxService
wtCollOfCheckedinCopies
- accepts a Collection of WTReferences or a WTCollection
WTException
public Versioned getCheckedinCopyOf(Versioned version) throws WTException
See getSandboxCopyToCheckedInCopyRefMap() for a multi-object equivalent
to this method.
Supported API: false
getCheckedinCopyOf
in interface SandboxService
version
- sandbox version object
WTException
public Map getSandboxCopyToCheckedInCopyRefMap(Collection wtCollOfSandboxCopies) throws WTException
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while reusing the input reference objects.
When the input Collection is a WTCollection, the output will be a
WTValuedMap.
Supported API: false
getSandboxCopyToCheckedInCopyRefMap
in interface SandboxService
wtCollOfSandboxCopies
- accepts a Collection of WTReferences or a WTCollection
WTException
public SandboxBaseline getSandboxBaseline(WTContainerRef sandboxContainer) throws WTException
Note that a given sandbox container may not have an associated baseline and thus the result may be null. Also, note that any additions to the baseline should be made via addToSandboxBaseline() rather than by using the result of this method in a normal baseline addition operation.
See getSandboxToBaselineRefMap() for a multi-object equivalent of
this routine.
Supported API: false
getSandboxBaseline
in interface SandboxService
sandboxContainer
- reference to sandbox container
WTException
public WTValuedMap getSandboxToBaselineRefMap(Collection wtCollOfSandboxRefs, boolean inflateBaselineRefs) throws WTException
getSandboxToBaselineRefMap
in interface SandboxService
wtCollOfSandboxRefs
- accepts a Collection of WTReferences or a WTCollectioninflateBaselineRefs
- whether the resulting sandbox baseline references should be inflated or not
WTException
public Baselineable getSandboxBaselineIteration(Baselineable baselineable, WTContainerRef containerRef) throws WTException
The sandbox baseline associated to the passed in containerRef is consulted to determine which iteration of the passed in object is in the baseline. If an iteration is found in the baseline it is returned, otherwise the latest iteration of the object is returned.
See getMapToSandboxBaselineIterations() for a multi-object equivalent
to this method.
Supported API: false
getSandboxBaselineIteration
in interface SandboxService
baselineable
- The object for which the sandbox baseline iteration is desired to be found.containerRef
- reference to sandbox container
WTException
public Map getMapToSandboxBaselineIterations(Collection wtCollOfBaselineables, WTContainerRef containerRef, boolean restrictToSameBranch) throws WTException
In general, the actual result of this method will be a WTKeyedMap
or WTValuedMap where possible while reusing the input reference objects.
When the input Collection is a WTCollection, the output will be a
WTValuedMap.
Supported API: false
getMapToSandboxBaselineIterations
in interface SandboxService
wtCollOfBaselineables
- accepts a Collection of WTReferences or a WTCollectioncontainerRef
- reference to sandbox containerrestrictToSameBranch
- when true only iterations from the same branch as the inputs will be returned
WTException
public WTSet getWorkingCopies(WTPrincipalReference principal, boolean includePersonalCheckouts) throws WTException
getWorkingCopies
in interface SandboxService
principal
- individual in questionincludePersonalCheckouts
- whether sandbox working copies that are also checked out to the same individual via WIP should be included in the results
WTException
public Map getRefreshCandidates(WTContainerRef sandboxRef, EPMDocConfigSpec docConfigSpec, WTPartConfigSpec partConfigSpec, boolean isDocCentric) throws WTException
Returns Map of ObjectReference of shared Iteration in Sandbox as key and new iteration as value.
This method works in two modes, docCentric and partCentric. In docCentric mode, EPMDocuments are refreshed first and latest compatible WTParts are added to refresh Map. Then for any left over WTParts (that are not associated with any EPMDocuments), WTParts are refreshed and added to refresh Map.
In partCentric mode, WTParts are refreshed first and latest compatible EPMDocuments are added to refresh Map. Then for any leftover EPMDocuments (that are not associated with any WTParts), WTParts are refreshed and added to refresh Map.
Supported API: false
getRefreshCandidates
in interface SandboxService
sandboxRef
- reference to sandbox containerdocConfigSpec
- EPM document config specpartConfigSpec
- WTPart config specisDocCentric
- whether navigation should be document or part centric
WTException
public void checkout(WTCollection wtOrigCopiesSet, WTContainerRef targetContainerRef, Folder targetFolder, String note) throws WTException, WTPropertyVetoException, SandboxValidationException
checkout
in interface SandboxService
wtOrigCopiesSet
- a collection of objects to be checked outtargetContainerRef
- a reference to the container that the versionRefSet will be checked out totargetFolder
- the target folder within the reference container to check out tonote
- the note/comment to be provided on checkout
WTException
WTPropertyVetoException
SandboxValidationException
public Map checkout(WTCollection wtOrigCopiesSet, WTContainerRef targetContainerRef, Folder targetFolder, String note, boolean returnCheckedoutVersions) throws WTException, WTPropertyVetoException, SandboxValidationException
This version of this routine can return a map containing newly checked
out and original versions upon request.
Supported API: false
checkout
in interface SandboxService
wtOrigCopiesSet
- a collection of objects to be checked outtargetContainerRef
- a reference to the container that the versionRefSet will be checked out totargetFolder
- the target folder within the reference container to check out tonote
- the note/comment to be provided on checkoutreturnCheckedoutVersions
- whether the routine should return a map with keys of WTReferences to original enterprise versions and values of WTReferences to newly checked-out versions or null (for sake of reduced data transfer between processes)
WTException
WTPropertyVetoException
SandboxValidationException
public void undoCheckout(WTCollection inputRefs) throws WTException, WTPropertyVetoException, SandboxValidationException
undoCheckout
in interface SandboxService
inputRefs
- collection of objects to undo the sandbox check out of
WTException
WTPropertyVetoException
SandboxValidationException
public Set undoCheckout(WTCollection inputRefs, boolean returnOriginalCopies) throws WTException, WTPropertyVetoException, SandboxValidationException
This method can return a set of references to the resulting original
copies on request.
Supported API: false
undoCheckout
in interface SandboxService
inputRefs
- collection of objects to undo the sandbox check out ofreturnOriginalCopies
- whether to return a set of WTReferences to the original copies or null (to reduce remote data marshalling)
WTException
WTPropertyVetoException
SandboxValidationException
public void preCheckinValidate(Map versionRefToInitialCheckinDataMap) throws WTException, CheckinUniquenessException
preCheckinValidate
in interface SandboxService
versionRefToInitialCheckinDataMap
- a Map (or WTKeyedMap) whose keys are WTReferences to versions to be checked in and whose values are InitialCheckinData objects, for objects created in the sandbox and being newly exposed to the enterprise, or null, for objects being merged back to an existing enterprise version
WTException
CheckinUniquenessException
public void preCheckinValidate(Map versionRefToInitialCheckinDataMap, InitialCheckinDataApplicator applicator) throws WTException, CheckinUniquenessException
preCheckinValidate
in interface SandboxService
versionRefToInitialCheckinDataMap
- a Map (or WTKeyedMap) whose keys are WTReferences to versions to be checked in and whose values are InitialCheckinData objects, for objects created in the sandbox and being newly exposed to the enterprise, or null, for objects being merged back to an existing enterprise versionapplicator
- applicator object for InitialCheckinData instances
WTException
CheckinUniquenessException
public void checkin(WTKeyedMap inputRefToInitialCheckinDataMap, String note) throws WTException, WTPropertyVetoException, SandboxValidationException
checkin
in interface SandboxService
inputRefToInitialCheckinDataMap
- a map whose keys are objects to be checked in and whose values are InitialCheckinData objects, for objects created in the sandbox and being newly exposed to the enterprise, or null, for objects being merged back to an existing enterprise versionnote
- the note/comment to be provided on all new iterations created
WTException
WTPropertyVetoException
SandboxValidationException
public Map checkin(WTKeyedMap inputRefToInitialCheckinDataMap, String note, InitialCheckinDataApplicator applicator, boolean returnCheckedinVersions) throws WTException, WTPropertyVetoException, SandboxValidationException
This version of this routine allows specification of a custom InitialCheckinData
applicator instance and can return a map containing newly checked
in and original versions upon request.
Supported API: false
checkin
in interface SandboxService
inputRefToInitialCheckinDataMap
- a map whose keys are objects to be checked in and whose values are InitialCheckinData objects, for objects created in the sandbox and being newly exposed to the enterprise, or null, for objects being merged back to an existing enterprise versionnote
- the note/comment to be provided on all new iterations createdapplicator
- an instance of a sub-class of IntiialCheckinDataApplicator or null; intended to allow custom application of InitialCheckinData including specification of handling of custom subclasses thereof; pass null to obtain default handling of InitialCheckinDatareturnCheckedinVersions
- whether the routine should return a map with keys of WTReferences to original sandbox versions and values of WTReferences to newly checked-in versions or null (for sake of reduced data transfer between processes)
WTException
WTPropertyVetoException
SandboxValidationException
public SandboxBaseline addToSandboxBaseline(WTCollection wtCollOfBaselineables, WTContainerRef sandboxContainer) throws WTException, SandboxValidationException
Note that any iterations passed for which another iteration from the same master is a latest, non-terminal sandbox working iteration will be silently ignored as such iterations should never be added to the sandbox baseline.
Same as calling other version of addToSandboxBaseline() and passing
a value of 'true' for the last, i.e. 'replaceEntriesFromSameMasters',
argument.
Supported API: false
addToSandboxBaseline
in interface SandboxService
wtCollOfBaselineables
- collection of baselinable objects to be added to the specified sandbox container's baselinesandboxContainer
- reference to sandbox container
WTException
SandboxValidationException
public SandboxBaseline addToSandboxBaseline(WTCollection wtCollOfBaselineables, WTContainerRef sandboxContainer, boolean replaceEntriesFromSameMasters) throws WTException, SandboxValidationException
Note that any iterations passed for which another iteration from the
same master is a latest, non-terminal sandbox working iteration will
be silently ignored as such iterations should never be added to the
sandbox baseline.
Supported API: false
addToSandboxBaseline
in interface SandboxService
wtCollOfBaselineables
- collection of baselinable objects to be added to the specified sandbox container's baselinesandboxContainer
- reference to sandbox containerreplaceEntriesFromSameMasters
- whether entries already in the baseline should be replaced when 'baselineables' contains other iterations from masters with iterations already in 'sandboxContainer's' baseline; if 'false', such entries will be ignored
WTException
SandboxValidationException
public void removeObjects(WTCollection objectsToRemove) throws WTException, WTPropertyVetoException
removeObjects
in interface SandboxService
objectsToRemove
- set of objects to remove from sandbox
WTException
WTPropertyVetoException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |