Package com.day.cq.wcm.webservicesupport
Interface Configuration
public interface Configuration
Represents a web service configuration.
- Since:
- 5.5
-
Method Summary
Modifier and TypeMethodDescription<T> T
Returns a property with providedname
of type T or the default value if property was not found.Returns theResource
s content ornull
.Return jcr:description property of the service.Returns the path to an icon for this service ornull
if this service does not provide an icon.<T> T
getInherited
(String name, T defaultValue) Returns a property with providedname
of type T or the default value if property was not found.Return theDate
of last modification of the configuration.getName()
Returns the name of the configuration.Returns the relative parent configurationResource
.getPath()
Returns the path of the configuration.Returns all properties of this node accessible through the currentSession
.Returns the configurationResource
.Returns the pagesTemplate
ornull
if no template has been found or the current user does not have read access to the template resource specified by the path in the page's template property.Returns the path to a thumbnail for this service ornull
if this service does not provide a thumbnail.getTitle()
Return the jcr:title property of the service.
-
Method Details
-
getTitle
String getTitle()Return the jcr:title property of the service.- Returns:
- String representation of title
-
getDescription
String getDescription()Return jcr:description property of the service.- Returns:
- String representation of description
-
getName
String getName()Returns the name of the configuration. This is the last segment of the configuration path.- Returns:
- String representation of name
-
getPath
String getPath()Returns the path of the configuration.- Returns:
- String representation of path
-
getLastModified
Long getLastModified()Return theDate
of last modification of the configuration.- Returns:
- UTC milliseconds of the last modification date
-
getIconPath
String getIconPath()Returns the path to an icon for this service ornull
if this service does not provide an icon.- Returns:
- Path to an icon or
null
-
getThumbnailPath
String getThumbnailPath()Returns the path to a thumbnail for this service ornull
if this service does not provide a thumbnail.- Returns:
- Path to an icon or
null
-
getTemplate
Template getTemplate()Returns the pagesTemplate
ornull
if no template has been found or the current user does not have read access to the template resource specified by the path in the page's template property. This is the case on publish instances using default ACL configuration (anonymous cannot read templates).- Returns:
- Page
Template
ornull
-
getParent
Resource getParent()Returns the relative parent configurationResource
.- Returns:
Resource
ornull
-
getResource
Resource getResource()Returns the configurationResource
.- Returns:
Resource
ornull
-
getContentResource
Resource getContentResource()Returns theResource
s content ornull
.- Returns:
Resource
ornull
-
getProperties
InheritanceValueMap getProperties()Returns all properties of this node accessible through the currentSession
.- Returns:
InheritanceValueMap
with all inherited properties
-
get
Returns a property with providedname
of type T or the default value if property was not found.- Type Parameters:
T
- Type of the property- Parameters:
name
- Property namedefaultValue
- Default value- Returns:
- Property value
-
getInherited
Returns a property with providedname
of type T or the default value if property was not found. Takes properties of parent resources / pages into account, if the property is not found locally.- Type Parameters:
T
- Type of the property- Parameters:
name
- Property namedefaultValue
- Default value- Returns:
- Property value
-
listChildren
Iterator<Configuration> listChildren()- Returns:
Configuration
childIterator
-