Package com.adobe.granite.security.user
Interface UserPropertiesComposite
-
@ProviderType @Deprecated public interface UserPropertiesComposite
Deprecated.The
UserPropertiesComposite
represents a composite (aggregation) ofUserProperties
. A composite can be retrieved viaUserPropertiesManager.getUserPropertiesComposite(String, String[])
orUserPropertiesManager.getUserPropertiesComposite(String, String[])
.The composite transparently accesses properties within the user properties contained in the composite.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getAuthorizableId()
Deprecated.java.lang.String
getProperty(java.lang.String relativePath)
Deprecated.<T> T
getProperty(java.lang.String relativePath, T defaultValue, java.lang.Class<T> type)
Deprecated.java.util.Collection<java.lang.String>
getPropertyNames()
Deprecated.java.util.Collection<java.lang.String>
getPropertyNames(java.lang.String relPath)
Deprecated.java.util.Collection<UserProperties>
getUserProperties()
Deprecated.java.util.Collection<java.lang.String>
getUserPropertiesPaths()
Deprecated.UseUserProperties.getAggregatedUserProperties()
to obtain the paths.
-
-
-
Method Detail
-
getPropertyNames
java.util.Collection<java.lang.String> getPropertyNames() throws RepositoryException
Deprecated.Retrieves all first-level property names found on all user properties contained in the composite.- Returns:
- An unordered collection of property names, or an empty collection if no property names were found.
- Throws:
RepositoryException
- If an error occurs accessing the user properties.
-
getPropertyNames
java.util.Collection<java.lang.String> getPropertyNames(java.lang.String relPath) throws RepositoryException
Deprecated.Retrieves all property names found at the givenrelativePath
within all user properties contained within this composite.- Parameters:
relPath
- The relative path of a user properties node/resource for which to retrieve property names.- Returns:
- An unordered collection of property names, or an empty collection if no property names were found.
- Throws:
RepositoryException
- If an error occurs accessing the user properties.
-
getProperty
java.lang.String getProperty(java.lang.String relativePath) throws RepositoryException
Deprecated.Retrieves the value of a property found on one or more of the user properties contained in this composite. The property value found on the last user properties takes precedence. The order of the user properties is governed by the order of the relative paths if the composite was retrieved viaUserPropertiesManager.getUserPropertiesComposite(String, String[])
, or via their natural ordering within the user node tree if retrieved viaUserPropertiesManager.getUserPropertiesComposite(String, UserPropertiesFilter)
.- Parameters:
relativePath
- The relative path of the property to retrieve.- Returns:
- The value of the property, or
null
if no such property was found. - Throws:
RepositoryException
- If an error occurs accessing the user properties.
-
getProperty
<T> T getProperty(java.lang.String relativePath, T defaultValue, java.lang.Class<T> type) throws RepositoryException
Deprecated.Same asgetProperty(String)
. Additionally a default value and type can be specified.- Type Parameters:
T
- specifies the expected format of the property- Parameters:
relativePath
- The relative path of the property to retrieve.defaultValue
- The default value to return if the property is not found.type
- The expected type of the property value.- Returns:
- The property value found at
relativePath
with the giventype
, or thedefaultValue
if the property is not found. - Throws:
RepositoryException
- If an error occurs accessing the user properties.
-
getUserProperties
java.util.Collection<UserProperties> getUserProperties()
Deprecated.Returns the user properties that make up this composite.- Returns:
- An unordered collection of user properties.
-
getAuthorizableId
java.lang.String getAuthorizableId()
Deprecated.Returns the ID of the authorizable to which the user properties of this composite belong.- Returns:
- A string representing the authorizable ID.
-
getUserPropertiesPaths
java.util.Collection<java.lang.String> getUserPropertiesPaths() throws RepositoryException
Deprecated.UseUserProperties.getAggregatedUserProperties()
to obtain the paths.Returns the Collection of paths of the aggregatedUserProperties
- Returns:
- A collection of paths
- Throws:
RepositoryException
- throws on error
-
-