Examples of ActionType


Examples of com.google.enterprise.connector.spi.SpiConstants.ActionType

    DocumentList docList =
        getObjectUnderTest(os, docSet, customDeletionSet, deletionEventSet);
    Document doc = null;
    while ((doc = docList.nextDocument()) != null) {
      Property actionProp = doc.findProperty(SpiConstants.PROPNAME_ACTION);
      ActionType actionType = SpiConstants.ActionType.findActionType(
          actionProp.nextValue().toString());

      String id =
          doc.findProperty(SpiConstants.PROPNAME_DOCID).nextValue().toString();
      if (ActionType.ADD.equals(actionType)) {
View Full Code Here

Examples of com.sardak.antform.util.ActionType

  }

  private void createControlButton(int type, String label, String target) {
    if (label != null && !label.equals("")) {
      Button button = new Button();
      ActionType actionType = new ActionType();
      actionType.setValue(ActionType.getType(type));
      button.setType(actionType);
      button.setLabel(label);
      button.setTarget(target);
      if (controlBar == null) {
        controlBar = new ButtonBar();
View Full Code Here

Examples of com.sk89q.craftbook.mechanics.items.CommandItemAction.ActionType

        List<CommandItemAction> actionList = new ArrayList<CommandItemAction>();

        if(config.getKeys(path + ".actions") != null)
            for(String ac : config.getKeys(path + ".actions")) {

                ActionType acType = ActionType.valueOf(config.getString(path + ".actions." + ac + ".type"));
                String acValue = config.getString(path + ".actions." + ac + ".value");
                ActionRunStage acStage = ActionRunStage.valueOf(config.getString(path + ".actions." + ac + ".run-stage"));

                actionList.add(new CommandItemAction(ac, acType, acValue, acStage));
            }
View Full Code Here

Examples of games.stendhal.client.entity.ActionType

   * @param list
   *            The list to populate.
   */
  @Override
  protected void buildActions(final List<String> list) {
    ActionType actionType = getActionType();
    list.add(actionType.getRepresentation());

    super.buildActions(list);
    list.remove(ActionType.LOOK.getRepresentation());
  }
View Full Code Here

Examples of javax.enterprise.deploy.shared.ActionType

     * @return Deployment status.
     */
    public DeploymentStatus getDeploymentStatus() {
        StringBuffer message = new StringBuffer();
        CommandType commandType = null;
        ActionType actionType = null;
        boolean completed = true;
        boolean failed = false;
        for (Iterator iter = progressObjects.iterator(); iter.hasNext();) {
            ProgressObject progress = (ProgressObject) iter.next();
            DeploymentStatus status = progress.getDeploymentStatus();
            CommandType curCommandType = status.getCommand();
            ActionType curActionType = status.getAction();
            if ( null == commandType ) {
                commandType = curCommandType;
                actionType = curActionType;
            } else if ( commandType != curCommandType ) {
                throw new AssertionError("Heterogeneous CommandType");
View Full Code Here

Examples of net.opengis.wfs.ActionType

        } catch (WFSTransactionException e) {
            exception = true;
            LOGGER.log(Level.SEVERE, "Transaction failed", e);

            // transaction failed, rollback
            ActionType action = WfsFactory.eINSTANCE.createActionType();

            if (e.getCode() != null) {
                action.setCode(e.getCode());
            } else {
                action.setCode("InvalidParameterValue");
            }

            action.setLocator(e.getLocator());
            action.setMessage(e.getMessage());
            result.getTransactionResults().getAction().add(action);
        }

        // commit
        boolean committed = false;
View Full Code Here

Examples of net.opengis.wfs.ActionType

        }

        writer.write(indent + offset + "</wfs:Status>");

        if (!result.getAction().isEmpty()) {
            ActionType action = (ActionType) result.getAction().get(0);

            if (action.getLocator() != null) {
                writer.write(indent + offset + "<wfs:Locator>");
                writer.write(action.getLocator() + "</wfs:Locator>");
            }

            if (action.getMessage() != null) {
                writer.write(indent + offset + "<wfs:Message>");
                ResponseUtils.writeEscapedString(writer, action.getMessage());
                writer.write("</wfs:Message>");
            }
        }

        writer.write(indent + "</wfs:TransactionResult>");
View Full Code Here

Examples of net.opengis.wfs.ActionType

    public void v_1_1(TransactionResponseType response, OutputStream output, Operation operation)
        throws IOException, ServiceException {
        if (!response.getTransactionResults().getAction().isEmpty()) {
            //since we do atomic transactions, an action failure means all we rolled back
            // spec says to throw exception
            ActionType action = (ActionType) response.getTransactionResults().getAction().iterator()
                                                     .next();
            throw new WFSException(action.getMessage(), action.getCode(), action.getLocator());
        }

        Encoder encoder = new Encoder(configuration, configuration.schema());
        encoder.setEncoding(Charset.forName( wfs.getGeoServer().getGlobal().getCharset()) );
View Full Code Here

Examples of org.apache.ambari.server.actionmanager.ActionType

          LOG.debug("Read action definition = " + ad.toString());
          StringBuilder errorReason =
              new StringBuilder("Error while parsing action definition. ").append(ad.toString()).append(" --- ");

          TargetHostType targetType = safeValueOf(TargetHostType.class, ad.getTargetType(), errorReason);
          ActionType actionType = safeValueOf(ActionType.class, ad.getActionType(), errorReason);

          Short defaultTimeout = MIN_TIMEOUT;
          if (ad.getDefaultTimeout() != null && !ad.getDefaultTimeout().isEmpty()) {
            defaultTimeout = Short.parseShort(ad.getDefaultTimeout());
          }
View Full Code Here

Examples of org.apache.ambari.server.state.action.ActionType

import org.junit.Test;

public class JobTest {

  private Action createNewJob(long id, String jobName, long startTime) {
    ActionId jId = new ActionId(id, new ActionType(jobName));
    Action job = new ActionImpl(jId, startTime);
    return job;
  }
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.