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

org.ow2.bonita.persistence.WebDbSession Maven / Gradle / Ivy

The newest version!
/**
 * Copyright (C) 2009  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.persistence;

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

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

/**
 * @author Charles Souillard
 */
public interface WebDbSession extends DbSession {

  void deleteAllCases();
  void deleteCases(Set webCases);
  
  LabelImpl getLabel(String ownerName, String labelName);
  Set getLabels(String ownerName);
  List getSystemLabels(String ownerName);
  List getUserCustomLabels(String ownerName);
  Set getCaseLabels(String ownerName, ProcessInstanceUUID case1);
  Set getCases(ProcessInstanceUUID case_);
  Set getLabels(String ownerName, Set labelsName);
  Set getLabels(Set labelsName);
  Set getLabelsByNameExcept(Set labelNames);
  Set getCases(String ownerName, Set theLabelsName);
  Set getCases(String ownerName, String labelName, Set caseList);
  Set getCases(String ownerName, String labelName);
  Set getCasesUUIDs(String ownerName, String labelName, Set cases);
  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);
  
  int getCasesNumber(String ownerName, String labelName);
  int getCasesNumberWithTwoLabels(String ownerName, String label1Name, String label2Name);
  
  Set  getCases(String ownerName, String labelName, int limit);
  Set  getCasesWithTwoLabels(String ownerName, String label1Name, String label2Name, int limit);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy