Examples of CreateUrlRequest


Examples of org.eurekastreams.web.client.history.CreateUrlRequest

        Map<String, String> urlParams = new HashMap<String, String>();
        urlParams.put("tab", Session.getInstance().getParameterValue("tab"));
        urlParams.put("galleryTab", "Themes");

        this.setPreviousPage(new CreateUrlRequest(Page.GALLERY, urlParams), "< Return to Configure Page");

        String title = "Add Theme";
        FormBuilder.Method method = Method.INSERT;

        if (Session.getInstance().getParameterValue("action").equals("editTheme"))
        {
            title = "Edit Theme";
            method = Method.UPDATE;
            defaultUrl = Session.getInstance().getParameterValue("url");

            defaultCategory = Session.getInstance().getParameterValue("category");
            id = Session.getInstance().getParameterValue("id");
        }

        this.setPageTitle(title);
        FormBuilder form = new FormBuilder("", ThemeModel.getInstance(), method);

        if (method.equals(Method.UPDATE))
        {
            form.setSubmitButtonClass(StaticResourceBundle.INSTANCE.coreCss().formUpdateButton());
        }

        form.setOnCancelHistoryToken(Session.getInstance().generateUrl(new CreateUrlRequest(Page.GALLERY, urlParams)));
        form.addFormElement(new ValueOnlyFormElement("id", id));
        form.addWidget(new HTML("<em class='gallery-upload-note'><strong>Please Note:</strong><br />"
                + "Please be sure your XML file includes the "
                + "<a href='http://docs.eurekastreams.org/Technical-Specification/1.1/Theme%20Format.html' "
                + "target='_blank'>required fields</a>. "
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

        Map<String, String> urlParams = new HashMap<String, String>();
        urlParams.put("tab", Session.getInstance().getParameterValue("tab"));
        urlParams.put("galleryTab", "Apps");

        this.setPreviousPage(new CreateUrlRequest(Page.GALLERY, urlParams), "< Return to Configure Page");

        String title = "Add App";
        FormBuilder.Method method = Method.INSERT;

        if (Session.getInstance().getParameterValue("action").equals("editApp"))
        {
            title = "Edit App";
            method = Method.UPDATE;
            defaultUrl = Session.getInstance().getParameterValue("url");

            defaultCategory = Session.getInstance().getParameterValue("category");
            id = Session.getInstance().getParameterValue("id");
        }

        this.setPageTitle(title);
        FormBuilder form = new FormBuilder("", GadgetDefinitionModel.getInstance(), method);

        if (method.equals(Method.UPDATE))
        {
            form.setSubmitButtonClass(StaticResourceBundle.INSTANCE.coreCss().formUpdateButton());
        }

        form.setOnCancelHistoryToken(Session.getInstance().generateUrl(new CreateUrlRequest(Page.GALLERY, urlParams)));
        form.addFormElement(new ValueOnlyFormElement("id", id));
        form.addWidget(new HTML("<em class='gallery-upload-note'><strong>Please Note:</strong><br />"
                + "Please be sure your XML file includes the required fields. You will not be able to upload the XML "
                + "without the required fields."));
        form.addFormDivider();
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

                        HashMap<String, String> currentPageParams = new HashMap<String, String>();
                        currentPageParams.put("tab", "Basic+Info");

                        form.setOnCancelHistoryToken(Session.getInstance().generateUrl(
                                new CreateUrlRequest(Page.PEOPLE, person.getAccountId())));

                        panel.add(form);
                    }
                });
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

                line = new FlowPanel();
                line.addStyleName(StaticResourceBundle.INSTANCE.coreCss().url());
                text = new InlineLabel("Modified by: ");
                line.add(text);
                String authorUrl =
                        Session.getInstance().generateUrl(new CreateUrlRequest(Page.PEOPLE, authorAccountId));
                link = new InlineHyperlink(authorName, authorUrl);
                line.add(link);
                mainPanel.add(line);
            }
            else
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

                            linkPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().eurekaConnectBadgeAvatar());
                            widget.add(linkPanel);

                            String linkUrl = "/#"
                                    + Session.getInstance().generateUrl(
                                            new CreateUrlRequest(Page.PEOPLE, entity.getAccountId()));

                            Anchor name = new Anchor(entity.getDisplayName(), linkUrl, "_BLANK");
                            name.addStyleName(StaticResourceBundle.INSTANCE.coreCss().eurekaConnectBadgeName());

                            Label title = new Label(entity.getTitle());
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

     * Updates the history.
     */
    public void updateHistory()
    {
        Session.getInstance().getEventBus().notifyObservers(
                new UpdateHistoryEvent(new CreateUrlRequest("streamId", String.valueOf(stream.getId()), true)));
    }
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

    public GroupProfileSettingsPanel(final String groupName)
    {
        super(panel, "Configure Profile");
        this.clearContentPanel();
       
        this.setPreviousPage(new CreateUrlRequest(Page.GROUPS, groupName), "< Return to Profile");
        panel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().groupProfileSettingsPanel());

        FlowPanel portalPageContainer = new FlowPanel();
        TabContainerPanel portalPage = new TabContainerPanel();
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

            }
        });
        streamPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().embeddedWidget());
        streamPanel.addStyleName(StaticResourceBundle.INSTANCE.coreCss().eurekaConnectReadStreamWidget());

        CreateUrlRequest linkInfo = determineStreamLink(jsonRequest);
        if (linkInfo != null)
        {
            String token = Session.getInstance().generateUrl(linkInfo);
            Hyperlink link = new Hyperlink("Go to Stream", token);
            link.addStyleName(StaticResourceBundle.INSTANCE.coreCss().goToStreamLink());
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

                    Page page = scopeToPageMap.get(type);
                    if (page != null)
                    {
                        String name = obj.get("name").isString().stringValue();

                        CreateUrlRequest info = new CreateUrlRequest(page, name);
                        if (query.containsKey("keywords"))
                        {
                            info.getParameters().put("search", query.get("keywords").isString().stringValue());
                        }
                        return info;
                    }
                }
            }
View Full Code Here

Examples of org.eurekastreams.web.client.history.CreateUrlRequest

    public PersonalProfileSettingsPanel()
    {
        super(panel, "Configure Profile");

        this.setPreviousPage(
                new CreateUrlRequest(Page.PEOPLE, Session.getInstance().getCurrentPerson().getAccountId()),
                "< Return to Profile");

        this.clearContentPanel();

        FlowPanel portalPageContainer = new FlowPanel();
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.