public interface UserPropertiesComposite
The UserPropertiesComposite represents a composite (aggregation) of UserProperties. A composite
can be retrieved via UserPropertiesManager.getUserPropertiesComposite(String, String[]) or UserPropertiesManager.getUserPropertiesComposite(String, String[]).
The composite transparently accesses properties within the user properties contained in the composite.
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAuthorizableId()
Returns the ID of the authorizable to which the user properties of this composite belong.
|
java.lang.String |
getProperty(java.lang.String relativePath)
Retrieves the value of a property found on one or more of the user properties contained in this composite.
|
<T> T |
getProperty(java.lang.String relativePath,
T defaultValue,
java.lang.Class<T> type)
Same as
getProperty(String). |
java.util.Collection<java.lang.String> |
getPropertyNames()
Retrieves all first-level property names found on all user properties contained in the composite.
|
java.util.Collection<java.lang.String> |
getPropertyNames(java.lang.String relPath)
Retrieves all property names found at the given
relativePath within all user properties contained
within this composite. |
java.util.Collection<UserProperties> |
getUserProperties()
Returns the user properties that make up this composite.
|
java.util.Collection<java.lang.String> |
getUserPropertiesPaths()
Returns the Collection of paths of the aggregated
UserProperties |
java.util.Collection<java.lang.String> getPropertyNames()
throws RepositoryException
RepositoryException - If an error occurs accessing the user properties.java.util.Collection<java.lang.String> getPropertyNames(java.lang.String relPath)
throws RepositoryException
relativePath within all user properties contained
within this composite.relPath - The relative path of a user properties node/resource for which to retrieve property names.RepositoryException - If an error occurs accessing the user properties.java.lang.String getProperty(java.lang.String relativePath)
throws RepositoryException
UserPropertiesManager.getUserPropertiesComposite(String, String[]), or via their natural ordering within the
user node tree if retrieved via UserPropertiesManager.getUserPropertiesComposite(String,
UserPropertiesFilter).relativePath - The relative path of the property to retrieve.null if no such property was found.RepositoryException - If an error occurs accessing the user properties.<T> T getProperty(java.lang.String relativePath,
T defaultValue,
java.lang.Class<T> type)
throws RepositoryException
getProperty(String). Additionally a default value and type can be specified.T - specifies the expected format of the propertyrelativePath - 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.relativePath with the given type, or the
defaultValue if the property is not found.RepositoryException - If an error occurs accessing the user properties.java.util.Collection<UserProperties> getUserProperties()
java.lang.String getAuthorizableId()
java.util.Collection<java.lang.String> getUserPropertiesPaths()
throws RepositoryException
UserPropertiesRepositoryException - throws on error"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"