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 String |
ASSIGNEDTO
Qualifier of the
Comment.assignedTo attribute |
static String |
CODE
Qualifier of the
Comment.code attribute |
protected static String |
COMMENTASSIGNEERELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for CommentAssigneeRelation from ((comments))
|
protected static String |
COMMENTASSIGNEERELATION_SRC_ORDERED
Relation ordering override parameter constants for CommentAssigneeRelation from ((comments))
|
protected static String |
COMMENTASSIGNEERELATION_TGT_ORDERED |
static 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 String |
COMMENTWATCHERRELATION_MARKMODIFIED
Relation disable markmodifed parameter constants for CommentWatcherRelation from ((comments))
|
protected static String |
COMMENTWATCHERRELATION_SRC_ORDERED
Relation ordering override parameter constants for CommentWatcherRelation from ((comments))
|
protected static String |
COMMENTWATCHERRELATION_TGT_ORDERED |
static 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 Map<String,Item.AttributeMode> |
DEFAULT_INITIAL_ATTRIBUTES |
static String |
PRIORITY
Qualifier of the
Comment.priority attribute |
static String |
RELATEDITEMS
Qualifier of the
Comment.relatedItems attribute |
static 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 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.
|
Collection<User> |
getAssignedTo()
Generated method - Getter of the
Comment.assignedTo attribute. |
Collection<User> |
getAssignedTo(SessionContext ctx)
Generated method - Getter of the
Comment.assignedTo attribute. |
long |
getAssignedToCount() |
long |
getAssignedToCount(SessionContext ctx) |
String |
getCode()
Generated method - Getter of the
Comment.code attribute. |
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 Map<String,Item.AttributeMode> |
getDefaultAttributeModes() |
Integer |
getPriority()
Generated method - Getter of the
Comment.priority attribute. |
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. |
Collection<Item> |
getRelatedItems()
Generated method - Getter of the
Comment.relatedItems attribute. |
abstract Collection<Item> |
getRelatedItems(SessionContext ctx)
Generated method - Getter of the
Comment.relatedItems attribute. |
List<Reply> |
getReplies()
Generated method - Getter of the
Comment.replies attribute. |
List<Reply> |
getReplies(SessionContext ctx)
Generated method - Getter of the
Comment.replies attribute. |
Collection<Principal> |
getWatchers()
Generated method - Getter of the
Comment.watchers attribute. |
Collection<Principal> |
getWatchers(SessionContext ctx)
Generated method - Getter of the
Comment.watchers attribute. |
long |
getWatchersCount() |
long |
getWatchersCount(SessionContext ctx) |
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(Collection<User> value)
Generated method - Setter of the
Comment.assignedTo attribute. |
void |
setAssignedTo(SessionContext ctx,
Collection<User> value)
Generated method - Setter of the
Comment.assignedTo attribute. |
void |
setCode(SessionContext ctx,
String value)
Generated method - Setter of the
Comment.code attribute. |
void |
setCode(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(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,
Integer value)
Generated method - Setter of the
Comment.priority attribute. |
void |
setRelatedItems(Collection<Item> value)
Generated method - Setter of the
Comment.relatedItems attribute. |
abstract void |
setRelatedItems(SessionContext ctx,
Collection<Item> value)
Generated method - Setter of the
Comment.relatedItems attribute. |
void |
setReplies(List<Reply> value)
Generated method - Setter of the
Comment.replies attribute. |
void |
setReplies(SessionContext ctx,
List<Reply> value)
Generated method - Setter of the
Comment.replies attribute. |
void |
setWatchers(Collection<Principal> value)
Generated method - Setter of the
Comment.watchers attribute. |
void |
setWatchers(SessionContext ctx,
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, 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 CODE
Comment.code attributepublic static final String PRIORITY
Comment.priority attributepublic static final String RELATEDITEMS
Comment.relatedItems attributepublic static final String REPLIES
Comment.replies attributepublic static final String ASSIGNEDTO
Comment.assignedTo attributeprotected static String COMMENTASSIGNEERELATION_SRC_ORDERED
protected static String COMMENTASSIGNEERELATION_TGT_ORDERED
protected static String COMMENTASSIGNEERELATION_MARKMODIFIED
public static final String WATCHERS
Comment.watchers attributeprotected static String COMMENTWATCHERRELATION_SRC_ORDERED
protected static String COMMENTWATCHERRELATION_TGT_ORDERED
protected static String COMMENTWATCHERRELATION_MARKMODIFIED
public static final String COMPONENT
Comment.component attributepublic static final 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 Map<String,Item.AttributeMode> DEFAULT_INITIAL_ATTRIBUTES
protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
getDefaultAttributeModes in class GeneratedAbstractCommentpublic Collection<User> getAssignedTo(SessionContext ctx)
Comment.assignedTo attribute.public Collection<User> getAssignedTo()
Comment.assignedTo attribute.public long getAssignedToCount(SessionContext ctx)
public long getAssignedToCount()
public void setAssignedTo(SessionContext ctx, Collection<User> value)
Comment.assignedTo attribute.value - the assignedTopublic void setAssignedTo(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 String getCode(SessionContext ctx)
Comment.code attribute.public String getCode()
Comment.code attribute.public void setCode(SessionContext ctx, String value)
Comment.code attribute.value - the code - unique identifier of the comment; will be generated if not setpublic void setCode(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 Integer getPriority(SessionContext ctx)
Comment.priority attribute.public Integer getPriority()
Comment.priority attribute.public int getPriorityAsPrimitive(SessionContext ctx)
Comment.priority attribute.public int getPriorityAsPrimitive()
Comment.priority attribute.public void setPriority(SessionContext ctx, Integer value)
Comment.priority attribute.value - the priority - Priority of a commentpublic void setPriority(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 Collection<Item> getRelatedItems(SessionContext ctx)
Comment.relatedItems attribute.public Collection<Item> getRelatedItems()
Comment.relatedItems attribute.public abstract void setRelatedItems(SessionContext ctx, Collection<Item> value)
Comment.relatedItems attribute.value - the relatedItems - Related items of this commentpublic void setRelatedItems(Collection<Item> value)
Comment.relatedItems attribute.value - the relatedItems - Related items of this commentpublic List<Reply> getReplies(SessionContext ctx)
Comment.replies attribute.public List<Reply> getReplies()
Comment.replies attribute.public void setReplies(SessionContext ctx, List<Reply> value)
Comment.replies attribute.value - the repliespublic void setReplies(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 Collection<Principal> getWatchers(SessionContext ctx)
Comment.watchers attribute.public Collection<Principal> getWatchers()
Comment.watchers attribute.public long getWatchersCount(SessionContext ctx)
public long getWatchersCount()
public void setWatchers(SessionContext ctx, Collection<Principal> value)
Comment.watchers attribute.value - the watcherspublic void setWatchers(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 © 2017 SAP SE. All Rights Reserved.