Class CmsPostUploadDialogBean
java.lang.Object
org.opencms.ade.postupload.shared.CmsPostUploadDialogBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsPostUploadDialogBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
Runtime data bean for prefetching.
- Since:
- 8.0.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the structure ids of resources for which validation is required.Returns the list of resource paths.boolean
hasImage()
Checks if there was an image among the uploaded resources.boolean
Returns true if the basic properties configured for the sitemap should be shown.boolean
Returns true if the property configurations should be used.void
setAddBasicProperties
(boolean addBasicProperties) Set a flag, indicating if basic properties as configured in the sitemap are merged into the properties shown on file upload.void
setResources
(Map<CmsUUID, String> resources) Sets the map of resources for which the properties should be uploaded.void
setUsePropertyConfiguration
(boolean useConfiguration) Enables/disables use of the property configuration.
-
Field Details
-
DICT_NAME
Name of the used js variable.- See Also:
-
-
Constructor Details
-
CmsPostUploadDialogBean
public CmsPostUploadDialogBean()Default constructor for serialization. -
CmsPostUploadDialogBean
public CmsPostUploadDialogBean(Map<CmsUUID, String> resources, Set<CmsUUID> idsWithRequiredValidation, boolean hasImage) Creates a new instance.- Parameters:
resources
- the map of resources for which the properties should be uploadedidsWithRequiredValidation
- structurei ids of resources for which validation is requiredhasImage
- true if there is an image among the resources
-
-
Method Details
-
getIdsWithRequiredValidation
Gets the structure ids of resources for which validation is required.- Returns:
- the structure ids of resources for which validation is required
-
getResources
Returns the list of resource paths.- Returns:
- the list of resource paths
-
hasImage
Checks if there was an image among the uploaded resources.- Returns:
- true if an image was uploaded
-
isAddBasicProperties
Returns true if the basic properties configured for the sitemap should be shown.- Returns:
- true if the basic properties configured for the sitemap should be shown.
-
isUsePropertyConfiguration
Returns true if the property configurations should be used.- Returns:
- true if the property configurations should be used
-
setAddBasicProperties
Set a flag, indicating if basic properties as configured in the sitemap are merged into the properties shown on file upload.- Parameters:
addBasicProperties
- flag, indicating if basic properties as configured in the sitemap should be added
-
setResources
Sets the map of resources for which the properties should be uploaded.- Parameters:
resources
- the map of resources for which the properties should be uploaded
-
setUsePropertyConfiguration
Enables/disables use of the property configuration.- Parameters:
useConfiguration
- true if the property configuration should be used
-