Tabnine Logo
AuthorizationManager.checkCamundaAdmin
Code IndexAdd Tabnine to your IDE (free)

How to use
checkCamundaAdmin
method
in
org.camunda.bpm.engine.impl.persistence.entity.AuthorizationManager

Best Java code snippets using org.camunda.bpm.engine.impl.persistence.entity.AuthorizationManager.checkCamundaAdmin (Showing top 20 results out of 315)

origin: camunda/camunda-bpm-platform

 public Set<String> execute(CommandContext commandContext) {
  commandContext.getAuthorizationManager().checkCamundaAdmin();
  Set<String> registeredDeployments = Context.getProcessEngineConfiguration().getRegisteredDeployments();
  return new HashSet<String>(registeredDeployments);
 }
});
origin: camunda/camunda-bpm-platform

 public Set<String> execute(CommandContext commandContext) {
  commandContext.getAuthorizationManager().checkCamundaAdmin();
  Set<String> registeredDeployments = Context.getProcessEngineConfiguration().getRegisteredDeployments();
  return new HashSet<String>(registeredDeployments);
 }
});
origin: camunda/camunda-bpm-platform

public Void execute(CommandContext commandContext) {
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 Context.getProcessEngineConfiguration().getRegisteredDeployments().removeAll(deploymentIds);
 return null;
}
origin: camunda/camunda-bpm-platform

@Override
public Object execute(CommandContext commandContext) {
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 commandContext.getWritableIdentityProvider().unlockUser(userId);
 return null;
}
origin: camunda/camunda-bpm-platform

 public String execute(CommandContext commandContext) {
  commandContext.getAuthorizationManager().checkCamundaAdmin();
  DbSqlSessionFactory dbSqlSessionFactory = (DbSqlSessionFactory) commandContext.getSessionFactories().get(DbSqlSession.class);
  DbSqlSession dbSqlSession = new DbSqlSession(dbSqlSessionFactory, connection, catalog, schema);
  commandContext.getSessions().put(DbSqlSession.class, dbSqlSession);
  dbSqlSession.dbSchemaUpdate();
  return "";
 }
});
origin: camunda/camunda-bpm-platform

 public Map<String,Long> execute(CommandContext commandContext) {
  commandContext.getAuthorizationManager().checkCamundaAdmin();

  return commandContext
   .getTableDataManager()
   .getTableCount();
 }
}
origin: camunda/camunda-bpm-platform

 public Map<String,Long> execute(CommandContext commandContext) {
  commandContext.getAuthorizationManager().checkCamundaAdmin();

  return commandContext
   .getTableDataManager()
   .getTableCount();
 }
}
origin: camunda/camunda-bpm-platform

@Override
public Object execute(CommandContext commandContext) {
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 commandContext.getWritableIdentityProvider().unlockUser(userId);
 return null;
}
origin: camunda/camunda-bpm-platform

 public String execute(CommandContext commandContext) {
  commandContext.getAuthorizationManager().checkCamundaAdmin();
  DbSqlSessionFactory dbSqlSessionFactory = (DbSqlSessionFactory) commandContext.getSessionFactories().get(DbSqlSession.class);
  DbSqlSession dbSqlSession = new DbSqlSession(dbSqlSessionFactory, connection, catalog, schema);
  commandContext.getSessions().put(DbSqlSession.class, dbSqlSession);
  dbSqlSession.dbSchemaUpdate();
  return "";
 }
});
origin: camunda/camunda-bpm-platform

public TablePage execute(CommandContext commandContext) {
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 return commandContext
  .getTableDataManager()
  .getTablePage(this, firstResult, maxResults);
}
origin: camunda/camunda-bpm-platform

public Object execute(CommandContext commandContext) {
 AuthorizationManager authorizationManager = commandContext.getAuthorizationManager();
 authorizationManager.checkCamundaAdmin();
 final PropertyManager propertyManager = commandContext.getPropertyManager();
 PropertyEntity propertyEntity = propertyManager.findPropertyById(name);
 if(propertyEntity != null) {
  propertyManager.delete(propertyEntity);
 }
 return null;
}
origin: camunda/camunda-bpm-platform

public TableMetaData execute(CommandContext commandContext) {
 ensureNotNull("tableName", tableName);
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 return commandContext
  .getTableDataManager()
  .getTableMetaData(tableName);
}
origin: camunda/camunda-bpm-platform

