@Deprecated public class ConfigurationImpl extends java.lang.Object implements Configuration
Constructor and Description |
---|
ConfigurationImpl(SocialResourceConfiguration socialResourceConfig)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(java.lang.String name,
T defaultValue)
Deprecated.
Returns a property with provided
name of type T or the default value if property was not found. |
Resource |
getContentResource()
Deprecated.
Returns the
Resource s content or null . |
java.lang.String |
getDescription()
Deprecated.
Return jcr:description property of the service.
|
java.lang.String |
getIconPath()
Deprecated.
Returns the path to an icon for this service or
null if
this service does not provide an icon. |
<T> T |
getInherited(java.lang.String name,
T defaultValue)
Deprecated.
Returns a property with provided
name of type T or the default value if property was not found. |
java.lang.Long |
getLastModified()
Deprecated.
Return the
Date of last modification of the configuration. |
java.lang.String |
getName()
Deprecated.
Returns the name of the configuration.
|
Resource |
getParent()
Deprecated.
Returns the relative parent configuration
Resource . |
java.lang.String |
getPath()
Deprecated.
Returns the path of the configuration.
|
InheritanceValueMap |
getProperties()
Deprecated.
Returns all properties of this node accessible through the current
Session . |
Resource |
getResource()
Deprecated.
Returns the configuration
Resource . |
Template |
getTemplate()
Deprecated.
Returns the pages
Template or null 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. |
java.lang.String |
getThumbnailPath()
Deprecated.
Returns the path to a thumbnail for this service or
null if
this service does not provide a thumbnail. |
java.lang.String |
getTitle()
Deprecated.
Return the jcr:title property of the service.
|
java.util.Iterator<Configuration> |
listChildren()
Deprecated.
|
public ConfigurationImpl(SocialResourceConfiguration socialResourceConfig)
socialResourceConfig
- the SocialResourceConfiguration.public java.lang.String getTitle()
getTitle
in interface Configuration
public java.lang.String getDescription()
getDescription
in interface Configuration
public java.lang.String getName()
getName
in interface Configuration
public java.lang.String getPath()
getPath
in interface Configuration
public java.lang.Long getLastModified()
Date
of last modification of the configuration.getLastModified
in interface Configuration
public java.lang.String getIconPath()
null
if
this service does not provide an icon.getIconPath
in interface Configuration
null
public java.lang.String getThumbnailPath()
null
if
this service does not provide a thumbnail.getThumbnailPath
in interface Configuration
null
public Template getTemplate()
Template
or null
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).getTemplate
in interface Configuration
Template
or null
public Resource getParent()
Resource
.getParent
in interface Configuration
Resource
or null
public Resource getResource()
Resource
.getResource
in interface Configuration
Resource
or null
public Resource getContentResource()
Resource
s content or null
.getContentResource
in interface Configuration
Resource
or null
public InheritanceValueMap getProperties()
Session
.getProperties
in interface Configuration
InheritanceValueMap
with all inherited propertiespublic <T> T get(java.lang.String name, T defaultValue)
name
of type T or the default value if property was not found. Return the requested configuration information Only String type returned.get
in interface Configuration
T
- Type of the propertyname
- Property namedefaultValue
- Default valuepublic <T> T getInherited(java.lang.String name, T defaultValue)
name
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.getInherited
in interface Configuration
T
- Type of the propertyname
- Property namedefaultValue
- Default valuepublic java.util.Iterator<Configuration> listChildren()
listChildren
in interface Configuration
Configuration
child Iterator
Copyright © 2010 - 2020 Adobe. All Rights Reserved