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 Details

  • 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 - any Authorizable extending the AbstractAuthorizable
      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.ClientException
      Get profile properties from Authorizable
      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 interface Profile
      Returns:
      map with profile properties
    • setProperties

      public void setProperties(HashMap<String,String> propertiesMap)
      Description copied from interface: Profile
      Set profile properties
      Specified by:
      setProperties in interface Profile
      Parameters:
      propertiesMap - map with profile properties