/** * Retrieves the groupDetails from the given GroupDefinition * * @param domain * @param groupDefId the id of the group-definition * @return */ protected GroupDetails retrieveGroupDetailsOfDefinitionFromArchive(IdentifierList domain, Long groupDefId) { if (archiveService == null) { // If there's no archive... return null; } //get the group-definitions-body //requirement: 3.9.4.g instances of a group will be referenced by the id of the GroupDefinition-object return (GroupDetails) HelperArchive.getObjectBodyFromArchive(archiveService, GroupHelper.GROUPDEFINITION_OBJECT_TYPE, domain, groupDefId); }
/** * Retrieves the groupDetails of the latest group-definition of the given * group-identity * * @param domain * @param groupIdentityId the id of the group-identity * @return */ protected GroupDetails retrieveGroupDetailsFromArchive(IdentifierList domain, Long groupIdentityId) { if (archiveService == null) { // If there's no archive... return null; } Long latestGroupDefId = retrieveLatestGroupDefinitionIdForIdentityFromArchive(domain, groupIdentityId); if (latestGroupDefId == null) { return null; } //get the group-definitions-body //requirement: 3.9.4.g instances of a group will be referenced by the id of the GroupDefinition-object return (GroupDetails) HelperArchive.getObjectBodyFromArchive(archiveService, GroupHelper.GROUPDEFINITION_OBJECT_TYPE, domain, latestGroupDefId); }
return HelperArchive.getObjectBodyFromArchive(archiveService, objType, domain, defId);
HelperArchive.getObjectBodyFromArchive( comServices.getArchiveService(), obj.getType(), obj.getKey().getDomain(), obj.getKey().getInstId());