|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestDataSetService
Request data set Service is used for managing request data sets. This service allows
Below is the code snippet that shows how to get an instance of this service:
//returns an Request data set service instance
RequestDataSetService reqDataSetService = Platform.getService(RequestDataSetService.class);
// Gets the list of request data sets that are available in the system.
List dataSets = reqDataSetService.getRequestDataSets();
....
Method Summary | |
---|---|
void |
createRequestDataSet(RequestDataSet dataset) The method creates a request data set in the OIM. |
void |
deleteRequestDataSet(java.lang.String requestType, java.lang.String entityName) Removes the existing request data set from the OIM. |
java.util.List |
getRequestDataSets(OIMType entityType, java.lang.String entitySubType) Returns a list of all request data sets matching the given entity type in the system. |
void |
updateRequestDataSet(RequestDataSet dataSet) Updates only the existing request data set in the OIM. |
Method Detail |
---|
void createRequestDataSet(RequestDataSet dataset) throws RequestServiceException
dataset
- - Object representing the request dataset.RequestServiceException
void deleteRequestDataSet(java.lang.String requestType, java.lang.String entityName) throws RequestServiceException
requestType
- Request type.entityName
- resource name for resource based request model/type,otherwise null.RequestServiceException
void updateRequestDataSet(RequestDataSet dataSet) throws RequestServiceException
dataSet
- - Object representing the reqeust dataset.RequestServiceException
java.util.List getRequestDataSets(OIMType entityType, java.lang.String entitySubType) throws RequestServiceException
entityType
- representing the type of the entity form the OIM Type for eg., User, Role or ResourceentitySubType
- representing the name of the entity. For eg., to retrieve all the request data sets belongs to DB resource, the entityType should be Resource and the entity sub type shoudlb be "DB". ProvisionResourceDB is a type of request dataset, where DB is the entity name. To retrieve this request data set, entityType should be passed as "Resource" and second paramaeter entitySubType should contain the value "DB". Eg.,
RequestDataSetService reqDataSetService = (RequestDataSetService)oimClient.getService(RequestDataSetService.class); List <RequestDataSet> sets = reqDataSetService.getRequestDataSets(OIMType.User, null); //the following code retrieves all the request data sets related to entity sub type DB List<RequestDataSet> dbRelatedDataSets = reqDataSetService.getRequestDataSets(OIMType.Resource, "DB");
RequestServiceException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |