@Override public String toString() { StringBuilder str = new StringBuilder(); return str.append(getClass().getSimpleName()).append(":[" ).append("id='").append(getId() ).append("', destination='").append(super.getDestination() ).append("', type='").append(super.getType() ).append("', facility='").append(getFacility() ).append("', service='").append(getService() ).append("']").toString(); } }
@Override public String serializeToString() { StringBuilder str = new StringBuilder(); return str.append(this.getClass().getSimpleName()).append(":[").append( "id=<").append(getId()).append(">").append( ", destination=<").append(getDestination() == null ? "\\0" : BeansUtils.createEscaping(getDestination())).append(">").append( ", type=<").append(getType() == null ? "\\0" : BeansUtils.createEscaping(getType())).append(">").append( ", propagationtype=<").append(getPropagationType() == null ? "\\0" : BeansUtils.createEscaping(getPropagationType())).append(">").append( ']').toString(); }
@Override public String serializeToString() { StringBuilder str = new StringBuilder(); return str.append(this.getClass().getSimpleName()).append(":[").append( "id=<").append(getId()).append(">").append( ", destination=<").append(super.getDestination() == null ? "\\0" : BeansUtils.createEscaping(super.getDestination())).append(">").append( ", type=<").append(super.getType() == null ? "\\0" : BeansUtils.createEscaping(super.getType())).append(">").append( ", facility=<").append(getFacility() == null ? "\\0" : getFacility().serializeToString()).append(">").append( ", service=<").append(getService() == null ? "\\0" : getService().serializeToString()).append(">").append( ']').toString(); }
public static Destination addDestination(RpcCaller rpcCaller, Service service, Facility facility, Destination destination) throws PrivilegeException, InternalErrorException, ServiceNotExistsException, FacilityNotExistsException, DestinationAlreadyAssignedException { Map<String, Object> params = new HashMap<String, Object>(); params.put("service", service.getId()); params.put("facility", facility.getId()); params.put("destination", destination.getDestination()); params.put("type", destination.getType()); try { return rpcCaller.call("servicesManager", "addDestination", params).read(Destination.class); } catch (DestinationAlreadyAssignedException e) { throw e; } catch (FacilityNotExistsException e) { throw e; } catch (ServiceNotExistsException e) { throw e; } catch (PrivilegeException e) { throw e; } catch (InternalErrorException e) { throw e; } catch (PerunException e) { throw new ConsistencyErrorException(e); } }
public RichDestination(Destination destination, Facility facility, Service service) { super(destination.getId(), destination.getDestination(), destination.getType(), destination.getCreatedAt(), destination.getCreatedBy(), destination.getModifiedAt(), destination.getModifiedBy(), destination.getCreatedByUid(), destination.getModifiedByUid()); setPropagationType(destination.getPropagationType()); this.service = service; this.facility = facility; }
task.getFacility().getName(), sendTask.getDestination().getDestination(), sendTask.getDestination().getType() );