Class AccountGroupsController
java.lang.Object
org.duracloud.account.app.controller.AbstractController
org.duracloud.account.app.controller.AbstractAccountController
org.duracloud.account.app.controller.AccountGroupsController
- Author:
- Daniel Bernstein Date: Nov 9, 2011
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected DuracloudGroupServiceprotected static final Stringprotected static final Stringprotected static final Stringprotected static Stringprotected static Stringprotected static final Stringprotected static Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected static final StringFields inherited from class org.duracloud.account.app.controller.AbstractAccountController
ACCOUNT_HOME, ACCOUNT_INFO_KEY, ACCOUNT_PATH, accountManagerService, ACCOUNTS_PATH, ACTION_STATUS, DC_VERSIONS_KEY, EDIT_PATH, NEW_ACCOUNT_VIEW, STATEMENT_PATH, userServiceFields inherited from class org.duracloud.account.app.controller.AbstractController
BY_ID_DELETE_MAPPING, BY_ID_EDIT_MAPPING, BY_ID_MAPPING, EDIT_MAPPING, log, NEW_MAPPING, USER_MAPPING, USERS_MAPPING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioneditGroup(Long accountId, String groupName, javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) editGroup(Long accountId, String groupName, GroupForm form, javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) modifyGroups(Long accountId, org.springframework.ui.Model model, GroupsForm form, org.springframework.validation.BindingResult result) voidsetDuracloudGroupService(DuracloudGroupService groupService) Methods inherited from class org.duracloud.account.app.controller.AbstractAccountController
addAccountInfoToModel, addAccountOwnersToModel, addUserToModel, createAccountRedirectModelAndView, createAccountRedirectView, getAccountManagerService, getUser, getUserService, loadAccountInfo, loadAccountInfo, loadBillingInfo, loadProviderInfo, setAccountManagerService, setUserServiceMethods inherited from class org.duracloud.account.app.controller.AbstractController
accountHasMoreThanOneOwner, createRedirectMav, destroy, formatUserUrl, getAdminRole, getOwnerRole, getRecaptchaSecret, getRecaptchaSiteKey, getUserRole, handleException, init, isRecaptchaEnabled, setError, setError, setFailureFeedback, setSuccessFeedback, setUserRights, validateRecaptcha
-
Field Details
-
AVAILABLE_USERS_KEY
- See Also:
-
GROUPS_VIEW_ID
- See Also:
-
GROUP_VIEW_ID
- See Also:
-
GROUP_EDIT_VIEW_ID
- See Also:
-
GROUPS_FORM_KEY
- See Also:
-
GROUP_FORM_KEY
- See Also:
-
GROUP_USERS_KEY
-
GROUP_NAME_KEY
-
GROUP_KEY
-
GROUPS_PATH
- See Also:
-
GROUP_PATH
- See Also:
-
GROUP_EDIT_PATH
- See Also:
-
duracloudGroupService
-
-
Constructor Details
-
AccountGroupsController
public AccountGroupsController()
-
-
Method Details
-
getGroups
@RequestMapping(value="/byid/{accountId}/groups", method=GET) public String getGroups(@PathVariable Long accountId, org.springframework.ui.Model model) throws Exception - Throws:
Exception
-
modifyGroups
@RequestMapping(value="/byid/{accountId}/groups", method=POST) @Transactional public String modifyGroups(@PathVariable Long accountId, org.springframework.ui.Model model, @ModelAttribute("groupsForm") GroupsForm form, org.springframework.validation.BindingResult result) throws Exception - Throws:
Exception
-
getGroup
@RequestMapping(value="/byid/{accountId}/groups/{groupName:[a-z0-9._\\-@]+}", method=GET) public String getGroup(@PathVariable Long accountId, @PathVariable String groupName, org.springframework.ui.Model model) throws Exception - Throws:
Exception
-
editGroup
@RequestMapping(value="/byid/{accountId}/groups/{groupName:[a-z0-9._\\-@]+}/edit", method=GET) public String editGroup(@PathVariable Long accountId, @PathVariable String groupName, javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) throws Exception - Throws:
Exception
-
editGroup
@RequestMapping(value="/byid/{accountId}/groups/{groupName:[a-z0-9._\\-@]+}/edit", method=POST) @Transactional public String editGroup(@PathVariable Long accountId, @PathVariable String groupName, @ModelAttribute("groupForm") GroupForm form, javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model) throws Exception - Throws:
Exception
-
setDuracloudGroupService
-