String serverKey = clientServerMappings.get(Operation.OPERATION_ID).getServerKeyName();
OperationId opId = getOperationId( serverKeyValues.get(serverKey) );
serverKey = clientServerMappings.get(Operation.OPERATION_NAME).getServerKeyName();
String sName = serverKeyValues.get(serverKey);
Operation operation = new Operation(opId, sName);
serverKey = clientServerMappings.get(Operation.SCHEDULE).getServerKeyName();
ScheduleId scheduleId = ScheduleFactory.getScheduleId(serverKeyValues.get(serverKey));
if ( scheduleId != null )
operation.setScheduleId(scheduleId);
Map<String, ServerPropertyKey> serverClientMappings = ClientServerDeployKeyMappings.getServerClientKeyMappings(EntityType.Operation);
for( String key : serverKeyValues.getKeys() ) {
ServerPropertyKey propKey = serverClientMappings.get(key);
if ( propKey != null ) {
String clientKey = propKey.getClientKeyName();
operation.setStringProperty(clientKey, serverKeyValues.get(key));
}
}
return operation;
}