Examples of HistoryRequest


Examples of org.jitterbit.integration.activity.serverapi.history.HistoryRequest

        this.model = model;
        this.historyApi = historyApi;
    }

    public void downloadHistory() {
        HistoryRequest request = model.createRequest();
        GetOperationHistoryJob job = new GetOperationHistoryJob(model, historyApi, request);
        model.setTalkingToServer(true);
        job.submit();
    }
View Full Code Here

Examples of org.jitterbit.integration.activity.serverapi.history.HistoryRequest

    /**
     * Downloads the entries in the source history that match the filter defined in the model. This
     * is an asynchronous call.
     */
    public void downloadHistory() {
        HistoryRequest request = model.createRequest();
        GetSourceHistoryJob job = new GetSourceHistoryJob(model, historyApi, request);
        model.setTalkingToServer(true);
        job.submit();
    }
View Full Code Here

Examples of org.jitterbit.integration.activity.serverapi.history.HistoryRequest

* @since 4.1.0
*/
final class RequestBuilder {

    public static HistoryRequest buildRequest(AbstractActivityDisplayModel<?> model, TransferSizeFilter sizeFilter) {
        HistoryRequest r = new HistoryRequest();
        r.subjectId = model.getSubjectId();
        r.nameFilter = model.getNameFilter();
        r.maxNumberOfEntriesFilter = model.getMaxEntriesFilter();
        r.timeFilter = model.getTimeFilter();
        r.transferSizeFilter = sizeFilter;
View Full Code Here

Examples of org.jivesoftware.openfire.muc.HistoryRequest

                            // Get or create the room
                            MUCRoom room = server.getChatRoom(group, packet.getFrom());
                            // User must support MUC in order to create a room
                            Element mucInfo = packet.getChildElement("x",
                                    "http://jabber.org/protocol/muc");
                            HistoryRequest historyRequest = null;
                            String password = null;
                            // Check for password & requested history if client supports MUC
                            if (mucInfo != null) {
                                password = mucInfo.elementTextTrim("password");
                                if (mucInfo.element("history") != null) {
                                    historyRequest = new HistoryRequest(mucInfo);
                                }
                            }
                            // The user joins the room
                            role = room.joinRoom(recipient.getResource().trim(),
                                    password,
View Full Code Here

Examples of ru.portnyagin.helpdeskru.model.HistoryRequest

    public Object getAsObject(FacesContext context, UIComponent component, String value) {
        if (value == null || value.length() == 0){
            return null;
        }

        HistoryRequest history = historyRequestService.find(Long.valueOf(value));

        if (history == null) {
            throw new ConverterException(new FacesMessage("Unknown HistoryRequest ID: " + value));
        }
View Full Code Here

Examples of ru.portnyagin.helpdeskru.model.HistoryRequest

            }
           
            // состояние
            if(!current.getStateRequest().equals(preUpdate.getStateRequest())) {
                current.setStateDate(new Date()); // при изменении состояния обновляем дату состояния
                HistoryRequest h = new HistoryRequest(current, curUser, new Date(),
                        ResourceBundle.getBundle("property",
                        FacesContext.getCurrentInstance().getViewRoot().getLocale()).
                        getString("common.stateRequest"),
                        current.getStateRequest().getName());
                em.persist(h);
            }

            // исполнитель. м.б. null
            String curPerformer;
            String prevPerformer;
            if(current.getPerformer() != null) {
                curPerformer = current.getPerformer().getName();
            }
            else {
                curPerformer = "";
            }
           
            if(preUpdate.getPerformer() != null) {
                prevPerformer = preUpdate.getPerformer().getName();
            }
            else {
                prevPerformer = "";
            }
           
            if(!curPerformer.equals(prevPerformer)) {
                    HistoryRequest h = new HistoryRequest(current, curUser, new Date(),
                        ResourceBundle.getBundle("property",
                        FacesContext.getCurrentInstance().getViewRoot().getLocale()).
                        getString("common.performer"),
                        curPerformer);
                    em.persist(h);
            }

            // объект обслуживания. м.б. null
            String curServiceObject;
            String prevServiceObject;
            if(current.getServiceObject() != null) {
                curServiceObject = current.getServiceObject().getName();
            }
            else {
                curServiceObject = "";
            }
           
            if(preUpdate.getServiceObject() != null) {
                prevServiceObject = preUpdate.getServiceObject().getName();
            }
            else {
                prevServiceObject = "";
            }
           
            if(!curServiceObject.equals(prevServiceObject)) {
                    HistoryRequest h = new HistoryRequest(current, curUser, new Date(),
                        ResourceBundle.getBundle("property",
                        FacesContext.getCurrentInstance().getViewRoot().getLocale()).
                        getString("common.serviceObject"),
                        curServiceObject);
                    em.persist(h);
            }
           
            // описание м.б. null
            String curDescription;
            String prevDescription;
            if(current.getDescription() != null) {
                curDescription = current.getDescription();
            }
            else {
                curDescription = "";
            }
           
            if(preUpdate.getDescription() != null) {
                prevDescription = preUpdate.getDescription();
            }
            else {
                prevDescription = "";
            }
           
            if(!curDescription.equals(prevDescription)) {
                    HistoryRequest h = new HistoryRequest(current, curUser, new Date(),
                        ResourceBundle.getBundle("property",
                        FacesContext.getCurrentInstance().getViewRoot().getLocale()).
                        getString("common.description"),
                        curDescription);
                    em.persist(h);
            }
           
            // приоритет
            if(!current.getPriority().equals(preUpdate.getPriority())) {
                HistoryRequest h = new HistoryRequest(current, curUser, new Date(),
                        ResourceBundle.getBundle("property",
                        FacesContext.getCurrentInstance().getViewRoot().getLocale()).
                        getString("common.priority"),
                        current.getPriority().getName());
                em.persist(h);
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.