public Set<String> execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); Set<String> registeredDeployments = Context.getProcessEngineConfiguration().getRegisteredDeployments(); return new HashSet<String>(registeredDeployments); } });
public Set<String> execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); Set<String> registeredDeployments = Context.getProcessEngineConfiguration().getRegisteredDeployments(); return new HashSet<String>(registeredDeployments); } });
public Void execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); Context.getProcessEngineConfiguration().getRegisteredDeployments().removeAll(deploymentIds); return null; }
@Override public Object execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); commandContext.getWritableIdentityProvider().unlockUser(userId); return null; }
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 ""; } });
public Map<String,Long> execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); return commandContext .getTableDataManager() .getTableCount(); } }
public Map<String,Long> execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); return commandContext .getTableDataManager() .getTableCount(); } }
@Override public Object execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); commandContext.getWritableIdentityProvider().unlockUser(userId); return null; }
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 ""; } });
public TablePage execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); return commandContext .getTableDataManager() .getTablePage(this, firstResult, maxResults); }
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; }
public TableMetaData execute(CommandContext commandContext) { ensureNotNull("tableName", tableName); commandContext.getAuthorizationManager().checkCamundaAdmin(); return commandContext .getTableDataManager() .getTableMetaData(tableName); }
public String execute(CommandContext commandContext) { ensureNotNull("entityClass", entityClass); commandContext.getAuthorizationManager().checkCamundaAdmin(); return commandContext .getTableDataManager() .getTableName(entityClass, true); }
public ProcessApplicationRegistration execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); final ProcessEngineConfigurationImpl processEngineConfiguration = Context.getProcessEngineConfiguration(); final ProcessApplicationManager processApplicationManager = processEngineConfiguration.getProcessApplicationManager(); return processApplicationManager.registerProcessApplicationForDeployments(deploymentsToRegister, reference); }
public String execute(CommandContext commandContext) { ensureNotNull("entityClass", entityClass); commandContext.getAuthorizationManager().checkCamundaAdmin(); return commandContext .getTableDataManager() .getTableName(entityClass, true); }
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; }
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; }
public String execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); ProcessApplicationReference reference = Context.getProcessEngineConfiguration() .getProcessApplicationManager() .getProcessApplicationForDeployment(deploymentId); if(reference != null) { return reference.getName(); } else { return null; } }
public String execute(CommandContext commandContext) { commandContext.getAuthorizationManager().checkCamundaAdmin(); ProcessApplicationReference reference = Context.getProcessEngineConfiguration() .getProcessApplicationManager() .getProcessApplicationForDeployment(deploymentId); if(reference != null) { return reference.getName(); } else { return null; } }
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; }