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

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

The newest version!
/**
 * 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.persistence;

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

import org.ow2.bonita.facade.privilege.Rule;
import org.ow2.bonita.facade.privilege.RuleTypePolicy;
import org.ow2.bonita.facade.privilege.Rule.RuleType;

/**
 * @author Nicolas Chabanoles
 * 
 */
public interface PrivilegeDbSession extends DbSession {

  Rule getRule(String ruleUUID);

  List getRules();

  List getRules(Collection ruleUUIDs);

  Set getRulesByType(Set ruleTypes);

  @Deprecated
  Set getAllApplicableRules(String entityID);
  @Deprecated
  Set getAllApplicableRules(String entityID, RuleType ruleType);

  List getRules(RuleType ruleType, int fromIndex, int pageSize);

  Set getAllExceptions(String entityID, RuleType ruleType);

  long getNumberOfRules(RuleType ruleType);

  RuleTypePolicy getRuleTypePolicy(RuleType ruleType);

  Rule findRuleByName(String name);

  @Deprecated
  Set findRulesByNames(Set rulesNames);

  List getAllApplicableRules(String userUUID, Collection roleUUIDs, Collection groupUUIDs,
      Collection membershipUUIDs, String entityID);

  List getApplicableRules(RuleType ruleType, String userUUID, Collection roleUUIDs,
      Collection groupUUIDs, Collection membershipUUIDs, String entityID);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy