|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This service provides general effectivity functionality, both through
its API and through listeners, that operate on EffManagedVersion
,
Eff
, EffContext
, EffConfigurationItem
, ProductSolution
and ProductInstance
objects; this functionality
can be reused by various implementations of effectivity including the
reference implementation in wt.effectivity
. EffConfigSpecAssistant
and EffGroupAssistant
also execute server-side actions for several
classes of objects in this package.
The reference implementation of this service interface also manages effectivity data during various business operations via listeners defined in StandardEffService.
EffHelper
has helper methodsStandardEffService
(has listeners)
Method Summary | |
QueryResult |
getAllContexts()
Return all EffContext objects in the DB. |
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. |
Method Detail |
public QueryResult getEffs(EffManagedVersion version) throws WTException
version
-
WTException
public QueryResult getAllContexts() throws WTException
WTException
public EffConfigurationItem getEffConfigurationItem(String name) throws WTException
name
-
WTException
public ProductSolution getSolution(EffConfigurationItem effConfigurationItem) throws WTException
effConfigurationItem
-
WTException
public QueryResult getInstances(EffConfigurationItem configItem) throws WTException
configItem
-
WTException
public Eff[] getEffectivities(EffManagedVersion version, EffContext context, Class effType, boolean includeHistory) throws WTException
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |