Class AbstractProfile
- java.lang.Object
-
- com.adobe.cq.testing.client.security.AbstractProfile
-
- All Implemented Interfaces:
Profile
- Direct Known Subclasses:
GroupProfile,UserProfile
public class AbstractProfile extends Object implements Profile
Define and load authorizable's profile properties
-
-
Field Summary
Fields Modifier and Type Field Description protected AbstractAuthorizableauthorizablestatic StringNODE_PROFILEprotected LinkedHashMap<String,String>profilePropsCollect the properties for the profile
-
Constructor Summary
Constructors Constructor Description AbstractProfile(T authorizable)Default constructor for an existing authorizable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.fasterxml.jackson.databind.JsonNodegetProfileNode()Get profile properties fromAuthorizableHashMap<String,String>getProperties()Get profile propertiesvoidsetProperties(HashMap<String,String> propertiesMap)Set profile properties
-
-
-
Field Detail
-
NODE_PROFILE
public static final String NODE_PROFILE
- See Also:
- Constant Field Values
-
authorizable
protected AbstractAuthorizable authorizable
-
profileProps
protected LinkedHashMap<String,String> profileProps
Collect the properties for the profile
-
-
Constructor Detail
-
AbstractProfile
public AbstractProfile(T authorizable) throws org.apache.sling.testing.clients.ClientExceptionDefault constructor for an existing authorizable- Type Parameters:
T- authorizable type- Parameters:
authorizable- anyAuthorizableextending theAbstractAuthorizable- Throws:
org.apache.sling.testing.clients.ClientException- if the request to load the authorizable failed
-
-
Method Detail
-
getProfileNode
public com.fasterxml.jackson.databind.JsonNode getProfileNode() throws org.apache.sling.testing.clients.ClientExceptionGet profile properties fromAuthorizable- Returns:
- profile properties as
JsonNode - Throws:
org.apache.sling.testing.clients.ClientException- if the request failed
-
getProperties
public HashMap<String,String> getProperties()
Description copied from interface:ProfileGet profile properties- Specified by:
getPropertiesin interfaceProfile- Returns:
- map with profile properties
-
-