private Reference getReference(String reference) { try { return entityManager.newReference(reference); } catch ( Exception ex ) { } return null; }
/** * <b>NOTE VERY CAREFULLY</b> - current implementation of EntityManager ignores referenceRoot! * This will fail if this ever changes */ public void init() { entityManager.registerEntityProducer(this, "/"); }
/** * Access the attachments of the event. * * @return An copy of the set of attachments (a ReferenceVector containing Reference objects) (may be empty). */ public List getAttachments() { return m_entityManager.newReferenceList(m_attachments); } // getAttachments
m_attachments = m_entityManager.newReferenceList(); m_attachments.add(m_entityManager.newReference(element.getAttribute("relative-url")));
List attachments = m_entityManager.newReferenceList(); List services = m_entityManager.getEntityProducers(); for (Iterator iServices = services.iterator(); iServices.hasNext();)
public static java.util.List getEntityProducers() { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return null; return service.getEntityProducers(); }
public static boolean checkReference(java.lang.String param0) { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return false; return service.checkReference(param0); } }
m_attachments = m_entityManager.newReferenceList(); m_attachments.add(m_entityManager.newReference(element.getAttribute("relative-url")));
List attachments = m_entityManager.newReferenceList(); List services = m_entityManager.getEntityProducers(); for (Iterator iServices = services.iterator(); iServices.hasNext();)
public static java.util.List getEntityProducers() { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return null; return service.getEntityProducers(); }
public static boolean checkReference(java.lang.String param0) { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return false; return service.checkReference(param0); } }
private Reference getReference(String reference) { try { Reference r = entityManager.newReference(reference); if (log.isDebugEnabled()) { log.debug("Wiki.getReference:" + reference + ":" + r); } return r; } catch (Exception ex) { } return null; }
m_attachments = m_entityManager.newReferenceList(); m_attachments.add(m_entityManager.newReference(element.getAttribute("relative-url")));
/** * Register this class as an EntityProducer. */ public void init() { entityManager.registerEntityProducer(this, referenceRoot); }
/** * Access the attachments of the event. * * @return An copy of the set of attachments (a ReferenceVector containing Reference objects) (may be empty). */ public List getAttachments() { return m_entityManager.newReferenceList(m_attachments); } // getAttachments
if (service == null) { List<EntityProducer> entityProducers = m_entityManager.getEntityProducers(); for (EntityProducer entityProducer : entityProducers) { if (serviceName.equals(entityProducer.getClass().getName())
if (!m_entityManager.checkReference(ref)) throw new IdInvalidException(ref);
public static org.sakaiproject.entity.api.Reference newReference(java.lang.String param0) { org.sakaiproject.entity.api.EntityManager service = getInstance(); if (service == null) return null; return service.newReference(param0); }
m_attachments = m_entityManager.newReferenceList(); M_log.debug(" BaseAssignmentContent: Reading attachments : "); intString = el.getAttribute("numberofattachments"); if (tempString != null) tempReference = m_entityManager.newReference(tempString); m_attachments.add(tempReference); M_log.debug(" BaseAssignmentContent: " + attributeString + " : " + tempString);
public void registerEntityProducer(EntityProducer entityProducer) { entityManager.registerEntityProducer(entityProducer, "/commons"); }