Package com.day.cq.wcm.webservicesupport
Interface Service
- 
public interface ServiceRepresents a web service entry in context of web service configurations. AServiceacts mainly as container forConfigurationentries.- Since:
 - 5.5
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetComponentReference()Returns a path to a related page component ornullif not defined.ResourcegetContentResource()Returns theResourceof the services content ornullif the service has no content.java.lang.StringgetDescription()Return jcr:description property of the service.java.lang.StringgetIconPath()Returns the path to an icon for this service ornullif this service does not provide an icon.java.lang.LonggetInclusionRank()Returns an Long value of the includsionRank property.java.lang.StringgetName()Returns the name of the service.java.lang.StringgetPath()Returns the path of the service.ValueMapgetProperties()Returns a value map of the service content.ResourcegetResource()Returns the serviceResource.java.lang.String[]getSelectableChildren()Returns an array of paths to selectable child templates.java.lang.StringgetServiceUrl()Returns the URL to the service ornullif not defined.java.lang.StringgetServiceUrlLabel()Returns the URL label for the service URL link ornullif not defined.TemplategetTemplate()Returns the pagesTemplateornullif 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.java.lang.StringgetThumbnailPath()Returns the path to a thumbnail for this service ornullif this service does not provide a thumbnail.java.lang.StringgetTitle()Return the jcr:title property of the service.java.lang.BooleanisSelectableChild(java.lang.String templatePath)Checks if provided template path is selectable.java.lang.BooleanisVisible()Indicates if the service has the property 'visible' set to true. 
 - 
 
- 
- 
Field Detail
- 
BASE_PATH
static final java.lang.String BASE_PATH
Base path for serviceResources.- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getTitle
java.lang.String getTitle()
Return the jcr:title property of the service.- Returns:
 - String representation of title
 
 
- 
getInclusionRank
java.lang.Long getInclusionRank()
Returns an Long value of the includsionRank property.- Returns:
 - Long value of rank
 
 
- 
getDescription
java.lang.String getDescription()
Return jcr:description property of the service.- Returns:
 - String representation description
 
 
- 
getName
java.lang.String getName()
Returns the name of the service. This is the first segment of the configuration path after the base path.- Returns:
 - String representation of name
 
 
- 
getPath
java.lang.String getPath()
Returns the path of the service.- Returns:
 - String of service path or 
null 
 
- 
getComponentReference
java.lang.String getComponentReference()
Returns a path to a related page component ornullif not defined.- Returns:
 - String of a path or 
null 
 
- 
getServiceUrl
java.lang.String getServiceUrl()
Returns the URL to the service ornullif not defined.- Returns:
 - String of an URL or 
null 
 
- 
getServiceUrlLabel
java.lang.String getServiceUrlLabel()
Returns the URL label for the service URL link ornullif not defined.- Returns:
 - String of a URL label or 
null 
 
- 
getIconPath
java.lang.String getIconPath()
Returns the path to an icon for this service ornullif this service does not provide an icon.- Returns:
 - String of a path to an icon or 
null 
 
- 
getThumbnailPath
java.lang.String getThumbnailPath()
Returns the path to a thumbnail for this service ornullif this service does not provide a thumbnail.- Returns:
 - String of a path to an icon or 
null 
 
- 
getTemplate
Template getTemplate()
Returns the pagesTemplateornullif 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 
Templateornull 
 
- 
getContentResource
Resource getContentResource()
Returns theResourceof the services content ornullif the service has no content.- Returns:
 - Content 
Resourceornull 
 
- 
getProperties
ValueMap getProperties()
Returns a value map of the service content. If the service has no content an empty map is returned.- Returns:
 - A 
ValueMaporValueMap.EMPTY 
 
- 
getSelectableChildren
java.lang.String[] getSelectableChildren()
Returns an array of paths to selectable child templates.- Returns:
 - A String array of selectable template paths
 
 
- 
isSelectableChild
java.lang.Boolean isSelectableChild(java.lang.String templatePath)
Checks if provided template path is selectable.- Parameters:
 templatePath- templatePath- Returns:
 trueiftemplatePathis selectable,falseotherwise
 
- 
isVisible
java.lang.Boolean isVisible()
Indicates if the service has the property 'visible' set to true. If the property is missing this method will returntrue.- Returns:
 falseif the property is set to false,trueotherwise or if the property is missing
 
 - 
 
 -