Interface AuthorizationLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods to search and retrieve
Authorization mappings.
This lookup session defines two sets of views:
- isolated vault view: All authorization methods in this session
operate, retrieve and pertain to
Authorizationsdefined explicitly in the currentVault. Using an isolated view is useful for managingAuthorizationswith theAuthorizationAdminSession. - federated vault view; All authorization methods in this session operate, retrieve and pertain to all authorizations defined in this vault and any other authorizations implicitly available in this vault through vault inheritence.
- effective authorization view: All authorization lookup methods return edges where the current dates falls in between the effective dates inclusive.
- any effective authorization edge view: Authorizations of any effective date are returned.
- explicit authorization view: All authorization methods in this
session operate, retrieve and pertain to only those authorizations
that have been explicitly defined and not derived from
Resourcegroups orQualifierhierarchies. - implicit authorization view; All authorization methods in this
session operate, retrieve and pertain to all authorizations including
those derived from
Resourcegroups orQualifierhierarchies.
The methods useExplicitAuthorizationView() and
useImplicitAuthorizationView() behave as a radio group and one should be
selected before invoking any lookup methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can perform authorization lookups.getAuthorization(Id authorizationId) Gets theAuthorizationspecified by itsId.Geta allAuthorizations.getAuthorizationsByGenusType(Type authorizationGenusType) Gets anAuthorizationListcorresponding to the given authorization genusTypewhich does not include authorizations of genus types derived from the specifiedType.getAuthorizationsByIds(IdList authorizationIds) Gets anAuthorizationListcorresponding to the givenIdList.getAuthorizationsByParentGenusType(Type authorizationGenusType) Gets anAuthorizationListcorresponding to the given authorization genusTypeand include authorizations of genus types derived from the specifiedType.getAuthorizationsByRecordType(Type authorizationRecordType) Gets anAuthorizationListcontaining the given authorization recordType.getAuthorizationsForAgent(Id agentId) Gets a list ofAuthorizationsassociated with a given agent.getAuthorizationsForAgentAndFunction(Id agentId, Id functionId) Gets a list ofAuthorizationsassociated with a given agent.getAuthorizationsForAgentAndFunctionOnDate(Id agentId, Id functionId, DateTime from, DateTime to) Gets anAuthorizationListfor the given agent and effective during the entire given date range inclusive but not confined to the date range.getAuthorizationsForAgentAndQualifier(Id agentId, Id qualifierId) Gets a list ofAuthorizationsassociated with a given agent and qualifier.getAuthorizationsForAgentAndQualifierOnDate(Id agentId, Id qualifierId, DateTime from, DateTime to) Gets anAuthorizationListfor the given agent and qualifier and effective during the entire given date range inclusive but not confined to the date range.getAuthorizationsForAgentOnDate(Id agentId, DateTime from, DateTime to) Gets anAuthorizationListfor the given agent and effective during the entire given date range inclusive but not confined to the date range.getAuthorizationsForFunction(Id functionId) Gets a list ofAuthorizationsassociated with a given function.getAuthorizationsForFunctionOnDate(Id functionId, DateTime from, DateTime to) Gets anAuthorizationListfor the given function and effective during the entire given date range inclusive but not confined to the date range.getAuthorizationsForQualifier(Id qualifierId) Gets a list ofAuthorizationsassociated with a given qualifier.getAuthorizationsForQualifierOnDate(Id qualifierId, DateTime from, DateTime to) Gets anAuthorizationListfor the given qualifier and effective during the entire given date range inclusive but not confined to the date range In plenary mode, the returned list contains all known authorizations or an error results.getAuthorizationsForResource(Id resourceId) Gets a list ofAuthorizationsassociated with a given resource.getAuthorizationsForResourceAndFunction(Id resourceId, Id functionId) Gets a list ofAuthorizationsassociated with a given resource.getAuthorizationsForResourceAndFunctionOnDate(Id resourceId, Id functionId, DateTime from, DateTime to) Gets anAuthorizationListeffective during the entire given date range inclusive but not confined to the date range.getAuthorizationsForResourceAndQualifier(Id resourceId, Id qualifierId) Gets a list ofAuthorizationsassociated with a given resource and qualifier.getAuthorizationsForResourceAndQualifierOnDate(Id resourceId, Id qualifierId, DateTime from, DateTime to) Gets anAuthorizationListfor the given resource and qualifier and effective during the entire given date range inclusive but not confined to the date range.getAuthorizationsForResourceOnDate(Id resourceId, DateTime from, DateTime to) Gets anAuthorizationListeffective during the entire given date range inclusive but not confined to the date range.getAuthorizationsOnDate(DateTime from, DateTime to) Gets anAuthorizationListeffective during the entire given date range inclusive but not confined to the date range.getExplicitAuthorization(Id authorizationId) Gets the explicitAuthorizationthat generated the given implicit authorization.getVault()Gets theVaultassociated with this session.Gets theVaultIdassociated with this session.voidAll authorizations of any effective dates are returned by all methods in this session.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidOnly authorizations whose effective dates are current are returned by methods in this session.voidSets the view for methods in this session to explicit authorizations.voidFederates the view for methods in this session.voidSets the view for methods in this session to implicit authorizations.voidIsolates the view for methods in this session.voidA complete view of theAuthorizationreturns is desired.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getVaultId
Id getVaultId()Gets theVaultIdassociated with this session.- Returns:
- the
Vault Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getVault
Gets theVaultassociated with this session.- Returns:
- the
Vaultassociated with this session - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupAuthorizations
boolean canLookupAuthorizations()Tests if this user can perform authorization lookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeAuthorizationView
void useComparativeAuthorizationView()The returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryAuthorizationView
void usePlenaryAuthorizationView()A complete view of theAuthorizationreturns is desired. Methods will return what is requested or result in an error. This view is used when greater precision is desired at the expense of interoperability.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedVaultView
void useFederatedVaultView()Federates the view for methods in this session. A federated view will include authorizations in vaults which are children of this vault in the vault hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedVaultView
void useIsolatedVaultView()Isolates the view for methods in this session. An isolated view restricts lookups to this vault only.- Compliance:
mandatory- This method is must be implemented.
-
useEffectiveAuthorizationView
void useEffectiveAuthorizationView()Only authorizations whose effective dates are current are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectiveAuthorizationView
void useAnyEffectiveAuthorizationView()All authorizations of any effective dates are returned by all methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useImplicitAuthorizationView
void useImplicitAuthorizationView()Sets the view for methods in this session to implicit authorizations. An implicit view will include authorizations derived from other authorizations as a result of theQualifierhierarchy orResourceexpansion. This method is the opposite ofexplicitAuthorizationView().- Compliance:
mandatory- This method is must be implemented.
-
useExplicitAuthorizationView
void useExplicitAuthorizationView()Sets the view for methods in this session to explicit authorizations. An explicit view includes only those authorizations that were explicitly defined and not implied. This method is the opposite ofimplicitAuthorizationView().- Compliance:
mandatory- This method is must be implemented.
-
getAuthorization
Authorization getAuthorization(Id authorizationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theAuthorizationspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedAuthorizationmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to anAuthorizationand retained for compatibility. In effective mode, authorizations are returned that are currently effective or a NOT_FOUND may result. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
authorizationId- theIdof theAuthorizationto retrieve- Returns:
- the returned
Authorization - Throws:
NotFoundException- noAuthorizationfound with the givenIdNullArgumentException-authorizationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsByIds
AuthorizationList getAuthorizationsByIds(IdList authorizationIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets anAuthorizationListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the authorizations specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleAuthorizationsmay be omitted from the list and may present the elements in any order including returning a unique set. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
authorizationIds- the list ofIdsto retrieve- Returns:
- the returned
Authorization list - Throws:
NotFoundException- anId wasnot foundNullArgumentException-authorizationIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsByGenusType
AuthorizationList getAuthorizationsByGenusType(Type authorizationGenusType) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListcorresponding to the given authorization genusTypewhich does not include authorizations of genus types derived from the specifiedType. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
authorizationGenusType- an authorization genus type- Returns:
- the returned
Authorizationlist - Throws:
NullArgumentException-authorizationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsByParentGenusType
AuthorizationList getAuthorizationsByParentGenusType(Type authorizationGenusType) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListcorresponding to the given authorization genusTypeand include authorizations of genus types derived from the specifiedType. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
authorizationGenusType- an authorization genus type- Returns:
- the returned
Authorizationlist - Throws:
NullArgumentException-authorizationGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsByRecordType
AuthorizationList getAuthorizationsByRecordType(Type authorizationRecordType) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListcontaining the given authorization recordType. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
authorizationRecordType- an authorization record type- Returns:
- the returned
Authorizationlist - Throws:
NullArgumentException-authorizationRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsOnDate
AuthorizationList getAuthorizationsOnDate(DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListeffective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
from- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForResource
AuthorizationList getAuthorizationsForResource(Id resourceId) throws OperationFailedException, PermissionDeniedException Gets a list ofAuthorizationsassociated with a given resource. Authorizations related to the given resource, including those related through anAgent, are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
resourceId- a resourceId- Returns:
- the returned
Authorization list - Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForResourceOnDate
AuthorizationList getAuthorizationsForResourceOnDate(Id resourceId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListeffective during the entire given date range inclusive but not confined to the date range. Authorizations related to the given resource, including those related through anAgent, are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
resourceId- a resourceIdfrom- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForAgent
AuthorizationList getAuthorizationsForAgent(Id agentId) throws OperationFailedException, PermissionDeniedException Gets a list ofAuthorizationsassociated with a given agent. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
agentId- an agentId- Returns:
- the returned
Authorization list - Throws:
NullArgumentException-agentIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForAgentOnDate
AuthorizationList getAuthorizationsForAgentOnDate(Id agentId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListfor the given agent and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
agentId- an agentIdfrom- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-agentId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForFunction
AuthorizationList getAuthorizationsForFunction(Id functionId) throws OperationFailedException, PermissionDeniedException Gets a list ofAuthorizationsassociated with a given function. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
functionId- a functionId- Returns:
- the returned
Authorization list - Throws:
NullArgumentException-functionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForFunctionOnDate
AuthorizationList getAuthorizationsForFunctionOnDate(Id functionId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListfor the given function and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
functionId- a functionIdfrom- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-functionId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForResourceAndFunction
AuthorizationList getAuthorizationsForResourceAndFunction(Id resourceId, Id functionId) throws OperationFailedException, PermissionDeniedException Gets a list ofAuthorizationsassociated with a given resource. Authorizations related to the given resource, including those related through anAgent, are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
resourceId- a resourceIdfunctionId- a functionId- Returns:
- the returned
Authorization list - Throws:
NullArgumentException-resourceIdorfunctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForResourceAndFunctionOnDate
AuthorizationList getAuthorizationsForResourceAndFunctionOnDate(Id resourceId, Id functionId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListeffective during the entire given date range inclusive but not confined to the date range. Authorizations related to the given resource, including those related through anAgent, are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
resourceId- a resourceIdfunctionId- a functionIdfrom- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, functionId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForAgentAndFunction
AuthorizationList getAuthorizationsForAgentAndFunction(Id agentId, Id functionId) throws OperationFailedException, PermissionDeniedException Gets a list ofAuthorizationsassociated with a given agent. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
agentId- an agentIdfunctionId- a functionId- Returns:
- the returned
Authorization list - Throws:
NullArgumentException-agentIdorfunctionIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForAgentAndFunctionOnDate
AuthorizationList getAuthorizationsForAgentAndFunctionOnDate(Id agentId, Id functionId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListfor the given agent and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
agentId- an agentIdfunctionId- a functionIdfrom- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-agentId, functionId, fromortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForQualifier
AuthorizationList getAuthorizationsForQualifier(Id qualifierId) throws OperationFailedException, PermissionDeniedException Gets a list ofAuthorizationsassociated with a given qualifier. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
qualifierId- a qualifierId- Returns:
- the returned
Authorization list - Throws:
NullArgumentException-qualifierIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForQualifierOnDate
AuthorizationList getAuthorizationsForQualifierOnDate(Id qualifierId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListfor the given qualifier and effective during the entire given date range inclusive but not confined to the date range In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
qualifierId- a qualifierIdfrom- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-qualifierId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForResourceAndQualifier
AuthorizationList getAuthorizationsForResourceAndQualifier(Id resourceId, Id qualifierId) throws OperationFailedException, PermissionDeniedException Gets a list ofAuthorizationsassociated with a given resource and qualifier. Authorizations related to the given resource, including those related through anAgent, are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
resourceId- a resourceIdqualifierId- a qualifierId- Returns:
- the returned
Authorization list - Throws:
NullArgumentException-resourceIdorqualifierIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForResourceAndQualifierOnDate
AuthorizationList getAuthorizationsForResourceAndQualifierOnDate(Id resourceId, Id qualifierId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListfor the given resource and qualifier and effective during the entire given date range inclusive but not confined to the date range. Authorizations related to the given resource, including those related through anAgent, are returned. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
resourceId- a resourceIdqualifierId- a qualifierIdIdfrom- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-resourceId, qualifierId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForAgentAndQualifier
AuthorizationList getAuthorizationsForAgentAndQualifier(Id agentId, Id qualifierId) throws OperationFailedException, PermissionDeniedException Gets a list ofAuthorizationsassociated with a given agent and qualifier. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
agentId- an agentIdqualifierId- a qualifierId- Returns:
- the returned
Authorization list - Throws:
NullArgumentException-agentIdorqualifierIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationsForAgentAndQualifierOnDate
AuthorizationList getAuthorizationsForAgentAndQualifierOnDate(Id agentId, Id qualifierId, DateTime from, DateTime to) throws OperationFailedException, PermissionDeniedException Gets anAuthorizationListfor the given agent and qualifier and effective during the entire given date range inclusive but not confined to the date range. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Parameters:
agentId- an agentIdqualifierId- a qualifierIdIdfrom- starting dateto- ending date- Returns:
- the returned
Authorizationlist - Throws:
InvalidArgumentException-fromis greater thantoNullArgumentException-agentId, qualifierId, from, ortoisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurred- Compliance:
mandatory- This method must be implemented.
-
getExplicitAuthorization
Authorization getExplicitAuthorization(Id authorizationId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets the explicitAuthorizationthat generated the given implicit authorization. If the givenAuthorizationis explicit, then the sameAuthorizationis returned. In effective mode, authorizations are returned that are currently effective or a NOT_FOUND may result. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived from Resources and theQualifierhierarchy are returned.- Parameters:
authorizationId- an authorization- Returns:
- the explicit
Authorization - Throws:
NotFoundException-authorizationIdis not foundNullArgumentException-authorizationIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getAuthorizations
Geta allAuthorizations. In plenary mode, the returned list contains all known authorizations or an error results. Otherwise, the returned list may contain only those authorizations that are accessible through this session. In effective mode, authorizations are returned that are currently effective. In any effective mode, active authorizations and those currently expired are returned. In explicit mode, only explicitly managedAuthorizationsare returned. In implicit mode, allAuthorizationsincluding those derived fromResourcesand theQualifierhierarchy are returned.- Returns:
- a list of
Authorizations - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-