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

org.camunda.bpm.engine.impl.cmd.GetTableNameCmd Maven / Gradle / Ivy

There is a newer version: 7.23.0-alpha2
Show newest version
package org.camunda.bpm.engine.impl.cmd;

import static org.camunda.bpm.engine.impl.util.EnsureUtil.ensureNotNull;

import java.io.Serializable;

import org.camunda.bpm.engine.impl.interceptor.Command;
import org.camunda.bpm.engine.impl.interceptor.CommandContext;


public class GetTableNameCmd implements Command, Serializable {

  private static final long serialVersionUID = 1L;

  private Class entityClass;

  public GetTableNameCmd(Class< ? > entityClass) {
    this.entityClass = entityClass;
  }

  public String execute(CommandContext commandContext) {
    ensureNotNull("entityClass", entityClass);

    commandContext.getAuthorizationManager().isCamundaAdmin();

    return commandContext
      .getTableDataManager()
      .getTableName(entityClass, true);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy