|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.eff.StandardEffService
This standard implementation of EffService
implements much extra
functionality via listeners defined in performStartupProcess()
.
In particular:
Eff
s of an EffManagedVersion
when it is deletedEffContext
deletion if its being referenced
by existing Eff
sProductInstance
s for an EffConfigItem
when the configuration item is deletedEffConfigItem
's reference to a ProductSolution
when the product solution is deletedEff
s from the original to the working
copyEff
s with the working
copy'sEff
sEff
s Using EffGroupAssistant
ProductInstance
that has either not been built or that was built after the assigned incorporation
date.
Use the newStandardEffService
static factory method(s),
not the StandardEffService
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: false
Field Summary | |
private static String |
CLASSNAME
|
private static long |
PURGE_AUDIT_INTERVAL
|
private static String |
PURGE_AUDIT_METHOD
|
private static String |
PURGE_AUDIT_QUEUE
|
private static String |
RESOURCE
|
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 | |
StandardEffService()
|
Method Summary | |
private void |
copyEffs(WTKeyedMap effMap,
int estimatedSize)
|
private void |
copyEffsForward(WTValuedMap eMVWipMap)
|
private void |
deleteEffConfigurationItemSolutionRefsToProductSolutions(WTCollection pSs)
|
private void |
deleteProductInstancesOfEffConfigurationItems(WTCollection eCIs)
|
private void |
ensureAuditPurging()
Creates a scheduled task, if one does not already exist, to periodically purge orphaned EffChangeAudit objects. |
private QueryResult |
expandFKs(WTCollection refs,
Class otherSide,
String roleTarget)
|
QueryResult |
getAllContexts()
Return all EffContext objects in the DB. |
String |
getConceptualClassname()
Deprecated. |
EffConfigurationItem |
getEffConfigurationItem(String name)
Returns the EffConfigurationItem that has this name. |
Eff[] |
getEffectivities(EffManagedVersion version,
EffContext context,
Class effType,
boolean includeHistory)
Returns a sorted array of Eff objects of the concrete type represented by the effType parameter, and related to the version and context parameters. |
QueryResult |
getEffs(EffManagedVersion version)
For a given EffManagedVersion, return all Effs assigned to it. |
QueryResult |
getInstances(EffConfigurationItem configItem)
Returns all ProductInstances for this EffConfigurationItem. |
ProductSolution |
getSolution(EffConfigurationItem effConfigurationItem)
Gets the ProductSolution for this EffConfigurationItem, returning null if none exist. |
private void |
moveEffs(WTKeyedMap effMap,
int estimatedSize)
|
static StandardEffService |
newStandardEffService()
Default factory for the class. |
protected void |
performStartupProcess()
Dummy method to be overridden by subclasses. |
static void |
purgeOrphanedEffAudits()
Locate and remove any EffChangeAudit objects that became 'orphaned' (unreferenced) due to one or more Eff object deletions. |
private void |
putEffsBack(WTValuedMap inverseEMVWipMap)
|
private void |
removeEffsForEffContexts(WTCollection eCs)
|
private void |
removeEffsForEffManagedVersions(WTCollection eMVs)
|
private void |
removeUnreferencedAuditPurgeScheduleItems()
|
private void |
undoCopyEffsForward(WTCollection workingCopies)
|
private void |
verifyIncorporationDates(EffGroup[] eGs)
|
private void |
verifyIncorporationDates(EffManagedVersion[] eMVs)
|
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 PURGE_AUDIT_QUEUE
private static final String PURGE_AUDIT_METHOD
private static final long PURGE_AUDIT_INTERVAL
Constructor Detail |
public StandardEffService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
public static void purgeOrphanedEffAudits() throws WTException, WTPropertyVetoException
WTException
WTPropertyVetoException
public static StandardEffService newStandardEffService() throws WTException
WTException
public QueryResult getEffs(EffManagedVersion version) throws WTException
getEffs
in interface EffService
version
-
WTException
public QueryResult getAllContexts() throws WTException
getAllContexts
in interface EffService
WTException
public EffConfigurationItem getEffConfigurationItem(String name) throws WTException
getEffConfigurationItem
in interface EffService
name
-
WTException
public ProductSolution getSolution(EffConfigurationItem effConfigurationItem) throws WTException
getSolution
in interface EffService
effConfigurationItem
-
WTException
public QueryResult getInstances(EffConfigurationItem configItem) throws WTException
getInstances
in interface EffService
configItem
-
WTException
public Eff[] getEffectivities(EffManagedVersion version, EffContext context, Class effType, boolean includeHistory) throws WTException
getEffectivities
in interface EffService
version
- EffManagedVersion object for which related Eff objects are to be retrieved -- may not be nullcontext
- EffContext object for which related Eff objects are to be retrieved -- may be null to signify context-free (global) effectivityeffType
- Class object representing the concrete type of the Eff objects in the result set: only Eff objects of this type will be returned -- may not be null and must represent a concrete implementation of the wt.eff.Eff interfaceincludeHistory
- boolean value indicating whether the result should include factually deleted (i.e., historical) Eff objects
WTException
protected void performStartupProcess() throws ManagerException
StandardManager
performStartupProcess
in class StandardManager
ManagerException
private void removeEffsForEffManagedVersions(WTCollection eMVs) throws WTException
WTException
private void removeEffsForEffContexts(WTCollection eCs) throws WTException
WTException
private void deleteProductInstancesOfEffConfigurationItems(WTCollection eCIs) throws WTException
WTException
private void deleteEffConfigurationItemSolutionRefsToProductSolutions(WTCollection pSs) throws WTException
WTException
private void copyEffsForward(WTValuedMap eMVWipMap) throws WTException
WTException
private void putEffsBack(WTValuedMap inverseEMVWipMap) throws WTException
WTException
private void undoCopyEffsForward(WTCollection workingCopies) throws WTException
WTException
private QueryResult expandFKs(WTCollection refs, Class otherSide, String roleTarget) throws WTException
WTException
private void copyEffs(WTKeyedMap effMap, int estimatedSize) throws WTException
WTException
private void moveEffs(WTKeyedMap effMap, int estimatedSize) throws WTException
WTException
private void verifyIncorporationDates(EffManagedVersion[] eMVs) throws WTException
WTException
private void verifyIncorporationDates(EffGroup[] eGs) throws WTException
WTException
private void ensureAuditPurging()
private void removeUnreferencedAuditPurgeScheduleItems() throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |