|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.vc.baseline.StandardBaselineService
This implementation of the BaselineService
interface add listeners
via performStartupProcess()
.
Use the newStandardBaselineService
static factory method(s),
not the StandardBaselineService
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
Nested Class Summary | |
(package private) class |
StandardBaselineService.BaselineableOperation
This class implements the abstract execute() method to add or remove a Baselineable item to a Baseline. |
(package private) class |
StandardBaselineService.PopulateOperation
This class implements the abstract execute() method to populate a Baseline. |
private class |
StandardBaselineService.PostDeleteListener
|
(package private) class |
StandardBaselineService.VectorOperation
This class implements the abstract execute() method to add or remove a Vector of BaselineMemberInfo items to a Baseline. |
(package private) class |
StandardBaselineService.WTCollectionOperation
This class implements the abstract execute() method to add or remove a WTCollection of BaselineMember items to a Baseline. |
Field Summary | |
private static int |
ADD
|
protected static String |
BASELINEREMOVEMEMBER
|
private static String |
CLASSNAME
|
protected static String |
CLASSNAMEA2A2
|
protected static String |
CLASSNAMEKEYROLEAOBJECTREF
|
protected static String |
CLASSNAMEKEYROLEBOBJECTREF
|
protected static String |
IDA2A2
|
protected static String |
IDA3A5
|
protected static String |
IDA3B5
|
protected static String |
IDA3C2ITERATIONINFO
|
protected static String |
LATESTITERATIONINFO
|
protected static List |
NON_STRICT_CLASSES
|
private static Object |
POST_DELETE_LISTENER_KEY
Delete the baseline member links to non-strict baselines and to iterations in personal cabinets. |
private static int |
REMOVE
|
private static String |
RESOURCE
|
protected static StatementParameterFactory |
statementFactory
|
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 | |
StandardBaselineService()
|
Method Summary | |
protected boolean |
add(Baselineable a_baselineable,
Baseline a_baseline)
Adds the Baselineable item to the Baseline. |
protected boolean |
add(Vector a_baselineMemberInfos,
Baseline a_baseline)
Adds the Baselineable items to the Baseline. |
protected boolean |
add(WTCollection baselineMembers,
Baseline baseline)
Adds the Baselineable items to the Baseline. |
Baseline |
addMembers(Vector a_memberInfos,
Baseline a_baseline)
Deprecated. Replaced by addMembers(WTCollection) |
Baseline |
addMembers(WTCollection baselineMembers)
Adds the Collection of BaselineMemberInfo items to the Baseline. |
Baseline |
addToBaseline(Baselineable a_baselineable,
Baseline a_baseline)
Adds the Baselineable item to the Baseline. |
Baseline |
addToBaseline(Vector a_baselineables,
Baseline a_baseline)
Deprecated. Replaced by addToBaseline(WTCollection, Baseline) |
Baseline |
addToBaseline(WTCollection baselineables,
Baseline baseline)
Adds the collection of Baselineable items to the Baseline. |
protected void |
dispatchVetoableEvent(String a_eventType,
Baselineable a_baselineable,
Baseline a_baseline)
This method dispatches a BaselineServiceEvent. |
protected void |
dispatchVetoableEvent(String a_eventType,
Baselineable a_baselineable,
Baseline a_baseline,
Baselineable a_replacedBaselineable)
This method dispatches a BaselineServiceEvent. |
private void |
dispatchVetoableMultiObjectEvent(BaselineServiceEvent event)
|
private QueryResult |
executeCall(String functionName,
Object[] parameters,
boolean applyAccessControl,
boolean returnsList)
|
private QueryResult |
filterIteratedPartialBaselines(QueryResult bms)
This method is passed a query result containing BaselineMembers. |
private BaselineMember |
find(Baselineable a_baselineable,
Baseline a_baseline)
Returns the BaselineMember object (if it exists) for the Baselineable and Baseline. |
private BaselineMember |
findAnyIteration(Baselineable a_baselineable,
Baseline a_baseline)
Returns the BaselineMember object (if it exists) for the Baselineable and Baseline. |
private QueryResult |
findBaselineMembers(Class baselineableClass,
long[] masterIds,
Baseline a_baseline)
|
private void |
findReplacements(Vector a_baselineables,
Baseline a_baseline,
ArrayList toAdd,
ArrayList toReplace)
Given a vector of BaselineMemberInfos, determine which are new to the baseline and which are replacements (another iteration with the same master already in the baseline). |
private BaselineDelegate |
getBaselineDelegate(Baseline baseline)
|
QueryResult |
getBaselineItems(Baseline a_baseline)
Returns a QueryResult of Baselineable item iterations that are part of the Baseline. |
QueryResult |
getBaselines(Baselineable a_baselineable)
Returns a QueryResult of Baseline objects that this Baselineable item iteration is part of. |
QueryResult |
getBaselines(Baselineable a_baselineable,
Class baselineClass)
Returns a QueryResult of Baseline objects of a specified class that this Baselineable item iteration is part of. |
WTKeyedMap |
getBaselines(WTCollection baselineables)
Returns a map of baselineables (as keys) to the collection of Baselines they're members of. |
WTKeyedMap |
getBaselines(WTCollection baselineables,
Class baselineClass)
Returns a map of baselineables (as keys) to the collection of baselines (of the given class) they're members of. |
String |
getConceptualClassname()
Deprecated. |
private void |
getIdentityParms(Baselineable a_baselineable,
Object[] parms,
int index)
Fills in the identity parms for a Baselineable item. |
private Object[] |
getIterationIdentityMessages(WTCollection baselineables)
|
QueryResult |
getManagedBaselines(Baselineable a_baselineable)
Returns a QueryResult of ManagedBaseline objects that this Baselineable item iteration is part of. |
private StatementParameter |
getRowParameter(ObjectIdentifier oid)
|
private String |
getTableName(String className)
|
boolean |
isAnyIterationInBaseline(Baselineable a_baselineable,
Baseline a_baseline)
Returns true, if for this Baselineable, any items with the same Master are part of the Baseline. |
boolean |
isInBaseline(Baselineable a_baselineable,
Baseline a_baseline)
Returns true, if the Baselineable item iteration is part of the Baseline. |
static StandardBaselineService |
newStandardBaselineService()
Default factory for the class. |
protected void |
performStartupProcess()
This method performs the startup processing for this service. |
Baseline |
populateBaseline(Persistable a_object,
Baseline a_baseline,
ConfigSpec a_configSpec)
Adds the Baselineable item iterations to the Baseline by navigating recursively from the object using the ConfigSpec. |
Baseline |
populateBaseline(Persistable a_object,
Baseline a_baseline,
Navigator a_navigator)
Adds the Baselineable item iterations to the Baseline by navigating recursively from the object using the Navigator. |
private void |
postDeleteBaselineMembers(WTCollection baselineables)
Delete the baseline member links to non-strict baselines and to iterations in personal cabinets. |
void |
registerEvents(ManagerService a_managerService)
Overrides the registration of all applicable Baseline service events with the service manager Supported API: false |
protected boolean |
remove(Baselineable a_baselineable,
Baseline a_baseline)
Removes the Baselineable from the Baseline. |
protected boolean |
remove(Vector a_baselineMemberInfos,
Baseline a_baseline)
Removes the Baselineables from the Baseline. |
protected boolean |
remove(WTCollection baselineables,
Baseline baseline)
Removes the Baselineables from the Baseline. |
Baseline |
removeFromBaseline(Baselineable a_baselineable,
Baseline a_baseline)
Removes the Baselineable item iteration from the Baseline. |
Baseline |
removeFromBaseline(Vector a_baselineables,
Baseline a_baseline)
Deprecated. Replaced by removeFromBaseline(WTCollection, Baseline) |
Baseline |
removeFromBaseline(WTCollection baselineables,
Baseline baseline)
Removes the collection of Baselineable item iterations from the Baseline. |
private Baseline |
updateModificationTimestamp(Baseline a_baseline)
Updates the modification timestamp on the Baseline object. |
private void |
validateModifyBaselineables(WTCollection baselineables)
Veto the modification if any of the baselineables are assigned to baselines. |
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 int ADD
private static final int REMOVE
private static final Object POST_DELETE_LISTENER_KEY
protected static final StatementParameterFactory statementFactory
protected static final List NON_STRICT_CLASSES
protected static final String BASELINEREMOVEMEMBER
protected static final String CLASSNAMEA2A2
protected static final String CLASSNAMEKEYROLEAOBJECTREF
protected static final String CLASSNAMEKEYROLEBOBJECTREF
protected static final String IDA2A2
protected static final String IDA3A5
protected static final String IDA3B5
protected static final String IDA3C2ITERATIONINFO
protected static final String LATESTITERATIONINFO
Constructor Detail |
public StandardBaselineService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public void registerEvents(ManagerService a_managerService)
registerEvents
in interface Manager
registerEvents
in class StandardManager
a_managerService
- protected void dispatchVetoableEvent(String a_eventType, Baselineable a_baselineable, Baseline a_baseline) throws WTException
a_eventType
- a_baselineable
- a_baseline
-
WTException
protected void dispatchVetoableEvent(String a_eventType, Baselineable a_baselineable, Baseline a_baseline, Baselineable a_replacedBaselineable) throws WTException
a_eventType
- a_baselineable
- a_baseline
- a_replacedBaselineable
-
WTException
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public static StandardBaselineService newStandardBaselineService() throws WTException
WTException
public QueryResult getBaselines(Baselineable a_baselineable) throws WTException
Note that the Baselineable is considered a member of an IteratedPartialBaseline
only if it is a member of its latest iteration(s).
getBaselines
in interface BaselineService
a_baselineable
-
WTException
public WTKeyedMap getBaselines(WTCollection baselineables) throws WTException
Note that the Baselineable is considered a member of an IteratedPartialBaseline
only if it is a member of its latest iteration(s).
getBaselines
in interface BaselineService
baselineables
-
WTException
public QueryResult getBaselines(Baselineable a_baselineable, Class baselineClass) throws WTException
Note that the Baselineable is considered a member of an IteratedPartialBaseline
only if it is a member of its latest iteration(s).
getBaselines
in interface BaselineService
a_baselineable
- baselineClass
-
WTException
public WTKeyedMap getBaselines(WTCollection baselineables, Class baselineClass) throws WTException
Note that the Baselineable is considered a member of an IteratedPartialBaseline
only if it is a member of its latest iteration(s).
getBaselines
in interface BaselineService
baselineables
- baselineClass
-
WTException
public QueryResult getManagedBaselines(Baselineable a_baselineable) throws WTException
getManagedBaselines
in interface BaselineService
a_baselineable
-
WTException
public QueryResult getBaselineItems(Baseline a_baseline) throws WTException
getBaselineItems
in interface BaselineService
a_baseline
-
WTException
public boolean isInBaseline(Baselineable a_baselineable, Baseline a_baseline) throws WTException
isInBaseline
in interface BaselineService
a_baselineable
- a_baseline
-
WTException
public boolean isAnyIterationInBaseline(Baselineable a_baselineable, Baseline a_baseline) throws WTException
isAnyIterationInBaseline
in interface BaselineService
a_baselineable
- a_baseline
-
WTException
public Baseline addToBaseline(Baselineable a_baselineable, Baseline a_baseline) throws WTException
addToBaseline
in interface BaselineService
a_baselineable
- a_baseline
-
WTException
public Baseline addToBaseline(Vector a_baselineables, Baseline a_baseline) throws WTException
addToBaseline(WTCollection, Baseline)
addToBaseline
in interface BaselineService
a_baselineables
- a_baseline
-
WTException
public Baseline addToBaseline(WTCollection baselineables, Baseline baseline) throws WTException
addToBaseline
in interface BaselineService
baselineables
- baseline
-
WTException
public Baseline removeFromBaseline(Baselineable a_baselineable, Baseline a_baseline) throws WTException
removeFromBaseline
in interface BaselineService
a_baselineable
- a_baseline
-
WTException
public Baseline removeFromBaseline(Vector a_baselineables, Baseline a_baseline) throws WTException
removeFromBaseline(WTCollection, Baseline)
removeFromBaseline
in interface BaselineService
a_baselineables
- a_baseline
-
WTException
public Baseline populateBaseline(Persistable a_object, Baseline a_baseline, Navigator a_navigator) throws WTException
populateBaseline
in interface BaselineService
a_object
- a_baseline
- a_navigator
-
WTException
public Baseline populateBaseline(Persistable a_object, Baseline a_baseline, ConfigSpec a_configSpec) throws WTException
populateBaseline
in interface BaselineService
a_object
- a_baseline
- a_configSpec
-
WTException
public Baseline removeFromBaseline(WTCollection baselineables, Baseline baseline) throws WTException
removeFromBaseline
in interface BaselineService
baselineables
- baseline
-
WTException
public Baseline addMembers(Vector a_memberInfos, Baseline a_baseline) throws WTException
addMembers(WTCollection)
addMembers
in interface BaselineSvrService
a_memberInfos
- a_baseline
-
WTException
public Baseline addMembers(WTCollection baselineMembers) throws WTException
addMembers
in interface BaselineSvrService
baselineMembers
-
WTException
protected boolean add(Baselineable a_baselineable, Baseline a_baseline) throws WTException
a_baselineable
- a_baseline
-
WTException
protected boolean add(Vector a_baselineMemberInfos, Baseline a_baseline) throws WTException
a_baselineMemberInfos
- a_baseline
-
WTException
protected boolean add(WTCollection baselineMembers, Baseline baseline) throws WTException
WTException
protected boolean remove(Vector a_baselineMemberInfos, Baseline a_baseline) throws WTException
a_baseline
-
WTException
protected boolean remove(Baselineable a_baselineable, Baseline a_baseline) throws WTException
a_baselineable
- a_baseline
-
WTException
protected boolean remove(WTCollection baselineables, Baseline baseline) throws WTException
WTException
private BaselineMember findAnyIteration(Baselineable a_baselineable, Baseline a_baseline) throws WTException
a_baselineable
- a_baseline
-
WTException
private BaselineMember find(Baselineable a_baselineable, Baseline a_baseline) throws WTException
a_baselineable
- a_baseline
-
WTException
private void findReplacements(Vector a_baselineables, Baseline a_baseline, ArrayList toAdd, ArrayList toReplace) throws WTException
a_baselineables
- a_baseline
- toAdd
- toReplace
-
WTException
private QueryResult findBaselineMembers(Class baselineableClass, long[] masterIds, Baseline a_baseline) throws WTException
WTException
private Baseline updateModificationTimestamp(Baseline a_baseline) throws WTException
a_baseline
-
WTException
private void validateModifyBaselineables(WTCollection baselineables) throws WTException
WTException
private void postDeleteBaselineMembers(WTCollection baselineables) throws WTException
WTException
private Object[] getIterationIdentityMessages(WTCollection baselineables) throws WTException
WTException
private void getIdentityParms(Baselineable a_baselineable, Object[] parms, int index)
a_baselineable
- parms
- Object array to fill inindex
- entry in the array to fill inprivate String getTableName(String className) throws WTException
WTException
private StatementParameter getRowParameter(ObjectIdentifier oid) throws WTException
WTException
private QueryResult executeCall(String functionName, Object[] parameters, boolean applyAccessControl, boolean returnsList) throws WTException
WTException
private QueryResult filterIteratedPartialBaselines(QueryResult bms) throws WTException
WTException
private void dispatchVetoableMultiObjectEvent(BaselineServiceEvent event) throws WTException
WTException
private BaselineDelegate getBaselineDelegate(Baseline baseline)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |