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 AbstractAuthorizable
authorizable
static String
NODE_PROFILE
protected LinkedHashMap<String,String>
profileProps
Collect 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.JsonNode
getProfileNode()
Get profile properties fromAuthorizable
HashMap<String,String>
getProperties()
Get profile propertiesvoid
setProperties(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.ClientException
Default constructor for an existing authorizable- Type Parameters:
T
- authorizable type- Parameters:
authorizable
- anyAuthorizable
extending 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.ClientException
Get 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:Profile
Get profile properties- Specified by:
getProperties
in interfaceProfile
- Returns:
- map with profile properties
-
-