congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
DecisionDefinitionEntity.getTenantId
Code IndexAdd Tabnine to your IDE (free)

How to use
getTenantId
method
in
org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionDefinitionEntity

Best Java code snippets using org.camunda.bpm.engine.impl.dmn.entity.repository.DecisionDefinitionEntity.getTenantId (Showing top 8 results out of 315)

origin: camunda/camunda-bpm-platform

public void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition) {
 if (decisionDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) {
  throw LOG.exceptionCommandWithUnauthorizedTenant("get the decision definition '"+ decisionDefinition.getId() + "'");
 }
}
origin: camunda/camunda-bpm-platform

public void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition) {
 if (decisionDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) {
  throw LOG.exceptionCommandWithUnauthorizedTenant("get the decision definition '"+ decisionDefinition.getId() + "'");
 }
}
origin: camunda/camunda-bpm-platform

@Override
public void checkUpdateDecisionDefinitionById(String decisionDefinitionId) {
 if (getTenantManager().isTenantCheckEnabled()) {
  DecisionDefinitionEntity decisionDefinition = findLatestDecisionDefinitionById(decisionDefinitionId);
  if (decisionDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) {
   throw LOG.exceptionCommandWithUnauthorizedTenant("update the decision definition '"+ decisionDefinitionId + "'");
  }
 }
}
origin: camunda/camunda-bpm-platform

@Override
public void checkUpdateDecisionDefinitionById(String decisionDefinitionId) {
 if (getTenantManager().isTenantCheckEnabled()) {
  DecisionDefinitionEntity decisionDefinition = findLatestDecisionDefinitionById(decisionDefinitionId);
  if (decisionDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) {
   throw LOG.exceptionCommandWithUnauthorizedTenant("update the decision definition '"+ decisionDefinitionId + "'");
  }
 }
}
origin: camunda/camunda-bpm-platform

@Test
public void getPreviousDecisionDefinitionWithTenantId() {
 testRule.deployForTenant(TENANT_ONE, DMN);
 testRule.deployForTenant(TENANT_ONE, DMN);
 testRule.deployForTenant(TENANT_ONE, DMN);
 testRule.deployForTenant(TENANT_TWO, DMN);
 testRule.deployForTenant(TENANT_TWO, DMN);
 List<DecisionDefinition> latestDefinitions = repositoryService.createDecisionDefinitionQuery()
  .latestVersion()
  .orderByTenantId()
  .asc()
  .list();
 DecisionDefinitionEntity previousDefinitionTenantOne = getPreviousDefinition((DecisionDefinitionEntity) latestDefinitions.get(0));
 DecisionDefinitionEntity previousDefinitionTenantTwo = getPreviousDefinition((DecisionDefinitionEntity) latestDefinitions.get(1));
 assertThat(previousDefinitionTenantOne.getVersion(), is(2));
 assertThat(previousDefinitionTenantOne.getTenantId(), is(TENANT_ONE));
 assertThat(previousDefinitionTenantTwo.getVersion(), is(1));
 assertThat(previousDefinitionTenantTwo.getTenantId(), is(TENANT_TWO));
}
origin: org.camunda.bpm/camunda-engine

public void checkReadDecisionDefinition(DecisionDefinitionEntity decisionDefinition) {
 if (decisionDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) {
  throw LOG.exceptionCommandWithUnauthorizedTenant("get the decision definition '"+ decisionDefinition.getId() + "'");
 }
}
origin: org.camunda.bpm/camunda-engine

@Override
public void checkUpdateDecisionDefinitionById(String decisionDefinitionId) {
 if (getTenantManager().isTenantCheckEnabled()) {
  DecisionDefinitionEntity decisionDefinition = findLatestDecisionDefinitionById(decisionDefinitionId);
  if (decisionDefinition != null && !getTenantManager().isAuthenticatedTenant(decisionDefinition.getTenantId())) {
   throw LOG.exceptionCommandWithUnauthorizedTenant("update the decision definition '"+ decisionDefinitionId + "'");
  }
 }
}
origin: org.camunda.bpm/camunda-engine

@Test
public void getPreviousDecisionDefinitionWithTenantId() {
 testRule.deployForTenant(TENANT_ONE, DMN);
 testRule.deployForTenant(TENANT_ONE, DMN);
 testRule.deployForTenant(TENANT_ONE, DMN);
 testRule.deployForTenant(TENANT_TWO, DMN);
 testRule.deployForTenant(TENANT_TWO, DMN);
 List<DecisionDefinition> latestDefinitions = repositoryService.createDecisionDefinitionQuery()
  .latestVersion()
  .orderByTenantId()
  .asc()
  .list();
 DecisionDefinitionEntity previousDefinitionTenantOne = getPreviousDefinition((DecisionDefinitionEntity) latestDefinitions.get(0));
 DecisionDefinitionEntity previousDefinitionTenantTwo = getPreviousDefinition((DecisionDefinitionEntity) latestDefinitions.get(1));
 assertThat(previousDefinitionTenantOne.getVersion(), is(2));
 assertThat(previousDefinitionTenantOne.getTenantId(), is(TENANT_ONE));
 assertThat(previousDefinitionTenantTwo.getVersion(), is(1));
 assertThat(previousDefinitionTenantTwo.getTenantId(), is(TENANT_TWO));
}
org.camunda.bpm.engine.impl.dmn.entity.repositoryDecisionDefinitionEntitygetTenantId

Popular methods of DecisionDefinitionEntity

  • getPreviousDecisionDefinitionId
  • <init>
  • ensurePreviousDecisionDefinitionIdInitialized
  • getId
  • getKey
  • loadDecisionDefinition
    Returns the cached version if exists; does not update the entity from the database in that case
  • resetPreviousDecisionDefinitionId
  • setCategory
  • setDecisionRequirementsDefinitionId
  • setDecisionRequirementsDefinitionKey
  • setHistoryTimeToLive
  • setVersionTag
  • setHistoryTimeToLive,
  • setVersionTag,
  • getVersion

Popular in Java

  • Start an intent from android
  • getSystemService (Context)
  • putExtra (Intent)
  • addToBackStack (FragmentTransaction)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Top 12 Jupyter Notebook Extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now