|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntitlementService
Method Summary | |
---|---|
Entitlement |
addEntitlement(Entitlement entitlement) Populates entitlement list table with one new entitlement |
java.util.List |
addEntitlements(java.util.List entitlements) Adds records for Entitlements using multiple value objects for Entitlement |
boolean |
deleteEntitlement(long entitlementKey) Soft Deletes entitlement list row from entitlement list table by marking valid as 0 in the list of entitlements. |
void |
deleteEntitlements(long[] entitlementKeys) Deletes records of Entitlements using multiple value-objects of Entitlement |
Entitlement |
findEntitlement(long entitlementKey) Gets entitlement details for an entitlement from the ENT_LIST by entitlement key. |
Entitlement |
findEntitlement(long entitlementKey, OperationContext operationContext) Gets entitlement details for an entitlement from the ENT_LIST by entitlement key. |
java.util.List |
findEntitlements(SearchCriteria criteria, java.util.HashMap configParams) Searches for entitlements matching the specified SearchCriteria . |
Entitlement |
updateEntitlement(Entitlement entitlement) Updates entitlement list table with the given entitlement |
java.util.List |
updateEntitlements(java.util.List entitlements) Modifies records for Entitlements using multiple value-objects for Entitlement |
Method Detail |
---|
Entitlement addEntitlement(Entitlement entitlement) throws ITResourceNotFoundException, ObjectNotFoundException, DuplicateEntitlementException, GenericEntitlementServiceException, FormFieldNotFoundException, LookupValueNotFoundException, FormNotFoundException, AccessDeniedException
entitlement
- entitlement value object that contains all the required attribtuesITResourceNotFoundException
- if ITResource Key present in Entitlement VO does not exist.ObjectNotFoundException
- if Object Key present in Entitlement VO does not existDuplicateEntitlementException
- if the entitlement already existsGenericEntitlementServiceException
- if errors occur while saving the dataFormFieldNotFoundException
- if Form Field key present in Entitlement VO does not existLookupValueNotFoundException
- if Lookup Value key present in Entitlement VO does not existFormNotFoundException
- if Form Key present in Entitlement VO does not existAccessDeniedException
- if there are authorization failures while adding entitlementEntitlement updateEntitlement(Entitlement entitlement) throws EntitlementNotFoundException, GenericEntitlementServiceException, AccessDeniedException
entitlement
- entitlement value object that the key and the attribtues of the entitlement that needs to be updatedEntitlementNotFoundException
- if the entitlement does not existGenericEntitlementServiceException
- if errors occur while saving the dataAccessDeniedException
- if there are authorization failures while updating entitlementboolean deleteEntitlement(long entitlementKey) throws GenericEntitlementServiceException, AccessDeniedException
entitlementKey
- the primary key of ent_list table (ent_list_key)GenericEntitlementServiceException
- if errors occur while saving the dataAccessDeniedException
- if there are authorization failures while deleting entitlementEntitlement findEntitlement(long entitlementKey, OperationContext operationContext) throws GenericEntitlementServiceException, EntitlementNotFoundException
entitlementKey
- the primary key of ent_list table ent_list_keyoperationContext
- the object extracted from requestContext in approval scenarioGenericEntitlementServiceException
- if errors occur while retrieving the dataAccessDeniedException
- if there are authorization failures while finding entitlementEntitlementNotFoundException
Entitlement findEntitlement(long entitlementKey) throws GenericEntitlementServiceException, EntitlementNotFoundException
entitlementKey
- the primary key of ent_list table ent_list_keyGenericEntitlementServiceException
- if errors occur while retrieving the dataAccessDeniedException
- if there are authorization failures while finding entitlementEntitlementNotFoundException
java.util.List findEntitlements(SearchCriteria criteria, java.util.HashMap configParams) throws GenericEntitlementServiceException
SearchCriteria
.criteria
- The search criteria based on which entries will be retrieved from the backend. The SearchCriteria Operators supported are AND, OR, NOT, GREATER_THAN, GREATER_EQUAL, LESS_THAN, LESS_EQUAL, EQUAL and NOT_EQUAL. For additional comparisons like contains the SearchCriteria Operator will be EQUAL with value to be searched will be '*<value>*'configParams
- Parameters to further configure the search operation. There are four configuration parameters. STARTROW, ENDROW, SORTEDBY and SORTORDER.
The STARTROW and ENDROW search configuration parameters indicates which subset of the complete search result is to be fetched. These parameters are mandatory.
The SORTEDBY search configuration parameter indicates the attribute on which search result is to be sorted. This parameter is optional
The SORTORDER search configuration parameter indicates the order of sorting. There are two possible values for this parameter. To sort the result in ascending order use SortOrder.ASCENDING and to sort the result in descending order use SortOrder.DESCENDING.
GenericEntitlementServiceException
- if errors occurjava.util.List addEntitlements(java.util.List entitlements) throws BulkException
entitlements
- The list of Entitlement value objectsBulkException
- if errors occur while adding the list of entitlement value objectsAccessDeniedException
- if there are authorization failures while adding entitlementsjava.util.List updateEntitlements(java.util.List entitlements) throws BulkException
entitlements
- The list of Entitlement value objectsBulkException
- thrown if errors occur while adding the list of entitlement value objectsAccessDeniedException
- if there are authorization failures while updating entitlementsvoid deleteEntitlements(long[] entitlementKeys) throws BulkException
entiltementKeys
- The array of entitlement keysBulkException
- if errors occur while adding the list of entitlement value objectsAccessDeniedException
- if there are authorization failures while deleting entitlements
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |