Package com.day.cq.security.util
Class AuthorizableJSONWriter
- java.lang.Object
-
- com.day.cq.security.util.AuthorizableJSONWriter
-
public class AuthorizableJSONWriter extends java.lang.ObjectDeprecated.cq 5.5 Use platform functionality instead.Little writer knowing some of the Authorizables special cases that do not compile a Bean-convention
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGROUPDeprecated.static java.lang.StringKEY_HOME_PATHDeprecated.static java.lang.StringUSERDeprecated.
-
Constructor Summary
Constructors Constructor Description AuthorizableJSONWriter()Deprecated.Creates a default authorizable writer.AuthorizableJSONWriter(ProfileManager pMgr, Session session, java.lang.String[] outputProps, XSSProtectionService xss)Deprecated.todoAuthorizableJSONWriter(ResourceResolver resourceResolver, UserPropertiesManager pMgr, java.lang.String[] outputProps, XSSProtectionService xss)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidsetBasic(boolean basic)Deprecated.Define if only basic information should be writtenvoidsetMembersLimit(int membersLimit)Deprecated.Sets the members limit.voidsetOutputProps(java.lang.String[] outputProps)Deprecated.Set the properties that will be present in the output.voidsetXss(XSSProtectionService xss)Deprecated.Set XSS protection service to use to prevent from XSS attacksvoidwrite(java.io.Writer out, Authorizable authorizable)Deprecated.voidwrite(java.io.Writer out, Authorizable authorizable)Deprecated.voidwrite(JSONWriter writer, Authorizable authorizable)Deprecated.voidwrite(JSONWriter writer, Authorizable authorizable)Deprecated.voidwriteTable(java.io.Writer out, Authorizable authorizable)Deprecated.voidwriteTable(java.io.Writer out, Authorizable authorizable)Deprecated.
-
-
-
Field Detail
-
GROUP
public static final java.lang.String GROUP
Deprecated.- See Also:
- Constant Field Values
-
USER
public static final java.lang.String USER
Deprecated.- See Also:
- Constant Field Values
-
KEY_HOME_PATH
public static final java.lang.String KEY_HOME_PATH
Deprecated.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AuthorizableJSONWriter
public AuthorizableJSONWriter()
Deprecated.Creates a default authorizable writer.
-
AuthorizableJSONWriter
public AuthorizableJSONWriter(ProfileManager pMgr, Session session, java.lang.String[] outputProps, XSSProtectionService xss)
Deprecated.todo- Parameters:
pMgr- the profile managersession- the sessionoutputProps- the output propertiesxss- the XSS protection service- Since:
- 5.4
-
AuthorizableJSONWriter
public AuthorizableJSONWriter(ResourceResolver resourceResolver, UserPropertiesManager pMgr, java.lang.String[] outputProps, XSSProtectionService xss)
Deprecated.
-
-
Method Detail
-
setMembersLimit
public void setMembersLimit(int membersLimit)
Deprecated.Sets the members limit.- Parameters:
membersLimit- the limit
-
setOutputProps
public void setOutputProps(java.lang.String[] outputProps)
Deprecated.Set the properties that will be present in the output.- Parameters:
outputProps- the output properties- Since:
- 5.4
-
setBasic
public void setBasic(boolean basic)
Deprecated.Define if only basic information should be written- Parameters:
basic-trueto only dump basic information
-
setXss
public void setXss(XSSProtectionService xss)
Deprecated.Set XSS protection service to use to prevent from XSS attacks- Parameters:
xss-- Since:
- 5.4
-
write
public void write(JSONWriter writer, Authorizable authorizable) throws JSONException
Deprecated.- Throws:
JSONException
-
write
public void write(JSONWriter writer, Authorizable authorizable) throws JSONException, RepositoryException
Deprecated.- Throws:
JSONExceptionRepositoryException
-
write
public void write(java.io.Writer out, Authorizable authorizable) throws JSONExceptionDeprecated.- Throws:
JSONException
-
write
public void write(java.io.Writer out, Authorizable authorizable) throws JSONException, RepositoryExceptionDeprecated.- Throws:
JSONExceptionRepositoryException
-
writeTable
public void writeTable(java.io.Writer out, Authorizable authorizable) throws JSONException, RepositoryExceptionDeprecated.- Throws:
JSONExceptionRepositoryException
-
writeTable
public void writeTable(java.io.Writer out, Authorizable authorizable) throws JSONException, RepositoryExceptionDeprecated.- Throws:
JSONExceptionRepositoryException
-
-