org.camunda.bpm.cycle.web.service.resource
Class RoundtripService

java.lang.Object
  extended by org.camunda.bpm.cycle.web.service.AbstractRestService
      extended by org.camunda.bpm.cycle.web.service.resource.RoundtripService

public class RoundtripService
extends AbstractRestService

This is the main roundtrip rest controller which exposes roundtrip list, get, create andupdate methods as well as some utilities to the cycle client application. The arrangement of methods is compatible with angular JS $resource.

Author:
nico.rehwaldt

Constructor Summary
RoundtripService()
           
 
Method Summary
 RoundtripDTO create(long roundtripId, String diagramLabel, Roundtrip.SyncMode syncMode, String modeler, Long connectorId, String parentFolderId, String message)
           
 RoundtripDTO create(RoundtripDTO data)
           
 void delete(long id)
           
 SynchronizationResultDTO doSynchronize(Roundtrip.SyncMode syncMode, long roundtripId, String message)
           
 RoundtripDTO get(long id)
           
 RoundtripDTO getDetails(long id)
           
 boolean isNameAvailable(String name)
           
 List<RoundtripDTO> list()
           
 RoundtripDTO update(RoundtripDTO data)
           
 RoundtripDTO updateDetails(RoundtripDTO data)
           
 
Methods inherited from class org.camunda.bpm.cycle.web.service.AbstractRestService
badRequest, internalServerError, notAllowed, notFound, redirectTo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundtripService

public RoundtripService()
Method Detail

list

public List<RoundtripDTO> list()

get

public RoundtripDTO get(long id)

update

@Transactional
public RoundtripDTO update(RoundtripDTO data)

create

public RoundtripDTO create(RoundtripDTO data)

delete

@Transactional
public void delete(long id)

getDetails

@Transactional
public RoundtripDTO getDetails(long id)

updateDetails

@Transactional
public RoundtripDTO updateDetails(RoundtripDTO data)

isNameAvailable

public boolean isNameAvailable(String name)

doSynchronize

@Transactional
public SynchronizationResultDTO doSynchronize(Roundtrip.SyncMode syncMode,
                                                            long roundtripId,
                                                            String message)

create

@Transactional
public RoundtripDTO create(long roundtripId,
                                         String diagramLabel,
                                         Roundtrip.SyncMode syncMode,
                                         String modeler,
                                         Long connectorId,
                                         String parentFolderId,
                                         String message)


Copyright © 2014 camunda services GmbH. All rights reserved.