Package com.saperion.bean
Class UpdateDocumentInfo
java.lang.Object
com.saperion.structures.Description
com.saperion.structures.DocumentInfo
com.saperion.bean.UpdateDocumentInfo
- All Implemented Interfaces:
Serializable
Bean to hold information for UpdateDocument method.
- Author:
- tfr
- See Also:
-
Field Summary
FieldsFields inherited from class com.saperion.structures.DocumentInfo
structure
Fields inherited from class com.saperion.structures.Description
acl, comment, ddc, metadatas
-
Constructor Summary
ConstructorsConstructorDescriptionUpdateDocumentInfo
(String ddcName, String documentHDoc, Map<String, Object> nameValuePairs, ContentStream[] content, String versionComment) Creates a new UpdateDocumentInfo.UpdateDocumentInfo
(String ddcName, String documentHDoc, Properties nameValuePairs, ContentStream[] content, String versionComment) Creates a new UpdateDocumentInfo. -
Method Summary
Modifier and TypeMethodDescriptionaddVariable
(String name, String value) Adds a variable to the document.setCheckin
(Boolean checkin) setMetadata
(Map<String, Object> metadatas) Sets the metadata.setResolveLinks
(boolean resolveLinks) Methods inherited from class com.saperion.structures.DocumentInfo
getContent, getSelectedImage, getStructure, getVariables, setSelectedImage
Methods inherited from class com.saperion.structures.Description
getAcls, getDdcName, getMetadatas, getVersionComment, setAcls
-
Field Details
-
hDoc
-
doResolveLinks
-
doCheckin
-
-
Constructor Details
-
UpdateDocumentInfo
public UpdateDocumentInfo(String ddcName, String documentHDoc, Properties nameValuePairs, ContentStream[] content, String versionComment) Creates a new UpdateDocumentInfo.- Parameters:
ddcName
- The name of the database definitiondocumentHDoc
- The ID of the document (HDOC)nameValuePairs
- A properties object containing the metadata. Only the contained properties will be updated.content
- Multiple content data. If the array is empty, all content of the document will be removed. If null, the content will not be changed. Otherwise only the contained elements will be replaced.versionComment
- The comment for the version
-
UpdateDocumentInfo
public UpdateDocumentInfo(String ddcName, String documentHDoc, Map<String, Object> nameValuePairs, ContentStream[] content, String versionComment) Creates a new UpdateDocumentInfo.- Parameters:
ddcName
- The name of the database definitiondocumentHDoc
- The ID of the document (HDOC)nameValuePairs
- A Map object containing the metadata. Only the contained properties will be updated.content
- Multiple content data. If the array is empty, all content of the document will be removed. If null, the content will not be changed. Otherwise only the contained elements will be replaced.versionComment
- The comment for the version
-
-
Method Details
-
getDocumentHDoc
- Returns:
- document's hDoc
-
getResolveLinks
- Returns:
- if links should be resolved
-
setResolveLinks
- Parameters:
resolveLinks
- resolveLinks- Returns:
- UpdateDocumentInfo
-
getCheckin
- Returns:
- if document should be checked-in
-
setCheckin
- Parameters:
checkin
- if set to true, the document will be checked-in- Returns:
- UpdateDocumentInfo
-
setMetadata
Sets the metadata.- Parameters:
metadatas
- A properties object containing the metadata.- Returns:
- UpdateDocumentInfo
-
addVariable
Adds a variable to the document.- Overrides:
addVariable
in classDocumentInfo
- Parameters:
name
- The name of the variable.value
- The value of the variable.- Returns:
- UpdateDocumentInfo
-