Examples of History


Examples of bandwidth.history.History

    gripper = new Gripper(this, this);
    canvas.addMouseListener(gripper);
    canvas.addMouseMotionListener(gripper);

    history = new History(this, this);

    add(canvas, BorderLayout.CENTER);
  }
View Full Code Here

Examples of ca.uhn.fhir.rest.annotation.History

    myIdParamIndex = Util.findIdParameterIndex(theMethod);
    mySinceParamIndex = Util.findSinceParameterIndex(theMethod);
    myCountParamIndex = Util.findCountParameterIndex(theMethod);

    History historyAnnotation = theMethod.getAnnotation(History.class);
    Class<? extends IResource> type = historyAnnotation.type();
    if (type == IResource.class) {
      if (theProvider instanceof IResourceProvider) {
        type = ((IResourceProvider) theProvider).getResourceType();
        if (myIdParamIndex != null) {
          myResourceOperationType = RestfulOperationTypeEnum.HISTORY_INSTANCE;
View Full Code Here

Examples of com.amazonaws.services.simpleworkflow.model.History

    public static List<HistoryEvent> getHistory(AmazonSimpleWorkflow service, String domain,
            WorkflowExecution workflowExecution) {
        List<HistoryEvent> events = new ArrayList<HistoryEvent>();
        String nextPageToken = null;
        do {
            History history = getHistoryPage(nextPageToken, service, domain, workflowExecution);
            events.addAll(history.getEvents());
            nextPageToken = history.getNextPageToken();
        }
        while (nextPageToken != null);
        return events;
    }
View Full Code Here

Examples of com.apress.prospring.ch12.domain.History

  private AccountDao accountDao;
  private HistoryDao historyDao;

  protected void doInsert(Account account) {
    getAccountDao().insert(account);
    History history = new History();
    history.setAccount(account.getAccountId());
    history.setAmount(account.getBalance());
    history.setOperation("Initial deposit");
    history.setTargetAccount(null);
    history.setTransactionDate(new Date());
    getHistoryDao().insert(history);
  }
View Full Code Here

Examples of com.enioka.jqm.jpamodel.History

    @Override
    public int enqueueFromHistory(int jobIdToCopy)
    {
        EntityManager em = null;
        History h = null;
        try
        {
            em = getEm();
            h = em.find(History.class, jobIdToCopy);
            return enqueue(getJobRequest(h));
View Full Code Here

Examples of com.google.code.lightssh.project.log.entity.History

   
    return super.list();
  }
 
  public String compare( ){
    History history = accessManager.getHistory(access);
    request.setAttribute("history", history );
   
    return SUCCESS;
  }
View Full Code Here

Examples of com.google.refine.history.History

    @BeforeMethod
    public void SetUp(){
        projectManager = mock(ProjectManager.class);
        ProjectManager.singleton = projectManager;
        proj = new Project();
        SUT = new History(proj);
    }
View Full Code Here

Examples of com.groupon.odo.client.models.History

            JSONArray historyArray = response.getJSONArray("history");
            history = new History[historyArray.length()];


            for (int i = 0; i < historyArray.length(); i++) {
                history[i] = new History();
                JSONObject jsonHistory = historyArray.getJSONObject(i);
                if (jsonHistory == null) {
                    continue;
                }
View Full Code Here

Examples of com.groupon.odo.proxylib.models.History

            }
        }
    }

    private History historyFromSQLResult(ResultSet result, boolean withResponseData, Script[] scripts) throws Exception {
        History history = new History();
        history.setId(result.getInt(Constants.GENERIC_ID));
        history.setProfileId(result.getInt(Constants.GENERIC_PROFILE_ID));
        history.setClientUUID(result.getString(Constants.GENERIC_CLIENT_UUID));
        history.setCreatedAt(result.getString(Constants.HISTORY_CREATED_AT));
        history.setRequestType(result.getString(Constants.GENERIC_REQUEST_TYPE));
        history.setRequestURL(result.getString(Constants.HISTORY_REQUEST_URL));
        history.setRequestParams(result.getString(Constants.HISTORY_REQUEST_PARAMS));
        history.setRequestPostData(result.getString(Constants.HISTORY_REQUEST_POST_DATA));
        history.setRequestHeaders(result.getString(Constants.HISTORY_REQUEST_HEADERS));
        history.setResponseCode(result.getString(Constants.HISTORY_RESPONSE_CODE));
        history.setResponseContentType(result.getString(Constants.HISTORY_RESPONSE_CONTENT_TYPE));
        history.setResponseHeaders(result.getString(Constants.HISTORY_RESPONSE_HEADERS));
        history.setOriginalRequestHeaders(result.getString(Constants.HISTORY_ORIGINAL_REQUEST_HEADERS));
        history.setOriginalRequestParams(result.getString(Constants.HISTORY_ORIGINAL_REQUEST_PARAMS));
        history.setOriginalRequestPostData(result.getString(Constants.HISTORY_ORIGINAL_REQUEST_POST_DATA));
        history.setOriginalRequestURL(result.getString(Constants.HISTORY_ORIGINAL_REQUEST_URL));
        history.setOriginalResponseCode(result.getString(Constants.HISTORY_ORIGINAL_RESPONSE_CODE));
        history.setOriginalResponseContentType(result.getString(Constants.HISTORY_ORIGINAL_RESPONSE_CONTENT_TYPE));
        history.setOriginalResponseHeaders(result.getString(Constants.HISTORY_ORIGINAL_RESPONSE_HEADERS));
        history.setModified(result.getBoolean(Constants.HISTORY_MODIFIED));
        history.setRequestSent(result.getBoolean(Constants.HISTORY_REQUEST_SENT));
        history.setRequestBodyDecoded(result.getBoolean(Constants.HISTORY_REQUEST_BODY_DECODED));
        history.setResponseBodyDecoded(result.getBoolean(Constants.HISTORY_RESPONSE_BODY_DECODED));

        if (withResponseData) {
            history.setResponseData(result.getString(Constants.HISTORY_RESPONSE_DATA));
            history.setOriginalResponseData(result.getString(Constants.HISTORY_ORIGINAL_RESPONSE_DATA));
        } else {
            history.setResponseData(null);
            history.setOriginalResponseData(null);
        }


        // evaluate all scripts
        for (Script script : scripts) {
            try {
                List<?> gresult = GroovyService.getInstance().runGroovy(script.getScript(), history.getRequestType(),
                        history.getRequestURL(),
                        history.getRequestParams(),
                        history.getRequestPostData(),
                        history.getRequestHeaders(),
                        history.getResponseCode(),
                        history.getResponseContentType(),
                        history.getResponseHeaders(),
                        history.getOriginalRequestURL(),
                        history.getOriginalRequestParams(),
                        history.getOriginalRequestPostData(),
                        history.getOriginalRequestHeaders(),
                        history.getOriginalResponseData(),
                        history.getOriginalResponseContentType(),
                        history.getOriginalResponseHeaders(),
                        history.isModified());

                // this returns a list where [0] is the status
                // and the rest is messages
                if (Integer.parseInt(gresult.get(0).toString()) == 1) {
                    history.setValid(false);

                    String validString = history.getValidationMessage();

                    for (int x = 1; x < gresult.size(); x++) {
                        if (!validString.equals(""))
                            validString += "\n";

                        validString += gresult.get(x);
                    }

                    history.setValidationMessage(validString);
                }
            } catch (Exception e) {

            }
        }
View Full Code Here

Examples of com.groupon.odo.proxylib.models.History

     *
     * @param id
     * @return
     */
    public History getHistoryForID(int id) {
        History history = null;
        PreparedStatement query = null;
        ResultSet results = null;

        try (Connection sqlConnection = sqlService.getConnection()) {
            query = sqlConnection.prepareStatement("SELECT * FROM " + Constants.DB_TABLE_HISTORY +
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.