public abstract class GeneratedComment extends AbstractComment
Comment.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 |
ASSIGNEDTO
Qualifier of the
Comment.assignedTo attribute |
static java.lang.String |
CODE
Qualifier of the
Comment.code attribute |
protected static java.lang.String |
COMMENTASSIGNEERELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for CommentAssigneeRelation from ((comments))
|
protected static java.lang.String |
COMMENTASSIGNEERELATION_SRC_ORDERED
Relation ordering override parameter constants for CommentAssigneeRelation from ((comments))
|
protected static java.lang.String |
COMMENTASSIGNEERELATION_TGT_ORDERED |
static java.lang.String |
COMMENTTYPE
Qualifier of the
Comment.commentType attribute |
protected static BidirectionalOneToManyHandler<GeneratedComment> |
COMMENTTYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n COMMENTTYPE's relation attributes from 'one' side. |
protected static java.lang.String |
COMMENTWATCHERRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for CommentWatcherRelation from ((comments))
|
protected static java.lang.String |
COMMENTWATCHERRELATION_SRC_ORDERED
Relation ordering override parameter constants for CommentWatcherRelation from ((comments))
|
protected static java.lang.String |
COMMENTWATCHERRELATION_TGT_ORDERED |
static java.lang.String |
COMPONENT
Qualifier of the
Comment.component attribute |
protected static BidirectionalOneToManyHandler<GeneratedComment> |
COMPONENTHANDLER
BidirectionalOneToManyHandler for handling 1:n COMPONENT's relation attributes from 'one' side. |
protected static java.util.Map<java.lang.String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static java.lang.String |
PRIORITY
Qualifier of the
Comment.priority attribute |
static java.lang.String |
RELATEDITEMS
Qualifier of the
Comment.relatedItems attribute |
static java.lang.String |
REPLIES
Qualifier of the
Comment.replies attribute |
protected static OneToManyHandler<Reply> |
REPLIESHANDLER
OneToManyHandler for handling 1:n REPLIES's relation attributes from 'many' side. |
static java.lang.String |
WATCHERS
Qualifier of the
Comment.watchers attribute |
ATTACHMENTS, ATTACHMENTSHANDLER, AUTHOR, AUTHORHANDLER, COMMENTUSERSETTINGS, COMMENTUSERSETTINGSHANDLER, SUBJECT, TEXTLANGUAGE_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 |
|---|
GeneratedComment() |
| Modifier and Type | Method and Description |
|---|---|
void |
addToAssignedTo(SessionContext ctx,
User value)
Generated method - Adds
value to assignedTo. |
void |
addToAssignedTo(User value)
Generated method - Adds
value to assignedTo. |
void |
addToReplies(Reply value)
Generated method - Adds
value to replies. |
void |
addToReplies(SessionContext ctx,
Reply value)
Generated method - Adds
value to replies. |
void |
addToWatchers(Principal value)
Generated method - Adds
value to watchers. |
void |
addToWatchers(SessionContext ctx,
Principal value)
Generated method - Adds
value to watchers. |
protected Item |
createItem(SessionContext ctx,
ComposedType type,
Item.ItemAttributeMap allAttributes)
Has to be implemented for each concrete subtype of item.
|
java.util.Collection<User> |
getAssignedTo()
Generated method - Getter of the
Comment.assignedTo attribute. |
java.util.Collection<User> |
getAssignedTo(SessionContext ctx)
Generated method - Getter of the
Comment.assignedTo attribute. |
long |
getAssignedToCount() |
long |
getAssignedToCount(SessionContext ctx) |
java.lang.String |
getCode()
Generated method - Getter of the
Comment.code attribute. |
java.lang.String |
getCode(SessionContext ctx)
Generated method - Getter of the
Comment.code attribute. |
CommentType |
getCommentType()
Generated method - Getter of the
Comment.commentType attribute. |
CommentType |
getCommentType(SessionContext ctx)
Generated method - Getter of the
Comment.commentType attribute. |
Component |
getComponent()
Generated method - Getter of the
Comment.component attribute. |
Component |
getComponent(SessionContext ctx)
Generated method - Getter of the
Comment.component attribute. |
protected java.util.Map<java.lang.String,Item.AttributeMode> |
getDefaultAttributeModes() |
java.lang.Integer |
getPriority()
Generated method - Getter of the
Comment.priority attribute. |
java.lang.Integer |
getPriority(SessionContext ctx)
Generated method - Getter of the
Comment.priority attribute. |
int |
getPriorityAsPrimitive()
Generated method - Getter of the
Comment.priority attribute. |
int |
getPriorityAsPrimitive(SessionContext ctx)
Generated method - Getter of the
Comment.priority attribute. |
java.util.Collection<Item> |
getRelatedItems()
Generated method - Getter of the
Comment.relatedItems attribute. |
abstract java.util.Collection<Item> |
getRelatedItems(SessionContext ctx)
Generated method - Getter of the
Comment.relatedItems attribute. |
java.util.List<Reply> |
getReplies()
Generated method - Getter of the
Comment.replies attribute. |
java.util.List<Reply> |
getReplies(SessionContext ctx)
Generated method - Getter of the
Comment.replies attribute. |
java.util.Collection<Principal> |
getWatchers()
Generated method - Getter of the
Comment.watchers attribute. |
java.util.Collection<Principal> |
getWatchers(SessionContext ctx)
Generated method - Getter of the
Comment.watchers attribute. |
long |
getWatchersCount() |
long |
getWatchersCount(SessionContext ctx) |
boolean |
isMarkModifiedDisabled(Item referencedItem) |
void |
removeFromAssignedTo(SessionContext ctx,
User value)
Generated method - Removes
value from assignedTo. |
void |
removeFromAssignedTo(User value)
Generated method - Removes
value from assignedTo. |
void |
removeFromReplies(Reply value)
Generated method - Removes
value from replies. |
void |
removeFromReplies(SessionContext ctx,
Reply value)
Generated method - Removes
value from replies. |
void |
removeFromWatchers(Principal value)
Generated method - Removes
value from watchers. |
void |
removeFromWatchers(SessionContext ctx,
Principal value)
Generated method - Removes
value from watchers. |
void |
setAssignedTo(java.util.Collection<User> value)
Generated method - Setter of the
Comment.assignedTo attribute. |
void |
setAssignedTo(SessionContext ctx,
java.util.Collection<User> value)
Generated method - Setter of the
Comment.assignedTo attribute. |
void |
setCode(SessionContext ctx,
java.lang.String value)
Generated method - Setter of the
Comment.code attribute. |
void |
setCode(java.lang.String value)
Generated method - Setter of the
Comment.code attribute. |
protected void |
setCommentType(CommentType value)
Generated method - Setter of the
Comment.commentType attribute. |
protected void |
setCommentType(SessionContext ctx,
CommentType value)
Generated method - Setter of the
Comment.commentType attribute. |
protected void |
setComponent(Component value)
Generated method - Setter of the
Comment.component attribute. |
protected void |
setComponent(SessionContext ctx,
Component value)
Generated method - Setter of the
Comment.component attribute. |
void |
setPriority(int value)
Generated method - Setter of the
Comment.priority attribute. |
void |
setPriority(java.lang.Integer value)
Generated method - Setter of the
Comment.priority attribute. |
void |
setPriority(SessionContext ctx,
int value)
Generated method - Setter of the
Comment.priority attribute. |
void |
setPriority(SessionContext ctx,
java.lang.Integer value)
Generated method - Setter of the
Comment.priority attribute. |
void |
setRelatedItems(java.util.Collection<Item> value)
Generated method - Setter of the
Comment.relatedItems attribute. |
abstract void |
setRelatedItems(SessionContext ctx,
java.util.Collection<Item> value)
Generated method - Setter of the
Comment.relatedItems attribute. |
void |
setReplies(java.util.List<Reply> value)
Generated method - Setter of the
Comment.replies attribute. |
void |
setReplies(SessionContext ctx,
java.util.List<Reply> value)
Generated method - Setter of the
Comment.replies attribute. |
void |
setWatchers(java.util.Collection<Principal> value)
Generated method - Setter of the
Comment.watchers attribute. |
void |
setWatchers(SessionContext ctx,
java.util.Collection<Principal> value)
Generated method - Setter of the
Comment.watchers attribute. |
addToAttachments, addToAttachments, getAttachments, getAttachments, getAuthor, getAuthor, getSubject, getSubject, getText, getText, removeFromAttachments, removeFromAttachments, setAttachments, setAttachments, setAuthor, setAuthor, setSubject, setSubject, setText, setTextgetInitialProperties, 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, 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 CODE
Comment.code attributepublic static final java.lang.String PRIORITY
Comment.priority attributepublic static final java.lang.String RELATEDITEMS
Comment.relatedItems attributepublic static final java.lang.String REPLIES
Comment.replies attributepublic static final java.lang.String ASSIGNEDTO
Comment.assignedTo attributeprotected static java.lang.String COMMENTASSIGNEERELATION_SRC_ORDERED
protected static java.lang.String COMMENTASSIGNEERELATION_TGT_ORDERED
protected static java.lang.String COMMENTASSIGNEERELATION_MARKMODIFIED
public static final java.lang.String WATCHERS
Comment.watchers attributeprotected static java.lang.String COMMENTWATCHERRELATION_SRC_ORDERED
protected static java.lang.String COMMENTWATCHERRELATION_TGT_ORDERED
protected static java.lang.String COMMENTWATCHERRELATION_MARKMODIFIED
public static final java.lang.String COMPONENT
Comment.component attributepublic static final java.lang.String COMMENTTYPE
Comment.commentType attributeprotected static final OneToManyHandler<Reply> REPLIESHANDLER
OneToManyHandler for handling 1:n REPLIES's relation attributes from 'many' side.protected static final BidirectionalOneToManyHandler<GeneratedComment> COMPONENTHANDLER
BidirectionalOneToManyHandler for handling 1:n COMPONENT's relation attributes from 'one' side.protected static final BidirectionalOneToManyHandler<GeneratedComment> COMMENTTYPEHANDLER
BidirectionalOneToManyHandler for handling 1:n COMMENTTYPE'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 GeneratedAbstractCommentpublic java.util.Collection<User> getAssignedTo(SessionContext ctx)
Comment.assignedTo attribute.public java.util.Collection<User> getAssignedTo()
Comment.assignedTo attribute.public long getAssignedToCount(SessionContext ctx)
public long getAssignedToCount()
public void setAssignedTo(SessionContext ctx, java.util.Collection<User> value)
Comment.assignedTo attribute.value - the assignedTopublic void setAssignedTo(java.util.Collection<User> value)
Comment.assignedTo attribute.value - the assignedTopublic void addToAssignedTo(SessionContext ctx, User value)
value to assignedTo.value - the item to add to assignedTopublic void addToAssignedTo(User value)
value to assignedTo.value - the item to add to assignedTopublic void removeFromAssignedTo(SessionContext ctx, User value)
value from assignedTo.value - the item to remove from assignedTopublic void removeFromAssignedTo(User value)
value from assignedTo.value - the item to remove from assignedTopublic java.lang.String getCode(SessionContext ctx)
Comment.code attribute.public java.lang.String getCode()
Comment.code attribute.public void setCode(SessionContext ctx, java.lang.String value)
Comment.code attribute.value - the code - unique identifier of the comment; will be generated if not setpublic void setCode(java.lang.String value)
Comment.code attribute.value - the code - unique identifier of the comment; will be generated if not setpublic CommentType getCommentType(SessionContext ctx)
Comment.commentType attribute.public CommentType getCommentType()
Comment.commentType attribute.protected void setCommentType(SessionContext ctx, CommentType value)
Comment.commentType attribute.value - the commentTypeprotected void setCommentType(CommentType value)
Comment.commentType attribute.value - the commentTypepublic Component getComponent(SessionContext ctx)
Comment.component attribute.public Component getComponent()
Comment.component attribute.protected void setComponent(SessionContext ctx, Component value)
Comment.component attribute.value - the componentprotected void setComponent(Component value)
Comment.component attribute.value - the componentprotected 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 GeneratedAbstractCommentctx - 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 boolean isMarkModifiedDisabled(Item referencedItem)
isMarkModifiedDisabled in class Itempublic java.lang.Integer getPriority(SessionContext ctx)
Comment.priority attribute.public java.lang.Integer getPriority()
Comment.priority attribute.public int getPriorityAsPrimitive(SessionContext ctx)
Comment.priority attribute.public int getPriorityAsPrimitive()
Comment.priority attribute.public void setPriority(SessionContext ctx, java.lang.Integer value)
Comment.priority attribute.value - the priority - Priority of a commentpublic void setPriority(java.lang.Integer value)
Comment.priority attribute.value - the priority - Priority of a commentpublic void setPriority(SessionContext ctx, int value)
Comment.priority attribute.value - the priority - Priority of a commentpublic void setPriority(int value)
Comment.priority attribute.value - the priority - Priority of a commentpublic abstract java.util.Collection<Item> getRelatedItems(SessionContext ctx)
Comment.relatedItems attribute.public java.util.Collection<Item> getRelatedItems()
Comment.relatedItems attribute.public abstract void setRelatedItems(SessionContext ctx, java.util.Collection<Item> value)
Comment.relatedItems attribute.value - the relatedItems - Related items of this commentpublic void setRelatedItems(java.util.Collection<Item> value)
Comment.relatedItems attribute.value - the relatedItems - Related items of this commentpublic java.util.List<Reply> getReplies(SessionContext ctx)
Comment.replies attribute.public java.util.List<Reply> getReplies()
Comment.replies attribute.public void setReplies(SessionContext ctx, java.util.List<Reply> value)
Comment.replies attribute.value - the repliespublic void setReplies(java.util.List<Reply> value)
Comment.replies attribute.value - the repliespublic void addToReplies(SessionContext ctx, Reply value)
value to replies.value - the item to add to repliespublic void addToReplies(Reply value)
value to replies.value - the item to add to repliespublic void removeFromReplies(SessionContext ctx, Reply value)
value from replies.value - the item to remove from repliespublic void removeFromReplies(Reply value)
value from replies.value - the item to remove from repliespublic java.util.Collection<Principal> getWatchers(SessionContext ctx)
Comment.watchers attribute.public java.util.Collection<Principal> getWatchers()
Comment.watchers attribute.public long getWatchersCount(SessionContext ctx)
public long getWatchersCount()
public void setWatchers(SessionContext ctx, java.util.Collection<Principal> value)
Comment.watchers attribute.value - the watcherspublic void setWatchers(java.util.Collection<Principal> value)
Comment.watchers attribute.value - the watcherspublic void addToWatchers(SessionContext ctx, Principal value)
value to watchers.value - the item to add to watcherspublic void addToWatchers(Principal value)
value to watchers.value - the item to add to watcherspublic void removeFromWatchers(SessionContext ctx, Principal value)
value from watchers.value - the item to remove from watcherspublic void removeFromWatchers(Principal value)
value from watchers.value - the item to remove from watchersCopyright © 2018 SAP SE. All Rights Reserved.