All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.ow2.bonita.services.WebService Maven / Gradle / Ivy

/**
 * Copyright (C) 2010  BonitaSoft S.A.
 * BonitaSoft, 31 rue Gustave Eiffel - 38000 Grenoble
 * This library is free software; you can redistribute it and/or modify it under the terms
 * of the GNU Lesser General Public License as published by the Free Software Foundation
 * version 2.1 of the License.
 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 * You should have received a copy of the GNU Lesser General Public License along with this
 * program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
 * Floor, Boston, MA  02110-1301, USA.
 **/
package org.ow2.bonita.services;

import java.util.List;
import java.util.Set;

import org.ow2.bonita.facade.runtime.Category;
import org.ow2.bonita.facade.runtime.impl.CaseImpl;
import org.ow2.bonita.facade.runtime.impl.LabelImpl;
import org.ow2.bonita.facade.uuid.ProcessInstanceUUID;

public interface WebService {

  void addLabel(LabelImpl label);
  void removeLabel(String ownerName, String labelName);
  void addCase(CaseImpl case_);
  void removeCase(ProcessInstanceUUID caseUUID, String ownerName, String labelName);
  void removeCase(ProcessInstanceUUID case_);
  void removeCasesFromLabel(String ownerName, String labelName, Set caseList);
  void updateLabelName(String ownerName, String labelName, String newName);
  void deleteAllCases();
  void deleteCases(Set webCases);
  void removeCase(CaseImpl case_);
  
  void removeCategories(Set categories);
  
  int getCasesNumber(String ownerName, String labelName);
  int getCasesNumber(String ownerName, String label1Name, String label2Name);
  Set getCases(String ownerName, String labelName, int limit);
  Set getCases(String ownerName, String label1Name, String label2Name, int limit);
  
  LabelImpl getLabel(String ownerName, String labelName);
  Set getLabels(String ownerName);
  List getSystemLabels(String ownerName);
  List getUserCustomLabels(String ownerName);
  Set getCaseLabels(String ownerName, ProcessInstanceUUID case_);
  Set getLabels(String ownerName, Set labelsName);
  Set getLabelsByNameExcept(Set labelNames);
  Set getLabelsByName(Set labelNames);
  
  Set getCases(String ownerName, Set theLabelsName);
  Set getAllCases();
  Set getCases(Set caseUUIDs);
  CaseImpl getCase(ProcessInstanceUUID caseUUID, String ownerName, String labelName);
  List getLabelsCaseUUIDs(String ownerName, Set labelNames, int fromIndex, int pageSize);
  Set getLabelCases(String labelName, Set caseUUIDs);
  Set getLabelCases(String ownerName, Set labelNames, Set caseUUIDs);



  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy