public abstract class AbstractController extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
BY_ID_DELETE_MAPPING |
static String |
BY_ID_EDIT_MAPPING |
static String |
BY_ID_MAPPING |
static String |
EDIT_MAPPING |
protected org.slf4j.Logger |
log |
static String |
NEW_MAPPING |
static String |
USER_MAPPING |
static String |
USERS_MAPPING |
| Constructor and Description |
|---|
AbstractController() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
accountHasMoreThanOneOwner(Set<org.duracloud.account.db.model.DuracloudUser> users,
Long accountId) |
protected org.springframework.web.servlet.ModelAndView |
createRedirectMav(String url) |
void |
destroy() |
protected static String |
formatUserUrl(String username) |
org.duracloud.account.db.model.Role |
getAdminRole() |
org.duracloud.account.db.model.Role |
getOwnerRole() |
org.duracloud.account.db.model.Role |
getUserRole() |
org.springframework.web.servlet.ModelAndView |
handleException(Exception e) |
void |
init() |
protected void |
setError(Exception e) |
protected void |
setError(Exception e,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
protected void |
setFailureFeedback(String message,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
protected void |
setSuccessFeedback(String message,
org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes) |
protected void |
setUserRights(DuracloudUserService userService,
Long accountId,
Long userId,
org.duracloud.account.db.model.Role role) |
protected org.slf4j.Logger log
public static final String USERS_MAPPING
public static final String USER_MAPPING
public static final String NEW_MAPPING
public static final String EDIT_MAPPING
public static final String BY_ID_MAPPING
public static final String BY_ID_EDIT_MAPPING
public static final String BY_ID_DELETE_MAPPING
public void init()
public void destroy()
@ModelAttribute(value="ownerRole") public org.duracloud.account.db.model.Role getOwnerRole()
@ModelAttribute(value="adminRole") public org.duracloud.account.db.model.Role getAdminRole()
@ModelAttribute(value="userRole") public org.duracloud.account.db.model.Role getUserRole()
protected void setUserRights(DuracloudUserService userService, Long accountId, Long userId, org.duracloud.account.db.model.Role role)
protected boolean accountHasMoreThanOneOwner(Set<org.duracloud.account.db.model.DuracloudUser> users, Long accountId)
users - @ExceptionHandler(value=java.lang.Exception.class) public org.springframework.web.servlet.ModelAndView handleException(Exception e)
protected void setError(Exception e)
protected void setError(Exception e, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
protected org.springframework.web.servlet.ModelAndView createRedirectMav(String url)
protected void setSuccessFeedback(String message, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
protected void setFailureFeedback(String message, org.springframework.web.servlet.mvc.support.RedirectAttributes redirectAttributes)
Copyright © 2009–2019 DuraSpace. All rights reserved.