Class AbstractProfile
java.lang.Object
com.adobe.cq.testing.client.security.AbstractProfile
- All Implemented Interfaces:
Profile
- Direct Known Subclasses:
GroupProfile,UserProfile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractAuthorizablestatic final Stringprotected LinkedHashMap<String, String> Collect the properties for the profile -
Constructor Summary
ConstructorsModifierConstructorDescription<T extends AbstractAuthorizable>AbstractProfile(T authorizable) Default constructor for an existing authorizable -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNodeGet profile properties fromAuthorizableGet profile propertiesvoidsetProperties(HashMap<String, String> propertiesMap) Set profile properties
-
Field Details
-
NODE_PROFILE
- See Also:
-
authorizable
-
profileProps
Collect the properties for the profile
-
-
Constructor Details
-
AbstractProfile
public <T extends AbstractAuthorizable> AbstractProfile(T authorizable) throws org.apache.sling.testing.clients.ClientException Default 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 Details
-
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
-
setProperties
-