Codota Logo
AuthorizationManager.checkCamundaAdmin
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
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

 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 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

@Override
public Object execute(CommandContext commandContext) {
 commandContext.getAuthorizationManager().checkCamundaAdmin();
 commandContext.getWritableIdentityProvider().unlockUser(userId);
 return null;
}
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

  • Parsing JSON documents to java classes using gson
  • getApplicationContext (Context)
  • startActivity (Activity)
  • getSystemService (Context)
  • Timestamp (java.sql)
    A Java representation of the SQL TIMESTAMP type. It provides the capability of representing the SQL
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • PriorityQueue (java.util)
    An unbounded priority Queue based on a priority heap. The elements of the priority queue are ordered
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.This exception may include information for locating the er
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now