/**
 * SaveDynamicCodeCodeCommand
 *
 * <p>This command should save a DyanmicCode
 *
 * <p>
 *
 * @author Silas Schwarz, PRODYNA AG, 2010-03-16
 */
public class SaveDynamicCodeCodeCommand implements NabuccoCommand {

  private SaveDynamicCodeCodeHandler saveDynamicCodeCodeHandler =
      NabuccoInjector.getInstance(SaveDynamicCodeCodeCommand.class)
          .inject(SaveDynamicCodeCodeHandler.class);

  public static final String ID =
      "org.nabucco.framework.common.dynamiccode.ui.command.code.SaveDynamicCodeCodeCommand";

  /** Constructs a new SaveDynamicCodeCodeCommand instance. */
  public SaveDynamicCodeCodeCommand() {
    super();
  }

  @Override
  public void run() {
    saveDynamicCodeCodeHandler.saveDynamicCodeCode();
  }

  @Override
  public String getId() {
    return SaveDynamicCodeCodeCommand.ID;
  }
}
/**
 * OpenCorrespondingRoleEditViewCommand
 *
 * <p>@TODO
 *
 * <p>
 *
 * @author Michael Krausse, PRODYNA AG, 2010-03-16
 */
public class OpenCorrespondingRoleEditViewCommand implements NabuccoCommand {

  private OpenCorrespondingRoleEditViewHandler openCorrespondingRoleEditViewHandler =
      NabuccoInjector.getInstance(OpenCorrespondingRoleEditViewCommand.class)
          .inject(OpenCorrespondingRoleEditViewHandler.class);

  public static final String ID =
      "org.nabucco.framework.common.authorization.ui.command.role.OpenCorrespondingRoleEditViewCommand";

  /** Constructs a new OpenCorrespondingRoleEditViewCommand instance. */
  public OpenCorrespondingRoleEditViewCommand() {
    super();
  }

  @Override
  public void run() {
    openCorrespondingRoleEditViewHandler.openCorrespondingRoleEditView();
  }

  @Override
  public String getId() {
    return OpenCorrespondingRoleEditViewCommand.ID;
  }
}