Package com.adobe.granite.security.user
Class UserPropertiesService
java.lang.Object
com.adobe.granite.security.user.UserPropertiesService
UserPropertiesService...-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final String[]Constant array of the available default user profiles in descending ranking order.static final Stringstatic final StringConstant for the private profile root of a given user.static final StringDeprecated.static final StringConstant for the profile resource type.static final StringConstant for the profiles root of a given user.static final StringConstant for the default public profile root of a given user. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract UserPropertiesManagercreateUserPropertiesManager(Session session, ResourceResolver resolver) Create a new instance ofUserPropertiesManagerfor the specifiedsessionandresolver.abstract UserPropertiesManagercreateUserPropertiesManager(ResourceResolver resolver) Create a new instance ofUserPropertiesManagerfor the specifiedresolver.abstract StringgetAuthorizableId(String userPropertiesPath) Retrieves the authorizableID corresponding to the given absolute path pointing to an user properties node.abstract StringgetAuthorizablePath(String authorizableId) Retrieves the path to the authorizable node that is identified by the specifiedauthorizableId.abstract StringgetNodeType(String userPropertiesName) Retrieve the node type for the user properties with the given name.abstract StringgetResourceType(String userPropertiesName) Retrieve the resource type for the user properties with the specified name.
-
Field Details
-
PREFERENCES_PATH
- See Also:
-
PROFILES_ROOT
Constant for the profiles root of a given user.- See Also:
-
PRIVATE_PROFILE
Constant for the private profile root of a given user.- See Also:
-
PUBLIC_PROFILE
Constant for the default public profile root of a given user.- See Also:
-
DEFAULT_PROFILES
Constant array of the available default user profiles in descending ranking order. -
PROFILE_RESOURCE_TYPE
Constant for the profile resource type.- See Also:
-
PROFILE_PATH
Deprecated.usePRIVATE_PROFILEinstead.Constant for the (previous) private profile of a given user.- See Also:
-
DEFAULT_NODETYPE
- See Also:
-
-
Constructor Details
-
UserPropertiesService
public UserPropertiesService()
-
-
Method Details
-
createUserPropertiesManager
public abstract UserPropertiesManager createUserPropertiesManager(ResourceResolver resolver) throws RepositoryException Create a new instance ofUserPropertiesManagerfor the specifiedresolver.- Parameters:
resolver- The associated resource resolver.- Returns:
- a new instance of
UserPropertiesManager. - Throws:
RepositoryException- If an error occurs.
-
createUserPropertiesManager
public abstract UserPropertiesManager createUserPropertiesManager(Session session, ResourceResolver resolver) throws RepositoryException Create a new instance ofUserPropertiesManagerfor the specifiedsessionandresolver.- Parameters:
session- The editing session.resolver- The associated resource resolver.- Returns:
- a new instance of
UserPropertiesManager. - Throws:
RepositoryException- If an error occurs.
-
getResourceType
Retrieve the resource type for the user properties with the specified name. The resource types are part of the service configuration.- Parameters:
userPropertiesName- Relative path to the user properties for which the resource type should be returned.- Returns:
- resource type for the user properties with the specified name or
null.
-
getNodeType
Retrieve the node type for the user properties with the given name. Note, that the node types are part of the service configuration.- Parameters:
userPropertiesName- Relative path to the user properties for which the node type type should be returned.- Returns:
- node type for the user properties with the specified name or
DEFAULT_NODETYPE.
-
getAuthorizablePath
Retrieves the path to the authorizable node that is identified by the specifiedauthorizableId.- Parameters:
authorizableId- The ID of the authorizable.- Returns:
- ?The path of the authorizable or
null. - Throws:
RepositoryException- If an error occurs.
-
getAuthorizableId
Retrieves the authorizableID corresponding to the given absolute path pointing to an user properties node.- Parameters:
userPropertiesPath- Absolute path to user properties node.- Returns:
- The ID of the corresponding authorizable or
null. - Throws:
RepositoryException- If an error occurs.
-
PRIVATE_PROFILEinstead.