@Controller(value="identityController") public class IdentityController extends AbstractServiceController implements org.springframework.web.context.ServletContextAware
FRAGMENT_REQUEST_PARAM_KEY, SCHEME_REQUEST_PARAM_KEY
Constructor and Description |
---|
IdentityController() |
Modifier and Type | Method and Description |
---|---|
void |
confirmMapIdentity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Confirms a previously initiated identity mapping.
|
org.springframework.web.servlet.ModelAndView |
createGroup(org.springframework.web.multipart.MultipartHttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a group with the given name.
|
void |
denyMapIdentity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Denies a previously initiated identity mapping.
|
org.springframework.web.servlet.ModelAndView |
getPendingMapIdentity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Gets the SubjectInfo of a previously initiated identity mapping.
|
org.springframework.web.servlet.ModelAndView |
getSubjectInfo(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Get the information about a Person (their equivalent identities, and the Groups to which they belong)
or the Group (including members).
|
org.springframework.web.servlet.ModelAndView |
listSubjects(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
List the subjects, including users, groups, and systems, that match search criteria.
|
void |
mapIdentity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Create a new mapping between the two identities, asserting that they represent the same subject.
|
org.springframework.web.servlet.ModelAndView |
registerAccount(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest,
javax.servlet.http.HttpServletResponse response)
Create a new subject in the DataONE system.
|
void |
removeMapIdentity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Removes a previously asserted identity mapping from the Subject in the Session to the Subject given by the parameter.
|
void |
requestMapIdentity(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Request a new mapping between the authenticated identity in the session and the given identity,
asserting that they represent the same subject.
|
void |
setServletContext(javax.servlet.ServletContext sc) |
org.springframework.web.servlet.ModelAndView |
updateAccount(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest,
javax.servlet.http.HttpServletResponse response)
Update an existing subject in the DataONE system.
|
void |
updateGroup(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest,
javax.servlet.http.HttpServletResponse response)
Add members to the named group.
|
void |
verifyAccount(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Verify that the Person data associated with this Subject
is a true representation of the real world person.
|
debugRequest, extractPidFromRequestParam, extractPidFromRequestURI, extractSubjectFromRequestParam, extractValueFromRequestParam, handleBaseException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException, handleException
@RequestMapping(value={"/v1/accounts/map","/v1/accounts/map/"}, method=POST) public void mapIdentity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
@RequestMapping(value="/v1/accounts/map/*", method=DELETE) public void removeMapIdentity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
@RequestMapping(value="/v1/accounts/pendingmap/*", method=GET) public org.springframework.web.servlet.ModelAndView getPendingMapIdentity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.InvalidRequest
@RequestMapping(value={"/v1/accounts/pendingmap","/v1/accounts/pendingmap/"}, method=POST) public void requestMapIdentity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.NotFound
@RequestMapping(value="/v1/accounts/pendingmap/*", method=PUT) public void confirmMapIdentity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
@RequestMapping(value="/v1/accounts/pendingmap/*", method=DELETE) public void denyMapIdentity(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.NotFound
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidRequest
@RequestMapping(value={"/v1/accounts","/v1/accounts/"}, method=GET) public org.springframework.web.servlet.ModelAndView listSubjects(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotImplemented
@RequestMapping(value="/v1/accounts/*", method=GET) public org.springframework.web.servlet.ModelAndView getSubjectInfo(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
@RequestMapping(value={"/v1/accounts","/v1/accounts/"}, method=POST) public org.springframework.web.servlet.ModelAndView registerAccount(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest
fileRequest
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidRequest
@RequestMapping(value="/v1/accounts/**", method=PUT) public org.springframework.web.servlet.ModelAndView updateAccount(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
fileRequest
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
@RequestMapping(value="/v1/accounts/verification/*", method=PUT) public void verifyAccount(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
@RequestMapping(value={"/v1/groups","/v1/groups/"}, method=POST) public org.springframework.web.servlet.ModelAndView createGroup(org.springframework.web.multipart.MultipartHttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
request
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.NotFound
@RequestMapping(value={"/v1/groups","/v1/groups/"}, method=PUT) public void updateGroup(org.springframework.web.multipart.MultipartHttpServletRequest fileRequest, javax.servlet.http.HttpServletResponse response) throws org.dataone.service.exceptions.ServiceFailure, org.dataone.service.exceptions.InvalidToken, org.dataone.service.exceptions.NotAuthorized, org.dataone.service.exceptions.NotImplemented, org.dataone.service.exceptions.IdentifierNotUnique, org.dataone.service.exceptions.InvalidCredentials, org.dataone.service.exceptions.InvalidRequest, org.dataone.service.exceptions.NotFound
fileRequest
- response
- org.dataone.service.exceptions.ServiceFailure
org.dataone.service.exceptions.InvalidToken
org.dataone.service.exceptions.NotAuthorized
org.dataone.service.exceptions.NotImplemented
org.dataone.service.exceptions.IdentifierNotUnique
org.dataone.service.exceptions.InvalidRequest
org.dataone.service.exceptions.InvalidCredentials
org.dataone.service.exceptions.NotFound
public void setServletContext(javax.servlet.ServletContext sc)
setServletContext
in interface org.springframework.web.context.ServletContextAware
Copyright © 2022. All rights reserved.