public interface CNAuthorization
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthorized(Identifier pid,
Permission permission) |
boolean |
isAuthorized(Session session,
Identifier pid,
Permission permission)
Deprecated.
|
boolean |
setAccessPolicy(Identifier pid,
AccessPolicy policy,
long serialVersion) |
boolean |
setAccessPolicy(Session session,
Identifier pid,
AccessPolicy policy,
long serialVersion)
Deprecated.
|
Identifier |
setRightsHolder(Identifier pid,
Subject userId,
long serialVersion) |
Identifier |
setRightsHolder(Session session,
Identifier pid,
Subject userId,
long serialVersion)
Deprecated.
|
Identifier setRightsHolder(Identifier pid, 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(Identifier pid, 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(Identifier pid, 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
@Deprecated Identifier setRightsHolder(Session session, Identifier pid, 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
@Deprecated boolean isAuthorized(Session session, Identifier pid, 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
@Deprecated boolean setAccessPolicy(Session session, Identifier pid, 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.