License History Provider
One answer
We found something strange... Repository stores first license assignment. Scenario:
- Assign license
- Remove license
- Assign license
- Query license assignment as:
LicenseAssignmentQueryModel queryModel = LicenseAssignmentQueryModel.ROOT;
IItemQuery itemQuery = IItemQuery.FACTORY.newInstance(queryModel);
IPredicate predicate = queryModel.contributor()._eq(itemQuery.newItemHandleArg());
itemQuery.filter(predicate);
List<IItemHandle> items = queryService.queryItems(itemQuery, new Object[]{ contributorH }, IQueryService.ITEM_QUERY_MAX_PAGE_SIZE).getItemHandles();
Query results will contain details from first assignment (pt. 1) not the last one (pt. 3) e.g., modified and modifiedBy fields.
Sadly, you cannot obtain this details at pt. 2 via API even if data are present on database.
Looking for some hints from RTC Devs...
Cheers.