Examples of BaseMetaInfo


Examples of org.apache.jetspeed.om.registry.base.BaseMetaInfo

                entry.setApplication(false);
                entry.setCachedOnURL(false);
                entry.setClassname("org.apache.jetspeed.portlets.BigKahunaPortlet");
                entry.setDescription("This is the big kahuna portlet");
                entry.setHidden(false);
                MetaInfo meta = new BaseMetaInfo();
                meta.setImage("/images/image.gif");
                meta.setDescription("This is the big kahuna meta portlet");
                meta.setTitle("The Meta Kahuna Portlet");
                entry.setMetaInfo(meta);
                entry.setName("BigKahuna");           
                entry.setParent(null);
                SecurityReference ref = new BaseSecurityReference();
                ref.setParent("admin-only");
                entry.setSecurityRef(ref);
                entry.setTitle("The Kahuna Portlet");
                entry.setType(PortletEntry.TYPE_ABSTRACT);               
                entry.setURL("http://bigkahuna.org");
                   
                // parameters
                entry.addParameter("simple", "simple-value");
               
                CachedParameter param = new BaseCachedParameter();
                param.setDescription("pdescription");
                param.setHidden(false);
                meta = new BaseMetaInfo();
                meta.setDescription("meta desc");
                meta.setImage("meta image");
                meta.setTitle("meta title");
                param.setMetaInfo(meta);
                param.setName("coconut");               
                SecurityReference ref2 = new BaseSecurityReference();
                ref2.setParent("admin-only");               
                param.setSecurityRef(ref2);
                param.setTitle("Coconut");
                param.setType("hmm");
                param.setValue("hawaii");
                entry.addParameter(param);
                param.setCachedOnName(true);
                param.setCachedOnValue(false);

               
                param = new BaseCachedParameter();
                param.setDescription("second pdescription");
                param.setHidden(true);
                meta = new BaseMetaInfo();
                meta.setDescription("second meta desc");
                meta.setImage("second meta image");
                meta.setTitle("second meta title");
                param.setMetaInfo(meta);
                param.setName("second coconut");
                SecurityReference ref3 = new BaseSecurityReference();
                ref3.setParent("second admin-only");               
                param.setSecurityRef(ref3);
View Full Code Here

Examples of org.apache.jetspeed.om.registry.base.BaseMetaInfo

        pe.setApplication(pde.getApplication());
        pe.setCachedOnURL(pde.getCachedOnUrl());
        pe.setClassname(pde.getClassname());
        pe.setDescription(pde.getDescription());
        pe.setHidden(pde.getHidden());
        MetaInfo meta = new BaseMetaInfo();
        meta.setImage(pde.getImage());
        meta.setDescription(pde.getDescription());
        meta.setTitle(pde.getTitle());
        pe.setMetaInfo(meta);               
        pe.setName(pde.getName());           
        pe.setParent(pde.getParent());
        if(pde.getSecurityRef() != null)
        {
            SecurityReference ref = new BaseSecurityReference();
            ref.setParent(pde.getSecurityRef());
            pe.setSecurityRef(ref);
        }

        pe.setTitle(pde.getTitle());
        pe.setType(pde.getType());
        pe.setURL(pde.getURL());
       
        // parameters
        Iterator params = pde.getPortletParameters().iterator();
        while (params.hasNext())
        {
            PortletParameter pp = (PortletParameter)params.next();
            CachedParameter cp = new BaseCachedParameter(pp.getId());
            cp.setCachedOnName(pp.getCachedOnName());
            cp.setCachedOnValue(pp.getCachedOnValue());
            cp.setDescription(pp.getDescription());
            cp.setHidden(pp.getHidden());
            cp.setName(pp.getName());
            cp.setType(pp.getType());
            cp.setValue(pp.getValue());

           
            cp.setTitle(pp.getTitle());
            if (pp.getDescription() != null || pp.getTitle() != null || pp.getImage() != null)
            {
                MetaInfo meta2 = new BaseMetaInfo();
                meta2.setImage(pp.getImage());
                meta2.setDescription(pp.getDescription());
                meta2.setTitle(pp.getTitle());
                cp.setMetaInfo(meta2);
            }
            if (pp.getSecurityRef() != null)
            {
                SecurityReference ref2 = new BaseSecurityReference();
View Full Code Here

Examples of org.apache.jetspeed.om.registry.base.BaseMetaInfo

        {
            obj.setName(row.getValue(offset + 1).asString());
            obj.setValue(row.getValue(offset + 2).asString());
            obj.setHidden(row.getValue(offset + 3).asBoolean());
            obj.setType(row.getValue(offset + 4).asString());
            BaseMetaInfo baseMetaInfo =
                new BaseMetaInfo(
                    row.getValue(offset + 6).asString(),
                    row.getValue(offset + 7).asString(),
                    row.getValue(offset + 8).asString());
            obj.setMetaInfo(baseMetaInfo);
            //set  the security
View Full Code Here

Examples of org.apache.jetspeed.om.registry.base.BaseMetaInfo

            BaseContentURL baseContentURL = new BaseContentURL();
            baseContentURL.setCachedOnURL(row.getValue(offset + 8).asBoolean());
            baseContentURL.setURL(row.getValue(offset + 7).asString());
            obj.setContentURL(baseContentURL);
            //create meta info
            BaseMetaInfo baseMetaInfo =
                new BaseMetaInfo(
                    row.getValue(offset + 10).asString(),
                    row.getValue(offset + 11).asString(),
                    row.getValue(offset + 12).asString());
            obj.setMetaInfo(baseMetaInfo);
            String securityRef = row.getValue(offset + 13).asString();
View Full Code Here

Examples of org.apache.jetspeed.om.registry.base.BaseMetaInfo

            BaseSecurity security =
                new BaseSecurity(row.getValue(offset + 3).asString());
            obj.setSecurity(security);
            obj.setBaseSecurity(security);
            //create meta info
            BaseMetaInfo baseMetaInfo =
                new BaseMetaInfo(
                    row.getValue(offset + 4).asString(),
                    row.getValue(offset + 5).asString(),
                    row.getValue(offset + 6).asString());
            obj.setMetaInfo(baseMetaInfo);
            buildSkinParameters(id, obj);
View Full Code Here

Examples of org.apache.jetspeed.om.registry.base.BaseMetaInfo

        {
            obj.setName(row.getValue(offset + 1).asString());
            obj.setValue(row.getValue(offset + 2).asString());
            obj.setHidden(row.getValue(offset + 3).asBoolean());
            obj.setType(row.getValue(offset + 4).asString());
            BaseMetaInfo baseMetaInfo =
                new BaseMetaInfo(
                    row.getValue(offset + 8).asString(),
                    row.getValue(offset + 9).asString(),
                    row.getValue(offset + 10).asString());
            obj.setMetaInfo(baseMetaInfo);
            //set  the security
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.