/** * @inheritDoc */ public ResourceProperties getProperties(String key) { ResourceProperties rv = m_props.get(key); if (rv == null) { // new, throwaway empty one rv = new BaseResourceProperties(); } return rv; }
public ResourceProperties getProperties() { ResourceProperties rp = new BaseResourceProperties(); rp.addProperty("id", getId()); return rp; }
/** * @see org.sakaiproject.entity.api.Entity#getProperties() */ public ResourceProperties getProperties() { ResourceProperties rp = new BaseResourceProperties(); rp.addProperty("id", getId()); return rp; }
/** * Make the Sample Copyright Alert response. * * @param req * HttpServletRequest object with the client request. * @param res * HttpServletResponse object back to the client. */ protected void respondCopyrightAlertDemo(HttpServletRequest req, HttpServletResponse res) throws ServletException { // the context wraps our real vm attribute set ResourceProperties props = new BaseResourceProperties(); setVmReference("props", props, req); setVmReference("validator", new Validator(), req); setVmReference("sample", Boolean.TRUE.toString(), req); setVmReference("tlang", rb, req); res.setContentType("text/html; charset=UTF-8"); includeVm("vm/access/copyrightAlert.vm", req, res); }
ResourceProperties rp = new BaseResourceProperties(properties);
ResourceProperties rp = new BaseResourceProperties(); rp.addProperty(RWikiEntity.RP_REALM, reference.getContext() + reference.getContainer()); ResourceProperties rp = new BaseResourceProperties(); rp.addProperty("id", this.getId());