org.camunda.bpm.cycle.web.dto
Class RoundtripDTO

java.lang.Object
  extended by org.camunda.bpm.cycle.web.dto.RoundtripDTO

public class RoundtripDTO
extends Object

This is a data object which exposes a Roundtrip to the client via rest. It is needed to ensure clear boundaries between a JPA managed entity (the Roundtrip) and the json serialization mechanism.

Author:
nico.rehwaldt

Constructor Summary
RoundtripDTO()
           
RoundtripDTO(Roundtrip r)
           
RoundtripDTO(Roundtrip r, BpmnDiagram leftHandSide, BpmnDiagram rightHandSide)
           
 
Method Summary
 Long getId()
           
 Date getLastSync()
           
 Roundtrip.SyncMode getLastSyncMode()
           
 BpmnDiagramDTO getLeftHandSide()
           
 String getName()
           
 BpmnDiagramDTO getRightHandSide()
           
 void setId(Long id)
           
 void setLastSync(Date lastSync)
           
 void setLastSyncMode(Roundtrip.SyncMode lastSyncMode)
           
 void setLeftHandSide(BpmnDiagramDTO leftHandSide)
           
 void setName(String name)
           
 void setRightHandSide(BpmnDiagramDTO rightHandSide)
           
static RoundtripDTO wrap(Roundtrip roundtrip)
          Wraps a roundtrip as a data object
static List<RoundtripDTO> wrapAll(List<Roundtrip> trackers)
          Wraps a list of roundtrips as a list of the respective roundtrip data objects
static RoundtripDTO wrapIncludeDiagrams(Roundtrip roundtrip)
          Wraps a roundtrip as a data object including
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundtripDTO

public RoundtripDTO()

RoundtripDTO

public RoundtripDTO(Roundtrip r)

RoundtripDTO

public RoundtripDTO(Roundtrip r,
                    BpmnDiagram leftHandSide,
                    BpmnDiagram rightHandSide)
Method Detail

getId

public Long getId()
Returns:
the id

setId

public void setId(Long id)

getName

public String getName()
Returns:
the name

setName

public void setName(String name)

getLastSync

public Date getLastSync()

setLastSync

public void setLastSync(Date lastSync)

getLeftHandSide

public BpmnDiagramDTO getLeftHandSide()

setLeftHandSide

public void setLeftHandSide(BpmnDiagramDTO leftHandSide)

getRightHandSide

public BpmnDiagramDTO getRightHandSide()

setRightHandSide

public void setRightHandSide(BpmnDiagramDTO rightHandSide)

wrap

public static RoundtripDTO wrap(Roundtrip roundtrip)
Wraps a roundtrip as a data object

Parameters:
roundtrip -
Returns:

wrapIncludeDiagrams

public static RoundtripDTO wrapIncludeDiagrams(Roundtrip roundtrip)
Wraps a roundtrip as a data object including

Parameters:
roundtrip -
Returns:

wrapAll

public static List<RoundtripDTO> wrapAll(List<Roundtrip> trackers)
Wraps a list of roundtrips as a list of the respective roundtrip data objects

Parameters:
trackers -
Returns:

getLastSyncMode

public Roundtrip.SyncMode getLastSyncMode()

setLastSyncMode

public void setLastSyncMode(Roundtrip.SyncMode lastSyncMode)


Copyright © 2014 camunda services GmbH. All rights reserved.