|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.occurrence.StandardOccurrenceService
This implementation of OccurrenceService
implements the service
API, send OccurrenceEvent
s and adds listeners in performStartupProcess()
.
Use the newStandardOccurrenceService
static factory method(s),
not the StandardOccurrenceService
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
Field Summary | |
private static String |
CLASSNAME
|
static String |
COPY_METHOD_CONTEXT_KEY
|
private static String |
MODIFY_OCCURRENCE_DATA_KEY
|
private static String |
OCCURRENCE_CACHE
|
private static String |
RESOURCE
|
private static String |
SAVE_OCCURRENCE_KEY
|
static String |
SKIP_OCCURRENCE_VALIDATION_KEY
|
private static boolean |
VERBOSE
|
Fields inherited from class wt.services.StandardManager |
|
Fields inherited from interface wt.services.Manager |
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE |
Constructor Summary | |
StandardOccurrenceService()
|
Method Summary | |
Vector |
addMissingUsesOccurrenceData(UsesOccurrence occurrence,
Vector occurrenceData,
Vector occurrenceDataToDelete)
Deprecated. |
WTKeyedMap |
addMissingUsesOccurrenceData(WTKeyedMap occDataMap,
WTKeyedMap occDataToDeleteMap)
|
protected void |
copyCombinedPathOccurrenceData(PathOccurrenceContext context)
Deprecated. |
protected void |
copyPathOccurrenceData(PathOccurrenceContext context)
Deprecated. |
protected Vector |
copyUsesOccurrenceData(UsesOccurrence occurrence)
Deprecated. |
protected void |
copyUsesOccurrences(OccurrenceableLink originalLink,
OccurrenceableLink newLink)
Deprecated. |
CombinedPathOccurrenceData |
deleteCombinedPathOccurrenceData(CombinedPathOccurrenceData combinedPathOccurrenceData)
This method should always be used to delete a CombinedPathOccurrenceData . |
protected void |
deleteOrphanedOccurrenceData(UsesOccurrence occurrence)
Deletes UsesOccurrenceData objects that have been orphaned;
this method should only be called internally when the given UsesOccurrence is about to be deleted and that UsesOccurrence
isDataUnique(wt.occurrence.UsesOccurrence) . |
PathOccurrenceData |
deletePathOccurrenceData(PathOccurrenceData pathOccurrenceData)
This method should always be used to delete a PathOccurrenceData . |
protected CombinedPathOccurrenceData |
duplicate(CombinedPathOccurrenceData occData)
|
protected Occurrence |
duplicate(Occurrence occ)
|
protected OccurrenceData |
duplicate(OccurrenceData occData)
|
protected PathOccurrence |
duplicate(PathOccurrence occ)
|
protected PathOccurrenceData |
duplicate(PathOccurrenceData occData)
|
protected UsesOccurrence |
duplicate(UsesOccurrence occ)
|
protected UsesOccurrenceData |
duplicate(UsesOccurrenceData occData)
|
protected void |
ensureEachLinkIsSeperateObject(Persistable[][][] usages)
Makes sure each OccurrenceableLink in the usages array is a unique object. |
CombinedPathOccurrence |
getCombinedPathOccurrence(PathOccurrence parentOccurrence,
PathParentableOccurrence childOccurrence)
Returns a CombinedPathOccurrence with the given parent PathOccurrence and child PathParentableOccurrence . |
QueryResult |
getCombinedPathOccurrenceData(CombinedPathOccurrence occurrence,
PathOccurrenceContext context,
Class target)
Returns an array of CombinedPathOccurrenceData objects of
the given Class that are associated with the given CombinedPathOccurrence and PathOccurrenceContext . |
QueryResult |
getCombinedPathOccurrenceData(CombinedPathOccurrence occurrence,
PathOccurrenceContext context,
Vector targets)
Returns an array of CombinedPathOccurrenceData objects of
any of the Classes in the targets Vector
associated with the given CombinedPathOccurrence and PathOccurrenceContext . |
QueryResult |
getCombinedPathOccurrenceData(PathOccurrenceContext context)
Returns an array of CombinedPathOccurrenceData objects associated
with the given PathOccurrenceContext . |
QueryResult |
getCombinedPathOccurrenceDataForDelete(CombinedPathOccurrence occurrence)
|
QueryResult |
getCombinedPathOccurrences(PathOccurrenceMasterContext context)
Returns a QueryResult of CombinedPathOccurrence s
having the given context. |
QueryResult |
getCombinedPathOccurrencesForChild(PathParentableOccurrence childPathOccurrence)
Returns a QueryResult of CombinedPathOccurrence s
where the given PathOccurrence plays the 'child' role. |
QueryResult |
getCombinedPathOccurrencesForParent(PathOccurrence parentPathOccurrence)
Returns a QueryResult of CombinedPathOccurrence s
where the given PathOccurrence plays the 'parent' role. |
String |
getConceptualClassname()
Deprecated. |
protected WTSet |
getNonUniqueDataSubSet(WTSet occs)
Takes a WTSet of UsesOccurrence objects and returns a subset that are not unique in terms of the Occurrence#dataIdentifier . |
QueryResult |
getOccurrences(Vector occurrenceableLinks)
Returns a QueryResult of arrays where each array has
one of the given OccurrenceableLink s in position 0, an associated
UsesOccurrence in position 1 and an associated PathOccurrence
(that has no subPath) in position 2; the PathOccurrence
could be null. |
QueryResult |
getOccurrences(Vector occurrenceableLinks,
PathOccurrence subPathOccurrence)
Returns a QueryResult of arrays where each array has
one of the given OccurrenceableLink in position 0, an associated
UsesOccurrence in position 1 and an associated PathOccurrence
(having the given subPath) in position 2; the PathOccurrence
could be null. |
static long[] |
getOids(Vector v)
|
protected OccurrenceableLink |
getPathDataPopulatedOccurrenceableLink(OccurrenceableLink link,
PathOccurrenceContext context,
Class target)
Similar to getPathOccurrenceData(PathOccurrence,PathOccurrenceContext,java.lang.Class) except
this method returns the updated OccurrenceableLink with the PathOccurrenceData and returns it. |
QueryResult |
getPathOccurrenceData(PathOccurrenceContext context)
Returns an array of PathOccurrenceData objects associated
with the given PathOccurrenceContext . |
QueryResult |
getPathOccurrenceData(PathOccurrence occurrence,
PathOccurrenceContext context,
Class target)
Returns an array of PathOccurrenceData objects associated
with the given PathOccurrence and PathOccurrenceContext . |
QueryResult |
getPathOccurrenceData(PathOccurrence occurrence,
PathOccurrenceContext context,
Vector targets)
Returns an array of PathOccurrenceData objects associated
with the given PathOccurrence and PathOccurrenceContext . |
QueryResult |
getPathOccurrenceDataForDelete(PathOccurrence occurrence)
|
Persistable[][][] |
getPathOccurrenceDataPopulatedUsages(Persistable[][][] usages,
PathOccurrenceContext occurrenceContext,
Class occurrenceDataClass)
Updates the PathOccurrence s in the usages array
by adding PathOccurrenceData of the specified type for the
specified PathOccurrenceContext . |
Persistable[][][] |
getPathOccurrencePopulatedUsages(Persistable[][][] usages,
List pathOccurrences)
Updates the OccurrenceableLink s in the usages
array by setting their usesOccurrenceVector with UsesOccurrence s and setting PathOccurrence s on the UsesOccurrence s. |
QueryResult |
getPathOccurrences(PathOccurrenceMasterContext context)
Returns a QueryResult of PathOccurrence s having
the given context. |
QueryResult |
getPathOccurrences(UsesOccurrence uses)
Returns a QueryResult PathOccurrence s related
to the given UsesOccurrence . |
Vector |
getPopulatedOccurrenceableLinks(Vector occurrenceableLinks)
Returns a Vector of OccurrenceableLink s with
their usesOccurrenceVector populated with their UsesOccurrence s; note that the UsesOccurrence s also
have their pathOccurrence populated. |
Vector |
getPopulatedOccurrenceableLinks(Vector occurrenceableLinks,
PathOccurrence subPathOccurrence)
Returns a Vector of OccurrenceableLink s with
their usesOccurrenceVector populated with their UsesOccurrence s; note that the UsesOccurrence s also
have their pathOccurrence populated. |
QueryResult |
getSuperPathOccurrences(PathOccurrence subPath)
|
protected WTSet |
getUniqueDataSubSet(WTSet occs)
Takes a WTSet of UsesOccurrence objects and returns a subset that is unique in terms of the Occurrence#dataIdentifier . |
QueryResult |
getUsesOccurrenceData(UsesOccurrence occurrence)
Deprecated. |
QueryResult |
getUsesOccurrenceData(UsesOccurrence occurrence,
Vector classes)
Returns an array of UsesOccurrenceData objects of the given
classes and associated with the given UsesOccurrence object. |
WTKeyedMap |
getUsesOccurrenceData(WTCollection occs)
Takes a WTCollection of UsesOccurrence objects and returns a WTKeyedMap where the keys are the UsesOccurrences passed in and the values are WTCollections of the UsesOccurrenceData that correspond to the keys. |
QueryResult |
getUsesOccurrences(OccurrenceableLink link)
Returns a QueryResult of UsesOccurrence objects. |
QueryResult |
getUsesOccurrences(PathOccurrence path)
Returns the UsesOccurrence s associated with the given PathOccurrence . |
QueryResult |
getUsesOccurrences(UsesOccurrenceContext context)
Returns a QueryResult of UsesOccurrence objects
having the given context. |
QueryResult |
getUsesOccurrences(Vector occurrenceableLinks)
Returns a QueryResult of arrays where each array has
an OccurrenceableLink in position 0 and a UsesOccurrence
in position 1. |
WTKeyedMap |
getUsesOccurrences(WTCollection links)
Returns a WTKeyedMap where the keys are the input collection
of OccurrenceableLinks and the values are WTCollections of the corresponding
UsesOccurrence objects. |
QueryResult |
getUsesOccurrencesForDelete(OccurrenceableLink occurrenceableLink)
Deprecated. |
protected QueryResult |
getUsesOccurrencesForDelete(WTCollection occLinks)
|
protected boolean |
isDataUnique(UsesOccurrence occurrence)
Deprecated. |
protected boolean |
isUniqueOrDeleted(UsesOccurrence occurrence)
|
private Iterated |
iterateOccurrenceData(Iterated iteration)
Create a new iteration for an existing occurrence data instance. |
static StandardOccurrenceService |
newStandardOccurrenceService()
Default factory for the class. |
protected void |
performStartupProcess()
Provides several listeners. |
protected void |
processCleanupLinkEvent(KeyedEvent event)
Supported API: false |
protected void |
processCopyLinkEvent(KeyedEvent event)
Supported API: false |
protected void |
processNewIterationEvent(KeyedEvent event)
Supported API: false |
protected void |
processPreDeleteEvent(KeyedEvent event)
Supported API: false |
protected void |
processPreModifyEvent(KeyedEvent event)
Supported API: false |
protected void |
processPreStoreEvent(KeyedEvent event)
Supported API: false |
protected void |
propagateDeleteToCombinedPathOccurrenceData(CombinedPathOccurrence target)
|
protected void |
propagateDeleteToCombinedPathOccurrenceData(CombinedPathOccurrence deleteTarget,
CombinedPathOccurrenceDataLink deleteLink)
Deprecated. |
protected void |
propagateDeleteToCombinedPathOccurrenceData(PathOccurrenceContext target)
|
protected void |
propagateDeleteToCombinedPathOccurrenceData(PathOccurrenceContext target,
ContextCombinedPathOccurrenceData deleteLink)
Deprecated. |
protected void |
propagateDeleteToCombinedPathOccurrencesForChild(PathParentableOccurrence deleteTarget)
|
protected void |
propagateDeleteToCombinedPathOccurrencesForParent(PathOccurrence deleteTarget)
|
protected void |
propagateDeleteToPathOccurrenceData(PathOccurrence target)
|
protected void |
propagateDeleteToPathOccurrenceData(PathOccurrenceContext target)
|
protected void |
propagateDeleteToPathOccurrenceData(PathOccurrenceContext target,
ContextPathOccurrenceData deleteLink)
Deprecated. |
protected void |
propagateDeleteToPathOccurrenceData(PathOccurrence deleteTarget,
PathOccurrenceDataLink deleteLink)
Deprecated. |
protected void |
propagateDeleteToPathOccurrences(PathOccurrenceMasterContext deleteTarget)
|
protected void |
propagateDeleteToPathOccurrences(UsesOccurrence deleteTarget)
|
protected void |
propagateDeleteToSuperPathOccurrences(PathOccurrence deleteTarget)
|
protected void |
propagateDeleteToUsesOccurrence(OccurrenceableLink deleteTarget,
LinkUsesOccurrence deleteLink)
Deprecated. |
protected void |
propagateDeleteToUsesOccurrenceData(UsesOccurrence deleteTarget)
Deprecated. |
protected void |
propagateDeleteToUsesOccurrences(OccurrenceableLink deleteTarget)
Deprecated. |
protected void |
propagateDeleteToUsesOccurrences(WTCollection occLinks)
|
void |
registerEvents(ManagerService managerService)
Register events with the passed ManagerService. |
CombinedPathOccurrenceData |
saveCombinedPathOccurrenceData(CombinedPathOccurrenceData combinedPathOccurrenceData)
This method should always be used to insert or store a CombinedPathOccurrenceData . |
private Iterated |
saveIteratedOccurrenceData(Iterated iteration)
Save an iterated occurrence data instance. |
PathOccurrenceData |
savePathOccurrenceData(PathOccurrenceData pathOccurrenceData)
This method should always be used to insert or store a . |
QueryResult |
saveUsesOccurrenceAndData(UsesOccurrence occurrence,
Vector occurrenceData)
Deprecated. |
QueryResult |
saveUsesOccurrenceAndData(UsesOccurrence occurrence,
Vector occurrenceData,
Vector occurrenceDataToDelete)
Deprecated. |
WTCollection |
saveUsesOccurrenceAndData(WTKeyedMap occDataMap)
This method should always be used to insert or store an Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way. |
WTCollection |
saveUsesOccurrenceAndData(WTKeyedMap occDataMap,
WTKeyedMap occDataToDeleteMap)
This method should always be used to insert or store an Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way. |
void |
setSkipValidation(boolean validationShouldBeSkipped)
This API is intended for use by Windchill Visualization Services when calling either of the savePathOccurrenceAndData so that modification
validation on the UsesOccurrence will not be done in the case
where Visualization is only copying an occurrence from an EPM document
to a part (it isn't really adding new information, only copying it). |
protected QueryResult |
simpleSaveUsesOccurrenceAndData(UsesOccurrence occurrence,
Vector occurrenceData)
Deprecated. |
protected WTCollection |
simpleSaveUsesOccurrenceAndData(WTKeyedMap map)
This method should always be used to insert or store an Occurrence
and/or OccurrenceData objects since they need special identifiers
that must be obtained in a special way. |
protected void |
validateCombinedPathOccurrenceCreation(CombinedPathOccurrence combinedPathOccurrence)
Verify that the parent and child PathOccurrence s have different PathOccurrenceMasterContext
and that the parent is a terminal path. |
protected void |
validateOccurrenceableLinkModify(OccurrenceableLink modifiedLink)
Deprecated. |
protected void |
validateOccurrenceableLinkModify(WTCollection modifiedLinks)
Supported API: false |
protected void |
validateOccurrenceDataModifiability(OccurrenceData target,
int operation)
Supported API: false |
protected void |
validateOccurrenceModifiability(Occurrence target,
int operation)
Supported API: false |
protected void |
validatePathOccurrenceCreation(PathOccurrence pathOccurrence)
Verify that the given PathOccurrence and its subPath
have the same PathOccurrenceMasterContext and that the path
must be a root in order to have a null subPath and that
a non-null subPath cannot be a terminal path. |
protected void |
validateUsesOccurrenceCreation(UsesOccurrence usesOccurrence)
Supported API: false |
protected void |
verifySaveUsesOccurrenceAllowed(Occurrence occurrence)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String SAVE_OCCURRENCE_KEY
private static final String MODIFY_OCCURRENCE_DATA_KEY
public static final String SKIP_OCCURRENCE_VALIDATION_KEY
private static final String OCCURRENCE_CACHE
private static final boolean VERBOSE
public static final String COPY_METHOD_CONTEXT_KEY
Constructor Detail |
public StandardOccurrenceService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void deleteOrphanedOccurrenceData(UsesOccurrence occurrence) throws WTException
UsesOccurrenceData
objects that have been orphaned;
this method should only be called internally when the given UsesOccurrence
is about to be deleted and that UsesOccurrence
isDataUnique(wt.occurrence.UsesOccurrence)
.
occurrence
-
WTException
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
protected void validateCombinedPathOccurrenceCreation(CombinedPathOccurrence combinedPathOccurrence) throws WTException, OccurrenceException
parent
and child
PathOccurrence
s have different PathOccurrenceMasterContext
and that the parent
is a terminal path.
combinedPathOccurrence
-
WTException
OccurrenceException
protected void validateOccurrenceableLinkModify(WTCollection modifiedLinks) throws WTException
modifiedLinks
-
WTException
protected void validateOccurrenceDataModifiability(OccurrenceData target, int operation) throws WTException, OccurrenceException
target
- operation
-
WTException
OccurrenceException
protected void validateOccurrenceModifiability(Occurrence target, int operation) throws WTException, OccurrenceException
target
- operation
-
WTException
OccurrenceException
protected void validatePathOccurrenceCreation(PathOccurrence pathOccurrence) throws WTException, OccurrenceException
PathOccurrence
and its subPath
have the same PathOccurrenceMasterContext
and that the path
must be a root in order to have a null subPath
and that
a non-null subPath
cannot be a terminal path.
pathOccurrence
-
WTException
OccurrenceException
protected void validateUsesOccurrenceCreation(UsesOccurrence usesOccurrence) throws WTException, OccurrenceException
usesOccurrence
-
WTException
OccurrenceException
public void registerEvents(ManagerService managerService)
registerEvents
in interface Manager
registerEvents
in class StandardManager
managerService
- the ManagerService with which to register events.protected void processCopyLinkEvent(KeyedEvent event) throws WTException
event
-
WTException
protected void processCleanupLinkEvent(KeyedEvent event) throws WTException
event
-
WTException
protected void processNewIterationEvent(KeyedEvent event) throws WTException
event
-
WTException
protected void processPreDeleteEvent(KeyedEvent event) throws WTException
event
-
WTException
protected void processPreModifyEvent(KeyedEvent event) throws WTException
event
-
WTException
protected void processPreStoreEvent(KeyedEvent event) throws WTException
event
-
WTException
public static StandardOccurrenceService newStandardOccurrenceService() throws WTException
WTException
public CombinedPathOccurrenceData deleteCombinedPathOccurrenceData(CombinedPathOccurrenceData combinedPathOccurrenceData) throws WTException
CombinedPathOccurrenceData
.
deleteCombinedPathOccurrenceData
in interface OccurrenceService
combinedPathOccurrenceData
-
WTException
public PathOccurrenceData deletePathOccurrenceData(PathOccurrenceData pathOccurrenceData) throws WTException
PathOccurrenceData
.
deletePathOccurrenceData
in interface OccurrenceService
pathOccurrenceData
-
WTException
public QueryResult getCombinedPathOccurrenceData(CombinedPathOccurrence occurrence, PathOccurrenceContext context, Class target) throws WTException
CombinedPathOccurrenceData
objects of
the given Class
that are associated with the given CombinedPathOccurrence
and PathOccurrenceContext
.
getCombinedPathOccurrenceData
in interface OccurrenceService
occurrence
- context
- target
-
WTException
public QueryResult getCombinedPathOccurrenceData(CombinedPathOccurrence occurrence, PathOccurrenceContext context, Vector targets) throws WTException
CombinedPathOccurrenceData
objects of
any of the Classes
in the targets Vector
associated with the given CombinedPathOccurrence
and PathOccurrenceContext
.
getCombinedPathOccurrenceData
in interface OccurrenceService
occurrence
- context
- targets
-
WTException
public QueryResult getCombinedPathOccurrenceData(PathOccurrenceContext context) throws WTException
CombinedPathOccurrenceData
objects associated
with the given PathOccurrenceContext
.
getCombinedPathOccurrenceData
in interface OccurrenceService
context
-
WTException
public CombinedPathOccurrence getCombinedPathOccurrence(PathOccurrence parentOccurrence, PathParentableOccurrence childOccurrence) throws WTException
CombinedPathOccurrence
with the given parent PathOccurrence
and child PathParentableOccurrence
.
getCombinedPathOccurrence
in interface OccurrenceService
parentOccurrence
- childOccurrence
- This Vector
of OccurrenceableLink
s should be used to find the associated UsesOccurrence
objects.
WTException
public QueryResult getCombinedPathOccurrences(PathOccurrenceMasterContext context) throws WTException
QueryResult
of CombinedPathOccurrence
s
having the given context.
getCombinedPathOccurrences
in interface OccurrenceService
context
- This Vector
of OccurrenceableLink
s should be used to find the associated UsesOccurrence
objects.
WTException
public QueryResult getCombinedPathOccurrencesForChild(PathParentableOccurrence childPathOccurrence) throws WTException
QueryResult
of CombinedPathOccurrence
s
where the given PathOccurrence
plays the 'child' role.
getCombinedPathOccurrencesForChild
in interface OccurrenceService
childPathOccurrence
- This Vector
of OccurrenceableLink
s should be used to find the associated UsesOccurrence
objects.
WTException
public QueryResult getCombinedPathOccurrencesForParent(PathOccurrence parentPathOccurrence) throws WTException
QueryResult
of CombinedPathOccurrence
s
where the given PathOccurrence
plays the 'parent' role.
getCombinedPathOccurrencesForParent
in interface OccurrenceService
parentPathOccurrence
- This Vector
of OccurrenceableLink
s should be used to find the associated UsesOccurrence
objects.
WTException
public QueryResult getOccurrences(Vector occurrenceableLinks) throws WTException
QueryResult
of arrays where each array has
one of the given OccurrenceableLink
s in position 0, an associated
UsesOccurrence
in position 1 and an associated PathOccurrence
(that has no subPath) in position 2; the PathOccurrence
could be null.
If there is no UsesOccurrence
, then no QueryResult
entry is returned.
Supported API: true
getOccurrences
in interface OccurrenceService
occurrenceableLinks
- This Vector
of OccurrenceableLink
s should be used to find the associated UsesOccurrence
objects.
WTException
public QueryResult getOccurrences(Vector occurrenceableLinks, PathOccurrence subPathOccurrence) throws WTException
QueryResult
of arrays where each array has
one of the given OccurrenceableLink
in position 0, an associated
UsesOccurrence
in position 1 and an associated PathOccurrence
(having the given subPath) in position 2; the PathOccurrence
could be null.
If there is no UsesOccurrence
, then no QueryResult
entry is returned.
Supported API: true
getOccurrences
in interface OccurrenceService
occurrenceableLinks
- This Vector
of OccurrenceableLink
s should be used to find the associated UsesOccurrence
objects.subPathOccurrence
- This Vector
of PathOccurrence
s should be used to find the associated PathOccurrence
objects which play the superPath
role. In other words we want to find the PathOccurrence
objects that are one UsesOccurrence
longer than the PathOccurrence
objects contained in this Vector
.
WTException
public QueryResult getPathOccurrenceData(PathOccurrence occurrence, PathOccurrenceContext context, Class target) throws WTException
PathOccurrenceData
objects associated
with the given PathOccurrence
and PathOccurrenceContext
.
getPathOccurrenceData
in interface OccurrenceService
occurrence
- context
- target
-
WTException
public QueryResult getPathOccurrenceData(PathOccurrence occurrence, PathOccurrenceContext context, Vector targets) throws WTException
PathOccurrenceData
objects associated
with the given PathOccurrence
and PathOccurrenceContext
.
getPathOccurrenceData
in interface OccurrenceService
occurrence
- context
- targets
-
WTException
public QueryResult getPathOccurrenceData(PathOccurrenceContext context) throws WTException
PathOccurrenceData
objects associated
with the given PathOccurrenceContext
.
getPathOccurrenceData
in interface OccurrenceService
context
-
WTException
public Persistable[][][] getPathOccurrencePopulatedUsages(Persistable[][][] usages, List pathOccurrences) throws WTException
OccurrenceableLink
s in the usages
array by setting their usesOccurrenceVector
with UsesOccurrence
s and setting PathOccurrence
s on the UsesOccurrence
s.
getPathOccurrencePopulatedUsages
in interface OccurrenceService
usages
- The three-dimensional array of Persistable returned from navigating many used-by
objects at once.pathOccurrences
- List of path PathOccurrence
s that match the order of the first dimension of the usages
array.
usages
array passed in, with UsesOccurrence
s
and PathOccurrence
s populated.
WTException
public Persistable[][][] getPathOccurrenceDataPopulatedUsages(Persistable[][][] usages, PathOccurrenceContext occurrenceContext, Class occurrenceDataClass) throws WTException
PathOccurrence
s in the usages
array
by adding PathOccurrenceData
of the specified type for the
specified PathOccurrenceContext
.
getPathOccurrenceDataPopulatedUsages
in interface OccurrenceService
usages
- The three-dimensional array of Persistable returned from navigating many used-by
objects at once.occurrenceContext
- The context of the path occurrence data to add to the PathOccurrence
s.occurrenceDataClass
- The class PathOccurrenceData
or one of its sub-types specifying the type of path occurrence data to fetch.
usages
array passed in, with the path occurrence
data added.
WTException
public QueryResult getPathOccurrences(UsesOccurrence uses) throws WTException
QueryResult
PathOccurrence
s related
to the given UsesOccurrence
.
getPathOccurrences
in interface OccurrenceService
uses
- This Vector
of PathOccurrence
s should be used to find the associated PathOccurrence
objects which play the superPath
role. In other words we want to find the PathOccurrence
objects that are one UsesOccurrence
longer than the PathOccurrence
objects contained in this Vector
.
WTException
public QueryResult getPathOccurrences(PathOccurrenceMasterContext context) throws WTException
QueryResult
of PathOccurrence
s having
the given context.
getPathOccurrences
in interface OccurrenceService
context
- This Vector
of PathOccurrence
s should be used to find the associated PathOccurrence
objects which play the superPath
role. In other words we want to find the PathOccurrence
objects that are one UsesOccurrence
longer than the PathOccurrence
objects contained in this Vector
.
WTException
public Vector getPopulatedOccurrenceableLinks(Vector occurrenceableLinks, PathOccurrence subPathOccurrence) throws WTException
Vector
of OccurrenceableLink
s with
their usesOccurrenceVector
populated with their UsesOccurrence
s; note that the UsesOccurrence
s also
have their pathOccurrence
populated.
getPopulatedOccurrenceableLinks
in interface OccurrenceService
occurrenceableLinks
- This Vector
of OccurrenceableLink
s should be used to find the associated UsesOccurrence
objects.subPathOccurrence
- This Vector
of PathOccurrence
s should be used to find the associated PathOccurrence
objects which play the superPath
role. In other words we want to find the PathOccurrence
objects that are one UsesOccurrence
longer than the PathOccurrence
objects contained in this Vector
.
WTException
public Vector getPopulatedOccurrenceableLinks(Vector occurrenceableLinks) throws WTException
Vector
of OccurrenceableLink
s with
their usesOccurrenceVector
populated with their UsesOccurrence
s; note that the UsesOccurrence
s also
have their pathOccurrence
populated.
getPopulatedOccurrenceableLinks
in interface OccurrenceService
occurrenceableLinks
- This Vector
of OccurrenceableLink
s should be used to find the associated UsesOccurrence
objects.
WTException
public QueryResult getUsesOccurrences(PathOccurrence path) throws OccurrenceException, WTException
UsesOccurrence
s associated with the given PathOccurrence
.
getUsesOccurrences
in interface OccurrenceService
path
-
OccurrenceException
WTException
public WTKeyedMap getUsesOccurrenceData(WTCollection occs) throws WTException
getUsesOccurrenceData
in interface OccurrenceService
occs
-
WTException
public QueryResult getUsesOccurrenceData(UsesOccurrence occurrence) throws WTException
UsesOccurrenceData
objects associated
with the given UsesOccurrence
object.
getUsesOccurrenceData
in interface OccurrenceService
occurrence
-
WTException
public QueryResult getUsesOccurrenceData(UsesOccurrence occurrence, Vector classes) throws WTException
UsesOccurrenceData
objects of the given
classes and associated with the given UsesOccurrence
object.
getUsesOccurrenceData
in interface OccurrenceService
occurrence
- classes
-
WTException
public QueryResult getUsesOccurrences(Vector occurrenceableLinks) throws WTException
QueryResult
of arrays where each array has
an OccurrenceableLink
in position 0 and a UsesOccurrence
in position 1.
If there is no UsesOccurrence
, then no QueryResult
entry is returned.
Supported API: true
getUsesOccurrences
in interface OccurrenceService
occurrenceableLinks
-
WTException
public QueryResult getUsesOccurrences(OccurrenceableLink link) throws WTException
QueryResult
of UsesOccurrence
objects.
getUsesOccurrences
in interface OccurrenceService
link
-
WTException
public QueryResult getUsesOccurrences(UsesOccurrenceContext context) throws WTException
QueryResult
of UsesOccurrence
objects
having the given context.
getUsesOccurrences
in interface OccurrenceService
context
-
WTException
public WTKeyedMap getUsesOccurrences(WTCollection links) throws WTException
WTKeyedMap
where the keys are the input collection
of OccurrenceableLinks and the values are WTCollections of the corresponding
UsesOccurrence
objects.
getUsesOccurrences
in interface OccurrenceService
links
-
WTException
protected WTSet getUniqueDataSubSet(WTSet occs) throws WTException
Occurrence#dataIdentifier
.
occs
-
WTException
protected WTSet getNonUniqueDataSubSet(WTSet occs) throws WTException
Occurrence#dataIdentifier
.
occs
-
WTException
public CombinedPathOccurrenceData saveCombinedPathOccurrenceData(CombinedPathOccurrenceData combinedPathOccurrenceData) throws WTException
CombinedPathOccurrenceData
.
saveCombinedPathOccurrenceData
in interface OccurrenceService
combinedPathOccurrenceData
-
WTException
public PathOccurrenceData savePathOccurrenceData(PathOccurrenceData pathOccurrenceData) throws WTException
savePathOccurrenceData
in interface OccurrenceService
pathOccurrenceData
-
WTException
public QueryResult saveUsesOccurrenceAndData(UsesOccurrence occurrence, Vector occurrenceData) throws WTException
Occurrence
and/or OccurrenceData
objects since they need special identifiers
that must be obtained in a special way.
Returns a QueryResult
of the Occurrence
and the
OccurrenceData
s that have been inserted or updated. Note
that some other OccurrenceData
s may have been updated,
too, but since the user of this method did not have them in their
list they will not be returned.
If the Occurrence
has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence
shares that occurrenceDataIdentifier
),
then save the OccurrenceData
associated to the occurrence
,
but otherwise, copy the Occurrence
to get one with a
new dataIdentifier
and copy all the associated OccurrenceData
objects and then save the occurrenceData
associated to
the newly copied Occurrence
.
Supported API: true
saveUsesOccurrenceAndData
in interface OccurrenceService
occurrence
- occurrenceData
-
WTException
public QueryResult saveUsesOccurrenceAndData(UsesOccurrence occurrence, Vector occurrenceData, Vector occurrenceDataToDelete) throws WTException
Occurrence
and/or OccurrenceData
objects since they need special identifiers
that must be obtained in a special way.
Returns a QueryResult
of the Occurrence
and the
OccurrenceData
s that have been inserted or updated. Note
that some other OccurrenceData
s may have been updated,
too, but since the user of this method did not have them in their
list they will not be returned.
If the Occurrence
has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence
shares that occurrenceDataIdentifier
),
then save the OccurrenceData
associated to the occurrence
,
but otherwise, copy the Occurrence
to get one with a
new dataIdentifier
and copy all the associated OccurrenceData
objects and then save the occurrenceData
associated to
the newly copied Occurrence
.
Supported API: true
saveUsesOccurrenceAndData
in interface OccurrenceService
occurrence
- occurrenceData
- occurrenceDataToDelete
-
WTException
public WTCollection saveUsesOccurrenceAndData(WTKeyedMap occDataMap) throws WTException
Occurrence
and/or OccurrenceData
objects since they need special identifiers
that must be obtained in a special way.
Takes a WTKeyedMap
where the keys are the UsesOccurrence
s
and the values are a WTCollection
of UsesOccurrenceData
that correspond to the key.
Returns a WTCollection
of the UsesOccurrence
and the UsesOccurrenceData
s that have been inserted or updated.
Note that some other UsesOccurrenceData
s may have been
updated, too, but since the user of this method did not have them
in their list they will not be returned.
If the Occurrence
has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence
shares that occurrenceDataIdentifier
),
then save the OccurrenceData
associated to the occurrence
,
but otherwise, copy the Occurrence
to get one with a
new dataIdentifier
and copy all the associated OccurrenceData
objects and then save the occurrenceData
associated to
the newly copied Occurrence
.
Supported API: true
saveUsesOccurrenceAndData
in interface OccurrenceService
occDataMap
-
WTException
public WTCollection saveUsesOccurrenceAndData(WTKeyedMap occDataMap, WTKeyedMap occDataToDeleteMap) throws WTException
Occurrence
and/or OccurrenceData
objects since they need special identifiers
that must be obtained in a special way.
Takes two WTKeyedMap
s where the keys are the UsesOccurrence
s
and the values are a WTCollection
of UsesOccurrenceData
that correspond to the key. The second map identifies the UsesOccurrenceData
to be deleted.
Returns a WTCollection
of the UsesOccurrence
and the UsesOccurrenceData
s that have been inserted or updated.
Note that some other UsesOccurrenceData
s may have been
updated, too, but since the user of this method did not have them
in their list they will not be returned.
If the Occurrence
has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence
shares that occurrenceDataIdentifier
),
then save the OccurrenceData
associated to the occurrence
,
but otherwise, copy the Occurrence
to get one with a
new dataIdentifier
and copy all the associated OccurrenceData
objects and then save the occurrenceData
associated to
the newly copied Occurrence
.
Supported API: true
saveUsesOccurrenceAndData
in interface OccurrenceService
occDataMap
- occDataToDeleteMap
-
WTException
public void setSkipValidation(boolean validationShouldBeSkipped) throws WTException
savePathOccurrenceAndData
so that modification
validation on the UsesOccurrence
will not be done in the case
where Visualization is only copying an occurrence from an EPM document
to a part (it isn't really adding new information, only copying it).
There should be one call to this method with an argument of true and
a second with an argument of false; in between any number of calls
to the save methods can be done.
Supported API: false
setSkipValidation
in interface OccurrenceService
validationShouldBeSkipped
-
WTException
protected WTCollection simpleSaveUsesOccurrenceAndData(WTKeyedMap map) throws WTException
Occurrence
and/or OccurrenceData
objects since they need special identifiers
that must be obtained in a special way.
Takes a WTKeyedMap
where the keys are the UsesOccurrence
s
and the values are a WTCollection
of UsesOccurrenceData
that correspond to the key.
Returns a WTCollection
of the UsesOccurrence
and the UsesOccurrenceData
s that have been inserted or updated.
Note that some other UsesOccurrenceData
s may have been
updated, too, but since the user of this method did not have them
in their list they will not be returned.
If the Occurrence
has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence
shares that occurrenceDataIdentifier
),
then save the OccurrenceData
associated to the occurrence
,
but otherwise, copy the Occurrence
to get one with a
new dataIdentifier
and copy all the associated OccurrenceData
objects and then save the occurrenceData
associated to
the newly copied Occurrence
.
Supported API: false
map
-
WTException
protected void ensureEachLinkIsSeperateObject(Persistable[][][] usages)
usesOccurrenceVector
containing different UsesOccurrence
s.
protected OccurrenceableLink getPathDataPopulatedOccurrenceableLink(OccurrenceableLink link, PathOccurrenceContext context, Class target) throws WTException
getPathOccurrenceData(PathOccurrence,PathOccurrenceContext,java.lang.Class)
except
this method returns the updated OccurrenceableLink
with the PathOccurrenceData
and returns it.
WTException
public static long[] getOids(Vector v)
protected Occurrence duplicate(Occurrence occ) throws WTException
WTException
protected UsesOccurrence duplicate(UsesOccurrence occ) throws WTException
WTException
protected PathOccurrence duplicate(PathOccurrence occ) throws WTException
WTException
protected OccurrenceData duplicate(OccurrenceData occData) throws WTException
WTException
protected UsesOccurrenceData duplicate(UsesOccurrenceData occData) throws WTException
WTException
protected PathOccurrenceData duplicate(PathOccurrenceData occData) throws WTException
WTException
protected CombinedPathOccurrenceData duplicate(CombinedPathOccurrenceData occData) throws WTException
WTException
protected void verifySaveUsesOccurrenceAllowed(Occurrence occurrence) throws WTException
WTException
protected void propagateDeleteToUsesOccurrences(WTCollection occLinks) throws WTException
WTException
protected void propagateDeleteToPathOccurrenceData(PathOccurrence target) throws WTException
WTException
protected void propagateDeleteToPathOccurrenceData(PathOccurrenceContext target) throws WTException
WTException
protected void propagateDeleteToCombinedPathOccurrenceData(PathOccurrenceContext target) throws WTException
WTException
protected void propagateDeleteToCombinedPathOccurrenceData(CombinedPathOccurrence target) throws WTException
WTException
protected void propagateDeleteToCombinedPathOccurrencesForParent(PathOccurrence deleteTarget) throws WTException
WTException
protected void propagateDeleteToCombinedPathOccurrencesForChild(PathParentableOccurrence deleteTarget) throws WTException
WTException
protected void propagateDeleteToPathOccurrences(UsesOccurrence deleteTarget) throws WTException
WTException
protected void propagateDeleteToPathOccurrences(PathOccurrenceMasterContext deleteTarget) throws WTException
WTException
protected void propagateDeleteToSuperPathOccurrences(PathOccurrence deleteTarget) throws WTException
WTException
protected boolean isUniqueOrDeleted(UsesOccurrence occurrence) throws WTException
WTException
public WTKeyedMap addMissingUsesOccurrenceData(WTKeyedMap occDataMap, WTKeyedMap occDataToDeleteMap) throws WTException
WTException
public QueryResult getPathOccurrenceDataForDelete(PathOccurrence occurrence) throws WTException
WTException
public QueryResult getCombinedPathOccurrenceDataForDelete(CombinedPathOccurrence occurrence) throws WTException
WTException
protected QueryResult getUsesOccurrencesForDelete(WTCollection occLinks) throws WTException
WTException
public QueryResult getSuperPathOccurrences(PathOccurrence subPath) throws WTException
WTException
private Iterated saveIteratedOccurrenceData(Iterated iteration) throws WTException
iteration
- the occurrence data instance containing the new state (of IBA values)
WTException
private Iterated iterateOccurrenceData(Iterated iteration) throws WTException
iteration
- the occurrence data instance for which we will create a
new iteration
WTException
protected void propagateDeleteToUsesOccurrences(OccurrenceableLink deleteTarget) throws WTException
WTException
public QueryResult getUsesOccurrencesForDelete(OccurrenceableLink occurrenceableLink) throws WTException
WTException
protected void copyUsesOccurrences(OccurrenceableLink originalLink, OccurrenceableLink newLink) throws WTException, PersistenceException
WTException
PersistenceException
protected void propagateDeleteToUsesOccurrenceData(UsesOccurrence deleteTarget) throws WTException
WTException
protected void copyCombinedPathOccurrenceData(PathOccurrenceContext context) throws WTException
PathOccurrenceData
objects associated
with the given PathOccurrenceContext
; this method should only
be called internally when a new version of the PathOccurrenceContext
has been created.
context
-
WTException
protected void copyPathOccurrenceData(PathOccurrenceContext context) throws WTException
PathOccurrenceData
objects associated
with the given PathOccurrenceContext
; this method should only
be called internally when a new version of the PathOccurrenceContext
has been created.
context
-
WTException
protected Vector copyUsesOccurrenceData(UsesOccurrence occurrence) throws WTException
UsesOccurrence
in [0] and the new copies of the UsesOccurrenceData
in the
following slots; this method should only be used internally when doing
a lazy copy.
occurrence
-
WTException
protected void propagateDeleteToPathOccurrenceData(PathOccurrence deleteTarget, PathOccurrenceDataLink deleteLink) throws WTException
WTException
protected void propagateDeleteToCombinedPathOccurrenceData(PathOccurrenceContext target, ContextCombinedPathOccurrenceData deleteLink) throws WTException
WTException
protected void propagateDeleteToCombinedPathOccurrenceData(CombinedPathOccurrence deleteTarget, CombinedPathOccurrenceDataLink deleteLink) throws WTException
WTException
protected void propagateDeleteToUsesOccurrence(OccurrenceableLink deleteTarget, LinkUsesOccurrence deleteLink) throws WTException
WTException
protected void propagateDeleteToPathOccurrenceData(PathOccurrenceContext target, ContextPathOccurrenceData deleteLink) throws WTException
WTException
protected QueryResult simpleSaveUsesOccurrenceAndData(UsesOccurrence occurrence, Vector occurrenceData) throws WTException
Occurrence
and/or OccurrenceData
objects since they need special identifiers
that must be obtained in a special way.
Returns a QueryResult
of the Occurrence
and the
OccurrenceData
s that have been inserted or updated. Note
that some other OccurrenceData
s may have been updated,
too, but since the user of this method did not have them in their
list they will not be returned.
If the Occurrence
has a unique Occurrence#occurrenceDataIdentifier
(no other Occurrence
shares that occurrenceDataIdentifier
),
then save the OccurrenceData
associated to the occurrence
,
but otherwise, copy the Occurrence
to get one with a
new dataIdentifier
and copy all the associated OccurrenceData
objects and then save the occurrenceData
associated to
the newly copied Occurrence
.
Supported API: false
This method has been deprecated. Does not appear to be used.
occurrence
- occurrenceData
-
WTException
protected boolean isDataUnique(UsesOccurrence occurrence) throws WTException
occurrence
is unique in terms of its
Occurrence#dataIdentifier
.
occurrence
-
WTException
public Vector addMissingUsesOccurrenceData(UsesOccurrence occurrence, Vector occurrenceData, Vector occurrenceDataToDelete) throws WTException
WTException
protected void validateOccurrenceableLinkModify(OccurrenceableLink modifiedLink) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |