Interface ContactEnablerRuleApplicationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods to apply ContactEnablers to
Contacts . A Contact with multiple ContactEnablers
means any positive rule evaluation across the enablers result in an
effective Contact .
-
Method Summary
Modifier and TypeMethodDescriptionvoidassignContactEnablerToContact(Id contactEnablerId, Id contactId) Adds an existingContactEnablerto aContact.booleanTests if this user can alter contact enabler/contact mappings.booleanTests if this user can orderContactEnablers.Gets theAddressBookassociated with this session.Gets theAddressBookIdassociated with this session.voidmoveContactEnablerAhead(Id contactEnablerId, Id contactId, Id referenceId) Reorders contact enablers for a contact by moving the specified contact enabler in front of a reference contact enabler.voidmoveContactEnablerBehind(Id contactEnablerId, Id contactId, Id referenceId) Reorders contact enablers for a contact by moving the specified contact enabler behind a reference contact enabler.voidorderContactEnablers(Id[] contactEnablerId, Id contactId) Reorders a set of contact enablers for a contact.voidunassignContactEnablerFromContact(Id contactEnablerId, Id contactId) Removes aContactEnablerfrom aContact.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
-
getAddressBookId
Id getAddressBookId()Gets theAddressBookIdassociated with this session.- Returns:
- the
AddressBook Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getAddressBook
Gets theAddressBookassociated with this session.- Returns:
- the address book
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canAssignContactEnablers
boolean canAssignContactEnablers()Tests if this user can alter contact enabler/contact 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.
-
assignContactEnablerToContact
void assignContactEnablerToContact(Id contactEnablerId, Id contactId) throws AlreadyExistsException, NotFoundException, OperationFailedException, PermissionDeniedException Adds an existingContactEnablerto aContact.- Parameters:
contactEnablerId- theIdof theContactEnablercontactId- theIdof theContact- Throws:
AlreadyExistsException-contactEnablerIdis already applied tocontactIdNotFoundException-contactEnablerIdorcontactIdnot foundNullArgumentException-contactEnablerIdorcontactIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
unassignContactEnablerFromContact
void unassignContactEnablerFromContact(Id contactEnablerId, Id contactId) throws NotFoundException, OperationFailedException, PermissionDeniedException Removes aContactEnablerfrom aContact.- Parameters:
contactEnablerId- theIdof theContactEnablercontactId- theIdof theContact- Throws:
NotFoundException-contactEnablerIdorcontactIdnot found orcontactEnablerIdis not applied tocontactIdNullArgumentException-contactEnablerIdorcontactIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canSequenceContactEnablers
boolean canSequenceContactEnablers()Tests if this user can orderContactEnablers. 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:
falseifContactEnablerordering is not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
moveContactEnablerAhead
void moveContactEnablerAhead(Id contactEnablerId, Id contactId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders contact enablers for a contact by moving the specified contact enabler in front of a reference contact enabler.- Parameters:
contactEnablerId- theIdof aContactEnablercontactId- theIdof aContactreferenceId- the reference contact enablerId- Throws:
NotFoundException-contactEnabelrId, contactId, orreferenceIdnot found or,contactEnablerIdorreferenceIdnot related tocontactIdNullArgumentException-contactEnablerId, contactId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
moveContactEnablerBehind
void moveContactEnablerBehind(Id contactEnablerId, Id contactId, Id referenceId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders contact enablers for a contact by moving the specified contact enabler behind a reference contact enabler.- Parameters:
contactEnablerId- theIdof aContactEnablercontactId- theIdof aContactreferenceId- the reference contact enablerId- Throws:
NotFoundException-contactEnabelrId, contactId, orreferenceIdnot found or,contactEnablerIdorreferenceIdnot related tocontactIdNullArgumentException-contactEnablerId, contactId, orreferenceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
orderContactEnablers
void orderContactEnablers(Id[] contactEnablerId, Id contactId) throws NotFoundException, OperationFailedException, PermissionDeniedException Reorders a set of contact enablers for a contact.- Parameters:
contactEnablerId- theIdsfor a set ofContactEnablerscontactId- theIdof aContact- Throws:
NotFoundException-contactIdnot found or, acontactEnablerIdnot related tocontactIdNullArgumentException-contactEnablerIdsorcontactIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-