Class FolderUploadInfos

  • All Implemented Interfaces:
    java.io.Serializable

    public class FolderUploadInfos
    extends java.lang.Object
    implements java.io.Serializable
    Bean that holds information about the upload capabilities of a node.
    See Also:
    Serialized Form
    • Constructor Detail

      • FolderUploadInfos

        public FolderUploadInfos​(java.lang.String indexMaskName,
                                 boolean uploadAllowed,
                                 java.lang.String ddcName)
        Constructor.
        Parameters:
        indexMaskName - name of index mask to display
        uploadAllowed - upload allowed
        ddcName - name of the ddc to store the new document in
      • FolderUploadInfos

        public FolderUploadInfos​(FolderClass folderClass,
                                 boolean uploadAllowed)
        Creates a new FolderUploadInfos instance.
        Parameters:
        folderClass - folder class of the target folder
        uploadAllowed - upload allowed
    • Method Detail

      • getIndexMask

        public java.lang.String getIndexMask()
        Returns:
        name of index mask or empty string if not available
      • setIndexMask

        public void setIndexMask​(java.lang.String value)
        Set the name of index mask or empty string if not available.
        Parameters:
        value - Index mask name
      • isAllowed

        public boolean isAllowed()
        Returns:
        true if uploading is allowed for this folder
      • setDdcName

        public void setDdcName​(java.lang.String ddcName)
        Sets the DDC name.
        Parameters:
        ddcName - ddc name
      • getDdcName

        public java.lang.String getDdcName()
        Returns:
        name of the ddc to store the new document in
      • setDocument

        public void setDocument​(org.zkoss.util.media.Media document)
        Parameters:
        document - the new document
      • getDocument

        public org.zkoss.util.media.Media getDocument()
        Returns:
        the document
      • setFolderId

        public void setFolderId​(FolderId id)
        Sets the folder id.
        Parameters:
        id - folder id
      • getFolderId

        public FolderId getFolderId()
        Returns:
        folder id
      • getFolderClass

        public FolderClass getFolderClass()
        Returns:
        the folder class of the target folder