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 String |
APPLICATIONID
Qualifier of the
YFormData.applicationId attribute |
static String |
CONTENT
Qualifier of the
YFormData.content attribute |
protected static Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static 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 String |
FORMID
Qualifier of the
YFormData.formId attribute |
static 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 String |
ID
Qualifier of the
YFormData.id attribute |
static String |
REFID
Qualifier of the
YFormData.refId attribute |
static String |
SYSTEM
Qualifier of the
YFormData.system attribute |
static 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.
|
String |
getApplicationId()
Generated method - Getter of the
YFormData.applicationId attribute. |
String |
getApplicationId(SessionContext ctx)
Generated method - Getter of the
YFormData.applicationId attribute. |
String |
getContent()
Generated method - Getter of the
YFormData.content attribute. |
String |
getContent(SessionContext ctx)
Generated method - Getter of the
YFormData.content attribute. |
protected Map<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. |
String |
getFormId()
Generated method - Getter of the
YFormData.formId attribute. |
String |
getFormId(SessionContext ctx)
Generated method - Getter of the
YFormData.formId attribute. |
List<YFormDataHistory> |
getHistory()
Generated method - Getter of the
YFormData.history attribute. |
List<YFormDataHistory> |
getHistory(SessionContext ctx)
Generated method - Getter of the
YFormData.history attribute. |
String |
getId()
Generated method - Getter of the
YFormData.id attribute. |
String |
getId(SessionContext ctx)
Generated method - Getter of the
YFormData.id attribute. |
String |
getRefId()
Generated method - Getter of the
YFormData.refId attribute. |
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. |
Boolean |
isSystem()
Generated method - Getter of the
YFormData.system attribute. |
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,
String value)
Generated method - Setter of the
YFormData.applicationId attribute. |
void |
setApplicationId(String value)
Generated method - Setter of the
YFormData.applicationId attribute. |
void |
setContent(SessionContext ctx,
String value)
Generated method - Setter of the
YFormData.content attribute. |
void |
setContent(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,
String value)
Generated method - Setter of the
YFormData.formId attribute. |
void |
setFormId(String value)
Generated method - Setter of the
YFormData.formId attribute. |
void |
setHistory(List<YFormDataHistory> value)
Generated method - Setter of the
YFormData.history attribute. |
void |
setHistory(SessionContext ctx,
List<YFormDataHistory> value)
Generated method - Setter of the
YFormData.history attribute. |
void |
setId(SessionContext ctx,
String value)
Generated method - Setter of the
YFormData.id attribute. |
void |
setId(String value)
Generated method - Setter of the
YFormData.id attribute. |
void |
setRefId(SessionContext ctx,
String value)
Generated method - Setter of the
YFormData.refId attribute. |
void |
setRefId(String value)
Generated method - Setter of the
YFormData.refId attribute. |
void |
setSystem(boolean value)
Generated method - Setter of the
YFormData.system attribute. |
void |
setSystem(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,
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, 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 ID
YFormData.id attributepublic static final String APPLICATIONID
YFormData.applicationId attributepublic static final String FORMID
YFormData.formId attributepublic static final String REFID
YFormData.refId attributepublic static final String SYSTEM
YFormData.system attributepublic static final String TYPE
YFormData.type attributepublic static final String CONTENT
YFormData.content attributepublic static final String FORMDEFINITION
YFormData.formDefinition attributepublic static final 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 Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class Itempublic String getApplicationId(SessionContext ctx)
YFormData.applicationId attribute.public String getApplicationId()
YFormData.applicationId attribute.public void setApplicationId(SessionContext ctx, String value)
YFormData.applicationId attribute.value - the applicationIdpublic void setApplicationId(String value)
YFormData.applicationId attribute.value - the applicationIdpublic String getContent(SessionContext ctx)
YFormData.content attribute.public String getContent()
YFormData.content attribute.public void setContent(SessionContext ctx, String value)
YFormData.content attribute.value - the contentpublic void setContent(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 String getFormId(SessionContext ctx)
YFormData.formId attribute.public String getFormId()
YFormData.formId attribute.public void setFormId(SessionContext ctx, String value)
YFormData.formId attribute.value - the formIdpublic void setFormId(String value)
YFormData.formId attribute.value - the formIdpublic List<YFormDataHistory> getHistory(SessionContext ctx)
YFormData.history attribute.public List<YFormDataHistory> getHistory()
YFormData.history attribute.public void setHistory(SessionContext ctx, List<YFormDataHistory> value)
YFormData.history attribute.value - the historypublic void setHistory(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 String getId(SessionContext ctx)
YFormData.id attribute.public String getId()
YFormData.id attribute.public void setId(SessionContext ctx, String value)
YFormData.id attribute.value - the idpublic void setId(String value)
YFormData.id attribute.value - the idpublic String getRefId(SessionContext ctx)
YFormData.refId attribute.public String getRefId()
YFormData.refId attribute.public void setRefId(SessionContext ctx, String value)
YFormData.refId attribute.value - the refIdpublic void setRefId(String value)
YFormData.refId attribute.value - the refIdpublic Boolean isSystem(SessionContext ctx)
YFormData.system attribute.public Boolean isSystem()
YFormData.system attribute.public boolean isSystemAsPrimitive(SessionContext ctx)
YFormData.system attribute.public boolean isSystemAsPrimitive()
YFormData.system attribute.public void setSystem(SessionContext ctx, Boolean value)
YFormData.system attribute.value - the systempublic void setSystem(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 © 2017 SAP SE. All Rights Reserved.