Package com.saperion.structures
Class DocumentInfo
java.lang.Object
com.saperion.structures.Description
com.saperion.structures.DocumentInfo
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UpdateDocumentInfo
A document representation.
This object is used to set the data for a new document to be created via the SaClassicConnector.
See com.saperion.connector.SaClassicConnector#createDocument(com.saperion.structures.DocumentInfo)
This object is used to set the data for a new document to be created via the SaClassicConnector.
See com.saperion.connector.SaClassicConnector#createDocument(com.saperion.structures.DocumentInfo)
- Author:
- tfr
- See Also:
-
Field Summary
FieldsFields inherited from class com.saperion.structures.Description
acl, comment, ddc, metadatas
-
Constructor Summary
ConstructorsConstructorDescriptionDocumentInfo
(String ddcName, Map<String, Object> metadatas, ContentStream[] content, String versionComment) Creates a new UpdateDocumentInfo. -
Method Summary
Modifier and TypeMethodDescriptionaddVariable
(String name, String value) Adds a variable to this document representation.Returns the contents of this document representation.int
Returns this document representations structure.Returns the variables of this document representation.void
setSelectedImage
(int elementNumber) Methods inherited from class com.saperion.structures.Description
getAcls, getDdcName, getMetadatas, getVersionComment, setAcls
-
Field Details
-
structure
This DocumentInfos structure.
-
-
Constructor Details
-
DocumentInfo
public DocumentInfo(String ddcName, Map<String, Object> metadatas, ContentStream[] content, String versionComment) Creates a new UpdateDocumentInfo.- Parameters:
ddcName
- The name of the database definitionmetadatas
- The metadata of this document representation.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
-
setSelectedImage
public void setSelectedImage(int elementNumber) - Parameters:
elementNumber
- Element to mark
-
getSelectedImage
public int getSelectedImage()- Returns:
- Element to mark
-
getContent
Returns the contents of this document representation.- Returns:
- the contents of this document representation.
-
getVariables
Returns the variables of this document representation.- Returns:
- the variables of this document representation.
-
getStructure
Returns this document representations structure.- Returns:
- this document representations structure.
-
addVariable
Adds a variable to this document representation.- Parameters:
name
- The name of the variable.value
- The value of the variable.- Returns:
- This.
-