wt.dataops.objectcol
Class StandardCollectionService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.dataops.objectcol.StandardCollectionService
All Implemented Interfaces:
CollectionService, Manager, NetFactor, Serializable

public class StandardCollectionService
extends StandardManager
implements CollectionService, Serializable

Use the newStandardCollectionService static factory method(s), not the StandardCollectionService 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: false

Extendable: false

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static boolean cleanUpEnabled
           
private static boolean EXECUTE_QUEUES
           
private static String QUEUE_NAME
           
private static String RESOURCE
           
private static boolean VERBOSE
           
private static String WT_HOME
           
private static String WT_TEMP
           
 
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
StandardCollectionService()
           
 
Method Summary
 CollectionActivity addDependencies(CollectionGraph input, RelationshipMap relationshipMap, boolean updateInPlace)
          

Supported API: false
private static void addQueueEntry()
           
private  boolean checkExistsQueueEntry()
           
static void cleanupInvalidObjects(String message)
           
 CollectionActivity createCollection(CollectionCriteria criteria)
          

Supported API: false
 CollectionActivity createCollection(CollectionCriteria criteria, RelationshipMap relationshipMap)
          

Supported API: false
protected  CollectionProcessor createCollectionProcessor(CollectionCriteria criteria)
           
 void exportCriteria(CollectionCriteria criteria, OutputStream output)
          

Supported API: false
 File exportToFile(CollectionCriteria criteria, RelationshipMap map, File output)
          

Supported API: false
private  QueryResult findCollectionCriteria(boolean flag)
           
 QueryResult getAllCollectionCriteria()
          

Supported API: false
 QueryResult getAllRelationshipMaps()
          

Supported API: false
 BaseCriterionDef[] getAvailableCriterionDefs(BaseCriterionDef[] current)
          

Supported API: false
 CollectionCriteria getCollectionCriteria(String name)
          Deprecated.  
 CollectionCriteria getCollectionCriteria(String name, WTContainerRef containerRef)
          

Supported API: false
 String getConceptualClassname()
          Deprecated.  
protected  RelationshipMapProcessor getDefaultArchiveRelationshipMapProcessor()
           
 QueryResult getDisabledCollectionCriteria()
          

Supported API: false
 QueryResult getEnabledCollectionCriteria()
          

Supported API: false
private static Timestamp getFutureTime()
          This will run midnight every seven days.
protected  WTContained getNamedWTContained(Class type, String nameLbl, String name, WTContainerRef containerRef, String containerRefNullErrMsgKey, String multipleObjsErrMsgKey)
           
 RelationshipMap getRelationshipMap(String name)
          

Supported API: false
 RelationshipMap getRelationshipMap(String name, WTContainerRef containerRef)
          

Supported API: false
 CollectionCriteria importCriteria(String name, InputStream input)
          

Supported API: false
 void importFromFile(File input)
          

Supported API: false
static StandardCollectionService newStandardCollectionService()
          Default factory for the class.
protected  void performStartupProcess()
          Dummy method to be overridden by subclasses.
protected  void PP(String msg)
           
protected  void PPln(String msg)
           
private  void processPreDeleteEvent(BaseCriterionDef definition)
           
private  void processPreDeleteEvent(CollectionCriteria criteria)
           
private  void processPreDeleteEvent(CriterionObject criterion)
           
private  void processPreDeleteEvent(RelationshipMap map)
           
private  void processPreStoreEvent(CriterionObject co)
           
private  void processPreStoreEvent(InputValue iv)
           
protected  void registerAsListener()
           
protected  CollectionCriteria setContNDomainRefIfAccess(CollectionCriteria criteria, WTContainerRef contRef, AdminDomainRef domainRef)
           
protected  CollectionCriteria setDefaultContainer(CollectionCriteria criteria, CriterionObject[] criterions, InputValue[][] inputs)
           
 CollectionCriteria storeCriteria(CollectionCriteria criteria, CriterionObject[] criterions, InputValue[][] inputs)
          

Supported API: false
 RelationshipMap storeRelationshipMap(String name, RelationshipMapDef definition, InputValue[] inputs)
          

Supported API: false
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, registerEvents, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

VERBOSE

private static final boolean VERBOSE

WT_HOME

