Class FolderUploadInfos
java.lang.Object
com.saperion.ngc.model.navigation.FolderUploadInfos
- All Implemented Interfaces:
Serializable
Bean that holds information about the upload capabilities of a node.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFolderUploadInfos(FolderClass folderClass, boolean uploadAllowed) Creates a new FolderUploadInfos instance.FolderUploadInfos(String indexMaskName, boolean uploadAllowed, String ddcName) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.zkoss.util.media.MediabooleanvoidsetDdcName(String ddcName) Sets the DDC name.voidsetDocument(org.zkoss.util.media.Media document) voidsetFolderId(FolderId id) Sets the folder id.voidsetIndexMask(String value) Set the name of index mask or empty string if not available.
-
Constructor Details
-
FolderUploadInfos
Constructor.- Parameters:
indexMaskName- name of index mask to displayuploadAllowed- upload allowedddcName- name of the ddc to store the new document in
-
-
Method Details
-
getIndexMask
- Returns:
- name of index mask or empty string if not available
-
setIndexMask
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
Sets the DDC name.- Parameters:
ddcName- ddc name
-
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
Sets the folder id.- Parameters:
id- folder id
-
getFolderId
- Returns:
- folder id
-
getFolderClass
- Returns:
- the folder class of the target folder
-