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);
param.setTitle("second Coconut");
param.setType("second hmm");
param.setValue("second hawaii");
entry.addParameter(param);