|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EntitlementService
EntitlementService
application programming interface provides methods needed to create and manage Entitlement
for both connected and disconnected ApplicationInstance
. We are exposing the following Entitlement Management APIs. These consumers of these APIs will be: - New Application Instance U/I to perform CRUD operations on Entitlements - Request Engine to get further information regarding the Entitlements, including the dataset name. - New U/I My Entitlements screen to display the Entitlements granted to a user - Connectors - Custom Clients, who want to programmatically manage Entitlements
Account
, ApplicationInstance
, Entitlement
, EntitlementInstance
Method Summary | |
---|---|
Entitlement |
addEntitlement(Entitlement entitlement) This API method adds a record for entitlement using Entitlement value-object. |
java.util.List |
addEntitlements(java.util.List entitlements) This API method adds the multiple records of Entitlements using Entitlement |
boolean |
deleteEntitlement(long entitlementKey) This API method soft deletes entitlement from entitlement list (ENT_LIST) table by marking valid as 0 in the list of entitlements. |
void |
deleteEntitlements(long[] entitlementKeys) This API method deletes records of Entitlements using multiple value-objects of Entitlement |
Entitlement |
findEntitlement(long entitlementKey) This API method gets entitlement details for an entitlement from the ENT_LIST by entitlement key. |
Entitlement |
findEntitlement(long entitlementKey, OperationContext operationContext) This API method gets entitlement details for an entitlement from the ENT_LIST by entitlement key. |
java.util.List |
findEntitlements(SearchCriteria criteria, java.util.HashMap configParams) This API method searches for entitlements matching the specified SearchCriteria . |
Entitlement |
updateEntitlement(Entitlement entitlement) This API method updates entitlement list table with the given entitlement |
java.util.List |
updateEntitlements(java.util.List entitlements) This API method 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
value-object.entitlement
- Entitlement
value-object that contains all the required attribtuesEntitlement
value-object that contains the key of the entitlement createdITResourceNotFoundException
- 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 existsFormFieldNotFoundException
- 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 entitlementGenericEntitlementServiceException
- if errors occur while saving the dataEntitlement updateEntitlement(Entitlement entitlement) throws EntitlementNotFoundException, GenericEntitlementServiceException, AccessDeniedException
entitlement
- Entitlement
value-object that the key and the attribtues of the entitlement that needs to be updatedEntitlement
value-object that contains the key of the entitlement updatedEntitlementNotFoundException
- if the entitlement does not existAccessDeniedException
- if there are authorization failures while updating entitlementGenericEntitlementServiceException
- if errors occur while saving the databoolean deleteEntitlement(long entitlementKey) throws GenericEntitlementServiceException, AccessDeniedException
entitlementKey
- the primary key of ent_list table (ent_list_key)AccessDeniedException
- if there are authorization failures while deleting entitlementGenericEntitlementServiceException
- if errors occur while saving the dataEntitlement 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 scenarioEntitlement
value-object with all attributes populatedEntitlementNotFoundException
- if the entitlement does not existGenericEntitlementServiceException
- if errors occur while retrieving the dataEntitlement findEntitlement(long entitlementKey) throws GenericEntitlementServiceException, EntitlementNotFoundException
entitlementKey
- the primary key of ent_list table ent_list_keyEntitlement
value-object with all attributes populatedEntitlementNotFoundException
- if the entitlement does not existGenericEntitlementServiceException
- if errors occur while retrieving the datajava.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 objectsjava.util.List updateEntitlements(java.util.List entitlements) throws BulkException
entitlements
- The list of Entitlement value objectsBulkException
- if errors occur while adding the list of entitlement value objectsvoid deleteEntitlements(long[] entitlementKeys) throws BulkException
entiltementKeys
- The array of entitlement keysBulkException
- if errors occur while adding the list of entitlement value objects
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |