Package edu.indiana.dlib.metsnav.data

Examples of edu.indiana.dlib.metsnav.data.InterfaceBean


     * @param page the PageItem object
     * @return an InterfaceBean instance
     */
    public InterfaceBean getConfiguredInterfaceBean(
            MetsObject navObj, AtomicItem page) {
        InterfaceBean bean = getConfiguredInterfaceBean();

        InterfaceConfig ic = (InterfaceConfig) context
                .getAttribute(Globals.INTERFACE_KEY + prefix);
        String linkBackUrl = ic.getLinkBackUrl();
        if (null != navObj && null != page) {
            linkBackUrl = linkBackUrl.replaceAll("\\$\\{oid\\}", navObj.getId());
            linkBackUrl = linkBackUrl.replaceAll("\\$\\{pid\\}", page.getId());
        }
        bean.setLinkBackUrl(linkBackUrl);
        return bean;
    }
View Full Code Here


     * instances.
     *
     * @return an InterfaceBean instance
     */
    public InterfaceBean getConfiguredInterfaceBean() {
        InterfaceBean bean = new InterfaceBean();

        InterfaceConfig ic = (InterfaceConfig) context
                .getAttribute(Globals.INTERFACE_KEY + prefix);
        String linkBackUrl = "";
        bean.setLinkBackUrl(linkBackUrl);
        bean.setBannerBackground(ic.getBannerBackground());
        bean.setCssLocation(ic.getCssLocation());
        bean.setBannerLogo(ic.getBannerLogo());
        bean.setBannerTitle(ic.getBannerTitle());
        bean.setFooterFeedbackAddress(ic.getFooterFeedbackAddress());
        bean.setFooterFeedbackLabel(ic.getFooterFeedbackLabel());
        bean.setFooterPublisher(ic.getFooterPublisher());
        bean.setFooterCurrentUrl(ic.isFooterCurrentUrl());
        bean.setFooterLastUpdated(ic.isFooterLastUpdated());
        bean.setLinkBackLabel(ic.getLinkBackLabel());
        bean.setSiteNavigation(ic.getSiteNavigation());
        return bean;       
    }
View Full Code Here

TOP

Related Classes of edu.indiana.dlib.metsnav.data.InterfaceBean

Copyright © 2018 www.massapicom. 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.