wt.eff
Class EffServiceFwd

java.lang.Object
  extended bywt.eff.EffServiceFwd
All Implemented Interfaces:
EffService, RemoteAccess, Serializable

public class EffServiceFwd
extends Object
implements RemoteAccess, EffService, Serializable

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.



Supported API: false

Extendable: false

See Also:
Serialized Form

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
EffServiceFwd()
           
 
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.
private static Manager getManager()
           
 ProductSolution getSolution(EffConfigurationItem effConfigurationItem)
          Gets the ProductSolution for this EffConfigurationItem, returning null if none exist.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SERVER

static final boolean SERVER

FC_RESOURCE

private static final String FC_RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME
Constructor Detail

EffServiceFwd

public EffServiceFwd()
Method Detail

getManager

private static Manager getManager()
                           throws WTException
Returns:
Manager
Throws:
WTException

getEffs

public QueryResult getEffs(EffManagedVersion version)
                    throws WTException
For a given EffManagedVersion, return all Effs assigned to it.

Supported API: false

Specified by:
getEffs in interface EffService
Parameters:
version -
Returns:
QueryResult
Throws:
WTException

getAllContexts

public QueryResult getAllContexts()
                           throws WTException
Return all EffContext objects in the DB. The result is filtered by access control.

Supported API: false

Specified by:
getAllContexts in interface EffService
Returns:
QueryResult
Throws:
WTException

getEffConfigurationItem

public EffConfigurationItem getEffConfigurationItem(String name)
                                             throws WTException
Returns the EffConfigurationItem that has this name. If none exists, returns null.

Supported API: false

Specified by:
getEffConfigurationItem in interface EffService
Parameters:
name -
Returns:
EffConfigurationItem
Throws:
WTException

getSolution

public ProductSolution getSolution(EffConfigurationItem effConfigurationItem)
                            throws WTException
Gets the ProductSolution for this EffConfigurationItem, returning null if none exist. The solution is subject to access control.

Supported API: false

Specified by:
getSolution in interface EffService
Parameters:
effConfigurationItem -
Returns:
ProductSolution
Throws:
WTException

getInstances

public QueryResult getInstances(EffConfigurationItem configItem)
                         throws WTException
Returns all ProductInstances for this EffConfigurationItem. The instances are subject to access control.

Supported API: false

Specified by:
getInstances in interface EffService
Parameters:
configItem -
Returns:
QueryResult
Throws:
WTException

getEffectivities

public Eff[] getEffectivities(EffManagedVersion version,
                              EffContext context,
                              Class effType,
                              boolean includeHistory)
                       throws WTException
Returns a sorted array of Eff objects of the concrete type represented by the effType parameter, and related to the version and context parameters. The results are sorted in the order of creation of the Eff objects. Object reference attributes of the results are not expanded. This is an internal API to support ESI product functionality.

Supported API: false

Specified by:
getEffectivities in interface EffService
Parameters:
version - EffManagedVersion object for which related Eff objects are to be retrieved -- may not be null
context - EffContext object for which related Eff objects are to be retrieved -- may be null to signify context-free (global) effectivity
effType - 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 interface
includeHistory - boolean value indicating whether the result should include factually deleted (i.e., historical) Eff objects
Returns:
Eff[]
Throws:
WTException