Interface Stateful
- All Superinterfaces:
BusinessObject<Long>
- All Known Subinterfaces:
Stateful
Stateful is the interface a
BusinessObject must implement to be
used in StateChangeRule and StateChangeFinalRule rules- Since:
- Nuclos 4.11 Use the new 'thin' property for your business object to improve the performance!
-
Method Summary
Modifier and TypeMethodDescriptionvoidchangeStatus(State status) Changes Status.voiddeleteAttachment(NuclosFile nuclosFile) Deletes the given file if attached to this businessobjectReturns all generic documents attached to this businessobjectReturns the id of the current statusvoidinsertAttachment(NuclosFile nuclosFile, String comment) Inserts the given file as generic document with the given commentMethods inherited from interface org.nuclos.api.businessobject.BusinessObject
getEntity, getEntityUid, getId, getVersion, isDelete, isInsert, isUpdate
-
Method Details
-
getNuclosStateId
UID getNuclosStateId()Returns the id of the current status- Returns:
-
changeStatus
Changes Status.- Parameters:
status- : The target status.- Throws:
BusinessException
-
insertAttachment
Inserts the given file as generic document with the given comment- Parameters:
nuclosFile- file to insertcomment-
-
getAttachments
List<NuclosFile> getAttachments()Returns all generic documents attached to this businessobject- Returns:
- all generic documents attached to this businessobject
-
deleteAttachment
Deletes the given file if attached to this businessobject- Parameters:
nuclosFile- the file to be deleted
-