Package org.apache.jetspeed.portlets

Examples of org.apache.jetspeed.portlets.JetspeedServiceLocator


    }

    @Override
    public void buildItems(Fragment fragment, final SecurityRoleRef securityRoleRef)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();

        fragment.add(new TextField<String>("roleName", new PropertyModel<String>(new SecurityRoleRefModel(locator, paNodeBean, securityRoleRef), "roleName")));
        fragment.add(new TextField<String>("roleLink", new PropertyModel<String>(new SecurityRoleRefModel(locator, paNodeBean, securityRoleRef), "roleLink")));

        fragment.add(new LocalizedDescriptionEditor("localizationEditor", locator, paNodeBean, SecurityRoleRef.class, securityRoleRef.getRoleName())
View Full Code Here


    }

    @Override
    public Iterator<IModel<SecurityRoleRef>> getItemModels()
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        PortletRegistry registry = locator.getPortletRegistry();
        PortletApplication app = registry.getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = app.getPortlet(paNodeBean.getName());
       
        List<IModel<SecurityRoleRef>> securityRoleRefModels = new ArrayList<IModel<SecurityRoleRef>>();
       
View Full Code Here

    }

    @Override
    public IModel<SecurityRoleRef> getNewRowModel(SecurityRoleRef securityRoleRef)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        return new SecurityRoleRefModel(locator, paNodeBean, securityRoleRef);
    }
View Full Code Here

    }

    @Override
    public void buildItems(Fragment fragment, final DisplayNameBean displayNameBean)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        fragment.add(new TextField<String>("locale", new PropertyModel(new DisplayNameBeanModel(locator, paNodeBean, displayNameBean), "localeString")));
        fragment.add(new TextField<String>("displayName", new PropertyModel(new DisplayNameBeanModel(locator, paNodeBean, displayNameBean), "displayName")));
    }
View Full Code Here

    @Override
    public Iterator<IModel<DisplayNameBean>> getItemModels()
    {
        IDataProvider<DisplayNameBean> dataProvider = getDataProvider();
        List<IModel<DisplayNameBean>> list = new ArrayList<IModel<DisplayNameBean>>();
        JetspeedServiceLocator locator = null;
        PortletApplicationNodeBean paNodeBean = null;
        String name = null;
       
        Iterator<? extends DisplayNameBean> it = dataProvider.iterator(0, dataProvider.size());
       
View Full Code Here

    }

    @Override
    public void buildItems(Fragment fragment, final InitParam initParam)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();

        fragment.add(new TextField<String>("name", new PropertyModel<String>(new InitParamModel(locator, paNodeBean, initParam), "paramName")));
        fragment.add(new TextField<String>("value", new PropertyModel<String>(new InitParamModel(locator, paNodeBean, initParam), "paramValue")));

        fragment.add(new LocalizedDescriptionEditor("localizationEditor", locator, paNodeBean, InitParam.class, initParam.getParamName())
View Full Code Here

    }

    @Override
    public Iterator<IModel<InitParam>> getItemModels()
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        PortletRegistry registry = locator.getPortletRegistry();
        PortletApplication app = registry.getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = app.getPortlet(paNodeBean.getName());
       
        List<IModel<InitParam>> initParamBeanModels = new ArrayList<IModel<InitParam>>();
       
View Full Code Here

    }

    @Override
    public IModel<InitParam> getNewRowModel(InitParam initParam)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        return new InitParamModel(locator, paNodeBean, initParam);
    }
View Full Code Here

    }

    @Override
    public void buildItems(Fragment fragment, final LanguageBean field)
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        fragment.add(new TextField<String>("title", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "title")));
        fragment.add(new TextField<String>("shortTitle", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "shortTitle")));
        fragment.add(new TextField<String>("keywords", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "keywords")));
        fragment.add(new TextField<String>("locale", new PropertyModel(new LanguageBeanModel(locator, paNodeBean, field), "localeString")));
    }
View Full Code Here

    }

    @Override
    public Iterator<IModel<LanguageBean>> getItemModels()
    {
        JetspeedServiceLocator locator = ((AbstractAdminWebApplication) getApplication()).getServiceLocator();
        PortletApplication app = locator.getPortletRegistry().getPortletApplication(paNodeBean.getApplicationName());
        PortletDefinition def = app.getPortlet(paNodeBean.getName());
        List<IModel<LanguageBean>> list = new LinkedList<IModel<LanguageBean>>();
       
        for (Language field : def.getLanguages())
        {
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.portlets.JetspeedServiceLocator

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.