| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.crowd.plugin.rest.util.EntityExpansionUtil
public class EntityExpansionUtil
Utility class for entity expansion.
| Field Summary | |
|---|---|
static java.lang.String | 
EXPAND_PARAM
Name of the expand query parameter.  | 
| Method Summary | |
|---|---|
static com.atlassian.plugins.rest.common.expand.parameter.ExpandParameter | 
getExpandParameter(javax.servlet.http.HttpServletRequest request)
Returns a ExpandParameter representing the expand query parameter from an HttpServletRequest.  | 
static boolean | 
shouldExpandField(java.lang.Class clazz,
                  java.lang.String fieldName,
                  com.atlassian.plugins.rest.common.expand.parameter.ExpandParameter expandParameter)
Returns whether a field of the specified entity class should be expanded.  | 
static boolean | 
shouldExpandField(java.lang.Class clazz,
                  java.lang.String fieldName,
                  javax.servlet.http.HttpServletRequest request)
Returns whether a field of the specified entity class should be expanded.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String EXPAND_PARAM
| Method Detail | 
|---|
public static boolean shouldExpandField(java.lang.Class clazz,
                                        java.lang.String fieldName,
                                        javax.servlet.http.HttpServletRequest request)
clazz - the class of the field to check for expansion.fieldName - name of the field to check for expansion.request - HttpServletRequest to extract the expand query param from.
public static boolean shouldExpandField(java.lang.Class clazz,
                                        java.lang.String fieldName,
                                        com.atlassian.plugins.rest.common.expand.parameter.ExpandParameter expandParameter)
clazz - the class of the field to check for expansion.fieldName - name of the field to check for expansion.expandParameter - ExpandParameter to check for expansion.
java.lang.IllegalArgumentException - if the field name could not be found in the class.#shouldExpandField(Class, String, javax.servlet.http.HttpServletRequest)} to extract the expand query
 parameter from a HttpServletRequest.public static com.atlassian.plugins.rest.common.expand.parameter.ExpandParameter getExpandParameter(javax.servlet.http.HttpServletRequest request)
request - HttpServletRequest.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||