Package de.hybris.platform.comments.jalo
Class GeneratedComment
- All Implemented Interfaces:
Serializable,Comparable
- Direct Known Subclasses:
Comment
Generated class for type
Comment.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.jalo.GenericItem
GenericItem.GenericItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LocalizableItem.LocalizableItemImplNested classes/interfaces inherited from class de.hybris.platform.jalo.ExtensibleItem
ExtensibleItem.ExtensibleItemImplNested 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
FieldsModifier and TypeFieldDescriptionstatic final StringQualifier of theComment.assignedToattributestatic final StringQualifier of theComment.codeattributeprotected static StringRelation disable markmodifed parameter constants for CommentAssigneeRelation from ((comments))protected static StringRelation ordering override parameter constants for CommentAssigneeRelation from ((comments))protected static Stringstatic final StringQualifier of theComment.commentTypeattributeprotected static final BidirectionalOneToManyHandler<GeneratedComment>BidirectionalOneToManyHandlerfor handling 1:n COMMENTTYPE's relation attributes from 'one' side.protected static StringRelation disable markmodifed parameter constants for CommentWatcherRelation from ((comments))protected static StringRelation ordering override parameter constants for CommentWatcherRelation from ((comments))protected static Stringstatic final StringQualifier of theComment.componentattributeprotected static final BidirectionalOneToManyHandler<GeneratedComment>BidirectionalOneToManyHandlerfor handling 1:n COMPONENT's relation attributes from 'one' side.protected static final Map<String,Item.AttributeMode> static final StringQualifier of theComment.priorityattributestatic final StringQualifier of theComment.relatedItemsattributestatic final StringQualifier of theComment.repliesattributeprotected static final OneToManyHandler<Reply>OneToManyHandlerfor handling 1:n REPLIES's relation attributes from 'many' side.static final StringQualifier of theComment.watchersattributeFields inherited from class de.hybris.platform.comments.jalo.GeneratedAbstractComment
ATTACHMENTS, ATTACHMENTSHANDLER, AUTHOR, AUTHORHANDLER, COMMENTUSERSETTINGS, COMMENTUSERSETTINGSHANDLER, SUBJECT, TEXTFields inherited from class de.hybris.platform.jalo.c2l.LocalizableItem
LANGUAGE_FALLBACK_ENABLEDFields 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, TYPEFields inherited from class de.hybris.platform.util.BridgeAbstraction
impl, tenant -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddToAssignedTo(SessionContext ctx, User value) Generated method - Addsvalueto assignedTo.voidaddToAssignedTo(User value) Generated method - Addsvalueto assignedTo.voidaddToReplies(Reply value) Generated method - Addsvalueto replies.voidaddToReplies(SessionContext ctx, Reply value) Generated method - Addsvalueto replies.voidaddToWatchers(Principal value) Generated method - Addsvalueto watchers.voidaddToWatchers(SessionContext ctx, Principal value) Generated method - Addsvalueto watchers.protected ItemcreateItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) Has to be implemented for each concrete subtype of item.Generated method - Getter of theComment.assignedToattribute.Generated method - Getter of theComment.assignedToattribute.longlonggetCode()Generated method - Getter of theComment.codeattribute.getCode(SessionContext ctx) Generated method - Getter of theComment.codeattribute.Generated method - Getter of theComment.commentTypeattribute.Generated method - Getter of theComment.commentTypeattribute.Generated method - Getter of theComment.componentattribute.Generated method - Getter of theComment.componentattribute.protected Map<String,Item.AttributeMode> Generated method - Getter of theComment.priorityattribute.Generated method - Getter of theComment.priorityattribute.intGenerated method - Getter of theComment.priorityattribute.intGenerated method - Getter of theComment.priorityattribute.Generated method - Getter of theComment.relatedItemsattribute.abstract Collection<Item>Generated method - Getter of theComment.relatedItemsattribute.Generated method - Getter of theComment.repliesattribute.getReplies(SessionContext ctx) Generated method - Getter of theComment.repliesattribute.Generated method - Getter of theComment.watchersattribute.Generated method - Getter of theComment.watchersattribute.longlongbooleanisMarkModifiedDisabled(Item referencedItem) Deprecated, for removal: This API element is subject to removal in a future version.voidremoveFromAssignedTo(SessionContext ctx, User value) Generated method - Removesvaluefrom assignedTo.voidremoveFromAssignedTo(User value) Generated method - Removesvaluefrom assignedTo.voidremoveFromReplies(Reply value) Generated method - Removesvaluefrom replies.voidremoveFromReplies(SessionContext ctx, Reply value) Generated method - Removesvaluefrom replies.voidremoveFromWatchers(Principal value) Generated method - Removesvaluefrom watchers.voidremoveFromWatchers(SessionContext ctx, Principal value) Generated method - Removesvaluefrom watchers.voidsetAssignedTo(SessionContext ctx, Collection<User> value) Generated method - Setter of theComment.assignedToattribute.voidsetAssignedTo(Collection<User> value) Generated method - Setter of theComment.assignedToattribute.voidsetCode(SessionContext ctx, String value) Generated method - Setter of theComment.codeattribute.voidGenerated method - Setter of theComment.codeattribute.protected voidsetCommentType(CommentType value) Generated method - Setter of theComment.commentTypeattribute.protected voidsetCommentType(SessionContext ctx, CommentType value) Generated method - Setter of theComment.commentTypeattribute.protected voidsetComponent(Component value) Generated method - Setter of theComment.componentattribute.protected voidsetComponent(SessionContext ctx, Component value) Generated method - Setter of theComment.componentattribute.voidsetPriority(int value) Generated method - Setter of theComment.priorityattribute.voidsetPriority(SessionContext ctx, int value) Generated method - Setter of theComment.priorityattribute.voidsetPriority(SessionContext ctx, Integer value) Generated method - Setter of theComment.priorityattribute.voidsetPriority(Integer value) Generated method - Setter of theComment.priorityattribute.abstract voidsetRelatedItems(SessionContext ctx, Collection<Item> value) Generated method - Setter of theComment.relatedItemsattribute.voidsetRelatedItems(Collection<Item> value) Generated method - Setter of theComment.relatedItemsattribute.voidsetReplies(SessionContext ctx, List<Reply> value) Generated method - Setter of theComment.repliesattribute.voidsetReplies(List<Reply> value) Generated method - Setter of theComment.repliesattribute.voidsetWatchers(SessionContext ctx, Collection<Principal> value) Generated method - Setter of theComment.watchersattribute.voidsetWatchers(Collection<Principal> value) Generated method - Setter of theComment.watchersattribute.Methods inherited from class de.hybris.platform.comments.jalo.GeneratedAbstractComment
addToAttachments, addToAttachments, getAttachments, getAttachments, getAuthor, getAuthor, getSubject, getSubject, getText, getText, removeFromAttachments, removeFromAttachments, setAttachments, setAttachments, setAuthor, setAuthor, setSubject, setSubject, setText, setTextMethods inherited from class de.hybris.platform.jalo.GenericItem
getImplementation, getInitialProperties, getNonInitialAttributes, getRelatedItems, getRelatedItems, setRelatedItemsMethods 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, setLocalizedPropertyMethods inherited from class de.hybris.platform.jalo.ExtensibleItem
createNonClassAccessor, getAllProperties, getAllProperties, getProperty, getProperty, getPropertyNames, getPropertyNames, removeProperty, removeProperty, setAllProperties, setAllProperties, setProperty, setPropertyMethods 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, getPartOfRemovedSessionMarker, 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, 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, suppressRelation, toString, useTA, writeReplaceMethods inherited from class de.hybris.platform.util.BridgeAbstraction
setTenant
-
Field Details
-
CODE
Qualifier of theComment.codeattribute- See Also:
-
PRIORITY
Qualifier of theComment.priorityattribute- See Also:
-
RELATEDITEMS
Qualifier of theComment.relatedItemsattribute- See Also:
-
REPLIES
Qualifier of theComment.repliesattribute- See Also:
-
ASSIGNEDTO
Qualifier of theComment.assignedToattribute- See Also:
-
COMMENTASSIGNEERELATION_SRC_ORDERED
Relation ordering override parameter constants for CommentAssigneeRelation from ((comments)) -
COMMENTASSIGNEERELATION_TGT_ORDERED
-
COMMENTASSIGNEERELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for CommentAssigneeRelation from ((comments)) -
WATCHERS
Qualifier of theComment.watchersattribute- See Also:
-
COMMENTWATCHERRELATION_SRC_ORDERED
Relation ordering override parameter constants for CommentWatcherRelation from ((comments)) -
COMMENTWATCHERRELATION_TGT_ORDERED
-
COMMENTWATCHERRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for CommentWatcherRelation from ((comments)) -
COMPONENT
Qualifier of theComment.componentattribute- See Also:
-
COMMENTTYPE
Qualifier of theComment.commentTypeattribute- See Also:
-
REPLIESHANDLER
OneToManyHandlerfor handling 1:n REPLIES's relation attributes from 'many' side. -
COMPONENTHANDLER
BidirectionalOneToManyHandlerfor handling 1:n COMPONENT's relation attributes from 'one' side. -
COMMENTTYPEHANDLER
BidirectionalOneToManyHandlerfor handling 1:n COMMENTTYPE's relation attributes from 'one' side. -
DEFAULT_INITIAL_ATTRIBUTES
-
-
Constructor Details
-
GeneratedComment
public GeneratedComment()
-
-
Method Details
-
getDefaultAttributeModes
- Overrides:
getDefaultAttributeModesin classGeneratedAbstractComment
-
getAssignedTo
Generated method - Getter of theComment.assignedToattribute.- Returns:
- the assignedTo
-
getAssignedTo
Generated method - Getter of theComment.assignedToattribute.- Returns:
- the assignedTo
-
getAssignedToCount
-
getAssignedToCount
public long getAssignedToCount() -
setAssignedTo
Generated method - Setter of theComment.assignedToattribute.- Parameters:
value- the assignedTo
-
setAssignedTo
Generated method - Setter of theComment.assignedToattribute.- Parameters:
value- the assignedTo
-
addToAssignedTo
Generated method - Addsvalueto assignedTo.- Parameters:
value- the item to add to assignedTo
-
addToAssignedTo
Generated method - Addsvalueto assignedTo.- Parameters:
value- the item to add to assignedTo
-
removeFromAssignedTo
Generated method - Removesvaluefrom assignedTo.- Parameters:
value- the item to remove from assignedTo
-
removeFromAssignedTo
Generated method - Removesvaluefrom assignedTo.- Parameters:
value- the item to remove from assignedTo
-
getCode
Generated method - Getter of theComment.codeattribute.- Returns:
- the code - unique identifier of the comment; will be generated if not set
-
getCode
Generated method - Getter of theComment.codeattribute.- Returns:
- the code - unique identifier of the comment; will be generated if not set
-
setCode
Generated method - Setter of theComment.codeattribute.- Parameters:
value- the code - unique identifier of the comment; will be generated if not set
-
setCode
Generated method - Setter of theComment.codeattribute.- Parameters:
value- the code - unique identifier of the comment; will be generated if not set
-
getCommentType
Generated method - Getter of theComment.commentTypeattribute.- Returns:
- the commentType
-
getCommentType
Generated method - Getter of theComment.commentTypeattribute.- Returns:
- the commentType
-
setCommentType
Generated method - Setter of theComment.commentTypeattribute.- Parameters:
value- the commentType
-
setCommentType
Generated method - Setter of theComment.commentTypeattribute.- Parameters:
value- the commentType
-
getComponent
Generated method - Getter of theComment.componentattribute.- Returns:
- the component
-
getComponent
Generated method - Getter of theComment.componentattribute.- Returns:
- the component
-
setComponent
Generated method - Setter of theComment.componentattribute.- Parameters:
value- the component
-
setComponent
Generated method - Setter of theComment.componentattribute.- Parameters:
value- the component
-
createItem
protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException Description copied from class:ItemHas 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:
createItemin classGeneratedAbstractComment- 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
-
isMarkModifiedDisabled
@Deprecated(since="2105", forRemoval=true) public boolean isMarkModifiedDisabled(Item referencedItem) Deprecated, for removal: This API element is subject to removal in a future version.- Overrides:
isMarkModifiedDisabledin classItem
-
getPriority
Generated method - Getter of theComment.priorityattribute.- Returns:
- the priority - Priority of a comment
-
getPriority
Generated method - Getter of theComment.priorityattribute.- Returns:
- the priority - Priority of a comment
-
getPriorityAsPrimitive
Generated method - Getter of theComment.priorityattribute.- Returns:
- the priority - Priority of a comment
-
getPriorityAsPrimitive
public int getPriorityAsPrimitive()Generated method - Getter of theComment.priorityattribute.- Returns:
- the priority - Priority of a comment
-
setPriority
Generated method - Setter of theComment.priorityattribute.- Parameters:
value- the priority - Priority of a comment
-
setPriority
Generated method - Setter of theComment.priorityattribute.- Parameters:
value- the priority - Priority of a comment
-
setPriority
Generated method - Setter of theComment.priorityattribute.- Parameters:
value- the priority - Priority of a comment
-
setPriority
public void setPriority(int value) Generated method - Setter of theComment.priorityattribute.- Parameters:
value- the priority - Priority of a comment
-
getRelatedItems
Generated method - Getter of theComment.relatedItemsattribute.- Returns:
- the relatedItems - Related items of this comment
-
getRelatedItems
Generated method - Getter of theComment.relatedItemsattribute.- Returns:
- the relatedItems - Related items of this comment
-
setRelatedItems
Generated method - Setter of theComment.relatedItemsattribute.- Parameters:
value- the relatedItems - Related items of this comment
-
setRelatedItems
Generated method - Setter of theComment.relatedItemsattribute.- Parameters:
value- the relatedItems - Related items of this comment
-
getReplies
Generated method - Getter of theComment.repliesattribute.- Returns:
- the replies
-
getReplies
Generated method - Getter of theComment.repliesattribute.- Returns:
- the replies
-
setReplies
Generated method - Setter of theComment.repliesattribute.- Parameters:
value- the replies
-
setReplies
Generated method - Setter of theComment.repliesattribute.- Parameters:
value- the replies
-
addToReplies
Generated method - Addsvalueto replies.- Parameters:
value- the item to add to replies
-
addToReplies
Generated method - Addsvalueto replies.- Parameters:
value- the item to add to replies
-
removeFromReplies
Generated method - Removesvaluefrom replies.- Parameters:
value- the item to remove from replies
-
removeFromReplies
Generated method - Removesvaluefrom replies.- Parameters:
value- the item to remove from replies
-
getWatchers
Generated method - Getter of theComment.watchersattribute.- Returns:
- the watchers
-
getWatchers
Generated method - Getter of theComment.watchersattribute.- Returns:
- the watchers
-
getWatchersCount
-
getWatchersCount
public long getWatchersCount() -
setWatchers
Generated method - Setter of theComment.watchersattribute.- Parameters:
value- the watchers
-
setWatchers
Generated method - Setter of theComment.watchersattribute.- Parameters:
value- the watchers
-
addToWatchers
Generated method - Addsvalueto watchers.- Parameters:
value- the item to add to watchers
-
addToWatchers
Generated method - Addsvalueto watchers.- Parameters:
value- the item to add to watchers
-
removeFromWatchers
Generated method - Removesvaluefrom watchers.- Parameters:
value- the item to remove from watchers
-
removeFromWatchers
Generated method - Removesvaluefrom watchers.- Parameters:
value- the item to remove from watchers
-
Utilities.getMarkModifiedOverride(de.hybris.platform.jalo.type.RelationType)