public class RemoteProcessGroupEntityMerger extends java.lang.Object implements ComponentEntityMerger<RemoteProcessGroupEntity>, ComponentEntityStatusMerger<RemoteProcessGroupStatusDTO>
| Constructor and Description |
|---|
RemoteProcessGroupEntityMerger() |
| Modifier and Type | Method and Description |
|---|---|
void |
merge(RemoteProcessGroupEntity clientEntity,
java.util.Map<NodeIdentifier,RemoteProcessGroupEntity> entityMap)
Merges the ComponentEntity responses according to their
PermissionsDTOs. |
void |
mergeComponents(RemoteProcessGroupEntity clientEntity,
java.util.Map<NodeIdentifier,RemoteProcessGroupEntity> entityMap)
Merges the RemoteProcessGroupEntity responses.
|
void |
mergeStatus(RemoteProcessGroupStatusDTO clientStatus,
boolean clientStatusReadablePermission,
RemoteProcessGroupStatusDTO status,
boolean statusReadablePermission,
NodeIdentifier statusNodeIdentifier)
Merges status into clientStatus based on the given permissions.
|
public void merge(RemoteProcessGroupEntity clientEntity, java.util.Map<NodeIdentifier,RemoteProcessGroupEntity> entityMap)
ComponentEntityMergerPermissionsDTOs. Responsible for invoking
ComponentEntityMerger#mergeComponents(EntityType, Map).merge in interface ComponentEntityMerger<RemoteProcessGroupEntity>clientEntity - the entity being returned to the cliententityMap - all node responsespublic void mergeComponents(RemoteProcessGroupEntity clientEntity, java.util.Map<NodeIdentifier,RemoteProcessGroupEntity> entityMap)
mergeComponents in interface ComponentEntityMerger<RemoteProcessGroupEntity>clientEntity - the entity being returned to the cliententityMap - all node responsespublic void mergeStatus(RemoteProcessGroupStatusDTO clientStatus, boolean clientStatusReadablePermission, RemoteProcessGroupStatusDTO status, boolean statusReadablePermission, NodeIdentifier statusNodeIdentifier)
ComponentEntityStatusMergermergeStatus in interface ComponentEntityStatusMerger<RemoteProcessGroupStatusDTO>clientStatus - The status that will be returned to the client after mergingclientStatusReadablePermission - The read permission of the status that will be returned to the client after mergingstatus - The status to be merged into the client statusstatusReadablePermission - The read permission of the status to be merged into the client statusstatusNodeIdentifier - The NodeIdentifier of the node from which status was received