Class AccountGroupsController
- java.lang.Object
-
- org.duracloud.account.app.controller.AbstractController
-
- org.duracloud.account.app.controller.AbstractAccountController
-
- org.duracloud.account.app.controller.AccountGroupsController
-
@Controller @Lazy public class AccountGroupsController extends AbstractAccountController
- Author:
- Daniel Bernstein Date: Nov 9, 2011
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringAVAILABLE_USERS_KEYprotected DuracloudGroupServiceduracloudGroupServiceprotected static StringGROUP_EDIT_PATHprotected static StringGROUP_EDIT_VIEW_IDprotected static StringGROUP_FORM_KEYprotected static StringGROUP_KEYprotected static StringGROUP_NAME_KEYprotected static StringGROUP_PATHprotected static StringGROUP_USERS_KEYprotected static StringGROUP_VIEW_IDprotected static StringGROUPS_FORM_KEYprotected static StringGROUPS_PATHprotected static StringGROUPS_VIEW_ID-
Fields 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, userService
-
Fields 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 Constructor Description AccountGroupsController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringeditGroup(Long accountId, String groupName, javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)StringeditGroup(Long accountId, String groupName, GroupForm form, javax.servlet.http.HttpServletRequest request, org.springframework.ui.Model model)StringgetGroup(Long accountId, String groupName, org.springframework.ui.Model model)StringgetGroups(Long accountId, org.springframework.ui.Model model)StringmodifyGroups(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, setUserService
-
Methods 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 Detail
-
AVAILABLE_USERS_KEY
protected static final String AVAILABLE_USERS_KEY
- See Also:
- Constant Field Values
-
GROUPS_VIEW_ID
protected static final String GROUPS_VIEW_ID
- See Also:
- Constant Field Values
-
GROUP_VIEW_ID
protected static final String GROUP_VIEW_ID
- See Also:
- Constant Field Values
-
GROUP_EDIT_VIEW_ID
protected static final String GROUP_EDIT_VIEW_ID
- See Also:
- Constant Field Values
-
GROUPS_FORM_KEY
protected static final String GROUPS_FORM_KEY
- See Also:
- Constant Field Values
-
GROUP_FORM_KEY
protected static final String GROUP_FORM_KEY
- See Also:
- Constant Field Values
-
GROUP_USERS_KEY
protected static String GROUP_USERS_KEY
-
GROUP_NAME_KEY
protected static String GROUP_NAME_KEY
-
GROUP_KEY
protected static String GROUP_KEY
-
GROUPS_PATH
protected static final String GROUPS_PATH
- See Also:
- Constant Field Values
-
GROUP_PATH
protected static final String GROUP_PATH
- See Also:
- Constant Field Values
-
GROUP_EDIT_PATH
protected static final String GROUP_EDIT_PATH
- See Also:
- Constant Field Values
-
duracloudGroupService
@Autowired protected DuracloudGroupService duracloudGroupService
-
-
Method Detail
-
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
public void setDuracloudGroupService(DuracloudGroupService groupService)
-
-