Interface ProfileEntryEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ProfileEntryEnablers to
ProfileEntries . A ProfileEntry with multiple
ProfileEntryEnablers means any positive rule evaluation across the
enablers result in an effective ProfileEntry .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignProfileEntryEnablerToProfileEntry(Id profileEntryEnablerId, Id profileEntryId) Adds an existingProfileEntryEnablerto aProfileEntry.booleanTests if this user can alter profile entry enabler/profile entry mappings.booleancanAssignProfileEntryEnablerToProfileEntry(Id profileEntryId) Tests if this user can alter profile entry enabler/profile entry mappings.booleanTests if this user can orderProfileEntryEnablers.getAssignableProfileEntryIdsForProfileEntryEnabler(Id profileEntryEnablerId) Gets a list of profile entry in which a specific profile entry enabler can be assigned.Gets theProfileassociated with this session.Gets theProfileIdassociated with this session.voidmoveProfileEntryEnablerAhead(Id profileEntryEnablerId, Id profileEntryId, Id referenceId) Reorders profile entry enablers for a profile entry by moving the specified profile entry enabler in front of a reference profile entry enabler.voidmoveProfileEntryEnablerBehind(Id profileEntryEnablerId, Id profileEntryId, Id referenceId) Reorders profile entry enablers for a profile entry by moving the specified profile entry enabler behind a reference profile entry enabler.voidorderProfileEntryEnablers(Id[] profileEntryEnablerIds, Id profileEntryId) Reorders a set of profile entry enablers for a profile entry.voidunassignProfileEntryEnablerFromProfileEntry(Id profileEntryEnablerId, Id profileEntryId) Removes aProfileEntryEnablerfrom aProfileEntry.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
-
getProfileId
Id getProfileId()Gets theProfileIdassociated with this session.- Returns:
- the
Profile Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getProfile
Gets theProfileassociated with this session.- Returns:
- the profile
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignProfileEntryEnablers
boolean canAssignProfileEntryEnablers()Tests if this user can alter profile entry enabler/profile entry mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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 mapping is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
canAssignProfileEntryEnablerToProfileEntry
Tests if this user can alter profile entry enabler/profile entry mappings. A return of true does not guarantee successful authorization. A return of false indicates that it is known mapping 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.- Parameters:
profileEntryId- theIdof theProfileEntry- Returns:
falseif mapping is not authorized,trueotherwise- Throws:
NullArgumentException-profileEntryIdisnull- Compliance:
mandatory- This method must be implemented.
-
getAssignableProfileEntryIdsForProfileEntryEnabler
IdList getAssignableProfileEntryIdsForProfileEntryEnabler(Id profileEntryEnablerId) throws OperationFailedException Gets a list of profile entry in which a specific profile entry enabler can be assigned.- Parameters:
profileEntryEnablerId- theIdof theProfileEntryEnabler- Returns:
- list of assignable profile entry
Ids - Throws:
NullArgumentException-profileEntryEnablerIdisnullOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
assignProfileEntryEnablerToProfileEntry
void assignProfileEntryEnablerToProfileEntry(Id profileEntryEnablerId, Id profileEntryId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingProfileEntryEnablerto aProfileEntry.- Parameters:
profileEntryEnablerId- theIdof theProfileEntryEnablerprofileEntryId- theIdof theProfileEntry- Throws:
AlreadyExistsException-profileEntryEnablerIdis already applied toprofileEntryIdNotFoundException-profileEntryEnablerIdorprofileEntryIdnot foundNullArgumentException-profileEntryEnablerIdorprofileEntryIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignProfileEntryEnablerFromProfileEntry
void unassignProfileEntryEnablerFromProfileEntry(Id profileEntryEnablerId, Id profileEntryId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aProfileEntryEnablerfrom aProfileEntry.- Parameters:
profileEntryEnablerId- theIdof theProfileEntryEnablerprofileEntryId- theIdof theProfileEntry- Throws:
NotFoundException-profileEntryEnablerIdorprofileEntryIdnot found or profileEntryEnablerId not applied toprofileEntryIdNullArgumentException-profileEntryEnablerIdorprofileEntryIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceProfileEntryEnablers
boolean canSequenceProfileEntryEnablers()Tests if this user can orderProfileEntryEnablers. A return of true does not guarantee successful authorization. A return of false indicates that it is known sequencing operations will result in aPERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer sequencing operations to an unauthorized user.- Returns:
falseifProfileEntryEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveProfileEntryEnablerAhead
void moveProfileEntryEnablerAhead(Id profileEntryEnablerId, Id profileEntryId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders profile entry enablers for a profile entry by moving the specified profile entry enabler in front of a reference profile entry enabler.- Parameters:
profileEntryEnablerId- theIdof aProfileEntryEnablerprofileEntryId- theIdof aProfileEntryreferenceId- the reference profile entry enablerId- Throws:
NotFoundException-profileEntryEnablerId, profileEntryId, orreferenceIdnot found or,profileEntryEnablerIdorreferenceIdnot related toprofileEntryIdNullArgumentException-profileEntryEnablerId, profileEntryId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveProfileEntryEnablerBehind
void moveProfileEntryEnablerBehind(Id profileEntryEnablerId, Id profileEntryId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders profile entry enablers for a profile entry by moving the specified profile entry enabler behind a reference profile entry enabler.- Parameters:
profileEntryEnablerId- theIdof aProfileEntryEnablerprofileEntryId- theIdof aProfileEntryreferenceId- the reference profile entry enablerId- Throws:
NotFoundException-profileEntryEnablerId, profileEntryId, orreferenceIdnot found or,profileEntryEnablerIdorreferenceIdnot related toprofileEntryIdNullArgumentException-profileEntryEnablerId, profileEntryId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderProfileEntryEnablers
void orderProfileEntryEnablers(Id[] profileEntryEnablerIds, Id profileEntryId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of profile entry enablers for a profile entry.- Parameters:
profileEntryEnablerIds- theIdsfor a set ofProfileEntryEnablersprofileEntryId- theIdof aProfileEntry- Throws:
NotFoundException-profileEntryIdnot found or, anprofileEntryEnablerIdnot related toprofileEntryIdNullArgumentException-profileEntryEnablerIdsorprofileEntryIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-