Class icm.model.CaseEditable
Extends
ecm.model._ModelObject.
Represents the scratchpad state for editing a case.
Defined in: <icm/model/CaseEditable.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
icm.model.CaseEditable(properties)
Constructs a CaseEditable object.
|
Field Summary
Field Attributes | Field Name and Description |
---|---|
The icm.model.Case object associated with this CaseEditable.
|
|
The icm.model.CaseType object associated with this CaseEditable.
|
|
Will be non-null if integrating with an external data service
|
|
True if this CaseEditable represents editing a new Case, false if editing
an existing Case.
|
|
True if this CaseEditable represents editing a new split Case, false otherwise.
|
|
A collection of icm.model.PropertyEditable objects.
|
|
If pendingSplit is true, this is the description of the split relationship that
associates the original source Case to the split Case.
|
|
If pendingSplit is true, this is some filing instructions to be applied when
the split case is created.
|
|
When creating a new split Case, this is the source Case that it is being split from.
|
Method Summary
Method Attributes | Method Name and Description |
---|---|
<static> |
icm.model.CaseEditable.createPendingInstance(caseType, callback, errCallback, backgroundRequest)
Creates a CaseEditable object that represents a new Case object.
|
<static> |
icm.model.CaseEditable.createPendingSplitInstance(splitSource, caseType, callback, errCallback, backgroundRequest)
Creates a CaseEditable object that represents a new Case object that is split from
another Case.
|
<static> |
icm.model.CaseEditable.fromCaseObject(caseObject)
Constructs a CaseEditable object and associates with an existing Case object.
|
Returns whatever attribute value represents the case title.
|
|
Returns the CaseType for this case.
|
|
Returns the date that the case was last modified.
|
|
Returns the case identifier.
|
|
getProperty(provider, symbolicName)
Obtains the PropertyEditable from the propertiesCollection property with the given
provider and symbolic name.
|
|
Returns true if any PropertyEditable objects in this object's collection
has a true value for its dependentsRetrievalPending property.
|
|
Called when the entire state of the object is refreshed, primarily
when the attributes have been updated based on updated information
from the server.
|
|
refreshFromJSON(result, callback, errCallback, backgroundRequest)
Refreshes this object from the result obtained after submitting some changes to the server.
|
|
retrieveAttributes(callback, errCallback, backgroundRequest)
Retrieves all attributes of the Case object and updates this CaseEditable
object with the new set of attributes.
|
|
retrieveCachedAttributes(callback, errCallback, backgroundRequest)
Ensures that the full set of attributes has been retrieved.
|
|
retrieveDependentProperties(callback, errCallback, backgroundRequest)
Retrieves the dependent properties when one or more properties have a
dependentsRetrievalPending value of true.
|
|
save(callback, errCallback, backgroundRequest)
Saves this CaseEditable object.
|
|
setFoldersAndDocToBeFiled(foldersAndDocToBeFiled)
Sets the list of instructions for the documents to be filed in the folders of the split case.
|
|
setSplitDescription(description)
Sets the description for the split operation.
|
|
toJSON()
|
Constructor Detail
icm.model.CaseEditable(properties)
- Parameters:
- properties
- The properties for the CaseEditable object. The properties can be any of the public fields as defined below and on ecm.model._ModelObject.
Field Detail
caseObject
caseType
externalDataIdentifier
pendingCreate
pendingSplit
propertiesCollection
splitDescription
splitDocFiling
splitSource
Method Detail
<static> icm.model.CaseEditable.createPendingInstance(caseType, callback, errCallback, backgroundRequest)
- Parameters:
- caseType
- An icm.model.CaseType for the case type of the new Case to create.
- callback
- Callback function called with the new CaseEditable object when the request completes.
- errCallback
- An optional argument. A function called if the request fails.
- backgroundRequest
- An optional argument. If true, indicates the request is processed in the background.
<static> icm.model.CaseEditable.createPendingSplitInstance(splitSource, caseType, callback, errCallback, backgroundRequest)
- Parameters:
- splitSource
- An icm.model.Case object for the source case that is being split.
- caseType
- An icm.model.CaseType for the case type of the new Case to create.
- callback
- Callback function called with the new CaseEditable object when the request completes.
- errCallback
- An optional argument. A function called if the request fails.
- backgroundRequest
- An optional argument. If true, indicates the request is processed in the background.
<static> icm.model.CaseEditable.fromCaseObject(caseObject)
- Parameters:
- caseObject
- An icm.model.Case object from which to construct this CaseEditable object.
- Returns:
- An icm.model.CaseEditable object.
getCaseTitle()
- Returns:
- The case title property value
getCaseType()
- Returns:
- icm.model.CaseType
getDateLastModified()
- Returns:
- (Date) the case last modified date
getIdentifier()
- Returns:
- String of the identifier
getProperty(provider, symbolicName)
- Parameters:
- provider
- symbolicName
- Returns:
- PropertyEditable object if one exists with the given provider and symbolic name. Otherwise null.
isDependentPropertiesRetrievalPending()
- Returns:
- (boolean) true if any dependents retrieval is pending
onRefresh()
refreshFromJSON(result, callback, errCallback, backgroundRequest)
- Parameters:
- result
- callback
- errCallback
- backgroundRequest
retrieveAttributes(callback, errCallback, backgroundRequest)
This is a convenience method equivalent to calling retrieveAttributes() on the Case object corresponding to this CaseEditable. This CaseEditable is refreshed after the attributes have been retrieved by the Case object.
If this CaseEditable represents a new Case that has not yet been saved, no action is taken and the callback is called immediately.
- Parameters:
- callback
- Callback function called with this CaseEditable as an argument when the request completes.
- errCallback
- An optional argument. A function called if the request fails.
- backgroundRequest
- An optional argument. If true, indicates the request is processed in the background.
retrieveCachedAttributes(callback, errCallback, backgroundRequest)
If this CaseEditable represents a new Case that has not yet been saved, no action is taken and the callback is called immediately.
- Parameters:
- callback
- Callback function called with this CaseEditable as an argument after the request completes.
- errCallback
- An optional argument. A function called if the request fails.
- backgroundRequest
- An optional argument. If true, indicates the request is processed in the background.
retrieveDependentProperties(callback, errCallback, backgroundRequest)
- Parameters:
- callback
- Callback function called with this CaseEditable as an argument when the request completes.
- errCallback
- An optional argument. A function called if the request fails.
- backgroundRequest
- An optional argument. If true, indicates the request is processed in the background.
save(callback, errCallback, backgroundRequest)
- Parameters:
- callback
- Callback function called with this CaseEditable as an argument when the request completes.
- errCallback
- Callback function called when the request fails
- backgroundRequest
- An optional argument. If true, indicates the request is processed in the background
setFoldersAndDocToBeFiled(foldersAndDocToBeFiled)
- Parameters:
- foldersAndDocToBeFiled
- an array of objects representing the list of instructions for the documents to be filed in the folders of the split case.
Each object in the array is of the form:
{folderName: <name>, documentId: <vsId>}
For example:
{folderName: "/SubFolder", documentId: 8761427B-DF34-4461-9099-2FE0FA25D9D0}
For each instruction in the list, the document with the specified version series ID is filed in the specified sub-folder. The folder is identified by the relative path, with the case folder itself represented as "/". The instructions represent folders and documents in the source case to be filed in the new split case.
setSplitDescription(description)
- Parameters:
- description
- a textual description of the split operation. This description is captured in the relationship objects relating the source case to the split case, and can be viewed by a user later.