Class ModelingContextSteps<M>
- java.lang.Object
-
- org.activiti.cloud.acc.modeling.steps.ModelingContextSteps<M>
-
- Direct Known Subclasses:
ModelingModelsSteps,ModelingProjectsSteps
public abstract class ModelingContextSteps<M> extends java.lang.ObjectModeling context steps
-
-
Field Summary
Fields Modifier and Type Field Description protected ModelingContextHandlermodelingContextHandler
-
Constructor Summary
Constructors Constructor Description ModelingContextSteps()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected org.springframework.hateoas.Resource<M>checkAndGetCurrentContext(java.lang.Class<M> expectedCurrentContextClass)voidcheckExists(ModelingIdentifier<M> identifier)voidcheckExistsInCurrentContext(ModelingIdentifier<M> identifier)protected org.springframework.hateoas.Resource<M>create(M m)protected java.lang.StringcutQueryParams(java.lang.String uri)voiddeleteAll(ModelingIdentifier<M> identifier)protected org.springframework.hateoas.Resource<M>dirty(org.springframework.hateoas.Resource<M> resource)booleanexists(ModelingIdentifier<M> identifier)protected booleanexistsInCollection(ModelingIdentifier<M> identifier, java.util.Collection<org.springframework.hateoas.Resource<M>> modelingObjects)booleanexistsInCurrentContext(ModelingIdentifier<M> identifier)protected org.springframework.hateoas.PagedResources<org.springframework.hateoas.Resource<M>>findAll()protected org.springframework.hateoas.PagedResources<org.springframework.hateoas.Resource<M>>findAllByUri(java.lang.String uri)protected org.springframework.hateoas.Resource<M>findByUri(java.lang.String uri)protected java.util.Collection<org.springframework.hateoas.Resource<M>>getAvailableModelingObjects()org.activiti.cloud.modeling.api.ModelTypegetModelType(java.lang.String modelType)protected abstract java.util.Optional<java.lang.String>getRel()protected java.util.Optional<java.lang.String>getRelUri(org.springframework.hateoas.Resource<?> resource)protected java.lang.StringmodelingUri(java.lang.String uri)voidopenModelingObject(ModelingIdentifier<M> identifier)abstract <S extends org.activiti.cloud.acc.shared.rest.feign.FeignRestDataClient<S,M>>
Sservice()protected org.activiti.cloud.services.common.file.FileContenttoFileContent(feign.Response response)protected voidupdateCurrentModelingObject()
-
-
-
Field Detail
-
modelingContextHandler
@Autowired protected ModelingContextHandler modelingContextHandler
-
-
Method Detail
-
checkExists
public void checkExists(ModelingIdentifier<M> identifier)
-
checkExistsInCurrentContext
public void checkExistsInCurrentContext(ModelingIdentifier<M> identifier)
-
deleteAll
public void deleteAll(ModelingIdentifier<M> identifier)
-
exists
public boolean exists(ModelingIdentifier<M> identifier)
-
getRelUri
protected java.util.Optional<java.lang.String> getRelUri(org.springframework.hateoas.Resource<?> resource)
-
cutQueryParams
protected java.lang.String cutQueryParams(java.lang.String uri)
-
updateCurrentModelingObject
protected void updateCurrentModelingObject()
-
checkAndGetCurrentContext
protected org.springframework.hateoas.Resource<M> checkAndGetCurrentContext(java.lang.Class<M> expectedCurrentContextClass)
-
openModelingObject
public void openModelingObject(ModelingIdentifier<M> identifier)
-
getAvailableModelingObjects
protected java.util.Collection<org.springframework.hateoas.Resource<M>> getAvailableModelingObjects()
-
existsInCurrentContext
public boolean existsInCurrentContext(ModelingIdentifier<M> identifier)
-
existsInCollection
protected boolean existsInCollection(ModelingIdentifier<M> identifier, java.util.Collection<org.springframework.hateoas.Resource<M>> modelingObjects)
-
dirty
protected org.springframework.hateoas.Resource<M> dirty(org.springframework.hateoas.Resource<M> resource)
-
findByUri
protected org.springframework.hateoas.Resource<M> findByUri(java.lang.String uri)
-
findAllByUri
protected org.springframework.hateoas.PagedResources<org.springframework.hateoas.Resource<M>> findAllByUri(java.lang.String uri)
-
findAll
protected org.springframework.hateoas.PagedResources<org.springframework.hateoas.Resource<M>> findAll()
-
toFileContent
protected org.activiti.cloud.services.common.file.FileContent toFileContent(feign.Response response) throws java.io.IOException- Throws:
java.io.IOException
-
modelingUri
protected java.lang.String modelingUri(java.lang.String uri)
-
getModelType
public org.activiti.cloud.modeling.api.ModelType getModelType(java.lang.String modelType)
-
getRel
protected abstract java.util.Optional<java.lang.String> getRel()
-
service
public abstract <S extends org.activiti.cloud.acc.shared.rest.feign.FeignRestDataClient<S,M>> S service()
-
-