Class AbstractProfile
java.lang.Object
com.adobe.cq.testing.client.security.AbstractProfile
- All Implemented Interfaces:
Profile
- Direct Known Subclasses:
GroupProfile,UserProfile
Define and load authorizable's profile properties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractAuthorizablestatic final Stringprotected LinkedHashMap<String,String> Collect the properties for the profile -
Constructor Summary
ConstructorsConstructorDescriptionAbstractProfile(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 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
Description copied from interface:ProfileGet profile properties- Specified by:
getPropertiesin interfaceProfile- Returns:
- map with profile properties
-
setProperties
Description copied from interface:ProfileSet profile properties- Specified by:
setPropertiesin interfaceProfile- Parameters:
propertiesMap- map with profile properties
-