Class GeneratedYFormData
- java.lang.Object
-
- de.hybris.platform.util.BridgeAbstraction
-
- de.hybris.platform.jalo.Item
-
- de.hybris.platform.jalo.ExtensibleItem
-
- de.hybris.platform.jalo.c2l.LocalizableItem
-
- de.hybris.platform.jalo.GenericItem
-
- de.hybris.platform.xyformsservices.jalo.GeneratedYFormData
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable
- Direct Known Subclasses:
YFormData
public abstract class GeneratedYFormData extends GenericItem
Generated class for typeYFormData
.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImpl
-
Nested classes/interfaces inherited from class de.hybris.platform.jalo.Item
Item.AttributeFilter, Item.AttributeMode, Item.CachedGetter, Item.CachedSetter, Item.ItemAttributeMap, Item.ItemConstraint, Item.ItemImpl, Item.JaloCachedComputationException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
APPLICATIONID
Qualifier of theYFormData.applicationId
attributestatic java.lang.String
CONTENT
Qualifier of theYFormData.content
attributeprotected static java.util.Map<java.lang.String,Item.AttributeMode>
DEFAULT_INITIAL_ATTRIBUTES
static java.lang.String
FORMDEFINITION
Qualifier of theYFormData.formDefinition
attributeprotected static BidirectionalOneToManyHandler<GeneratedYFormData>
FORMDEFINITIONHANDLER
BidirectionalOneToManyHandler
for handling 1:n FORMDEFINITION's relation attributes from 'one' side.static java.lang.String
FORMID
Qualifier of theYFormData.formId
attributestatic java.lang.String
HISTORY
Qualifier of theYFormData.history
attributeprotected static OneToManyHandler<YFormDataHistory>
HISTORYHANDLER
OneToManyHandler
for handling 1:n HISTORY's relation attributes from 'many' side.static java.lang.String
ID
Qualifier of theYFormData.id
attributestatic java.lang.String
REFID
Qualifier of theYFormData.refId
attributestatic java.lang.String
SYSTEM
Qualifier of theYFormData.system
attributestatic java.lang.String
TYPE
Qualifier of theYFormData.type
attribute-
Fields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLED
-
Fields inherited from class de.hybris.platform.jalo.Item
_CREATION_TIME_INTERNAL, _MODIFIED_TIME_INTERNAL, accessorLog, CREATION_TIME, DISABLE_ATTRIBUTE_CHECK, DISABLE_ITEMCHECK_BEFORE_REMOVABLE, EVEN, FEATURE_ACCESSMAP_QUALIFIER, HJMPTS, INITIAL_CREATION_FLAG, isJaloOnly, MODIFIED_TIME, NEGATIVE, NOT_FOUND, OWNER, PK, POSITIVE, SAVE_FROM_SERVICE_LAYER, staticTransientObjects
-
Fields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant
-
-
Constructor Summary
Constructors Constructor Description GeneratedYFormData()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addToHistory(SessionContext ctx, YFormDataHistory value)
Generated method - Addsvalue
to history.void
addToHistory(YFormDataHistory value)
Generated method - Addsvalue
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 theYFormData.applicationId
attribute.java.lang.String
getApplicationId(SessionContext ctx)
Generated method - Getter of theYFormData.applicationId
attribute.java.lang.String
getContent()
Generated method - Getter of theYFormData.content
attribute.java.lang.String
getContent(SessionContext ctx)
Generated method - Getter of theYFormData.content
attribute.protected java.util.Map<java.lang.String,Item.AttributeMode>
getDefaultAttributeModes()
YFormDefinition
getFormDefinition()
Generated method - Getter of theYFormData.formDefinition
attribute.YFormDefinition
getFormDefinition(SessionContext ctx)
Generated method - Getter of theYFormData.formDefinition
attribute.java.lang.String
getFormId()
Generated method - Getter of theYFormData.formId
attribute.java.lang.String
getFormId(SessionContext ctx)
Generated method - Getter of theYFormData.formId
attribute.java.util.List<YFormDataHistory>
getHistory()
Generated method - Getter of theYFormData.history
attribute.java.util.List<YFormDataHistory>
getHistory(SessionContext ctx)
Generated method - Getter of theYFormData.history
attribute.java.lang.String
getId()
Generated method - Getter of theYFormData.id
attribute.java.lang.String
getId(SessionContext ctx)
Generated method - Getter of theYFormData.id
attribute.java.lang.String
getRefId()
Generated method - Getter of theYFormData.refId
attribute.java.lang.String
getRefId(SessionContext ctx)
Generated method - Getter of theYFormData.refId
attribute.EnumerationValue
getType()
Generated method - Getter of theYFormData.type
attribute.EnumerationValue
getType(SessionContext ctx)
Generated method - Getter of theYFormData.type
attribute.java.lang.Boolean
isSystem()
Generated method - Getter of theYFormData.system
attribute.java.lang.Boolean
isSystem(SessionContext ctx)
Generated method - Getter of theYFormData.system
attribute.boolean
isSystemAsPrimitive()
Generated method - Getter of theYFormData.system
attribute.boolean
isSystemAsPrimitive(SessionContext ctx)
Generated method - Getter of theYFormData.system
attribute.void
removeFromHistory(SessionContext ctx, YFormDataHistory value)
Generated method - Removesvalue
from history.void
removeFromHistory(YFormDataHistory value)
Generated method - Removesvalue
from history.void
setApplicationId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.applicationId
attribute.void
setApplicationId(java.lang.String value)
Generated method - Setter of theYFormData.applicationId
attribute.void
setContent(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.content
attribute.void
setContent(java.lang.String value)
Generated method - Setter of theYFormData.content
attribute.void
setFormDefinition(SessionContext ctx, YFormDefinition value)
Generated method - Setter of theYFormData.formDefinition
attribute.void
setFormDefinition(YFormDefinition value)
Generated method - Setter of theYFormData.formDefinition
attribute.void
setFormId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.formId
attribute.void
setFormId(java.lang.String value)
Generated method - Setter of theYFormData.formId
attribute.void
setHistory(SessionContext ctx, java.util.List<YFormDataHistory> value)
Generated method - Setter of theYFormData.history
attribute.void
setHistory(java.util.List<YFormDataHistory> value)
Generated method - Setter of theYFormData.history
attribute.void
setId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.id
attribute.void
setId(java.lang.String value)
Generated method - Setter of theYFormData.id
attribute.void
setRefId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.refId
attribute.void
setRefId(java.lang.String value)
Generated method - Setter of theYFormData.refId
attribute.void
setSystem(boolean value)
Generated method - Setter of theYFormData.system
attribute.void
setSystem(SessionContext ctx, boolean value)
Generated method - Setter of theYFormData.system
attribute.void
setSystem(SessionContext ctx, java.lang.Boolean value)
Generated method - Setter of theYFormData.system
attribute.void
setSystem(java.lang.Boolean value)
Generated method - Setter of theYFormData.system
attribute.void
setType(EnumerationValue value)
Generated method - Setter of theYFormData.type
attribute.void
setType(SessionContext ctx, EnumerationValue value)
Generated method - Setter of theYFormData.type
attribute.-
Methods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, setRelatedItems
-
Methods inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllLocalizedProperties, getAllValuesSessionContext, getLocalizedProperty, getLocalizedProperty, getLocalizedPropertyInternal, getLocalizedPropertyNames, getLocalizedPropertyNames, hasLanguage, isEmptyValue, isFallbackEnabled, removeLocalizedProperty, removeLocalizedProperty, setAllLocalizedProperties, setAllLocalizedProperties, setLocalizedProperty, setLocalizedProperty
-
Methods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setProperty
-
Methods inherited from class de.hybris.platform.jalo.Item
addLinkedItems, 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, writeReplace
-
Methods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
-
-
-
Field Detail
-
ID
public static final java.lang.String ID
Qualifier of theYFormData.id
attribute- See Also:
- Constant Field Values
-
APPLICATIONID
public static final java.lang.String APPLICATIONID
Qualifier of theYFormData.applicationId
attribute- See Also:
- Constant Field Values
-
FORMID
public static final java.lang.String FORMID
Qualifier of theYFormData.formId
attribute- See Also:
- Constant Field Values
-
REFID
public static final java.lang.String REFID
Qualifier of theYFormData.refId
attribute- See Also:
- Constant Field Values
-
SYSTEM
public static final java.lang.String SYSTEM
Qualifier of theYFormData.system
attribute- See Also:
- Constant Field Values
-
TYPE
public static final java.lang.String TYPE
Qualifier of theYFormData.type
attribute- See Also:
- Constant Field Values
-
CONTENT
public static final java.lang.String CONTENT
Qualifier of theYFormData.content
attribute- See Also:
- Constant Field Values
-
FORMDEFINITION
public static final java.lang.String FORMDEFINITION
Qualifier of theYFormData.formDefinition
attribute- See Also:
- Constant Field Values
-
HISTORY
public static final java.lang.String HISTORY
Qualifier of theYFormData.history
attribute- See Also:
- Constant Field Values
-
FORMDEFINITIONHANDLER
protected static final BidirectionalOneToManyHandler<GeneratedYFormData> FORMDEFINITIONHANDLER
BidirectionalOneToManyHandler
for handling 1:n FORMDEFINITION's relation attributes from 'one' side.
-
HISTORYHANDLER
protected static final OneToManyHandler<YFormDataHistory> HISTORYHANDLER
OneToManyHandler
for handling 1:n HISTORY's relation attributes from 'many' side.
-
DEFAULT_INITIAL_ATTRIBUTES
protected static final java.util.Map<java.lang.String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
-
-
Method Detail
-
getDefaultAttributeModes
protected java.util.Map<java.lang.String,Item.AttributeMode> getDefaultAttributeModes()
- Overrides:
getDefaultAttributeModes
in classItem
-
getApplicationId
public java.lang.String getApplicationId(SessionContext ctx)
Generated method - Getter of theYFormData.applicationId
attribute.- Returns:
- the applicationId
-
getApplicationId
public java.lang.String getApplicationId()
Generated method - Getter of theYFormData.applicationId
attribute.- Returns:
- the applicationId
-
setApplicationId
public void setApplicationId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.applicationId
attribute.- Parameters:
value
- the applicationId
-
setApplicationId
public void setApplicationId(java.lang.String value)
Generated method - Setter of theYFormData.applicationId
attribute.- Parameters:
value
- the applicationId
-
getContent
public java.lang.String getContent(SessionContext ctx)
Generated method - Getter of theYFormData.content
attribute.- Returns:
- the content
-
getContent
public java.lang.String getContent()
Generated method - Getter of theYFormData.content
attribute.- Returns:
- the content
-
setContent
public void setContent(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.content
attribute.- Parameters:
value
- the content
-
setContent
public void setContent(java.lang.String value)
Generated method - Setter of theYFormData.content
attribute.- Parameters:
value
- the content
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
Description copied from class:Item
Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) duringComposedType.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; }
- Overrides:
createItem
in classGenericItem
- Parameters:
ctx
- 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 )- Returns:
- the new item instance
- Throws:
JaloBusinessException
- indicates an error during creation - any changes will be rollbacked
-
getFormDefinition
public YFormDefinition getFormDefinition(SessionContext ctx)
Generated method - Getter of theYFormData.formDefinition
attribute.- Returns:
- the formDefinition
-
getFormDefinition
public YFormDefinition getFormDefinition()
Generated method - Getter of theYFormData.formDefinition
attribute.- Returns:
- the formDefinition
-
setFormDefinition
public void setFormDefinition(SessionContext ctx, YFormDefinition value)
Generated method - Setter of theYFormData.formDefinition
attribute.- Parameters:
value
- the formDefinition
-
setFormDefinition
public void setFormDefinition(YFormDefinition value)
Generated method - Setter of theYFormData.formDefinition
attribute.- Parameters:
value
- the formDefinition
-
getFormId
public java.lang.String getFormId(SessionContext ctx)
Generated method - Getter of theYFormData.formId
attribute.- Returns:
- the formId
-
getFormId
public java.lang.String getFormId()
Generated method - Getter of theYFormData.formId
attribute.- Returns:
- the formId
-
setFormId
public void setFormId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.formId
attribute.- Parameters:
value
- the formId
-
setFormId
public void setFormId(java.lang.String value)
Generated method - Setter of theYFormData.formId
attribute.- Parameters:
value
- the formId
-
getHistory
public java.util.List<YFormDataHistory> getHistory(SessionContext ctx)
Generated method - Getter of theYFormData.history
attribute.- Returns:
- the history
-
getHistory
public java.util.List<YFormDataHistory> getHistory()
Generated method - Getter of theYFormData.history
attribute.- Returns:
- the history
-
setHistory
public void setHistory(SessionContext ctx, java.util.List<YFormDataHistory> value)
Generated method - Setter of theYFormData.history
attribute.- Parameters:
value
- the history
-
setHistory
public void setHistory(java.util.List<YFormDataHistory> value)
Generated method - Setter of theYFormData.history
attribute.- Parameters:
value
- the history
-
addToHistory
public void addToHistory(SessionContext ctx, YFormDataHistory value)
Generated method - Addsvalue
to history.- Parameters:
value
- the item to add to history
-
addToHistory
public void addToHistory(YFormDataHistory value)
Generated method - Addsvalue
to history.- Parameters:
value
- the item to add to history
-
removeFromHistory
public void removeFromHistory(SessionContext ctx, YFormDataHistory value)
Generated method - Removesvalue
from history.- Parameters:
value
- the item to remove from history
-
removeFromHistory
public void removeFromHistory(YFormDataHistory value)
Generated method - Removesvalue
from history.- Parameters:
value
- the item to remove from history
-
getId
public java.lang.String getId(SessionContext ctx)
Generated method - Getter of theYFormData.id
attribute.- Returns:
- the id
-
getId
public java.lang.String getId()
Generated method - Getter of theYFormData.id
attribute.- Returns:
- the id
-
setId
public void setId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.id
attribute.- Parameters:
value
- the id
-
setId
public void setId(java.lang.String value)
Generated method - Setter of theYFormData.id
attribute.- Parameters:
value
- the id
-
getRefId
public java.lang.String getRefId(SessionContext ctx)
Generated method - Getter of theYFormData.refId
attribute.- Returns:
- the refId
-
getRefId
public java.lang.String getRefId()
Generated method - Getter of theYFormData.refId
attribute.- Returns:
- the refId
-
setRefId
public void setRefId(SessionContext ctx, java.lang.String value)
Generated method - Setter of theYFormData.refId
attribute.- Parameters:
value
- the refId
-
setRefId
public void setRefId(java.lang.String value)
Generated method - Setter of theYFormData.refId
attribute.- Parameters:
value
- the refId
-
isSystem
public java.lang.Boolean isSystem(SessionContext ctx)
Generated method - Getter of theYFormData.system
attribute.- Returns:
- the system
-
isSystem
public java.lang.Boolean isSystem()
Generated method - Getter of theYFormData.system
attribute.- Returns:
- the system
-
isSystemAsPrimitive
public boolean isSystemAsPrimitive(SessionContext ctx)
Generated method - Getter of theYFormData.system
attribute.- Returns:
- the system
-
isSystemAsPrimitive
public boolean isSystemAsPrimitive()
Generated method - Getter of theYFormData.system
attribute.- Returns:
- the system
-
setSystem
public void setSystem(SessionContext ctx, java.lang.Boolean value)
Generated method - Setter of theYFormData.system
attribute.- Parameters:
value
- the system
-
setSystem
public void setSystem(java.lang.Boolean value)
Generated method - Setter of theYFormData.system
attribute.- Parameters:
value
- the system
-
setSystem
public void setSystem(SessionContext ctx, boolean value)
Generated method - Setter of theYFormData.system
attribute.- Parameters:
value
- the system
-
setSystem
public void setSystem(boolean value)
Generated method - Setter of theYFormData.system
attribute.- Parameters:
value
- the system
-
getType
public EnumerationValue getType(SessionContext ctx)
Generated method - Getter of theYFormData.type
attribute.- Returns:
- the type
-
getType
public EnumerationValue getType()
Generated method - Getter of theYFormData.type
attribute.- Returns:
- the type
-
setType
public void setType(SessionContext ctx, EnumerationValue value)
Generated method - Setter of theYFormData.type
attribute.- Parameters:
value
- the type
-
setType
public void setType(EnumerationValue value)
Generated method - Setter of theYFormData.type
attribute.- Parameters:
value
- the type
-
-