Class AuditLogSearchRequest
- java.lang.Object
-
- com.adobe.acs.commons.audit_log_search.AuditLogSearchRequest
-
public class AuditLogSearchRequest extends Object
Simple POJO for audit log requests. Handles some of the crufty code around loading and generating the query.
-
-
Constructor Summary
Constructors Constructor Description AuditLogSearchRequest(org.apache.sling.api.SlingHttpServletRequest request)Constructs a new AuditLogSearchRequest from the SlingHttpServletRequest
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentRoot()DategetEndDate()StringgetOrder()StringgetQueryParameters()DategetStartDate()StringgetType()StringgetUser()StringgetUserName(org.apache.sling.api.resource.ResourceResolver resolver, String userId)StringgetUserPath(org.apache.sling.api.resource.ResourceResolver resolver, String userId)booleanisIncludehildren()StringtoString()
-
-
-
Constructor Detail
-
AuditLogSearchRequest
public AuditLogSearchRequest(org.apache.sling.api.SlingHttpServletRequest request) throws ParseExceptionConstructs a new AuditLogSearchRequest from the SlingHttpServletRequest- Parameters:
request- yep, that's a request... guess what it does- Throws:
ParseException- an exception occurred parsing the start / end date
-
-
Method Detail
-
getContentRoot
public String getContentRoot()
-
getEndDate
public Date getEndDate()
-
getOrder
public String getOrder()
-
getQueryParameters
public String getQueryParameters()
-
getStartDate
public Date getStartDate()
-
getType
public String getType()
-
getUser
public String getUser()
-
getUserName
public String getUserName(org.apache.sling.api.resource.ResourceResolver resolver, String userId) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getUserPath
public String getUserPath(org.apache.sling.api.resource.ResourceResolver resolver, String userId) throws javax.jcr.UnsupportedRepositoryOperationException, javax.jcr.RepositoryException
- Throws:
javax.jcr.UnsupportedRepositoryOperationExceptionjavax.jcr.RepositoryException
-
isIncludehildren
public boolean isIncludehildren()
-
-