private static final String WT_HOME

WT_TEMP

private static final String WT_TEMP

EXECUTE_QUEUES

private static boolean EXECUTE_QUEUES

QUEUE_NAME

private static final String QUEUE_NAME
See Also:
Constant Field Values

cleanUpEnabled

private static boolean cleanUpEnabled
Constructor Detail

StandardCollectionService

public StandardCollectionService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Deprecated.  

Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

newStandardCollectionService

public static StandardCollectionService newStandardCollectionService()
                                                              throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardCollectionService
Throws:
WTException

createCollection

public CollectionActivity createCollection(CollectionCriteria criteria)
                                    throws WTException


Supported API: false

Specified by:
createCollection in interface CollectionService
Parameters:
criteria -
Returns:
CollectionActivity
Throws:
WTException

createCollection

public CollectionActivity createCollection(CollectionCriteria criteria,
                                           RelationshipMap relationshipMap)
                                    throws WTException


Supported API: false

Specified by:
createCollection in interface CollectionService
Parameters:
criteria -
relationshipMap -
Returns:
CollectionActivity
Throws:
WTException

addDependencies

public CollectionActivity addDependencies(CollectionGraph input,
                                          RelationshipMap relationshipMap,
                                          boolean updateInPlace)
                                   throws WTException


Supported API: false

Specified by:
addDependencies in interface CollectionService
Parameters:
input -
relationshipMap -
updateInPlace -
Returns:
CollectionActivity
Throws:
WTException

exportCriteria

public void exportCriteria(CollectionCriteria criteria,
                           OutputStream output)
                    throws WTException


Supported API: false

Specified by:
exportCriteria in interface CollectionService
Parameters:
criteria -
output -
Throws:
WTException

importCriteria

public CollectionCriteria importCriteria(String name,
                                         InputStream input)
                                  throws WTException


Supported API: false

Specified by:
importCriteria in interface CollectionService
Parameters:
name -
input -
Returns:
CollectionCriteria
Throws:
WTException

getCollectionCriteria

public CollectionCriteria getCollectionCriteria(String name)
                                         throws WTException
Deprecated.  



Supported API: false

Specified by:
getCollectionCriteria in interface CollectionService
Parameters:
name -
Returns:
CollectionCriteria
Throws:
WTException

getAllCollectionCriteria

public QueryResult getAllCollectionCriteria()
                                     throws WTException


Supported API: false

Specified by:
getAllCollectionCriteria in interface CollectionService
Returns:
QueryResult
Throws:
WTException

getEnabledCollectionCriteria

public QueryResult getEnabledCollectionCriteria()
                                         throws WTException


Supported API: false

Specified by:
getEnabledCollectionCriteria in interface CollectionService
Returns:
QueryResult
Throws:
WTException

getDisabledCollectionCriteria

public QueryResult getDisabledCollectionCriteria()
                                          throws WTException


Supported API: false

Specified by:
getDisabledCollectionCriteria in interface CollectionService
Returns:
QueryResult
Throws:
WTException

getAllRelationshipMaps

public QueryResult getAllRelationshipMaps()
                                   throws WTException


Supported API: false

Specified by:
getAllRelationshipMaps in interface CollectionService
Returns:
QueryResult
Throws:
WTException

storeCriteria

public CollectionCriteria storeCriteria(CollectionCriteria criteria,
                                        CriterionObject[] criterions,
                                        InputValue[][] inputs)
                                 throws WTException


Supported API: false

Specified by:
storeCriteria in interface CollectionService
Parameters:
criteria -
criterions -
inputs -
Returns:
CollectionCriteria
Throws:
WTException

getAvailableCriterionDefs

public BaseCriterionDef[] getAvailableCriterionDefs(BaseCriterionDef[] current)
                                             throws WTException


Supported API: false

Specified by:
getAvailableCriterionDefs in interface CollectionService
Parameters:
current -
Returns:
BaseCriterionDef[]
Throws:
WTException

storeRelationshipMap

public RelationshipMap storeRelationshipMap(String name,
                                            RelationshipMapDef definition,
                                            InputValue[] inputs)
                                     throws WTException


Supported API: false

