Interface MyWorkSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session defines methods for retrieving work for the resource related to the authenticated agent.
This lookup session defines several views:
- effective work view: All lookup methods return availabilities, efforts and commissions where the current date falls in between the effective dates inclusive.
- any effective work view: Availabilities, efforts and commissions of any effective date are returned from methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performAvailabilitylookups.Gets theFoundryassociated with this session.Gets theFoundryIdassociated with this session.Gets the availabilities for the resource related to this agent.Gets the commissions for the resource related to this agent.Gets the efforts for the resource related to this agent.Gets the jobs for the resource related to this agent.voidAll availabilities, commissions and efforts of any effective dates are returned by methods in this session.voidOnly availabilities, commissions and efforts whose effective dates are current are returned by methods in this session.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
-
getFoundryId
Id getFoundryId()Gets theFoundryIdassociated with this session.- Returns:
- the
Foundry Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getFoundry
Gets theFoundryassociated with this session.- Returns:
- the foundry
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupMyWork
boolean canLookupMyWork()Tests if this user can performAvailabilitylookups. 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 not offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useEffectiveWorkView
void useEffectiveWorkView()Only availabilities, commissions and efforts whose effective dates are current are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
useAnyEffectiveWorkView
void useAnyEffectiveWorkView()All availabilities, commissions and efforts of any effective dates are returned by methods in this session.- Compliance:
mandatory- This method is must be implemented.
-
getMyAvailabilities
Gets the availabilities for the resource related to this agent.- Returns:
- the returned
AvailabilityList - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getMyCommissions
Gets the commissions for the resource related to this agent.- Returns:
- the returned
Commissionlist - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getMyEfforts
Gets the efforts for the resource related to this agent.- Returns:
- the returned
Effortlist - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getMyJobs
Gets the jobs for the resource related to this agent.- Returns:
- the returned
Joblist - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-