@ProviderType public interface Tenant
Tenant
interface represents a tenant which may be used to
further customize request and other processing.
This interface is intended to be implemented by the implementor of the
TenantProvider
interface to be returned by the tenant accessor
methods.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROP_DESCRIPTION
The name of the
property whose string
representation is used as this tenant's description (value is "sling.tenant.description"). |
static java.lang.String |
PROP_NAME
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDescription()
Returns a human readable description of this tenant.
|
java.lang.String |
getId()
Returns the unique identifier of this tenant.
|
java.lang.String |
getName()
Returns the name of the tenant.
|
java.lang.Object |
getProperty(java.lang.String name)
Returns the named property or
null if no such property
exists or if the property value itself is null . |
<Type> Type |
getProperty(java.lang.String name,
Type type)
Returns the named property converted to the requested type or
null if the property does not exist, the property value
itself is null or cannot be converted to the requested type. |
java.util.Iterator<java.lang.String> |
getPropertyNames()
Returns an iterator or String values representing the names of defined
properties of this tenant.
|
static final java.lang.String PROP_NAME
property
whose string
representation is used as this tenant's name
(value is
"sling.tenant.name").getName()
,
getProperty(String)
,
Constant Field Valuesstatic final java.lang.String PROP_DESCRIPTION
property
whose string
representation is used as this tenant's description
(value is "sling.tenant.description").getDescription()
,
getProperty(String)
,
Constant Field Valuesjava.lang.String getId()
The tenant identifier has not predefined mapping to a property and may be generated automatically by the TenantProvider.
java.lang.String getName()
The name of the tenant is the string representation of the
PROP_NAME
property or null
if the property is not
defined.
java.lang.String getDescription()
The description of the tenant is the string representation of the
PROP_DESCRIPTION
property or null
if the property is not
defined.
java.lang.Object getProperty(java.lang.String name)
null
if no such property
exists or if the property value itself is null
.<Type> Type getProperty(java.lang.String name, Type type)
null
if the property does not exist, the property value
itself is null
or cannot be converted to the requested type.java.util.Iterator<java.lang.String> getPropertyNames()
Copyright © 2010 - 2020 Adobe. All Rights Reserved