Specified by:
storeRelationshipMap in interface CollectionService
Parameters:
name -
definition -
inputs -
Returns:
RelationshipMap
Throws:
WTException

getRelationshipMap

public RelationshipMap getRelationshipMap(String name)
                                   throws WTException


Supported API: false

Specified by:
getRelationshipMap in interface CollectionService
Parameters:
name -
Returns:
RelationshipMap
Throws:
WTException

getCollectionCriteria

public CollectionCriteria getCollectionCriteria(String name,
                                                WTContainerRef containerRef)
                                         throws WTException


Supported API: false

Specified by:
getCollectionCriteria in interface CollectionService
Parameters:
name -
containerRef -
Returns:
CollectionCriteria
Throws:
WTException

getRelationshipMap

public RelationshipMap getRelationshipMap(String name,
                                          WTContainerRef containerRef)
                                   throws WTException


Supported API: false

Specified by:
getRelationshipMap in interface CollectionService
Parameters:
name -
containerRef -
Returns:
RelationshipMap
Throws:
WTException

exportToFile

public File exportToFile(CollectionCriteria criteria,
                         RelationshipMap map,
                         File output)
                  throws WTException


Supported API: false

Specified by:
exportToFile in interface CollectionService
Parameters:
criteria -
map -
output -
Returns:
File
Throws:
WTException

importFromFile

public void importFromFile(File input)
                    throws WTException


Supported API: false

Specified by:
importFromFile in interface CollectionService
Parameters:
input -
Throws:
WTException

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Description copied from class: StandardManager
Dummy method to be overridden by subclasses. Subclasses should override this method and provide startup processing.

Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

registerAsListener

protected void registerAsListener()
                           throws ManagerException
Throws:
ManagerException

processPreDeleteEvent

private void processPreDeleteEvent(CollectionCriteria criteria)
                            throws WTException
Throws:
WTException

processPreDeleteEvent

private void processPreDeleteEvent(CriterionObject criterion)
                            throws WTException
Throws:
WTException

processPreDeleteEvent

private void processPreDeleteEvent(BaseCriterionDef definition)
                            throws WTException
Throws:
WTException

processPreDeleteEvent

private void processPreDeleteEvent(RelationshipMap map)
                            throws WTException
Throws:
WTException

processPreStoreEvent

private void processPreStoreEvent(CriterionObject co)
                           throws WTException
Throws:
WTException

processPreStoreEvent

private void processPreStoreEvent(InputValue iv)
                           throws WTException
Throws:
WTException

findCollectionCriteria

private QueryResult findCollectionCriteria(boolean flag)
                                    throws QueryException,
                                           WTException
Throws:
QueryException
WTException

setDefaultContainer

protected CollectionCriteria setDefaultContainer(CollectionCriteria criteria,
                                                 CriterionObject[] criterions,
                                                 InputValue[][] inputs)
                                          throws WTException
Throws:
WTException

setContNDomainRefIfAccess

protected CollectionCriteria setContNDomainRefIfAccess(CollectionCriteria criteria,
                                                       WTContainerRef contRef,
                                                       AdminDomainRef domainRef)
                                                throws WTException
Throws:
WTException

createCollectionProcessor

protected CollectionProcessor createCollectionProcessor(CollectionCriteria criteria)
                                                 throws WTException
Throws:
WTException

getDefaultArchiveRelationshipMapProcessor

protected RelationshipMapProcessor getDefaultArchiveRelationshipMapProcessor()
                                                                      throws WTException
Throws:
WTException

getNamedWTContained

protected WTContained getNamedWTContained(Class type,
                                          String nameLbl,
                                          String name,
                                          WTContainerRef containerRef,
                                          String containerRefNullErrMsgKey,
                                          String multipleObjsErrMsgKey)
                                   throws WTException
Throws:
WTException

PPln

protected void PPln(String msg)

PP

protected void PP(String msg)

addQueueEntry

private static void addQueueEntry()
                           throws WTException
Throws:
WTException

getFutureTime

private static Timestamp getFutureTime()
This will run midnight every seven days.


cleanupInvalidObjects

public static void cleanupInvalidObjects(String message)
                                  throws WTException
Throws:
WTException

checkExistsQueueEntry

private boolean checkExistsQueueEntry()
                               throws WTException
Throws:
WTException