Class FolderUploadInfos

java.lang.Object
com.saperion.ngc.model.navigation.FolderUploadInfos
All Implemented Interfaces:
Serializable

public class FolderUploadInfos extends Object implements Serializable
Bean that holds information about the upload capabilities of a node.
See Also:
  • Constructor Details

    • FolderUploadInfos

      public FolderUploadInfos(String indexMaskName, boolean uploadAllowed, 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 Details

    • getIndexMask

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

      public void setIndexMask(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(String ddcName)
      Sets the DDC name.
      Parameters:
      ddcName - ddc name
    • getDdcName

      public 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