public interface MyProvisionSession extends OsidSession
This session defines methods for retrieving supplied provisions related to the queueing of the resource related to the authenticated agent.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupMyProvision()
Tests if this user can perform
Provisions lookups. |
Distributor |
getDistributor()
Gets the
Distributor associated with this session. |
Id |
getDistributorId()
Gets the
Distributor Id associated with
this session. |
ProvisionList |
getMyProvisions()
Gets the provisions for the resource related to this agent.
|
QueueList |
getMyQueues()
Gets all the queues in which the resource related to the authenticated
agent is on.
|
RequestList |
getMyRequests()
Gets all the requests in which the resource related to the
authenticated agent.
|
void |
useAnyEffectiveProvisionView()
All provisionables requests and pools of any effective dates are
returned by methods in this session.
|
void |
useEffectiveProvisionView()
Only provisionables requests and pools whose effective dates are
current are returned by methods in this session.
|
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getDistributorId()
Distributor
Id
associated with
this session. Distributor Id
associated with this sessionmandatory
- This method must be implemented. Distributor getDistributor() throws OperationFailedException, PermissionDeniedException
Distributor
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupMyProvision()
Provisions
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 a PERMISSION_DENIED.
This is intended as a
hint to an application that may not offer lookup operations to
unauthorized users. false
if lookup methods are not authorized,
true
otherwisemandatory
- This method must be implemented. void useEffectiveProvisionView()
mandatory
- This method is must be implemented. void useAnyEffectiveProvisionView()
mandatory
- This method is must be implemented. ProvisionList getMyProvisions() throws OperationFailedException, PermissionDeniedException
ProvisionList
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. QueueList getMyQueues() throws OperationFailedException, PermissionDeniedException
Queue
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. RequestList getMyRequests() throws OperationFailedException, PermissionDeniedException
Request
listOperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.