Examples of Action


Examples of ch.qos.logback.core.joran.action.Action

      return;
    }

    Iterator i = applicableActionList.iterator();
    while (i.hasNext()) {
      Action action = (Action) i.next();
      // now let us invoke the action. We catch and report any eventual
      // exceptions
      try {
        action.begin(interpretationContext, tagName, atts);
      } catch (ActionException e) {
        skip = (Pattern) pattern.clone();
        cai.addError("ActionException in Action for tag [" + tagName + "]", e);
      } catch (RuntimeException e) {
        skip = (Pattern) pattern.clone();
View Full Code Here

Examples of ch.ralscha.extdirectspring.bean.api.Action

      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          paramLength++;
        }
      }
      this.action = new Action(method.getName(), paramLength, null);
      break;
    case SIMPLE_NAMED:
      List<String> parameterNames = new ArrayList<String>();
      for (ParameterInfo parameter : this.parameters) {
        if (!parameter.isSupportedParameter() && !parameter.isHasRequestHeaderAnnotation()) {
          parameterNames.add(parameter.getName());
        }
      }
      this.action = new Action(method.getName(), parameterNames);
      break;
    case FORM_LOAD:
    case STORE_READ:
    case STORE_MODIFY:
    case TREE_LOAD:
      this.action = new Action(method.getName(), 1, null);
      break;
    case FORM_POST:
      this.action = new Action(method.getName(), 0, true);
      break;
    case POLL:
      this.pollingProvider = new PollingProvider(beanName, method.getName(), extDirectMethodAnnotation.event());
      break;
    case SSE:
View Full Code Here

