Package org.opencms.gwt.shared.property
Class CmsPropertiesBean
java.lang.Object
org.opencms.gwt.shared.property.CmsPropertiesBean
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsPropertiesBean
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
A bean containing the information needed to edit the properties of a resource.
- Since:
- 8.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns a list of all property names.Returns a map of the inherited properties.Gets a map of the resource's own properties.Gets the list info bean for the resource.Gets a map of the configured properties.Gets the site path of the resource.Gets the structure id of the resource.Gets a map of the available templates.boolean
Returns the if the resource is a container page.boolean
isFolder()
Returns the if the resource is a folder.boolean
If true, the properties can't be modified.void
setAllProperties
(List<String> allProperties) Sets the list of property names.void
setContainerPage
(boolean isContainerPage) Sets if the resource is a container page.void
setFolder
(boolean isFolder) Sets if the resource is a folder.void
setInheritedProperties
(Map<String, CmsClientProperty> inheritedProperties) Sets the inherited properties.void
setOwnProperties
(Map<String, CmsClientProperty> ownProperties) Sets the resource's own properties.void
setPageInfo
(CmsListInfoBean pageInfo) Sets the page info.void
setPropertyDefinitions
(Map<String, CmsXmlContentProperty> propertyDefinitions) Sets the property configuration.void
setReadOnly
(boolean isReadOnly) Sets "readonly mode".void
setSitePath
(String sitePath) Sets the site path.void
setStructureId
(CmsUUID structureId) Sets the structure id.void
setTemplates
(Map<String, CmsClientTemplateBean> templates) Sets the available templates.
-
Constructor Details
-
CmsPropertiesBean
public CmsPropertiesBean()Creates a new instance.
-
-
Method Details
-
getAllProperties
Returns a list of all property names.- Returns:
- a list of all property names
-
getInheritedProperties
Returns a map of the inherited properties.- Returns:
- a map of inherited properties
-
getOwnProperties
Gets a map of the resource's own properties.- Returns:
- the resource's own properties
-
getPageInfo
Gets the list info bean for the resource.- Returns:
- a list info bean
-
getPropertyDefinitions
Gets a map of the configured properties.- Returns:
- the configured properties as a map
-
getSitePath
Gets the site path of the resource.- Returns:
- the site path of the resource
-
getStructureId
Gets the structure id of the resource.- Returns:
- the structure id of the resource
-
getTemplates
Gets a map of the available templates.- Returns:
- the available templates
-
isContainerPage
Returns the if the resource is a container page.- Returns:
- the if the resource is a container page
-
isFolder
Returns the if the resource is a folder.- Returns:
- the if the resource is a folder
-
isReadOnly
If true, the properties can't be modified.- Returns:
- true if the properties can't be modified
-
setAllProperties
Sets the list of property names.- Parameters:
allProperties
- the list of property names
-
setContainerPage
Sets if the resource is a container page.- Parameters:
isContainerPage
-true
if the resource is a container page
-
setFolder
Sets if the resource is a folder.- Parameters:
isFolder
-true
if the resource is a folder
-
setInheritedProperties
Sets the inherited properties.- Parameters:
inheritedProperties
- the inherited properties
-
setOwnProperties
Sets the resource's own properties.- Parameters:
ownProperties
- the resource's own properties
-
setPropertyDefinitions
Sets the property configuration.- Parameters:
propertyDefinitions
- the property configuration
-
setReadOnly
Sets "readonly mode".- Parameters:
isReadOnly
- true if "readonly mode" should be enabled
-
setSitePath
Sets the site path.- Parameters:
sitePath
-
-
setStructureId
Sets the structure id.- Parameters:
structureId
- the structure id
-
setTemplates
Sets the available templates.- Parameters:
templates
- the available templates
-