public interface CNAuthorization
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthorized(Session session,
Identifier id,
Permission permission) |
boolean |
setAccessPolicy(Session session,
Identifier id,
AccessPolicy policy,
long serialVersion)
Deprecated.
use CNCore.updateSystemMetadata()
|
Identifier |
setRightsHolder(Session session,
Identifier id,
Subject userId,
long serialVersion)
Deprecated.
use CNCore.updateSystemMetadata()
|
Identifier setRightsHolder(Session session, Identifier id, Subject userId, long serialVersion) throws InvalidToken, ServiceFailure, NotFound, NotAuthorized, NotImplemented, InvalidRequest, VersionMismatch
InvalidToken
ServiceFailure
NotFound
NotAuthorized
NotImplemented
InvalidRequest
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNAuthorization.setRightsHolder
boolean isAuthorized(Session session, Identifier id, Permission permission) throws ServiceFailure, InvalidToken, NotFound, NotAuthorized, NotImplemented, InvalidRequest
ServiceFailure
InvalidToken
NotFound
NotAuthorized
NotImplemented
InvalidRequest
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNAuthorization.isAuthorized
boolean setAccessPolicy(Session session, Identifier id, AccessPolicy policy, long serialVersion) throws InvalidToken, NotFound, NotImplemented, NotAuthorized, ServiceFailure, InvalidRequest, VersionMismatch
InvalidToken
NotFound
NotImplemented
NotAuthorized
ServiceFailure
InvalidRequest
VersionMismatch
https://purl.dataone.org/architecturev2/apis/CN_APIs.html#CNAuthorization.setAccessPolicy
Copyright © 2020. All Rights Reserved.