wt.vc.config
Class StandardConfigService

java.lang.Object
  extended by wt.services.StandardManager
      extended by wt.vc.config.StandardConfigService
All Implemented Interfaces:
Serializable, NetFactor, wt.services.applicationcontext.ApplicationContextChild, wt.services.Manager, ConfigService

public class StandardConfigService
extends StandardManager
implements ConfigService, wt.services.applicationcontext.ApplicationContextChild, Serializable

This is a straight forward implementation of ConfigService that has no listeners.

Use the newStandardConfigService static factory method(s), not the StandardConfigService 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

See Also:
Serialized Form

Method Summary
 QueryResult filteredIterationsOf(Mastered master, ConfigSpec configSpec)
          Returns a QueryResult of Iterated objects that are related to the given Mastered object and are valid for the given ConfigSpec.
 QueryResult filteredIterationsOf(QueryResult masters, ConfigSpec configSpec)
          Returns a QueryResult of Iterated objects that are related to the given QueryResult of Mastered objects and are valid for the given ConfigSpec.
 QueryResult queryIterations(QuerySpec querySpec, ConfigSpec configSpec)
          Returns a QueryResult of Iterated objects that will be selcted by the given QuerySpec and are valid for the given ConfigSpec.
 
Methods inherited from class wt.services.StandardManager
getManagerService, getManagerStatus, getName, getStartupType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

filteredIterationsOf

public QueryResult filteredIterationsOf(Mastered master,
                                        ConfigSpec configSpec)
                                 throws WTException,
                                        PersistenceException
Returns a QueryResult of Iterated objects that are related to the given Mastered object and are valid for the given ConfigSpec.

Supported API: true

Specified by:
filteredIterationsOf in interface ConfigService
Parameters:
master - The master to get the iterations for.
configSpec - The ConfigSpec to process this master's iterations against.
Returns:
QueryResult
Throws:
WTException
PersistenceException

filteredIterationsOf

public QueryResult filteredIterationsOf(QueryResult masters,
                                        ConfigSpec configSpec)
                                 throws WTException,
                                        PersistenceException
Returns a QueryResult of Iterated objects that are related to the given QueryResult of Mastered objects and are valid for the given ConfigSpec.

Supported API: true

Specified by:
filteredIterationsOf in interface ConfigService
Parameters:
masters - The QueryResult of masters to get the iterations for.
configSpec - The ConfigSpec to process the resulting iterations against.
Returns:
QueryResult
Throws:
WTException
PersistenceException

queryIterations

public QueryResult queryIterations(QuerySpec querySpec,
                                   ConfigSpec configSpec)
                            throws WTException,
                                   PersistenceException
Returns a QueryResult of Iterated objects that will be selcted by the given QuerySpec and are valid for the given ConfigSpec. Note that a QuerySpec is appended by the ConfigSpec's appendSearchCriteria. After the query, the query result is passed to the ConfigSpec's process API.

Supported API: true

Specified by:
queryIterations in interface ConfigService
Parameters:
querySpec - The QuerySpec based on iterations.
configSpec - The ConfigSpec to process the resulting iterations against.
Returns:
QueryResult
Throws:
WTException
PersistenceException