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 java.lang.String |
CHOICE
Qualifier of the
TaskCondition.choice attribute |
static java.lang.String |
CONSUMED
Qualifier of the
TaskCondition.consumed attribute |
static java.lang.String |
COUNTER
Qualifier of the
TaskCondition.counter attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
EXPIRATIONTIMEMILLIS
Qualifier of the
TaskCondition.expirationTimeMillis attribute |
static java.lang.String |
FULFILLED
Qualifier of the
TaskCondition.fulfilled attribute |
static java.lang.String |
PROCESSEDDATE
Qualifier of the
TaskCondition.processedDate attribute |
static java.lang.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 java.lang.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.
|
java.lang.String |
getChoice()
Generated method - Getter of the
TaskCondition.choice attribute. |
java.lang.String |
getChoice(SessionContext ctx)
Generated method - Getter of the
TaskCondition.choice attribute. |
java.lang.Integer |
getCounter()
Generated method - Getter of the
TaskCondition.counter attribute. |
java.lang.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 java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.Long |
getExpirationTimeMillis()
Generated method - Getter of the
TaskCondition.expirationTimeMillis attribute. |
java.lang.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. |
java.util.Date |
getProcessedDate()
Generated method - Getter of the
TaskCondition.processedDate attribute. |
java.util.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. |
java.lang.String |
getUniqueID()
Generated method - Getter of the
TaskCondition.uniqueID attribute. |
java.lang.String |
getUniqueID(SessionContext ctx)
Generated method - Getter of the
TaskCondition.uniqueID attribute. |
java.lang.Boolean |
isConsumed()
Generated method - Getter of the
TaskCondition.consumed attribute. |
java.lang.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. |
java.lang.Boolean |
isFulfilled()
Generated method - Getter of the
TaskCondition.fulfilled attribute. |
java.lang.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,
java.lang.String value)
Generated method - Setter of the
TaskCondition.choice attribute. |
void |
setChoice(java.lang.String value)
Generated method - Setter of the
TaskCondition.choice attribute. |
void |
setConsumed(boolean value)
Generated method - Setter of the
TaskCondition.consumed attribute. |
void |
setConsumed(java.lang.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,
java.lang.Boolean value)
Generated method - Setter of the
TaskCondition.consumed attribute. |
void |
setCounter(int value)
Generated method - Setter of the
TaskCondition.counter attribute. |
void |
setCounter(java.lang.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,
java.lang.Integer value)
Generated method - Setter of the
TaskCondition.counter attribute. |
void |
setExpirationTimeMillis(long value)
Generated method - Setter of the
TaskCondition.expirationTimeMillis attribute. |
void |
setExpirationTimeMillis(java.lang.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,
java.lang.Long value)
Generated method - Setter of the
TaskCondition.expirationTimeMillis attribute. |
void |
setFulfilled(boolean value)
Generated method - Setter of the
TaskCondition.fulfilled attribute. |
void |
setFulfilled(java.lang.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,
java.lang.Boolean value)
Generated method - Setter of the
TaskCondition.fulfilled attribute. |
void |
setProcessedDate(java.util.Date value)
Generated method - Setter of the
TaskCondition.processedDate attribute. |
void |
setProcessedDate(SessionContext ctx,
java.util.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,
java.lang.String value)
Generated method - Setter of the
TaskCondition.uniqueID attribute. |
void |
setUniqueID(java.lang.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, getImplementation, 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, isMarkModifiedDisabled, isRelationLocalizationFallbackEnabled, newInstance, notifyExtensionsAfterItemCreation, notifyExtensionsBeforeItemCreation, notifyItemRemoval, notifyManagerAboutItemRemoval, readResolve, 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, writeReplacesetTenantpublic static final java.lang.String UNIQUEID
TaskCondition.uniqueID attributepublic static final java.lang.String EXPIRATIONTIMEMILLIS
TaskCondition.expirationTimeMillis attributepublic static final java.lang.String PROCESSEDDATE
TaskCondition.processedDate attributepublic static final java.lang.String FULFILLED
TaskCondition.fulfilled attributepublic static final java.lang.String CONSUMED
TaskCondition.consumed attributepublic static final java.lang.String CHOICE
TaskCondition.choice attributepublic static final java.lang.String COUNTER
TaskCondition.counter attributepublic static final java.lang.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 java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic java.lang.String getChoice(SessionContext ctx)
TaskCondition.choice attribute.public java.lang.String getChoice()
TaskCondition.choice attribute.public void setChoice(SessionContext ctx, java.lang.String value)
TaskCondition.choice attribute.value - the choice - Additional value which can be provided by the user when triggering an eventpublic void setChoice(java.lang.String value)
TaskCondition.choice attribute.value - the choice - Additional value which can be provided by the user when triggering an eventpublic java.lang.Boolean isConsumed(SessionContext ctx)
TaskCondition.consumed attribute.public java.lang.Boolean isConsumed()
TaskCondition.consumed attribute.public boolean isConsumedAsPrimitive(SessionContext ctx)
TaskCondition.consumed attribute.public boolean isConsumedAsPrimitive()
TaskCondition.consumed attribute.public void setConsumed(SessionContext ctx, java.lang.Boolean value)
TaskCondition.consumed attribute.value - the consumedpublic void setConsumed(java.lang.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 java.lang.Integer getCounter(SessionContext ctx)
TaskCondition.counter attribute.public java.lang.Integer getCounter()
TaskCondition.counter attribute.public int getCounterAsPrimitive(SessionContext ctx)
TaskCondition.counter attribute.public int getCounterAsPrimitive()
TaskCondition.counter attribute.public void setCounter(SessionContext ctx, java.lang.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(java.lang.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 java.lang.Long getExpirationTimeMillis(SessionContext ctx)
TaskCondition.expirationTimeMillis attribute.public java.lang.Long getExpirationTimeMillis()
TaskCondition.expirationTimeMillis attribute.public long getExpirationTimeMillisAsPrimitive(SessionContext ctx)
TaskCondition.expirationTimeMillis attribute.public long getExpirationTimeMillisAsPrimitive()
TaskCondition.expirationTimeMillis attribute.public void setExpirationTimeMillis(SessionContext ctx, java.lang.Long value)
TaskCondition.expirationTimeMillis attribute.value - the expirationTimeMillis - The maximum allowed time to wait for completionpublic void setExpirationTimeMillis(java.lang.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 java.lang.Boolean isFulfilled(SessionContext ctx)
TaskCondition.fulfilled attribute.public java.lang.Boolean isFulfilled()
TaskCondition.fulfilled attribute.public boolean isFulfilledAsPrimitive(SessionContext ctx)
TaskCondition.fulfilled attribute.public boolean isFulfilledAsPrimitive()
TaskCondition.fulfilled attribute.public void setFulfilled(SessionContext ctx, java.lang.Boolean value)
TaskCondition.fulfilled attribute.value - the fulfilledpublic void setFulfilled(java.lang.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 java.util.Date getProcessedDate(SessionContext ctx)
TaskCondition.processedDate attribute.public java.util.Date getProcessedDate()
TaskCondition.processedDate attribute.public void setProcessedDate(SessionContext ctx, java.util.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(java.util.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 java.lang.String getUniqueID(SessionContext ctx)
TaskCondition.uniqueID attribute.public java.lang.String getUniqueID()
TaskCondition.uniqueID attribute.public void setUniqueID(SessionContext ctx, java.lang.String value)
TaskCondition.uniqueID attribute.value - the uniqueID - The unique id of this condition - may be created by number series !?public void setUniqueID(java.lang.String value)
TaskCondition.uniqueID attribute.value - the uniqueID - The unique id of this condition - may be created by number series !?Copyright © 2018 SAP SE. All Rights Reserved.