@Controller @RequestMapping(value="/profile") public class ProfileController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_URL_PROFILE |
static String |
FINAL_QUERY_FORMAT |
static String |
PARAM_COUNT |
static String |
PARAM_QUERY |
static String |
PARAM_SORT_BY |
static String |
PARAM_SORT_ORDER |
static String |
PARAM_START |
static String |
PARAM_TENANT_NAME |
static String |
PATH_VAR_ID |
static Pattern |
QUERY_PATTERN |
static String |
URL_FIND_PROFILES |
static String |
URL_GET_PROFILE |
static String |
URL_GET_PROFILE_COUNT |
| Constructor and Description |
|---|
ProfileController() |
| Modifier and Type | Method and Description |
|---|---|
org.craftercms.profile.api.Profile |
getProfile(String id) |
long |
getProfileCount(String tenantName,
String query,
javax.servlet.http.HttpServletRequest request) |
List<org.craftercms.profile.api.Profile> |
getProfileList(String tenantName,
String query,
String sortBy,
org.craftercms.profile.api.SortOrder sortOrder,
Integer start,
Integer limit,
javax.servlet.http.HttpServletRequest request) |
void |
setProfileService(org.craftercms.profile.api.services.ProfileService profileService) |
public static final String PATH_VAR_ID
public static final String BASE_URL_PROFILE
public static final String URL_GET_PROFILE_COUNT
public static final String URL_FIND_PROFILES
public static final String URL_GET_PROFILE
public static final String PARAM_TENANT_NAME
public static final String PARAM_QUERY
public static final String PARAM_SORT_BY
public static final String PARAM_SORT_ORDER
public static final String PARAM_START
public static final String PARAM_COUNT
public static final Pattern QUERY_PATTERN
public static final String FINAL_QUERY_FORMAT
public void setProfileService(org.craftercms.profile.api.services.ProfileService profileService)
@RequestMapping(value="/count",
method=GET)
@ResponseBody
public long getProfileCount(@RequestParam(value="tenantName",required=false)
String tenantName,
@RequestParam(value="query",required=false)
String query,
javax.servlet.http.HttpServletRequest request)
throws org.craftercms.profile.api.exceptions.ProfileException
org.craftercms.profile.api.exceptions.ProfileException@RequestMapping(value="/find",
method=GET)
@ResponseBody
public List<org.craftercms.profile.api.Profile> getProfileList(@RequestParam(value="tenantName",required=false)
String tenantName,
@RequestParam(value="query",required=false)
String query,
@RequestParam(value="sortBy",required=false)
String sortBy,
@RequestParam(value="sortOrder",required=false)
org.craftercms.profile.api.SortOrder sortOrder,
@RequestParam(value="start",required=false)
Integer start,
@RequestParam(value="count",required=false)
Integer limit,
javax.servlet.http.HttpServletRequest request)
throws org.craftercms.profile.api.exceptions.ProfileException
org.craftercms.profile.api.exceptions.ProfileException@RequestMapping(value="/{id}",
method=GET)
@ResponseBody
public org.craftercms.profile.api.Profile getProfile(@PathVariable(value="id")
String id)
throws org.craftercms.profile.api.exceptions.ProfileException
org.craftercms.profile.api.exceptions.ProfileExceptionCopyright © 2021 CrafterCMS. All rights reserved.