Class MemoComment
- All Implemented Interfaces:
Displayable
,StringFiller
,HasId
-
Field Summary
Fields inherited from class com.storedobject.core.StoredObject
logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
approveMemo
(Transaction transaction, String approvalText) void
approveMemo
(Transaction transaction, String approvalText, SystemUser forwardTo) void
assignAssistant
(Transaction transaction, SystemUser assistant) static String[]
boolean
canApprove
(SystemUser su) boolean
canClose
(SystemUser su) boolean
canComment
(SystemUser su) boolean
canEdit
(SystemUser su) boolean
boolean
boolean
canForward
(SystemUser su) boolean
canRecall
(SystemUser su) boolean
canReopen
(SystemUser su) boolean
canReturn
(SystemUser su) boolean
void
closeMemo
(Transaction transaction) static void
void
commentMemo
(Transaction transaction, String comment) void
escalateMemo
(Transaction transaction, String reason) void
forwardMemo
(Transaction transaction, String comment, SystemUser to) int
getFirst()
getMemo()
getNext()
int
static String
getStatusValue
(int value) static String[]
static void
boolean
isLatest()
boolean
isMine
(SystemUser su) boolean
isMyMemo
(SystemUser su) static String[]
links()
static String[]
void
recallMemo
(Transaction transaction) void
rejectMemo
(Transaction transaction, String reason) void
reopenMemo
(Transaction transaction, String reason) void
returnMemo
(Transaction transaction, String reason) void
returnMemoToInitiator
(Transaction transaction, String reason) void
setComment
(String comment) void
setCommentCount
(int commentCount) void
setCommentedAt
(Timestamp commentedAt) void
setCommentedBy
(Id commentedById) void
setCommentedBy
(SystemUser commentedBy) void
setCommentedBy
(BigDecimal idValue) void
setEnteredBy
(Id enteredById) void
setEnteredBy
(SystemUser enteredBy) void
setEnteredBy
(BigDecimal idValue) void
void
void
setMemo
(BigDecimal idValue) void
setStatus
(int status) void
validate()
This method is invoked internally by the system whenever the object gets saved to the DB (that means, while doing transactions).void
This will be invoked by the system whenever the object is saved to the DB.Methods inherited from class com.storedobject.core.StoredObject
addLink, addLink, addLink, addLink, addLink, addLink, addLink, addLink, checkCurrency, checkCurrency, checkForDuplicate, checkForDuplicate, checkTimeZone, checkTransaction, clearObjectLinks, contemporary, copy, copy, count, count, count, count, count, count, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countLinks, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, countMasters, create, created, delete, delete, delete, deleted, directUpdate, equals, exists, exists, exists, exists, exists, existsFileData, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLink, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsLinks, existsMaster, existsMaster, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, existsMasters, family, family, family, fill, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, get, getAttachment, getAttachmentId, getChildren, getDeleted, getDeleted, getExistsCondition, getExistsCondition, getFileData, getFileData, getHistorical, getId, getKeyIndex, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getMaster, getNotExistsCondition, getNotExistsCondition, getParent, getParent, getParent, getParentId, getParentId, getParentId, getRelated, getRelated, getTransaction, getTransactionId, getTransactionIP, getUnique, getUniqueCondition, hashCode, inserted, isModified, isVirtual, list, list, list, list, list, list, list, list, list, list, list, list, list, listFileData, listFileData, listHistory, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listLinks, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listMasters, listTree, listTree, listTree, listTree, listViaQuery, listViaQuery, load, load, load, load, loaded, loading, makeNew, makeVirtual, migrate, moduleName, nextVersion, objectLink, objectLink, objectLink, objectLinks, objectLinks, old, person, previousVersion, previousVersion, query, query, query, query, query, query, query, query, query, query, query, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryLinks, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, queryMasters, reload, reload, reloaded, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeAllLinks, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeLink, removeReverseLinks, removeReverseLinks, save, save, save, save, save, save, save, save, save, save, save, save, save, save, saved, saving, setMaster, setRawValue, setTransaction, stringify, tableName, timestamp, toCode, toDisplay, toString, transacting, undelete, undelete, undeleted, updated, user, userId, validateChildAttach, validateChildDetach, validateChildUpdate, validateDelete, validateInsert, validateParentAttach, validateParentDetach, validateParentUpdate, validateUndelete, validateUpdate, valueEquals
-
Constructor Details
-
MemoComment
public MemoComment()
-
-
Method Details
-
columns
-
indices
-
browseColumns
-
protectedColumns
-
links
-
setMemo
-
setMemo
-
setMemo
-
getMemoId
-
getMemo
-
setCommentCount
public void setCommentCount(int commentCount) -
getCommentCount
-
setCommentedAt
-
getCommentedAt
-
setCommentedBy
-
setCommentedBy
-
setCommentedBy
-
getCommentedById
-
getCommentedBy
-
setEnteredBy
-
setEnteredBy
-
setEnteredBy
-
getEnteredById
-
getEnteredBy
-
setStatus
public void setStatus(int status) -
getStatus
-
getStatusValues
-
getStatusValue
-
getStatusValue
-
setComment
-
getComment
-
validateData
Description copied from class:StoredObject
This will be invoked by the system whenever the object is saved to the DB. It will be invoked in all cases, while creating new objects and updating/deleting/un-deleting existing objects. If any exception is raised by this method, the process of saving to the DB will be abandoned.
Note: This method is mainly used to validate the data of all attributes of the object, and it may be used by others for validating the object. For example, front-end data-entry systems can use this method for validating the object.
- Overrides:
validateData
in classStoredObject
- Parameters:
tm
- Current transaction manager.- Throws:
Exception
- If data is invalid.
-
validate
Description copied from class:StoredObject
This method is invoked internally by the system whenever the object gets saved to the DB (that means, while doing transactions). It will be invoked in all cases (while creating new objects and updating/deleting/un-deleting existing objects). If this method raises any exceptions, the process of saving to the DB will be abandoned.
This method is not usually used for validating data (For that purpose,
StoredObject.validateData(TransactionManager)
is recommended). It is mainly used for validating state of the object. Methods such asStoredObject.created()
,StoredObject.updated()
,StoredObject.deleted()
,StoredObject.undeleted()
etc. are used to check the specific states but overridden methods may check for other "application-specific"/"business-specific" states.This method is invoked only after one of the other operation-specific validate method is invoked depending on the save operation -
StoredObject.validateInsert()
,StoredObject.validateUpdate()
,StoredObject.validateDelete()
,StoredObject.validateUndelete()
.Note: When overridden "super" should be called, otherwise, a "design error" will occur.
- Overrides:
validate
in classStoredObject
- Throws:
Exception
- By raising an exception from this method the current transaction can be abandoned.
-
getPendingWith
-
isLatest
public boolean isLatest() -
assignAssistant
- Throws:
Exception
-
recallMemo
- Throws:
Exception
-
returnMemoToInitiator
- Throws:
Exception
-
returnMemo
- Throws:
Exception
-
forwardMemo
- Throws:
Exception
-
reopenMemo
- Throws:
Exception
-
escalateMemo
- Throws:
Exception
-
approveMemo
- Throws:
Exception
-
approveMemo
public void approveMemo(Transaction transaction, String approvalText, SystemUser forwardTo) throws Exception - Throws:
Exception
-
rejectMemo
- Throws:
Exception
-
commentMemo
- Throws:
Exception
-
closeMemo
- Throws:
Exception
-
getNext
-
getFirst
-
getLatest
-
getReference
-
getMemoStatus
-
getContent
-
canEdit
-
canEditSubject
-
canClose
-
canApprove
-
canForward
-
canReturn
-
canReturnToInitiator
-
canRecall
-
canComment
-
canReopen
-
canEscalate
-
isMine
-
isMyMemo
-