Search in sources :

Example 6 with Deployment

use of org.alfresco.rest.workflow.api.model.Deployment in project alfresco-remote-api by Alfresco.

the class DeploymentParser method parseEntry.

@Override
public Deployment parseEntry(JSONObject entry) {
    Deployment deployment = new Deployment();
    deployment.setId((String) entry.get("id"));
    deployment.setName((String) entry.get("name"));
    deployment.setDeployedAt(WorkflowApiClient.parseDate(entry, "deployedAt"));
    return deployment;
}
Also used : Deployment(org.alfresco.rest.workflow.api.model.Deployment)

Aggregations

Deployment (org.alfresco.rest.workflow.api.model.Deployment)6 RequestContext (org.alfresco.rest.api.tests.client.RequestContext)3 DeploymentsClient (org.alfresco.rest.workflow.api.tests.WorkflowApiClient.DeploymentsClient)3 Test (org.junit.Test)3 DeploymentQuery (org.activiti.engine.repository.DeploymentQuery)2 PermissionDeniedException (org.alfresco.rest.framework.core.exceptions.PermissionDeniedException)2 ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 ActivitiException (org.activiti.engine.ActivitiException)1 RepositoryService (org.activiti.engine.RepositoryService)1 RetryingTransactionHelper (org.alfresco.repo.transaction.RetryingTransactionHelper)1 TestNetwork (org.alfresco.rest.api.tests.RepoService.TestNetwork)1 PublicApiException (org.alfresco.rest.api.tests.client.PublicApiException)1 EntityNotFoundException (org.alfresco.rest.framework.core.exceptions.EntityNotFoundException)1 InvalidArgumentException (org.alfresco.rest.framework.core.exceptions.InvalidArgumentException)1 JSONObject (org.json.simple.JSONObject)1