Class DataToUpdate


  • public class DataToUpdate
    extends java.lang.Object
    The data to update on a document or lookup-item. If either metadata or content is not set, the metadata or content of the document will not be modified.
    • Constructor Summary

      Constructors 
      Constructor Description
      DataToUpdate​(com.saperion.bean.ContentStream[] content)  
      DataToUpdate​(java.util.Map<java.lang.String,​java.lang.Object> metadata)  
      DataToUpdate​(java.util.Map<java.lang.String,​java.lang.Object> metadata, com.saperion.bean.ContentStream[] content)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.saperion.bean.ContentStream[] getContent()  
      java.util.Map<java.lang.String,​java.lang.Object> getMetadata()  
      java.util.Properties getMetadataAsProperties()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DataToUpdate

        public DataToUpdate​(java.util.Map<java.lang.String,​java.lang.Object> metadata,
                            com.saperion.bean.ContentStream[] content)
        Parameters:
        metadata - metadata to update
        content - content to update
      • DataToUpdate

        public DataToUpdate​(java.util.Map<java.lang.String,​java.lang.Object> metadata)
        Parameters:
        metadata - metadata to update
      • DataToUpdate

        public DataToUpdate​(com.saperion.bean.ContentStream[] content)
        Parameters:
        content - content to update
    • Method Detail

      • getMetadata

        public java.util.Map<java.lang.String,​java.lang.Object> getMetadata()
        Returns:
        metadata to update
      • getMetadataAsProperties

        public java.util.Properties getMetadataAsProperties()
        Returns:
        metadata to update (for ClassicConnector compatibility)
      • getContent

        @Nullable
        public com.saperion.bean.ContentStream[] getContent()
        Returns:
        content to update