Examples of cn.com.annotations.Action

            }

        }
        final List<Action> actions = new ArrayList<Action>(5);
        final List<Method> methods = TypeContentRefecter.getAllMethods(this.clazz);
        Action action = null;
        // 获取操作标注
        for (Method m : methods) {
            action = m.getAnnotation(Action.class);
            if (action != null) {
                actions.add(action);
View Full Code Here

Examples of co.cubicode.rbacframework.models.catalogs.Action

    } else {
      System.out.println("No tiene rol");
      Assert.fail();
    }
   
    Action action = Catalog.getElement(Action.class, "2");
    Permission permission = new Permission(action.getApplication(), action.getObjectType(), action.getOperationType());
    if (user.hasPermission(permission)) {
      Assert.fail();
    } else {
      System.out.println("No tiene permisos en web");
    }
View Full Code Here

Examples of com.agical.rmock.core.Action

    }
   
    public void testInvalidateSessionReleasesUnderlyingSessionAndRemoveSessionFromManager() throws Exception {
        final org.apache.geronimo.clustering.Session underlyingSession =recordCreateUnderlyingSession();
        underlyingSession.release();
        modify().perform(new Action() {
            public Object invocation(Object[] arg0, MethodHandle arg1) throws Throwable {
                sessionListener.notifySessionDestruction(underlyingSession);
                return null;
            }
        });
View Full Code Here

Examples of com.alibaba.ons.api.Action

            if (null == listener) {
                throw new ONSClientException("MessageListener is null");
            }

            final ConsumeContext context = new ConsumeContext();
            Action action = listener.consume(msg, context);
            if (action != null) {
                switch (action) {
                case CommitMessage:
                    return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
                case ReconsumeLater:
View Full Code Here

Examples of com.alibaba.wasp.plan.action.Action

        throw new UnsupportedException(
            "When you have specified the pk, you'd better not to specify additional filter conditions.");
      }
    }

    Action action = null;
    DQLPlan qp = null;

    Condition entityGroupKeyCondition = queryInfo.getField(table
        .getEntityGroupKey().getName());
    if (queryInfo.getType() == QueryInfo.QueryType.GET) {
      byte[] primaryKey = RowBuilder.build().genRowkey(primaryKeyPairs);
      // check if the column is table's primary key.
      action = new GetAction(context.getReadModel(), table.getTableName(),
          primaryKey, this.buildEntityColumnsForGet(table, metaEventOperation,
              selectItem));
      ((GetAction)action).setForUpdate(queryInfo.isForUpdate());
      if (context.isGenWholePlan()) {
        // get entityGroupLocation according to entity group key.
        EntityGroupLocation entityGroupLocation = this.connection
            .locateEntityGroup(Bytes.toBytes(table.getTableName()), DruidParser
                .convert(
                    table.getColumn(entityGroupKeyCondition.getFieldName()),
                    entityGroupKeyCondition.getValue()));
        action.setEntityGroupLocation(entityGroupLocation);
      }
      qp = new LocalQueryPlan((GetAction) action);
      LOG.debug(QueryInfo.QueryType.GET + "  "
          + Bytes.toStringBinary(primaryKey) + " from " + table.getTableName());
    } else if (queryInfo.getType() == QueryInfo.QueryType.SCAN) {
      Index index = metaEventOperation.checkAndGetIndex(table,
          queryInfo.getAllConditionFieldName());

      if (index == null) {
        throw new UnsupportedException("Don't get a Index!");
      }

      boolean isJustUseIndex = index.getIndexKeys().size() >= queryInfo.getAllConditionFieldName().size();
      Pair<byte[], byte[]> startKeyAndEndKey = metaEventOperation.getStartkeyAndEndkey(index, queryInfo);

      Pair<List<ColumnStruct>, List<ColumnStruct>> columnActionPair = this
          .buildEntityColumnsForScan(table, index, metaEventOperation,
              selectItem);
      List<ColumnStruct> selectEntityColumns = columnActionPair.getFirst();
      List<ColumnStruct> selectStoringColumns = columnActionPair.getSecond();
      List<ColumnStruct> conditionNotInIndex = isJustUseIndex ? Collections.<ColumnStruct>emptyList()
          : buildColumnsNotInIndex(table, index, queryInfo);

      // instance scan action.
      action = new ScanAction(context.getReadModel(),
          StorageTableNameBuilder.buildIndexTableName(index),
          table.getTableName(), startKeyAndEndKey.getFirst(),
          startKeyAndEndKey.getSecond(), selectEntityColumns);
      ((ScanAction) action).setStoringColumns(selectStoringColumns);
      ((ScanAction) action).setLimit(limit);
      ((ScanAction) action).setNotIndexConditionColumns(conditionNotInIndex);

      if (entityGroupKeyCondition != null
          && entityGroupKeyCondition.getType() == ConditionType.EQUAL) {
        if (context.isGenWholePlan()) {
          EntityGroupLocation entityGroupLocation = this.connection
              .locateEntityGroup(Bytes.toBytes(table.getTableName()),
                  DruidParser.convert(
                      table.getColumn(entityGroupKeyCondition.getFieldName()),
                      entityGroupKeyCondition.getValue()));
          action.setEntityGroupLocation(entityGroupLocation);
        }
        qp = new LocalQueryPlan((ScanAction) action);
        LOG.debug(QueryInfo.QueryType.SCAN + " startKey "
            + Bytes.toStringBinary(startKeyAndEndKey.getFirst()) + " endKey "
            + Bytes.toStringBinary(startKeyAndEndKey.getSecond()));
View Full Code Here

Examples of com.aliyun.openservices.ons.api.Action

            if (null == listener) {
                throw new ONSClientException("MessageListener is null");
            }

            final ConsumeContext context = new ConsumeContext();
            Action action = listener.consume(msg, context);
            if (action != null) {
                switch (action) {
                case CommitMessage:
                    return ConsumeConcurrentlyStatus.CONSUME_SUCCESS;
                case ReconsumeLater:
View Full Code Here

Examples of com.appspot.gaeforum309.pathing.Action

      public void foot(StringBuilder response, Path path, IPathable object) {
        response.append("</div>");
       
        if(Action.actionAuthorized(object, Action.ActionType.createChild))
        {
          Action action = Action.buildAction(object, Action.ActionType.createChild);
         
          TemplatePunBB.writeActionAsForm(action, response);
        }
      }

      // TODO: Add a method on IPathable to count childs objects instead of getChilds().size()
      @Override
      public void body(StringBuilder response, Path path, IPathable object) {
        DBTopic topic = (DBTopic)object;
       
        response.append("<div id=\"forum48\" class=\"main-item odd main-first-item\">" +
            "<span class=\"icon \"><!-- --></span>" +
            "<div class=\"item-subject\">" +
            "<h3 class=\"hn\"><a href=\""+ ForumPages.Page.getUrl(topic) +"\"><span>"+ topic.getTitle() +"</span></a></h3>" +
            "<p>"+topic.getDescription()+"</p>" +
            "</div>" +
            "<ul class=\"item-info\">" +
            "<li class=\"info-topics\"><strong>"+ topic.getChilds().size() +"</strong> <span class=\"label\">topics</span></li>"+
            "<li class=\"info-posts\"><strong>X</strong> <span class=\"label\">posts</span></li>" +
            "<li class=\"info-lastpost\"><span class=\"label\">Last post:</span> <strong><a href=\"http://punbb.informer.com/forums/post/145563/#p145563\">2012-06-28 07:06</a></strong> <cite>by CReatiVe4w3</cite></li>" +
            "</ul>" +
            "</div>");
      }
    });
    addSection(DBConversation.tagName, new Template.ITemplateSection() {

      @Override
      public void head(StringBuilder response, Path path, IPathable object) {
        DBConversation conversation = (DBConversation) object;
       
        // TODO: Ajouter paging
        response.append("<div id=\"brd-pagepost-top\" class=\"main-pagepost gen-content\">"+
            "<p class=\"paging\"><span class=\"pages\">Pages</span> <strong class=\"first-item\">1</strong></p>"+
            "<p class=\"posting\">You must <a href=\"http://punbb.informer.com/forums/login/\">login</a> or <a href=\"http://punbb.informer.com/forums/register/\">register</a> to post a reply</p>"+
            "</div>");
       
        response.append("<div class=\"main-head\">"+
            "<p class=\"options\"><span class=\"feed first-item\"><a class=\"feed\" href=\"/\">RSS topic feed</a></span></p>"+
            "<h2 class=\"hn\"><span><span class=\"item-info\">Posts: "+ conversation.getChilds().size() +"</span></span></h2>"+
            "</div>");
       
        response.append("<div id=\"forum68\" class=\"main-content main-topic\">");
       
      }

      @Override
      public void foot(StringBuilder response, Path path, IPathable object) {
        response.append("</div>");
       
        if(Action.actionAuthorized(object, Action.ActionType.createChild))
        {
          Action action = Action.buildAction(object, Action.ActionType.createChild);
         
          TemplatePunBB.writeActionAsForm(action, response);
        }
      }
View Full Code Here

Examples of com.atlauncher.data.Action

                    }
                    String after = element.getAttribute("after");
                    String saveAs = element.getAttribute("saveas");
                    Boolean client = element.getAttribute("client").equalsIgnoreCase("yes");
                    Boolean server = element.getAttribute("server").equalsIgnoreCase("yes");
                    Action thing = null;
                    if (element.hasAttribute("type")) {
                        thing = new Action(action, type, after, saveAs, client, server);
                    } else {
                        thing = new Action(action, after, saveAs, client, server);
                    }
                    for (String modd : mod.split(",")) {
                        if (isModByName(modd)) {
                            thing.addMod(getModByName(modd));
                        }
                    }
                    actions.add(thing);
                }
            }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.