Class ProfileController
- java.lang.Object
-
- org.craftercms.social.management.web.controllers.ProfileController
-
@Controller @RequestMapping("/profile") public class ProfileController extends ObjectMVC Controller for profile.- Author:
- avasquez
-
-
Field Summary
Fields Modifier and Type Field Description static StringBASE_URL_PROFILEstatic StringFINAL_QUERY_FORMATstatic StringPARAM_COUNTstatic StringPARAM_QUERYstatic StringPARAM_SORT_BYstatic StringPARAM_SORT_ORDERstatic StringPARAM_STARTstatic StringPARAM_TENANT_NAMEstatic StringPATH_VAR_IDstatic PatternQUERY_PATTERNstatic StringURL_FIND_PROFILESstatic StringURL_GET_PROFILEstatic StringURL_GET_PROFILE_COUNT
-
Constructor Summary
Constructors Constructor Description ProfileController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.craftercms.profile.api.ProfilegetProfile(String id)longgetProfileCount(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)voidsetProfileService(org.craftercms.profile.api.services.ProfileService profileService)
-
-
-
Field Detail
-
PATH_VAR_ID
public static final String PATH_VAR_ID
- See Also:
- Constant Field Values
-
BASE_URL_PROFILE
public static final String BASE_URL_PROFILE
- See Also:
- Constant Field Values
-
URL_GET_PROFILE_COUNT
public static final String URL_GET_PROFILE_COUNT
- See Also:
- Constant Field Values
-
URL_FIND_PROFILES
public static final String URL_FIND_PROFILES
- See Also:
- Constant Field Values
-
URL_GET_PROFILE
public static final String URL_GET_PROFILE
- See Also:
- Constant Field Values
-
PARAM_TENANT_NAME
public static final String PARAM_TENANT_NAME
- See Also:
- Constant Field Values
-
PARAM_QUERY
public static final String PARAM_QUERY
- See Also:
- Constant Field Values
-
PARAM_SORT_BY
public static final String PARAM_SORT_BY
- See Also:
- Constant Field Values
-
PARAM_SORT_ORDER
public static final String PARAM_SORT_ORDER
- See Also:
- Constant Field Values
-
PARAM_START
public static final String PARAM_START
- See Also:
- Constant Field Values
-
PARAM_COUNT
public static final String PARAM_COUNT
- See Also:
- Constant Field Values
-
QUERY_PATTERN
public static final Pattern QUERY_PATTERN
-
FINAL_QUERY_FORMAT
public static final String FINAL_QUERY_FORMAT
- See Also:
- Constant Field Values
-
-
Method Detail
-
setProfileService
public void setProfileService(org.craftercms.profile.api.services.ProfileService profileService)
-
getProfileCount
@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- Throws:
org.craftercms.profile.api.exceptions.ProfileException
-
getProfileList
@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- Throws:
org.craftercms.profile.api.exceptions.ProfileException
-
getProfile
@RequestMapping(value="/{id}", method=GET) @ResponseBody public org.craftercms.profile.api.Profile getProfile(@PathVariable("id") String id) throws org.craftercms.profile.api.exceptions.ProfileException- Throws:
org.craftercms.profile.api.exceptions.ProfileException
-
-