Exemplo n.º 1
0
  public void executeTask(String sTaskClass) {

    m_appview.waitCursorBegin();

    if (m_appuser.hasPermission(sTaskClass)) {
      try {
        ProcessAction myProcess = (ProcessAction) m_appview.getBean(sTaskClass);

        // execute the proces
        try {
          MessageInf m = myProcess.execute();
          if (m != null) {
            // si devuelve un mensaje, lo muestro
            JMessageDialog.showMessage(JPrincipalApp.this, m);
          }
        } catch (BasicException eb) {
          // Si se produce un error lo muestro.
          JMessageDialog.showMessage(JPrincipalApp.this, new MessageInf(eb));
        }
      } catch (BeanFactoryException e) {
        JMessageDialog.showMessage(
            JPrincipalApp.this,
            new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("Label.LoadError"), e));
      }
    } else {
      // No hay permisos para ejecutar la accion...
      JMessageDialog.showMessage(
          JPrincipalApp.this,
          new MessageInf(MessageInf.SGN_WARNING, AppLocal.getIntString("message.notpermissions")));
    }
    m_appview.waitCursorEnd();
  }
Exemplo n.º 2
0
 public ProcessAction<?, ?> sortedDESC() {
   return processAction.sortedDESC();
 }
Exemplo n.º 3
0
 public ProcessAction<T, R> mapAsList(Function<List<T>, List<R>> mapper) {
   return processAction.mapAsList(mapper);
 }
Exemplo n.º 4
0
 public ProcessAction<T, R> reduce(BinaryOperator<List<R>> accumulator) {
   return processAction.reduce(accumulator);
 }
Exemplo n.º 5
0
 public ProcessAction<T, R> forEach(Consumer<T> action) {
   return processAction.forEach(action);
 }
Exemplo n.º 6
0
 public ProcessAction<T, R> map(Function<T, R> mapper) {
   return processAction.map(mapper);
 }
Exemplo n.º 7
0
 public ProcessAction<T, R> filter(Predicate<T> predicate) {
   return processAction.filter(predicate);
 }
Exemplo n.º 8
0
 public ProcessAction<T, R> data(List<T> data) {
   return processAction.data(data);
 }
Exemplo n.º 9
0
 public ProcessAction<T, R> data(List<T> data, int min_range) {
   return processAction.data(data, min_range);
 }