|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.services.StandardManager
wt.maturity.StandardMaturityService
Standard server-side implementation of the MaturityService interfaces. The public, static methods in this class are accessed through the syntax:
MaturityHelper.service.[method]
Use the newStandardMaturityService
static factory method(s),
not the StandardMaturityService
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: false
MaturityService
,
MaturityServiceFwd
,
MaturityHelper
,
Serialized FormField Summary | |
private static String |
CLASSNAME
|
private static String |
CONTAINED_CONT_ID_ATTR_NAME
|
static Set |
PROMOTION_NOTICE_TERMINAL_STATES
|
private static String |
RESOURCE
|
private static boolean |
VERBOSE
|
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 | |
StandardMaturityService()
|
Method Summary | |
PromotionNotice |
deletePromotionNotice(PromotionNotice pn)
Deletes a PromotionNotice. |
PromotionNotice |
deletePromotionSeeds(PromotionNotice pn,
WTSet promotables)
Deletes the PromotionSeed link between the PromotionNotice and the Promotable. |
PromotionNotice |
deletePromotionTargets(PromotionNotice pn,
WTSet promotables)
Deletes the PromotionTarget link between the PromotionNotice and the Promotable. |
private QueryResult |
filterNonMaturityBaselines(QueryResult mbms)
|
void |
generateViewables(WTCollection collection,
PromotionNotice thePN,
ConfigSpec configSpec,
boolean defaultRep)
Generate ProductView viewables. |
QueryResult |
getBaselineItems(PromotionNotice promotionNotice)
Returns a QueryResult of MaturityVersioned, Baselineable item iterations that are part of the Maturity Baseline associated to the PromotionNotice. |
QueryResult |
getBaselines(Baselineable promotable,
Class promotionNoticeClass)
Returns a QueryResult of MaturityVersioned Baseline objects of a specified class that this Baselineable item iteration is part of. |
QueryResult |
getBaselines(Promotable promotable)
Returns a QueryResult of MaturityVersioned Baseline objects that this MaturityVersioned Baselineable item iteration is part of. |
String |
getConceptualClassname()
Deprecated. |
WTSet |
getInvalidTargets(WTCollection promotionTargets,
boolean includeLocks)
Returns the set of invalid promotion targets of a given promotion notice. |
WTSet |
getNonInitialTargets(WTSet promotionTargets)
|
WTCollection |
getPromotionNotices(WTCollection promotables)
Supported API: true |
QueryResult |
getPromotionSeeds(PromotionNotice pn)
Supported API: false |
QueryResult |
getPromotionTargets(PromotionNotice pn)
Returns the PromotionTargets associated to the PromotionNotice. |
QueryResult |
getPromotionTargets(PromotionNotice pn,
boolean onlyOtherSide)
Returns the PromotionTargets associated to the PromotionNotice. |
WTKeyedHashMap |
getTargetPromotionNotices(WTCollection pSet)
Returns a WTKeyedHashSet where the keys are the values of pSet and the values are a WTArrayList of PromotionTargets. |
boolean |
isAnyIterationInBaseline(Promotable promotable,
PromotionNotice promotionNotice)
Returns true, if for this Maturity Baselineable, any items with the same Master are part of the MaturityBaseline associated to the PromotionNotice. |
boolean |
isInBaseline(Promotable promotable,
PromotionNotice promotionNotice)
Returns true, if the MaturityVersioned item iteration is part of the MaturityBaseline associated to the PromotionNotice. |
void |
lockTargets(PromotionNotice pn)
Given a PromotionNotice validate and set to the LOCK state the associated PromotionTargets. |
static StandardMaturityService |
newStandardMaturityService()
Default factory for the class. |
protected void |
performStartupProcess()
Supported API: false |
private void |
processPostDeleteEvent(WTCollection pnCollection)
Emits event for the deletion of promotion requests to delete any baselines for those notices |
private void |
processPostStoreEvent(WTCollection pnCollection)
Emit event for publishing the viewables on EPM Documents in the Baseline for the PromotionNotices |
private void |
processPreDeleteEvent(WTCollection pnCollection)
Emits event for the deletion of promotion requests to unlock any promotables which may be locked. |
void |
promoteTargets(PromotionNotice pn)
Given a PromotionNotice validate and set to the promotion state defined in the PromotionNotice. |
void |
registerEvents(ManagerService managerService)
Register events with the passed ManagerService. |
PromotionNotice |
savePromotionNotice(PromotionNotice pn)
Persists the PromotionNotice. |
void |
savePromotionSeeds(PromotionNotice pn,
WTSet promotables)
Creates and persists PromotionSeeds between the PromotionNotice and the Promotables. |
WTSet |
savePromotionSeeds(WTSet psSet)
Persists PromotionSeeds in the psVector. |
void |
savePromotionTargets(PromotionNotice pn,
WTSet promotables)
Creates and persists PromotionTargets between the PromotionNotice and the Promotables. |
WTSet |
savePromotionTargets(WTSet ptSet)
Persists PromotionTargets in the ptVector. |
void |
unattachPromotable(Promotable refObject,
PromotionNotice promotionNotice,
Class linkClass,
String maturityRole)
Deletes the association between a PromotionNotice and a Promotable. |
void |
unlockTargets(PromotionNotice pn)
Given a PromotionNotice validate and set to the create state the associated PromotionTargets. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final String RESOURCE
private static final String CLASSNAME
private static final String CONTAINED_CONT_ID_ATTR_NAME
public static final Set PROMOTION_NOTICE_TERMINAL_STATES
private static boolean VERBOSE
Constructor Detail |
public StandardMaturityService()
Method Detail |
public String getConceptualClassname()
getConceptualClassname
in interface NetFactor
getConceptualClassname
in class StandardManager
protected void performStartupProcess() throws ManagerException
performStartupProcess
in class StandardManager
ManagerException
public void registerEvents(ManagerService managerService)
registerEvents
in interface Manager
registerEvents
in class StandardManager
managerService
- public static StandardMaturityService newStandardMaturityService() throws WTException
WTException
public PromotionNotice deletePromotionNotice(PromotionNotice pn) throws WTException, MaturityException
deletePromotionNotice
in interface MaturityService
pn
-
WTException
MaturityException
public PromotionNotice savePromotionNotice(PromotionNotice pn) throws WTException, MaturityException
savePromotionNotice
in interface MaturityService
pn
-
WTException
MaturityException
public PromotionNotice deletePromotionTargets(PromotionNotice pn, WTSet promotables) throws WTException, MaturityException
deletePromotionTargets
in interface MaturityService
pn
- promotables
-
WTException
MaturityException
public QueryResult getPromotionTargets(PromotionNotice pn) throws WTException, MaturityException
getPromotionTargets
in interface MaturityService
pn
-
WTException
MaturityException
public void savePromotionTargets(PromotionNotice pn, WTSet promotables) throws WTException, MaturityException, WTPropertyVetoException
savePromotionTargets
in interface MaturityService
pn
- promotables
-
WTException
MaturityException
WTPropertyVetoException
public void unattachPromotable(Promotable refObject, PromotionNotice promotionNotice, Class linkClass, String maturityRole) throws WTException, MaturityException
unattachPromotable
in interface MaturityService
refObject
- A MaturityVersioned object to be disassociatd from a PromotionNoticepromotionNotice
- The PromotionNotice associated to the MaturityVersioned.linkClass
- The associated link Class, which has a PromotionNotice as role A.maturityRole
- The role name.
WTException
MaturityException
public WTSet savePromotionTargets(WTSet ptSet) throws WTException, MaturityException, WTPropertyVetoException
savePromotionTargets
in interface MaturityService
ptSet
-
WTException
MaturityException
WTPropertyVetoException
public void savePromotionSeeds(PromotionNotice pn, WTSet promotables) throws WTException, MaturityException
savePromotionSeeds
in interface MaturityService
pn
- promotables
-
WTException
MaturityException
public WTSet savePromotionSeeds(WTSet psSet) throws WTException, MaturityException
savePromotionSeeds
in interface MaturityService
psSet
-
WTException
MaturityException
public QueryResult getPromotionSeeds(PromotionNotice pn) throws WTException, MaturityException
getPromotionSeeds
in interface MaturityService
pn
-
WTException
MaturityException
public PromotionNotice deletePromotionSeeds(PromotionNotice pn, WTSet promotables) throws WTException, MaturityException
deletePromotionSeeds
in interface MaturityService
pn
- promotables
-
WTException
MaturityException
public QueryResult getBaselines(Promotable promotable) throws WTException
getBaselines
in interface MaturityService
promotable
-
WTException
public QueryResult getBaselines(Baselineable promotable, Class promotionNoticeClass) throws WTException
getBaselines
in interface MaturityService
promotable
- promotionNoticeClass
-
WTException
public QueryResult getBaselineItems(PromotionNotice promotionNotice) throws WTException
getBaselineItems
in interface MaturityService
promotionNotice
-
WTException
public boolean isInBaseline(Promotable promotable, PromotionNotice promotionNotice) throws WTException
isInBaseline
in interface MaturityService
promotable
- promotionNotice
-
WTException
public boolean isAnyIterationInBaseline(Promotable promotable, PromotionNotice promotionNotice) throws WTException
isAnyIterationInBaseline
in interface MaturityService
promotable
- promotionNotice
-
WTException
public QueryResult getPromotionTargets(PromotionNotice pn, boolean onlyOtherSide) throws WTException, MaturityException
getPromotionTargets
in interface MaturityService
pn
- onlyOtherSide
-
WTException
MaturityException
public WTSet getInvalidTargets(WTCollection promotionTargets, boolean includeLocks) throws WTException
getInvalidTargets
in interface MaturityService
promotionTargets
- includeLocks
- If true, validate considering lock states. If false, validate without considering lock states.
WTException
public WTCollection getPromotionNotices(WTCollection promotables) throws WTException
getPromotionNotices
in interface MaturityService
promotables
-
WTException
public void generateViewables(WTCollection collection, PromotionNotice thePN, ConfigSpec configSpec, boolean defaultRep) throws WTException
generateViewables
in interface MaturityService
collection
- Collection of objects that will have viewables generated.thePN
- PromotionNotice associated to the collection of objects.configSpec
- ConfigSpec used by ProductView viewable generationdefaultRep
-
WTException
public WTKeyedHashMap getTargetPromotionNotices(WTCollection pSet) throws WTException
getTargetPromotionNotices
in interface MaturityService
pSet
- Set of Promotables
WTException
public void lockTargets(PromotionNotice pn) throws WTException
lockTargets
in interface MaturityServiceSvr
pn
-
WTException
public void promoteTargets(PromotionNotice pn) throws WTException
promoteTargets
in interface MaturityServiceSvr
pn
-
WTException
public void unlockTargets(PromotionNotice pn) throws WTException
unlockTargets
in interface MaturityServiceSvr
pn
-
WTException
private void processPreDeleteEvent(WTCollection pnCollection) throws WTException
WTException
private void processPostDeleteEvent(WTCollection pnCollection) throws WTException
WTException
private void processPostStoreEvent(WTCollection pnCollection) throws WTException
WTException
private QueryResult filterNonMaturityBaselines(QueryResult mbms) throws WTException
WTException
public WTSet getNonInitialTargets(WTSet promotionTargets) throws WTException
WTException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |