com.ibm.commerce.context.content.resources.file.objects

Class ManagedFileEntityCreationData

  • java.lang.Object
    • com.ibm.commerce.context.content.resources.file.objects.ManagedFileEntityCreationData
  • All Implemented Interfaces:
    EntityBeanCreationData, java.io.Serializable


    public class ManagedFileEntityCreationData
    extends java.lang.Object
    implements EntityBeanCreationData
    The entity creation data when creating a managed file. The command creating the managed file will specify the file path and the bytes of the file. The information related to content management will be set by the resource manager when creating the file.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ManagedFileEntityCreationData()
      Creates the managed file entity creation data object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.Short getAssociated()
      Returns whether the file is already associated with a business object.
      java.lang.String getContentWorkspace()
      Returns the workspace name of the modification.
      byte[] getFile()
      Returns the file contents of the managed file.
      java.lang.Long getFileDirId()
      Gets the file directory ID.
      java.lang.Long getFileId()
      Returns the file identifier that represents the internal business object key of the file.
      java.lang.String getFilePath()
      Returns the location that the managed file will represent.
      void setAssociated(java.lang.Short associated)
      Sets whether the managed file is associated with a business object.
      void setContentWorkspace(java.lang.String workspace)
      Sets the workspace name of the modification.
      void setFile(byte[] file)
      Sets the file contents of the managed file.
      void setFileDirId(java.lang.Long aFileDirId)
      Sets the File Directory ID.
      void setFileId(java.lang.Long id)
      Sets the internal business object key of the managed file.
      void setFilePath(java.lang.String filepath)
      Sets the URL location of the file.
      java.lang.String toString()
      Returns the string representation of the object.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • ManagedFileEntityCreationData

        public ManagedFileEntityCreationData()
        Creates the managed file entity creation data object.
    • Method Detail

      • getFileId

        public java.lang.Long getFileId()
        Returns the file identifier that represents the internal business object key of the file.
        Returns:
        The file identifier.
      • getFilePath

        public java.lang.String getFilePath()
        Returns the location that the managed file will represent.
        Returns:
        The file path.
      • setFileId

        public void setFileId(java.lang.Long id)
        Sets the internal business object key of the managed file.
        Parameters:
        id - The internal file identifier.
      • setFilePath

        public void setFilePath(java.lang.String filepath)
        Sets the URL location of the file.
        Parameters:
        filepath - The file path.
      • getAssociated

        public java.lang.Short getAssociated()
        Returns whether the file is already associated with a business object.
        Returns:
        Whether the file is associated with a business object.
      • getFile

        public byte[] getFile()
        Returns the file contents of the managed file.
        Returns:
        The file contents of the managed file.
      • getFileDirId

        public java.lang.Long getFileDirId()
        Gets the file directory ID.
        Returns:
        The file directory ID
      • setAssociated

        public void setAssociated(java.lang.Short associated)
        Sets whether the managed file is associated with a business object.
        Parameters:
        associated - 0 means the file is not associated, 1 means the file is associated.
      • setFile

        public void setFile(byte[] file)
        Sets the file contents of the managed file.
        Parameters:
        file - The file contents.
      • getContentWorkspace

        public java.lang.String getContentWorkspace()
        Returns the workspace name of the modification.
        Returns:
        The workspace name of the modification.
      • setContentWorkspace

        public void setContentWorkspace(java.lang.String workspace)
        Sets the workspace name of the modification.
        Parameters:
        workspace - The workspace name.
      • setFileDirId

        public void setFileDirId(java.lang.Long aFileDirId)
        Sets the File Directory ID.
        Parameters:
        aFileDirId - The file directory ID
      • toString

        public java.lang.String toString()
        Returns the string representation of the object.
        Overrides:
        toString in class java.lang.Object
        Returns:
        The string representation of the object.