public abstract class GeneratedYFormData extends GenericItem
YFormData.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 |
APPLICATIONID
Qualifier of the
YFormData.applicationId attribute |
static java.lang.String |
CONTENT
Qualifier of the
YFormData.content attribute |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
FORMDEFINITION
Qualifier of the
YFormData.formDefinition attribute |
protected static BidirectionalOneToManyHandler<GeneratedYFormData> |
FORMDEFINITIONHANDLER
BidirectionalOneToManyHandler for handling 1:n FORMDEFINITION's relation attributes from 'one' side. |
static java.lang.String |
FORMID
Qualifier of the
YFormData.formId attribute |
static java.lang.String |
HISTORY
Qualifier of the
YFormData.history attribute |
protected static OneToManyHandler<YFormDataHistory> |
HISTORYHANDLER
OneToManyHandler for handling 1:n HISTORY's relation attributes from 'many' side. |
static java.lang.String |
ID
Qualifier of the
YFormData.id attribute |
static java.lang.String |
REFID
Qualifier of the
YFormData.refId attribute |
static java.lang.String |
SYSTEM
Qualifier of the
YFormData.system attribute |
static java.lang.String |
TYPE
Qualifier of the
YFormData.type 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, staticTransientObjectsimpl, tenant| Constructor and Description |
|---|
GeneratedYFormData() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToHistory(SessionContext ctx,
YFormDataHistory value)
Generated method - Adds
value to history. |
void |
addToHistory(YFormDataHistory value)
Generated method - Adds
value to history. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
java.lang.String |
getApplicationId()
Generated method - Getter of the
YFormData.applicationId attribute. |
java.lang.String |
getApplicationId(SessionContext ctx)
Generated method - Getter of the
YFormData.applicationId attribute. |
java.lang.String |
getContent()
Generated method - Getter of the
YFormData.content attribute. |
java.lang.String |
getContent(SessionContext ctx)
Generated method - Getter of the
YFormData.content attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
YFormDefinition |
getFormDefinition()
Generated method - Getter of the
YFormData.formDefinition attribute. |
YFormDefinition |
getFormDefinition(SessionContext ctx)
Generated method - Getter of the
YFormData.formDefinition attribute. |
java.lang.String |
getFormId()
Generated method - Getter of the
YFormData.formId attribute. |
java.lang.String |
getFormId(SessionContext ctx)
Generated method - Getter of the
YFormData.formId attribute. |
java.util.List<YFormDataHistory> |
getHistory()
Generated method - Getter of the
YFormData.history attribute. |
java.util.List<YFormDataHistory> |
getHistory(SessionContext ctx)
Generated method - Getter of the
YFormData.history attribute. |
java.lang.String |
getId()
Generated method - Getter of the
YFormData.id attribute. |
java.lang.String |
getId(SessionContext ctx)
Generated method - Getter of the
YFormData.id attribute. |
java.lang.String |
getRefId()
Generated method - Getter of the
YFormData.refId attribute. |
java.lang.String |
getRefId(SessionContext ctx)
Generated method - Getter of the
YFormData.refId attribute. |
EnumerationValue |
getType()
Generated method - Getter of the
YFormData.type attribute. |
EnumerationValue |
getType(SessionContext ctx)
Generated method - Getter of the
YFormData.type attribute. |
java.lang.Boolean |
isSystem()
Generated method - Getter of the
YFormData.system attribute. |
java.lang.Boolean |
isSystem(SessionContext ctx)
Generated method - Getter of the
YFormData.system attribute. |
boolean |
isSystemAsPrimitive()
Generated method - Getter of the
YFormData.system attribute. |
boolean |
isSystemAsPrimitive(SessionContext ctx)
Generated method - Getter of the
YFormData.system attribute. |
void |
removeFromHistory(SessionContext ctx,
YFormDataHistory value)
Generated method - Removes
value from history. |
void |
removeFromHistory(YFormDataHistory value)
Generated method - Removes
value from history. |
void |
setApplicationId(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
YFormData.applicationId attribute. |
void |
setApplicationId(java.lang.String value)
Generated method - Setter of the
YFormData.applicationId attribute. |
void |
setContent(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
YFormData.content attribute. |
void |
setContent(java.lang.String value)
Generated method - Setter of the
YFormData.content attribute. |
void |
setFormDefinition(SessionContext ctx,
YFormDefinition value)
Generated method - Setter of the
YFormData.formDefinition attribute. |
void |
setFormDefinition(YFormDefinition value)
Generated method - Setter of the
YFormData.formDefinition attribute. |
void |
setFormId(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
YFormData.formId attribute. |
void |
setFormId(java.lang.String value)
Generated method - Setter of the
YFormData.formId attribute. |
void |
setHistory(java.util.List<YFormDataHistory> value)
Generated method - Setter of the
YFormData.history attribute. |
void |
setHistory(SessionContext ctx,
java.util.List<YFormDataHistory> value)
Generated method - Setter of the
YFormData.history attribute. |
void |
setId(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
YFormData.id attribute. |
void |
setId(java.lang.String value)
Generated method - Setter of the
YFormData.id attribute. |
void |
setRefId(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
YFormData.refId attribute. |
void |
setRefId(java.lang.String value)
Generated method - Setter of the
YFormData.refId attribute. |
void |
setSystem(boolean value)
Generated method - Setter of the
YFormData.system attribute. |
void |
setSystem(java.lang.Boolean value)
Generated method - Setter of the
YFormData.system attribute. |
void |
setSystem(SessionContext ctx,
boolean value)
Generated method - Setter of the
YFormData.system attribute. |
void |
setSystem(SessionContext ctx,
java.lang.Boolean value)
Generated method - Setter of the
YFormData.system attribute. |
void |
setType(EnumerationValue value)
Generated method - Setter of the
YFormData.type attribute. |
void |
setType(SessionContext ctx,
EnumerationValue value)
Generated method - Setter of the
YFormData.type 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 ID
YFormData.id attributepublic static final java.lang.String APPLICATIONID
YFormData.applicationId attributepublic static final java.lang.String FORMID
YFormData.formId attributepublic static final java.lang.String REFID
YFormData.refId attributepublic static final java.lang.String SYSTEM
YFormData.system attributepublic static final java.lang.String TYPE
YFormData.type attributepublic static final java.lang.String CONTENT
YFormData.content attributepublic static final java.lang.String FORMDEFINITION
YFormData.formDefinition attributepublic static final java.lang.String HISTORY
YFormData.history attributeprotected static final BidirectionalOneToManyHandler<GeneratedYFormData> FORMDEFINITIONHANDLER
BidirectionalOneToManyHandler for handling 1:n FORMDEFINITION's relation attributes from 'one' side.protected static final OneToManyHandler<YFormDataHistory> HISTORYHANDLER
OneToManyHandler for handling 1:n HISTORY's relation attributes from 'many' 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 getApplicationId(SessionContext ctx)
YFormData.applicationId attribute.public java.lang.String getApplicationId()
YFormData.applicationId attribute.public void setApplicationId(SessionContext ctx, java.lang.String value)
YFormData.applicationId attribute.value - the applicationIdpublic void setApplicationId(java.lang.String value)
YFormData.applicationId attribute.value - the applicationIdpublic java.lang.String getContent(SessionContext ctx)
YFormData.content attribute.public java.lang.String getContent()
YFormData.content attribute.public void setContent(SessionContext ctx, java.lang.String value)
YFormData.content attribute.value - the contentpublic void setContent(java.lang.String value)
YFormData.content attribute.value - the contentprotected 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 YFormDefinition getFormDefinition(SessionContext ctx)
YFormData.formDefinition attribute.public YFormDefinition getFormDefinition()
YFormData.formDefinition attribute.public void setFormDefinition(SessionContext ctx, YFormDefinition value)
YFormData.formDefinition attribute.value - the formDefinitionpublic void setFormDefinition(YFormDefinition value)
YFormData.formDefinition attribute.value - the formDefinitionpublic java.lang.String getFormId(SessionContext ctx)
YFormData.formId attribute.public java.lang.String getFormId()
YFormData.formId attribute.public void setFormId(SessionContext ctx, java.lang.String value)
YFormData.formId attribute.value - the formIdpublic void setFormId(java.lang.String value)
YFormData.formId attribute.value - the formIdpublic java.util.List<YFormDataHistory> getHistory(SessionContext ctx)
YFormData.history attribute.public java.util.List<YFormDataHistory> getHistory()
YFormData.history attribute.public void setHistory(SessionContext ctx, java.util.List<YFormDataHistory> value)
YFormData.history attribute.value - the historypublic void setHistory(java.util.List<YFormDataHistory> value)
YFormData.history attribute.value - the historypublic void addToHistory(SessionContext ctx, YFormDataHistory value)
value to history.value - the item to add to historypublic void addToHistory(YFormDataHistory value)
value to history.value - the item to add to historypublic void removeFromHistory(SessionContext ctx, YFormDataHistory value)
value from history.value - the item to remove from historypublic void removeFromHistory(YFormDataHistory value)
value from history.value - the item to remove from historypublic java.lang.String getId(SessionContext ctx)
YFormData.id attribute.public java.lang.String getId()
YFormData.id attribute.public void setId(SessionContext ctx, java.lang.String value)
YFormData.id attribute.value - the idpublic void setId(java.lang.String value)
YFormData.id attribute.value - the idpublic java.lang.String getRefId(SessionContext ctx)
YFormData.refId attribute.public java.lang.String getRefId()
YFormData.refId attribute.public void setRefId(SessionContext ctx, java.lang.String value)
YFormData.refId attribute.value - the refIdpublic void setRefId(java.lang.String value)
YFormData.refId attribute.value - the refIdpublic java.lang.Boolean isSystem(SessionContext ctx)
YFormData.system attribute.public java.lang.Boolean isSystem()
YFormData.system attribute.public boolean isSystemAsPrimitive(SessionContext ctx)
YFormData.system attribute.public boolean isSystemAsPrimitive()
YFormData.system attribute.public void setSystem(SessionContext ctx, java.lang.Boolean value)
YFormData.system attribute.value - the systempublic void setSystem(java.lang.Boolean value)
YFormData.system attribute.value - the systempublic void setSystem(SessionContext ctx, boolean value)
YFormData.system attribute.value - the systempublic void setSystem(boolean value)
YFormData.system attribute.value - the systempublic EnumerationValue getType(SessionContext ctx)
YFormData.type attribute.public EnumerationValue getType()
YFormData.type attribute.public void setType(SessionContext ctx, EnumerationValue value)
YFormData.type attribute.value - the typepublic void setType(EnumerationValue value)
YFormData.type attribute.value - the typeCopyright © 2018 SAP SE. All Rights Reserved.