Package org.wso2.carbon.registry.synchronization.operation

Examples of org.wso2.carbon.registry.synchronization.operation.CheckInCommand.execute()


  private void processOutputEvents(OMElement input, Query query)
      throws DataServiceFault {
    EventTrigger trigger = query.getOutputEventTrigger();
    /* if output event trigger is available, execute it */
    if (trigger != null) {
      trigger.execute(input, query.getQueryId());
    }
  }

}

View Full Code Here


 
  private void processInputEvents(InternalParamCollection params) throws DataServiceFault {
    EventTrigger inputEventTrigger = this.getInputEventTrigger();
    if (inputEventTrigger != null) {
      OMElement input = this.createOMElementFromInputParams(params);
      inputEventTrigger.execute(input, this.getQueryId());
    }
  }
 
  /**
   * This method must be implemented by concrete implementations of this class,
View Full Code Here

                               boolean ignoreConflicts, boolean forcedCheckIn)
            throws SynchronizationException {
        CheckInCommand operation =
                new CheckInCommand(null, filePath, registryPath, registry.getUserName(), true,
                        ignoreConflicts, !forcedCheckIn);
        operation.execute(registry);
    }

    /**
     * Method to check-in some filesystem based resources and collections (which are files and
     * directories), into a specified registry instance.
View Full Code Here

     */
    public static void checkOut(UserRegistry registry, String filePath, String resourcePath)
            throws SynchronizationException {
        CheckOutCommand operation =
                new CheckOutCommand(null, filePath, resourcePath, registry.getUserName(), false);
        operation.execute(registry);
    }

    /**
     * Method to update an already checked out resource or collection to the latest version found on
     * the specified registry instance.
View Full Code Here

    public static void update(UserRegistry registry, String filePath, boolean ignoreConflicts)
            throws SynchronizationException {
        UpdateCommand operation =
                new UpdateCommand(null, filePath, null, ignoreConflicts, registry.getUserName(),
                        false);
        operation.execute(registry);
    }

    /**
     * Method to determine whether a check-out has already been made at the given directory
     * location.
 
View Full Code Here

        }

        List<Object> facts = inputManager.processInputs(requestMessageContext);

        if (!facts.isEmpty()) {
            List results = session.execute(facts);
            if (!sessionDescription.isStateful()) {
                session.release();
            }
            return results;
        } else {
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.