public interface ProfileEntryEnablerRuleLookupSession extends OsidSession
This session provides methods to retrieve ProfileEntryEnabler
to ProfileEntry
mappings. A Profile
with multiple ProfileEntryEnablers
means any positive rule
evaluation across the enablers result in an enabled ProfileEntry.
This lookup session defines several views:
Modifier and Type | Method and Description |
---|---|
boolean |
canLookupProfileEntryEnablerRules()
Tests if this user can perform lookups of profile entry
enabler/profile entry mappings.
|
Profile |
getProfile()
Gets the
Profile associated with this session. |
ProfileEntryList |
getProfileEntriesForProfileEntryEnabler(Id profileEntryEnablerId)
Gets the
ProfileEntries mapped to a
ProfileEntryEnabler. |
IdList |
getProfileEntryEnablerIdsForProfileEntry(Id profileEntryId)
Gets the
ProfileEntryEnabler Id associated with a
ProfileEntry. |
ProfileEntryEnablerList |
getProfileEntryEnablersForProfileEntry(Id profileEntryId)
Gets the
ProfileEntryEnabler associated with a
ProfileEntry. |
IdList |
getProfileEntryIdsForProfileEntryEnabler(Id profileEntryEnablerId)
Gets the
ProfileEntry Ids mapped to a
ProfileEntryEnabler. |
Id |
getProfileId()
Gets the
Profile Id associated with this
session. |
void |
useComparativeProfileEntryEnablerRuleView()
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 |
useFederatedProfileView()
Federates the view for methods in this session.
|
void |
useIsolatedProfileView()
Isolates the view for methods in this session.
|
void |
usePlenaryProfileEntryEnablerRuleView()
A complete view of the
ProfileEntryEnabler and
ProfileEntry returns is desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactions
close
Id getProfileId()
Profile
Id
associated with this
session. Profile Id
associated with this sessionmandatory
- This method must be implemented. Profile getProfile() throws OperationFailedException, PermissionDeniedException
Profile
associated with this session.OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. boolean canLookupProfileEntryEnablerRules()
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 useComparativeProfileEntryEnablerRuleView()
mandatory
- This method is must be implemented. void usePlenaryProfileEntryEnablerRuleView()
ProfileEntryEnabler
and
ProfileEntry
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 useFederatedProfileView()
mandatory
- This method is must be implemented. void useIsolatedProfileView()
mandatory
- This method is must be implemented. IdList getProfileEntryEnablerIdsForProfileEntry(Id profileEntryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProfileEntryEnabler Id
associated with a
ProfileEntry.
profileEntryId
- Id
of the ProfileEntry
Ids
NotFoundException
- profileEntryId
is
not foundNullArgumentException
- profileEntryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ProfileEntryEnablerList getProfileEntryEnablersForProfileEntry(Id profileEntryId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProfileEntryEnabler
associated with a
ProfileEntry.
profileEntryId
- Id
of the ProfileEntry
NotFoundException
- profileEntryId
is
not foundNullArgumentException
- profileEntryId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. IdList getProfileEntryIdsForProfileEntryEnabler(Id profileEntryEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProfileEntry
Ids
mapped to a
ProfileEntryEnabler.
profileEntryEnablerId
- Id
of a
ProfileEntryEnabler
Ids
NotFoundException
- profileEntryEnablerId
is not foundNullArgumentException
- profileEntryEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented. ProfileEntryList getProfileEntriesForProfileEntryEnabler(Id profileEntryEnablerId) throws NotFoundException, OperationFailedException, PermissionDeniedException
ProfileEntries
mapped to a
ProfileEntryEnabler.
profileEntryEnablerId
- Id
of a
ProfileEntryEnabler
NotFoundException
- profileEntryEnablerId
is not foundNullArgumentException
- profileEntryEnablerId
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failuremandatory
- This method must be implemented.