wt.epm.supportingdata
Class StandardEPMSupportingDataService

java.lang.Object
  extended bywt.services.StandardManager
      extended bywt.epm.supportingdata.StandardEPMSupportingDataService
All Implemented Interfaces:
EPMSupportingDataService, Manager, NetFactor, Serializable

public class StandardEPMSupportingDataService
extends StandardManager
implements EPMSupportingDataService, Serializable

Use the newStandardEPMSupportingDataService static factory method(s), not the StandardEPMSupportingDataService 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 String EPMRESOURCE
           
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
StandardEPMSupportingDataService()
           
 
Method Summary
private  void checkPermissions(WTCollection objects)
           
private  void copyForwardSupportingData(WTCollection holders)
           
private  void copyForwardSupportingData2(WTCollection holders)
           
protected  void dispatchVetoableEvent(String eventType, Lockable object)
          Dispatches a LockServiceEvent that includes the event type and target (i.e., Lockable object).
 String getConceptualClassname()
          Deprecated.  
 QueryResult getSupportingData(EPMSupportingDataHolder dataHolder)
          Get all the supporting data attached to the dataHolder.
 EPMSupportingData getSupportingData(EPMSupportingDataHolder dataHolder, EPMApplicationType ownerApplication, String name)
          Get the supporting data for a particular name and application attached to the dataHolder.
 WTKeyedMap getSupportingData(WTCollection dataHolders)
          

Supported API: false
protected  void initialize()
          

Supported API: false
static StandardEPMSupportingDataService newStandardEPMSupportingDataService()
          Default factory for the class.
protected  void performStartupProcess()
          Overrides the startup process specific to the locking service to provide custom startup for event subscription.
private  void processNewIterationEvent(WTCollection newIterations)
           
private  void processPreDeleteEvent(WTCollection objects)
           
private  void processPreModifyEvent(WTCollection objects)
           
private  void processPreStoreEvent(WTCollection objects)
           
private  void processPreUndoCheckoutEvent(WTValuedMap originalsToWorking)
           
 void registerEvents(ManagerService manager)
          Overrides the registration of all applicable locking service events with the service manager.
private  void removeSupportingData(WTCollection holders)
           
 QueryResult saveEPMSupportingDataObjects(Vector objects)
          Deprecated. in 8.0, please use public WTCollection store( WTCollection a_objects ) from StandardPersistenceManager.
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, 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

EPMRESOURCE

private static final String EPMRESOURCE
See Also:
Constant Field Values
Constructor Detail

StandardEPMSupportingDataService

public StandardEPMSupportingDataService()
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

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Overrides the startup process specific to the locking service to provide custom startup for event subscription. During subscription an anonymous inner class adapter is created per subscription to handle each specific event of interest.

Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

registerEvents

public void registerEvents(ManagerService manager)
Overrides the registration of all applicable locking service events with the service manager.

Supported API: false

Specified by:
registerEvents in interface Manager
Overrides:
registerEvents in class StandardManager
Parameters:
manager -

dispatchVetoableEvent

protected void dispatchVetoableEvent(String eventType,
                                     Lockable object)
                              throws WTException,
                                     WTPropertyVetoException
Dispatches a LockServiceEvent that includes the event type and target (i.e., Lockable object).

Supported API: false

Parameters:
eventType - The name of the PersistentManagerEvent type.
object - The target of the persistable operation.
Throws:
WTException
WTPropertyVetoException

initialize

protected void initialize()
                   throws WTException


Supported API: false

Overrides:
initialize in class StandardManager
Throws:
WTException

newStandardEPMSupportingDataService

public static StandardEPMSupportingDataService newStandardEPMSupportingDataService()
                                                                            throws WTException
Default factory for the class.

Supported API: false

Returns:
StandardEPMSupportingDataService
Throws:
WTException

getSupportingData

public QueryResult getSupportingData(EPMSupportingDataHolder dataHolder)
                              throws WTException
Get all the supporting data attached to the dataHolder.

Supported API: false

Specified by:
getSupportingData in interface EPMSupportingDataService
Parameters:
dataHolder -
Returns:
QueryResult
Throws:
WTException

getSupportingData

public EPMSupportingData getSupportingData(EPMSupportingDataHolder dataHolder,
                                           EPMApplicationType ownerApplication,
                                           String name)
                                    throws WTException
Get the supporting data for a particular name and application attached to the dataHolder.

Supported API: false

Specified by:
getSupportingData in interface EPMSupportingDataService
Parameters:
dataHolder -
ownerApplication -
name -
Returns:
EPMSupportingData
Throws:
WTException

saveEPMSupportingDataObjects

public QueryResult saveEPMSupportingDataObjects(Vector objects)
                                         throws WTException
Deprecated. in 8.0, please use public WTCollection store( WTCollection a_objects ) from StandardPersistenceManager.

This method saves/modifies the given set of EPMSupportingDataObjects by using a stored procedure and returns the result. This method improves the performace a lot compared to using the PersistanceHelper.manager.save iteratively when we have large number of supporting data objects.

Supported API: false

Specified by:
saveEPMSupportingDataObjects in interface EPMSupportingDataService
Parameters:
objects -
Returns:
QueryResult
Throws:
WTException

getSupportingData

public WTKeyedMap getSupportingData(WTCollection dataHolders)
                             throws WTException


Supported API: false

Specified by:
getSupportingData in interface EPMSupportingDataService
Parameters:
dataHolders -
Returns:
WTKeyedMap
Throws:
WTException

processPreStoreEvent

private void processPreStoreEvent(WTCollection objects)
                           throws WTException
Throws:
WTException

processPreModifyEvent

private void processPreModifyEvent(WTCollection objects)
                            throws WTException
Throws:
WTException

processPreDeleteEvent

private void processPreDeleteEvent(WTCollection objects)
                            throws WTException
Throws:
WTException

processPreUndoCheckoutEvent

private void processPreUndoCheckoutEvent(WTValuedMap originalsToWorking)
                                  throws WTException
Throws:
WTException

processNewIterationEvent

private void processNewIterationEvent(WTCollection newIterations)
                               throws WTException
Throws:
WTException

checkPermissions

private void checkPermissions(WTCollection objects)
                       throws WTException
Throws:
WTException

copyForwardSupportingData

private void copyForwardSupportingData(WTCollection holders)
                                throws WTException
Throws:
WTException

copyForwardSupportingData2

private void copyForwardSupportingData2(WTCollection holders)
                                 throws WTException
Throws:
WTException

removeSupportingData

private void removeSupportingData(WTCollection holders)
                           throws WTException
Throws:
WTException