本文整理了Java中org.sakaiproject.entity.api.EntityManager
类的一些代码示例,展示了EntityManager
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EntityManager
类的具体详情如下:
包路径:org.sakaiproject.entity.api.EntityManager
类名称:EntityManager
[英]EntityManager is the API for managing EntityProducer services / managers.
[中]EntityManager是用于管理EntityProducer服务/管理器的API。
代码示例来源:origin: org.sakaiproject/sakai-chat-impl
private Reference getReference(String reference) {
try {
return entityManager.newReference(reference);
} catch ( Exception ex ) {
}
return null;
}
代码示例来源:origin: sakaiproject/sakai
/**
* <b>NOTE VERY CAREFULLY</b> - current implementation of EntityManager ignores referenceRoot!
* This will fail if this ever changes
*/
public void init() {
entityManager.registerEntityProducer(this, "/");
}
代码示例来源:origin: org.sakaiproject.message/sakai-message-util
/**
* 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
代码示例来源:origin: sakaiproject/sakai
m_attachments = m_entityManager.newReferenceList();
m_attachments.add(m_entityManager.newReference(element.getAttribute("relative-url")));
代码示例来源:origin: org.sakaiproject.common/archive-impl
List attachments = m_entityManager.newReferenceList();
List services = m_entityManager.getEntityProducers();
for (Iterator iServices = services.iterator(); iServices.hasNext();)
代码示例来源:origin: sakaiproject/sakai
public static java.util.List getEntityProducers()
{
org.sakaiproject.entity.api.EntityManager service = getInstance();
if (service == null) return null;
return service.getEntityProducers();
}
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-api
public static boolean checkReference(java.lang.String param0)
{
org.sakaiproject.entity.api.EntityManager service = getInstance();
if (service == null) return false;
return service.checkReference(param0);
}
}
代码示例来源:origin: org.sakaiproject.message/sakai-message-impl
m_attachments = m_entityManager.newReferenceList();
m_attachments.add(m_entityManager.newReference(element.getAttribute("relative-url")));
代码示例来源:origin: org.sakaiproject.common/archive-impl2
List attachments = m_entityManager.newReferenceList();
List services = m_entityManager.getEntityProducers();
for (Iterator iServices = services.iterator(); iServices.hasNext();)
代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-api
public static java.util.List getEntityProducers()
{
org.sakaiproject.entity.api.EntityManager service = getInstance();
if (service == null) return null;
return service.getEntityProducers();
}
代码示例来源:origin: sakaiproject/sakai
public static boolean checkReference(java.lang.String param0)
{
org.sakaiproject.entity.api.EntityManager service = getInstance();
if (service == null) return false;
return service.checkReference(param0);
}
}
代码示例来源:origin: org.sakaiproject/sakai-rwiki-impl
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;
}
代码示例来源:origin: org.sakaiproject.message/sakai-message-util
m_attachments = m_entityManager.newReferenceList();
m_attachments.add(m_entityManager.newReference(element.getAttribute("relative-url")));
代码示例来源:origin: org.sakaiproject.edu-services.gradebook/gradebook-service-impl
/**
* Register this class as an EntityProducer.
*/
public void init() {
entityManager.registerEntityProducer(this, referenceRoot);
}
代码示例来源:origin: sakaiproject/sakai
/**
* 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
代码示例来源:origin: org.sakaiproject.common/archive-impl2
if (service == null) {
List<EntityProducer> entityProducers = m_entityManager.getEntityProducers();
for (EntityProducer entityProducer : entityProducers) {
if (serviceName.equals(entityProducer.getClass().getName())
代码示例来源:origin: sakaiproject/sakai
if (!m_entityManager.checkReference(ref)) throw new IdInvalidException(ref);
代码示例来源:origin: sakaiproject/sakai
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);
}
代码示例来源:origin: org.sakaiproject.assignment/sakai-assignment-impl
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);
代码示例来源:origin: sakaiproject/sakai
public void registerEntityProducer(EntityProducer entityProducer) {
entityManager.registerEntityProducer(entityProducer, "/commons");
}
内容来源于网络,如有侵权,请联系作者删除!