@RestController
@RequestMapping(value="/rest",
produces={"application/xml","application/json"})
public class UserNamespaceAuthorizationRestController
extends HerdBaseController
| Modifier and Type | Field and Description |
|---|---|
static String |
USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX |
| Constructor and Description |
|---|
UserNamespaceAuthorizationRestController() |
| Modifier and Type | Method and Description |
|---|---|
UserNamespaceAuthorization |
createUserNamespaceAuthorization(UserNamespaceAuthorizationCreateRequest request)
Creates a new user namespace authorization.
|
UserNamespaceAuthorization |
deleteUserNamespaceAuthorization(String userId,
String namespace)
Deletes an existing user namespace authorization by key.
|
UserNamespaceAuthorization |
getUserNamespaceAuthorization(String userId,
String namespace)
Gets an existing user namespace authorization by key.
|
UserNamespaceAuthorizations |
getUserNamespaceAuthorizationsByNamespace(String namespace)
Gets a list of user namespace authorizations for the specified namespace.
|
UserNamespaceAuthorizations |
getUserNamespaceAuthorizationsByUserId(String userId)
Gets a list of user namespace authorizations for the specified user.
|
UserNamespaceAuthorization |
updateUserNamespaceAuthorization(String userId,
String namespace,
UserNamespaceAuthorizationUpdateRequest request)
Updates an existing user namespace authorization by key.
|
addPagingHttpHeaders, validateNoDuplicateQueryStringParamspublic static final String USER_NAMESPACE_AUTHORIZATIONS_URI_PREFIX
public UserNamespaceAuthorizationRestController()
@RequestMapping(value="/userNamespaceAuthorizations",
method=POST,
consumes={"application/xml","application/json"})
@Secured(value="FN_USER_NAMESPACE_AUTHORIZATIONS_POST")
public UserNamespaceAuthorization createUserNamespaceAuthorization(@RequestBody
UserNamespaceAuthorizationCreateRequest request)
Creates a new user namespace authorization.
The user ID field may be prefixed with a wildcard token character "*" to authorize multiple users access to the namespace. The wildcard only works for as a prefix to match the suffix of the user ID. If the wildcard appears anywhere other than the prefix, the user ID must match as-is. For example:
Requires GRANT permission on namespace
request - the information needed to create the user namespace authorization@RequestMapping(value="/userNamespaceAuthorizations/userIds/{userId}/namespaces/{namespace}",
method=PUT,
consumes={"application/xml","application/json"})
@Secured(value="FN_USER_NAMESPACE_AUTHORIZATIONS_POST")
public UserNamespaceAuthorization updateUserNamespaceAuthorization(@PathVariable(value="userId")
String userId,
@PathVariable(value="namespace")
String namespace,
@RequestBody
UserNamespaceAuthorizationUpdateRequest request)
Requires GRANT permission on namespace
userId - the user idnamespace - the namespacerequest - the information needed to update the user namespace authorization@RequestMapping(value="/userNamespaceAuthorizations/userIds/{userId}/namespaces/{namespace}",
method=GET)
@Secured(value="FN_USER_NAMESPACE_AUTHORIZATIONS_GET")
public UserNamespaceAuthorization getUserNamespaceAuthorization(@PathVariable(value="userId")
String userId,
@PathVariable(value="namespace")
String namespace)
Requires READ permission on namespace
userId - the user idnamespace - the namespace@RequestMapping(value="/userNamespaceAuthorizations/userIds/{userId}/namespaces/{namespace}",
method=DELETE)
@Secured(value="FN_USER_NAMESPACE_AUTHORIZATIONS_DELETE")
public UserNamespaceAuthorization deleteUserNamespaceAuthorization(@PathVariable(value="userId")
String userId,
@PathVariable(value="namespace")
String namespace)
Requires GRANT permission on namespace
userId - the user idnamespace - the namespace@RequestMapping(value="/userNamespaceAuthorizations/userIds/{userId}",
method=GET)
@Secured(value="FN_USER_NAMESPACE_AUTHORIZATIONS_BY_USERID_GET")
public UserNamespaceAuthorizations getUserNamespaceAuthorizationsByUserId(@PathVariable(value="userId")
String userId)
userId - the user id@RequestMapping(value="/userNamespaceAuthorizations/namespaces/{namespace}",
method=GET)
@Secured(value="FN_USER_NAMESPACE_AUTHORIZATIONS_BY_NAMESPACE_GET")
public UserNamespaceAuthorizations getUserNamespaceAuthorizationsByNamespace(@PathVariable(value="namespace")
String namespace)
namespace - the namespaceCopyright © 2021. All rights reserved.