Class ProfileController
java.lang.Object
org.craftercms.profile.management.web.controllers.ProfileController
MVC Controller for displaying and modifying profiles.
- Author:
- avasquez
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Patternstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionProfileController(String verificationUrl, ProfileService profileService, org.craftercms.commons.security.permissions.PermissionEvaluator<Profile, String> tenantPermissionEvaluator, org.craftercms.commons.security.permissions.PermissionEvaluator<Profile, Profile> profilePermissionEvaluator) -
Method Summary
Modifier and TypeMethodDescriptioncreateProfile(Profile profile) deleteProfile(String id) getProfile(String id) longgetProfileCount(String tenantName, String query) getProfileList(String tenantName, String query, String sortBy, SortOrder sortOrder, Integer start, Integer limit) updateProfile(Profile profile)
-
Field Details
-
BASE_URL_PROFILE
- See Also:
-
PATH_VAR_ID
- See Also:
-
URL_VIEW_PROFILE_LIST
- See Also:
-
URL_VIEW_NEW_PROFILE
- See Also:
-
URL_VIEW_PROFILE
- See Also:
-
URL_GET_PROFILE_COUNT
- See Also:
-
URL_GET_PROFILE_LIST
- See Also:
-
URL_GET_PROFILE
- See Also:
-
URL_CREATE_PROFILE
- See Also:
-
URL_UPDATE_PROFILE
- See Also:
-
URL_DELETE_PROFILE
- See Also:
-
PARAM_TENANT_NAME
- See Also:
-
PARAM_QUERY
- See Also:
-
PARAM_SORT_BY
- See Also:
-
PARAM_SORT_ORDER
- See Also:
-
PARAM_START
- See Also:
-
PARAM_COUNT
- See Also:
-
VIEW_PROFILE_LIST
- See Also:
-
VIEW_NEW_PROFILE
- See Also:
-
VIEW_PROFILE
- See Also:
-
MODEL_MESSAGE
- See Also:
-
MSG_PROFILE_CREATED_FORMAT
- See Also:
-
MSG_PROFILE_UPDATED_FORMAT
- See Also:
-
MSG_PROFILE_DELETED_FORMAT
- See Also:
-
QUERY_PATTERN
-
FINAL_QUERY_FORMAT
- See Also:
-
-
Constructor Details
-
ProfileController
-
-
Method Details
-
viewProfileList
-
viewNewProfile
-
viewProfile
-
getProfileCount
@RequestMapping(value="/count", method=GET) @ResponseBody public long getProfileCount(@RequestParam(value="tenantName",required=false) String tenantName, @RequestParam(value="query",required=false) String query) throws ProfileException - Throws:
ProfileException
-
getProfileList
@RequestMapping(value="/list", method=GET) @ResponseBody public List<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) SortOrder sortOrder, @RequestParam(value="start",required=false) Integer start, @RequestParam(value="count",required=false) Integer limit) throws ProfileException - Throws:
ProfileException
-
getProfile
@RequestMapping(value="/{id}", method=GET) @ResponseBody public Profile getProfile(@PathVariable("id") String id) throws ProfileException - Throws:
ProfileException
-
createProfile
@RequestMapping(value="/create", method=POST) @ResponseBody public Map<String,String> createProfile(@RequestBody Profile profile) throws ProfileException - Throws:
ProfileException
-
updateProfile
@RequestMapping(value="/update", method=POST) @ResponseBody public Map<String,String> updateProfile(@RequestBody Profile profile) throws ProfileException - Throws:
ProfileException
-
deleteProfile
@RequestMapping(value="/{id}/delete", method=POST) @ResponseBody public Map<String,String> deleteProfile(@PathVariable("id") String id) throws ProfileException - Throws:
ProfileException
-