Interface ContentInterface

All Superinterfaces:
MetadataInterface, PublicObjectInterface, Remote
All Known Implementing Classes:
Content, DavBinaryPackage, DavEvent, StoredProcessAlertItem

public interface ContentInterface extends MetadataInterface
Manipulation of the actual content of a Content smart object
  • Method Details

    • getContentType

      String getContentType() throws RemoteException
      Gets the content type for the object. This would be the MIME type for the content.
      Returns:
      The content type String.
      Throws:
      RemoteException - In the event of remote object failure.
    • getContentAsStream

      InputStream getContentAsStream() throws RemoteException
      Get the content as an input stream.
      Returns:
      An InputStream to receive the content.
      Throws:
      RemoteException - In the event of remote object failure.
    • getContentAsBytes

      byte[] getContentAsBytes() throws RemoteException
      Get the content as a byte array.
      Returns:
      A byte array containing the content.
      Throws:
      RemoteException - In the event of remote object failure.
    • getContentAsString

      String getContentAsString() throws RemoteException
      Get the content as a String.
      Returns:
      a String containing the content.
      Throws:
      RemoteException - In the event of remote object failure.
    • setContentType

      void setContentType(String contentType) throws RemoteException
      Set the content type for the object.
      Parameters:
      contentType - The new content type for the content.
      Throws:
      RemoteException - In the event of remote object failure.
    • setContent

      void setContent(String content) throws RemoteException
      Set the content from a String
      Parameters:
      content - The new content for this object.
      Throws:
      RemoteException - In the event of remote object failure.
    • setContentFromStream

      void setContentFromStream(InputStream content) throws RemoteException
      Set the content from a stream.For remote deployment the InputStream should be wrapped in an InputStreamAdapter
      Parameters:
      content - An InputStream that streams the content.
      Throws:
      RemoteException - In the event of remote object failure.
    • setContentFromBytes

      void setContentFromBytes(byte[] content) throws RemoteException
      Set the content from a byte array
      Parameters:
      content - A ByteArray containing the content.
      Throws:
      RemoteException - In the event of remote object failure.
    • setProperty

      void setProperty(String propertyName, String propertyValue) throws RemoteException
      Deprecated.
      Set the value of a property
      Parameters:
      propertyName - The name, including namespace, of the property to be set
      propertyValue - The value of the property to be set
      Throws:
      RemoteException - In the event of remote object failure.
    • getProperty

      String getProperty(String propertyName) throws RemoteException
      Deprecated.
      As of 9.1.3SP4, replaced by MetadataInterface.getAttribute(String)
      Get the value of a property
      Parameters:
      propertyName - The name, including namespace, of the property to get
      Returns:
      String The value of the property
      Throws:
      RemoteException - In the event of remote object failure.