public String execute(CommandContext commandContext) {
 ensureNotNull("entityClass", entityClass);
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 return commandContext
  .getTableDataManager()
  .getTableName(entityClass, true);
}
origin: camunda/camunda-bpm-platform

public ProcessApplicationRegistration execute(CommandContext commandContext) {
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration();
 final ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager();
 return processApplicationManager.registerProcessApplicationForDeployments(deploymentsToRegister, reference);
}
origin: camunda/camunda-bpm-platform

public String execute(CommandContext commandContext) {
 ensureNotNull("entityClass", entityClass);
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 return commandContext
  .getTableDataManager()
  .getTableName(entityClass, true);
}
origin: camunda/camunda-bpm-platform

public Void execute(CommandContext commandContext) {
 Deployment deployment = commandContext.getDeploymentManager().findDeploymentById(deploymentId);
 ensureNotNull("Deployment " + deploymentId + " does not exist", "deployment", deployment);
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 Context.getProcessEngineConfiguration().getRegisteredDeployments().add(deploymentId);
 return null;
}
origin: camunda/camunda-bpm-platform

public Void execute(CommandContext commandContext) {
 if(deploymentIds == null) {
  throw new ProcessEngineException("Deployment Ids cannot be null.");
 }
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 Context.getProcessEngineConfiguration()
  .getProcessApplicationManager()
  .unregisterProcessApplicationForDeployments(deploymentIds, removeProcessesFromCache);
 return null;
}
origin: camunda/camunda-bpm-platform

public String execute(CommandContext commandContext) {
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 ProcessApplicationReference reference = Context.getProcessEngineConfiguration()
  .getProcessApplicationManager()
  .getProcessApplicationForDeployment(deploymentId);
 if(reference != null) {
  return reference.getName();
 } else {
  return null;
 }
}
origin: camunda/camunda-bpm-platform

public String execute(CommandContext commandContext) {
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 ProcessApplicationReference reference = Context.getProcessEngineConfiguration()
  .getProcessApplicationManager()
  .getProcessApplicationForDeployment(deploymentId);
 if(reference != null) {
  return reference.getName();
 } else {
  return null;
 }
}
origin: camunda/camunda-bpm-platform

public Void execute(CommandContext commandContext) {
 if(deploymentIds == null) {
  throw new ProcessEngineException("Deployment Ids cannot be null.");
 }
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 Context.getProcessEngineConfiguration()
  .getProcessApplicationManager()
  .unregisterProcessApplicationForDeployments(deploymentIds, removeProcessesFromCache);
 return null;
}
org.camunda.bpm.engine.impl.persistence.entityAuthorizationManagercheckCamundaAdmin

Javadoc

Checks if the current authentication contains the group Groups#CAMUNDA_ADMIN. The check is ignored if the authorization is disabled or no authentication exists.

Popular methods of AuthorizationManager

  • configureQuery
  • filterAuthenticatedGroupIds
  • isAuthorized
  • addPermissionCheck
  • checkAuthorization
  • configureActivityStatisticsQuery
  • configureBatchQuery
  • configureBatchStatisticsQuery
  • configureConditionalEventSubscriptionQuery
  • configureDecisionDefinitionQuery
  • configureDecisionRequirementsDefinitionQuery
  • configureDeploymentQuery
  • configureDecisionRequirementsDefinitionQuery,
  • configureDeploymentQuery,
  • configureDeploymentStatisticsQuery,
  • configureEventSubscriptionQuery,
  • configureExecutionQuery,
  • configureExternalTaskFetch,
  • configureExternalTaskQuery,
  • configureHistoricActivityInstanceQuery,
  • configureHistoricBatchQuery

Popular in Java

  • Reading from database using SQL prepared statement
  • requestLocationUpdates (LocationManager)
  • onRequestPermissionsResult (Fragment)
  • getSupportFragmentManager (FragmentActivity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • BigInteger (java.math)
    An immutable arbitrary-precision signed integer.FAST CRYPTOGRAPHY This implementation is efficient f
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • TreeSet (java.util)
    TreeSet is an implementation of SortedSet. All optional operations (adding and removing) are support
  • JCheckBox (javax.swing)
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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