public interface JobConstrainerEnablerRuleLookupSession extends OsidSession
This session provides methods to retrieve JobConstrainerEnabler
to JobConstrainer
mappings. A JobConstrainer
with multiple JobConstrainerEnablers
means any
positive rule evaluation across the enablers result in an effective
JobConstrainer.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupJobConstrainerEnablerRules()
Tests if this user can perform lookups of job constrainer enabler/job
constrainer mappings.
|
Foundry |
getFoundry()
Gets the
Foundry associated with this session. |
Id |
getFoundryId()
Gets the
Foundry Id associated with this
session. |
IdList |
getJobConstrainerEnablerIdsForJobConstrainer(Id jobConstrainerId)
Gets the
JobConstrainerEnabler Id associated with a
JobConstrainer. |
JobConstrainerEnablerList |
getJobConstrainerEnablersForJobConstrainer(Id jobConstrainerId)
Gets the
JobConstrainerEnablers associated with a
JobConstrainer. |
IdList |
getJobConstrainerIdsForJobConstrainerEnabler(Id jobConstrainerEnablerId)
Gets the
JobConstrainer Ids mapped to a
JobConstrainerEnabler. |
JobConstrainerList |
getJobConstrainersForJobConstrainerEnabler(Id jobConstrainerEnablerId)
Gets the
JobConstrainers mapped to a
JobConstrainerEnabler. |
void |
useComparativeJobConstrainerEnablerRuleView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedFoundryView()
Federates the view for methods in this session.
|
void |
useIsolatedFoundryView()
Isolates the view for methods in this session.
|
void |
usePlenaryJobConstrainerEnablerRuleView()
A complete view of the
JobConstrainerEnabler and
JobConstrainer returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getFoundryId()
Foundry
Id
associated with this
session. Foundry Id
associated with this sessionmandatory
- This method must be implemented. Foundry getFoundry() throws OperationFailedException, PermissionDeniedException
Foundry
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupJobConstrainerEnablerRules()
PERMISSION_DENIED.
This is intended as a hint to an application that may opt not
to offer lookup operations to unauthorized users. false
if looking up mappings is not authorized,
true
otherwisemandatory
- This method must be implemented. void useComparativeJobConstrainerEnablerRuleView()
mandatory
- This method is must be implemented. void usePlenaryJobConstrainerEnablerRuleView()
JobConstrainerEnabler
and
JobConstrainer
returns 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.mandatory
- This method is must be implemented. void useFederatedFoundryView()
mandatory
- This method is must be implemented. void useIsolatedFoundryView()
mandatory
- This method is must be implemented. IdList getJobConstrainerEnablerIdsForJobConstrainer(Id jobConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobConstrainerEnabler Id
associated with a
JobConstrainer.
jobConstrainerId
- Id
of the
JobConstrainer
Ids
NotFoundException
- jobConstrainerId
is
not foundNullArgumentException
- jobConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. JobConstrainerEnablerList getJobConstrainerEnablersForJobConstrainer(Id jobConstrainerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobConstrainerEnablers
associated with a
JobConstrainer.
jobConstrainerId
- Id
of the
JobConstrainer
NotFoundException
- jobConstrainerId
is
not foundNullArgumentException
- jobConstrainerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getJobConstrainerIdsForJobConstrainerEnabler(Id jobConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobConstrainer
Ids
mapped to a
JobConstrainerEnabler.
jobConstrainerEnablerId
- Id
of a
JobConstrainerEnabler
Ids
NotFoundException
- jobConstrainerEnablerId
is not foundNullArgumentException
- jobConstrainerEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. JobConstrainerList getJobConstrainersForJobConstrainerEnabler(Id jobConstrainerEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
JobConstrainers
mapped to a
JobConstrainerEnabler.
jobConstrainerEnablerId
- Id
of a
JobConstrainerEnabler
NotFoundException
- jobConstrainerEnablerId
is not foundNullArgumentException
- jobConstrainerEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.