public abstract class GeneratedTaskCondition extends GenericItem
TaskCondition.GenericItem.GenericItemImplLocalizableItem.LocalizableItemImplExtensibleItem.ExtensibleItemImplItem.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException| Modifier and Type | Field and Description |
|---|---|
static String |
CHOICE
Qualifier of the
TaskCondition.choice attribute |
static String |
CONSUMED
Qualifier of the
TaskCondition.consumed attribute |
static String |
COUNTER
Qualifier of the
TaskCondition.counter attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
EXPIRATIONTIMEMILLIS
Qualifier of the
TaskCondition.expirationTimeMillis attribute |
static String |
FULFILLED
Qualifier of the
TaskCondition.fulfilled attribute |
static String |
PROCESSEDDATE
Qualifier of the
TaskCondition.processedDate attribute |
static String |
TASK
Qualifier of the
TaskCondition.task attribute |
protected static BidirectionalOneToManyHandler<GeneratedTaskCondition> |
TASKHANDLER
BidirectionalOneToManyHandler for handling 1:n TASK's relation attributes from 'one' side. |
static String |
UNIQUEID
Qualifier of the
TaskCondition.uniqueID attribute |
LANGUAGE_FALLBACK_ENABLED_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects, TYPEimpl, tenant| Constructor and Description |
|---|
GeneratedTaskCondition() |
| Modifier and Type | Method and Description |
|---|---|
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
String |
getChoice()
Generated method - Getter of the
TaskCondition.choice attribute. |
String |
getChoice(SessionContext ctx)
Generated method - Getter of the
TaskCondition.choice attribute. |
Integer |
getCounter()
Generated method - Getter of the
TaskCondition.counter attribute. |
Integer |
getCounter(SessionContext ctx)
Generated method - Getter of the
TaskCondition.counter attribute. |
int |
getCounterAsPrimitive()
Generated method - Getter of the
TaskCondition.counter attribute. |
int |
getCounterAsPrimitive(SessionContext ctx)
Generated method - Getter of the
TaskCondition.counter attribute. |
protected Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
Long |
getExpirationTimeMillis()
Generated method - Getter of the
TaskCondition.expirationTimeMillis attribute. |
Long |
getExpirationTimeMillis(SessionContext ctx)
Generated method - Getter of the
TaskCondition.expirationTimeMillis attribute. |
long |
getExpirationTimeMillisAsPrimitive()
Generated method - Getter of the
TaskCondition.expirationTimeMillis attribute. |
long |
getExpirationTimeMillisAsPrimitive(SessionContext ctx)
Generated method - Getter of the
TaskCondition.expirationTimeMillis attribute. |
Date |
getProcessedDate()
Generated method - Getter of the
TaskCondition.processedDate attribute. |
Date |
getProcessedDate(SessionContext ctx)
Generated method - Getter of the
TaskCondition.processedDate attribute. |
Task |
getTask()
Generated method - Getter of the
TaskCondition.task attribute. |
Task |
getTask(SessionContext ctx)
Generated method - Getter of the
TaskCondition.task attribute. |
String |
getUniqueID()
Generated method - Getter of the
TaskCondition.uniqueID attribute. |
String |
getUniqueID(SessionContext ctx)
Generated method - Getter of the
TaskCondition.uniqueID attribute. |
Boolean |
isConsumed()
Generated method - Getter of the
TaskCondition.consumed attribute. |
Boolean |
isConsumed(SessionContext ctx)
Generated method - Getter of the
TaskCondition.consumed attribute. |
boolean |
isConsumedAsPrimitive()
Generated method - Getter of the
TaskCondition.consumed attribute. |
boolean |
isConsumedAsPrimitive(SessionContext ctx)
Generated method - Getter of the
TaskCondition.consumed attribute. |
Boolean |
isFulfilled()
Generated method - Getter of the
TaskCondition.fulfilled attribute. |
Boolean |
isFulfilled(SessionContext ctx)
Generated method - Getter of the
TaskCondition.fulfilled attribute. |
boolean |
isFulfilledAsPrimitive()
Generated method - Getter of the
TaskCondition.fulfilled attribute. |
boolean |
isFulfilledAsPrimitive(SessionContext ctx)
Generated method - Getter of the
TaskCondition.fulfilled attribute. |
void |
setChoice(SessionContext ctx,
String value)
Generated method - Setter of the
TaskCondition.choice attribute. |
void |
setChoice(String value)
Generated method - Setter of the
TaskCondition.choice attribute. |
void |
setConsumed(boolean value)
Generated method - Setter of the
TaskCondition.consumed attribute. |
void |
setConsumed(Boolean value)
Generated method - Setter of the
TaskCondition.consumed attribute. |
void |
setConsumed(SessionContext ctx,
boolean value)
Generated method - Setter of the
TaskCondition.consumed attribute. |
void |
setConsumed(SessionContext ctx,
Boolean value)
Generated method - Setter of the
TaskCondition.consumed attribute. |
void |
setCounter(int value)
Generated method - Setter of the
TaskCondition.counter attribute. |
void |
setCounter(Integer value)
Generated method - Setter of the
TaskCondition.counter attribute. |
void |
setCounter(SessionContext ctx,
int value)
Generated method - Setter of the
TaskCondition.counter attribute. |
void |
setCounter(SessionContext ctx,
Integer value)
Generated method - Setter of the
TaskCondition.counter attribute. |
void |
setExpirationTimeMillis(long value)
Generated method - Setter of the
TaskCondition.expirationTimeMillis attribute. |
void |
setExpirationTimeMillis(Long value)
Generated method - Setter of the
TaskCondition.expirationTimeMillis attribute. |
void |
setExpirationTimeMillis(SessionContext ctx,
long value)
Generated method - Setter of the
TaskCondition.expirationTimeMillis attribute. |
void |
setExpirationTimeMillis(SessionContext ctx,
Long value)
Generated method - Setter of the
TaskCondition.expirationTimeMillis attribute. |
void |
setFulfilled(boolean value)
Generated method - Setter of the
TaskCondition.fulfilled attribute. |
void |
setFulfilled(Boolean value)
Generated method - Setter of the
TaskCondition.fulfilled attribute. |
void |
setFulfilled(SessionContext ctx,
boolean value)
Generated method - Setter of the
TaskCondition.fulfilled attribute. |
void |
setFulfilled(SessionContext ctx,
Boolean value)
Generated method - Setter of the
TaskCondition.fulfilled attribute. |
void |
setProcessedDate(Date value)
Generated method - Setter of the
TaskCondition.processedDate attribute. |
void |
setProcessedDate(SessionContext ctx,
Date value)
Generated method - Setter of the
TaskCondition.processedDate attribute. |
void |
setTask(SessionContext ctx,
Task value)
Generated method - Setter of the
TaskCondition.task attribute. |
void |
setTask(Task value)
Generated method - Setter of the
TaskCondition.task attribute. |
void |
setUniqueID(SessionContext ctx,
String value)
Generated method - Setter of the
TaskCondition.uniqueID attribute. |
void |
setUniqueID(String value)
Generated method - Setter of the
TaskCondition.uniqueID attribute. |
getInitialProperties, getNonInitialAttributesgetAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedPropertycreateNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyaddLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addLinkedItems, addNegativePermission, addPermission, addPositivePermission, assureExtensionsLoaded, changeTypeAfterCreation, checkConstraint, checkItemPermission, checkMandatoryAttribute, checkMandatoryAttribute, checkPermission, checkPermission, checkRemovable, clearPermission, compareTo, ctx, doAfterRemove, doBeforeRemove, equals, getAccessorFor, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributes, getAllAttributesInternal, getAllLinkedItems, getAndCheckCacheBoundItem, getAttribute, getAttribute, getCacheBoundItem, getComposedType, getComposedTypePK, getCreationTime, getCurrentlyRemovingCount, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItems, getLinkedItemsCount, getLinkedItemsCount, getLinkedItemsCount, getModificationTime, getNegativePermissions, getOwner, getPermissionMap, getPermissions, getPersistenceVersion, getPK, getPositivePermissions, getRestrictedPrincipals, getSession, getSyncObject, getTenant, getTransientObject, getTransientObjectMap, hashCode, hasRegisteredClassAccessorFor, internal_registerClassAccessorFor, internal_registerNonClassAccessorFor, invalidateLocalCaches, isAlive, isCacheBound, isCurrentlyRemoving, isCurrentlyRemoving, isEmptyRelationValue, isInCreate, isInstanceOf, isItemCheckBeforeRemoveableDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, readResolve, refreshRemote, registerAccessFor, registerAccessFor, registerJaloInvalidationListeners, remove, remove, removeItemCollection, removeItemCollection, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinkedItems, removeLinks, removePartOfItems, removePartOfItems, setAllAttributes, setAllAttributes, setAllAttributesInternal, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAllLinkedItems, setAttribute, setAttribute, setAttributeFromString, setAttributeFromString, setCacheBound, setComposedType, setCreationTime, setImplementation, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setLinkedItems, setModificationTime, setNonInitialAttributes, setOwner, setPermissionsByMap, setTransientObject, setUseTA, toString, useTA, writeReplacegetImplementation, setTenantpublic static final String UNIQUEID
TaskCondition.uniqueID attributepublic static final String EXPIRATIONTIMEMILLIS
TaskCondition.expirationTimeMillis attributepublic static final String PROCESSEDDATE
TaskCondition.processedDate attributepublic static final String FULFILLED
TaskCondition.fulfilled attributepublic static final String CONSUMED
TaskCondition.consumed attributepublic static final String CHOICE
TaskCondition.choice attributepublic static final String COUNTER
TaskCondition.counter attributepublic static final String TASK
TaskCondition.task attributeprotected static final BidirectionalOneToManyHandler<GeneratedTaskCondition> TASKHANDLER
BidirectionalOneToManyHandler for handling 1:n TASK's relation attributes from 'one' side.protected static final Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic String getChoice(SessionContext ctx)
TaskCondition.choice attribute.public String getChoice()
TaskCondition.choice attribute.public void setChoice(SessionContext ctx, String value)
TaskCondition.choice attribute.value - the choice - Additional value which can be provided by the user when triggering an eventpublic void setChoice(String value)
TaskCondition.choice attribute.value - the choice - Additional value which can be provided by the user when triggering an eventpublic Boolean isConsumed(SessionContext ctx)
TaskCondition.consumed attribute.public Boolean isConsumed()
TaskCondition.consumed attribute.public boolean isConsumedAsPrimitive(SessionContext ctx)
TaskCondition.consumed attribute.public boolean isConsumedAsPrimitive()
TaskCondition.consumed attribute.public void setConsumed(SessionContext ctx, Boolean value)
TaskCondition.consumed attribute.value - the consumedpublic void setConsumed(Boolean value)
TaskCondition.consumed attribute.value - the consumedpublic void setConsumed(SessionContext ctx, boolean value)
TaskCondition.consumed attribute.value - the consumedpublic void setConsumed(boolean value)
TaskCondition.consumed attribute.value - the consumedpublic Integer getCounter(SessionContext ctx)
TaskCondition.counter attribute.public Integer getCounter()
TaskCondition.counter attribute.public int getCounterAsPrimitive(SessionContext ctx)
TaskCondition.counter attribute.public int getCounterAsPrimitive()
TaskCondition.counter attribute.public void setCounter(SessionContext ctx, Integer value)
TaskCondition.counter attribute.value - the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.public void setCounter(Integer value)
TaskCondition.counter attribute.value - the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.public void setCounter(SessionContext ctx, int value)
TaskCondition.counter attribute.value - the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.public void setCounter(int value)
TaskCondition.counter attribute.value - the counter - Counter which if set to value greater than 0 prevent fulfilling the condition. Counter is decremented every time when an event is triggered.protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
ItemComposedType.newInstance(Map).
In case this method uses any of the attribute values during creation it is required to override
Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
Sn example:
public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
// here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
super.getNonInitialAttributes( ctx, allAttributes );
// remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
createItem in class GenericItemctx - the current session context which this item is created withintype - the actual item type ( since subtypes may not provide a own jalo class this may be different from the
type which this method was implemented for )JaloBusinessException - indicates an error during creation - any changes will be rollbackedpublic Long getExpirationTimeMillis(SessionContext ctx)
TaskCondition.expirationTimeMillis attribute.public Long getExpirationTimeMillis()
TaskCondition.expirationTimeMillis attribute.public long getExpirationTimeMillisAsPrimitive(SessionContext ctx)
TaskCondition.expirationTimeMillis attribute.public long getExpirationTimeMillisAsPrimitive()
TaskCondition.expirationTimeMillis attribute.public void setExpirationTimeMillis(SessionContext ctx, Long value)
TaskCondition.expirationTimeMillis attribute.value - the expirationTimeMillis - The maximum allowed time to wait for completionpublic void setExpirationTimeMillis(Long value)
TaskCondition.expirationTimeMillis attribute.value - the expirationTimeMillis - The maximum allowed time to wait for completionpublic void setExpirationTimeMillis(SessionContext ctx, long value)
TaskCondition.expirationTimeMillis attribute.value - the expirationTimeMillis - The maximum allowed time to wait for completionpublic void setExpirationTimeMillis(long value)
TaskCondition.expirationTimeMillis attribute.value - the expirationTimeMillis - The maximum allowed time to wait for completionpublic Boolean isFulfilled(SessionContext ctx)
TaskCondition.fulfilled attribute.public Boolean isFulfilled()
TaskCondition.fulfilled attribute.public boolean isFulfilledAsPrimitive(SessionContext ctx)
TaskCondition.fulfilled attribute.public boolean isFulfilledAsPrimitive()
TaskCondition.fulfilled attribute.public void setFulfilled(SessionContext ctx, Boolean value)
TaskCondition.fulfilled attribute.value - the fulfilledpublic void setFulfilled(Boolean value)
TaskCondition.fulfilled attribute.value - the fulfilledpublic void setFulfilled(SessionContext ctx, boolean value)
TaskCondition.fulfilled attribute.value - the fulfilledpublic void setFulfilled(boolean value)
TaskCondition.fulfilled attribute.value - the fulfilledpublic Date getProcessedDate(SessionContext ctx)
TaskCondition.processedDate attribute.public Date getProcessedDate()
TaskCondition.processedDate attribute.public void setProcessedDate(SessionContext ctx, Date value)
TaskCondition.processedDate attribute.value - the processedDate - The date when this condition has been processed.
Then state is switched to FULFILLED or REJECTED.public void setProcessedDate(Date value)
TaskCondition.processedDate attribute.value - the processedDate - The date when this condition has been processed.
Then state is switched to FULFILLED or REJECTED.public Task getTask(SessionContext ctx)
TaskCondition.task attribute.public Task getTask()
TaskCondition.task attribute.public void setTask(SessionContext ctx, Task value)
TaskCondition.task attribute.value - the taskpublic void setTask(Task value)
TaskCondition.task attribute.value - the taskpublic String getUniqueID(SessionContext ctx)
TaskCondition.uniqueID attribute.public String getUniqueID()
TaskCondition.uniqueID attribute.public void setUniqueID(SessionContext ctx, String value)
TaskCondition.uniqueID attribute.value - the uniqueID - The unique id of this condition - may be created by number series !?public void setUniqueID(String value)
TaskCondition.uniqueID attribute.value - the uniqueID - The unique id of this condition - may be created by number series !?Copyright © 2017 SAP SE. All Rights Reserved.