private Map<String, Revision> mapDtoToRevision(final Map<String, RevisionDTO> revisionMap) { final Map<String, Revision> revisions = new HashMap<>(revisionMap.size()); for (final Map.Entry<String, RevisionDTO> entry : revisionMap.entrySet()) { final RevisionDTO revisionDto = entry.getValue(); final Revision revision = new Revision(revisionDto.getVersion(), revisionDto.getClientId(), entry.getKey()); revisions.put(entry.getKey(), revision); } return revisions; }
/** * Converts a Revision DTO and an associated Component ID into a Revision object * * @param revisionDto the Revision DTO * @param componentId the ID of the component that the Revision DTO belongs to * @return a Revision that has the same client ID and Version as the Revision DTO and the Component ID specified */ protected Revision getRevision(final RevisionDTO revisionDto, final String componentId) { return new Revision(revisionDto.getVersion(), revisionDto.getClientId(), componentId); }
.collect(Collectors.toMap(Map.Entry::getKey, e -> { final RevisionDTO rev = e.getValue(); return new Revision(rev.getVersion(), rev.getClientId(), e.getKey()); })); final Set<Revision> requestRevisions = new HashSet<>(requestReferencingRevisions.values()); .collect(Collectors.toMap(Map.Entry::getKey, e -> { final RevisionDTO rev = e.getValue(); return new Revision(rev.getVersion(), rev.getClientId(), e.getKey()); }));
final Revision groupRevision = new Revision(revisionDto.getVersion(), revisionDto.getClientId(), groupId); return withWriteLock( serviceFacade,
final Revision groupRevision = new Revision(revisionDto.getVersion(), revisionDto.getClientId(), groupId); return withWriteLock( serviceFacade,
Revision revision = new Revision(revisionDTO.getVersion(), revisionDTO.getClientId(), userEntity.getComponent().getId());
Revision revision = new Revision(revisionDTO.getVersion(), revisionDTO.getClientId(), userGroupEntity.getComponent().getId());
Revision revision = new Revision(revisionDTO.getVersion(), revisionDTO.getClientId(), accessPolicyEntity.getComponent().getId());
final RevisionDTO revisionDto = entity.getRevision(); final String newGroupId = entity.getComponent().getId(); final Revision newGroupRevision = new Revision(revisionDto.getVersion(), revisionDto.getClientId(), newGroupId);