Class FolderUploadInfos
- java.lang.Object
-
- com.saperion.ngc.model.navigation.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 Summary
Constructors Constructor Description FolderUploadInfos(FolderClass folderClass, boolean uploadAllowed)
Creates a new FolderUploadInfos instance.FolderUploadInfos(java.lang.String indexMaskName, boolean uploadAllowed, java.lang.String ddcName)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getDdcName()
org.zkoss.util.media.Media
getDocument()
FolderClass
getFolderClass()
FolderId
getFolderId()
java.lang.String
getIndexMask()
boolean
isAllowed()
void
setDdcName(java.lang.String ddcName)
Sets the DDC name.void
setDocument(org.zkoss.util.media.Media document)
void
setFolderId(FolderId id)
Sets the folder id.void
setIndexMask(java.lang.String value)
Set the name of index mask or empty string if not available.
-
-
-
Constructor Detail
-
FolderUploadInfos
public FolderUploadInfos(java.lang.String indexMaskName, boolean uploadAllowed, java.lang.String ddcName)
Constructor.- Parameters:
indexMaskName
- name of index mask to displayuploadAllowed
- upload allowedddcName
- 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 folderuploadAllowed
- 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
-
-