org.sakaiproject.entity.cover.EntityManager类的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(6.4k)|赞(0)|评价(0)|浏览(152)

本文整理了Java中org.sakaiproject.entity.cover.EntityManager类的一些代码示例,展示了EntityManager类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。EntityManager类的具体详情如下:
包路径:org.sakaiproject.entity.cover.EntityManager
类名称:EntityManager

EntityManager介绍

[英]EntityManager is a static Cover for the org.sakaiproject.entity.api.EntityManager; see that interface for usage details.
[中]EntityManager是组织的静态封面。Sakai项目。实体应用程序编程接口。实体管理器;有关用法的详细信息,请参见该界面。

代码示例

代码示例来源:origin: sakaiproject/sakai

/**
 * Given a resourceFilter, get the associated type. See {@link org.sakaiproject.entity.impl.ReferenceComponent#getType}
 *
 * @param resourceFilter the resourceFilter to get the type from
 * @return the resourceFilter's type
 */
protected String getType(String resourceFilter) {
  return EntityManager.newReference(resourceFilter).getType();
}

代码示例来源:origin: org.sakaiproject.sitestats/sitestats-impl

public void init() {
  EntityManager.registerEntityProducer(this, ReportDefEntityProvider.REFERENCE_ROOT);
}

代码示例来源:origin: sakaiproject/sakai

public static void registerEntityProducer(org.sakaiproject.entity.api.EntityProducer param0, java.lang.String param1)
{
  org.sakaiproject.entity.api.EntityManager service = getInstance();
  if (service == null) return;
  service.registerEntityProducer(param0, param1);
}

代码示例来源:origin: sakaiproject/sakai

for (Iterator i = EntityManager.getEntityProducers().iterator(); i.hasNext();)

代码示例来源:origin: org.sakaiproject.portal/sakai-portal-impl

for (Iterator i = EntityManager.getEntityProducers().iterator(); i.hasNext();)

代码示例来源:origin: org.sakaiproject.metaobj/sakai-metaobj-api

private void readObject(java.io.ObjectInputStream in)
   throws IOException, ClassNotFoundException {
 String ref = (String) in.readObject();
 setBase(EntityManager.newReference(ref));
}

代码示例来源:origin: org.sakaiproject/sakai-web-impl

public void init()
{
  M_log.debug("init()");
  // register as an entity producer
  EntityManager.registerEntityProducer(this, REFERENCE_ROOT);
} // init

代码示例来源: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

@Transient
  public Set<Reference> getAttachmentObjectSet() {
    Set<Reference> rv = new HashSet<Reference>();
    Set<AssignmentSupplementItemAttachment> attachmentSet = getAttachmentSet();
    for (Iterator<AssignmentSupplementItemAttachment> iAttachmentSet = attachmentSet.iterator(); iAttachmentSet.hasNext(); ) {
      AssignmentSupplementItemAttachment attachment = iAttachmentSet.next();
      rv.add(EntityManager.newReference(attachment.getAttachmentId()));
    }
    return rv;
  }
}

代码示例来源:origin: sakaiproject/sakai

public void init() {
  log.info("init()");
  try {
    EntityManager.registerEntityProducer(this, Entity.SEPARATOR
        + "samigo");
  } catch (Exception e) {
    log.warn("Error registering Samigo Entity Producer", e);
  }
}

代码示例来源: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.metaobj/sakai-metaobj-tool-lib

/**
* @param id string
* @return ref
*/
protected Reference convertToRef(String id) {
 return EntityManager.newReference(getContentHostingService().getReference(id));
}

代码示例来源:origin: org.sakaiproject.samigo/samigo-services

public void init() {
  log.info("init()");
  try {
    EntityManager.registerEntityProducer(this, Entity.SEPARATOR
        + "samigo");
  } catch (Exception e) {
    log.warn("Error registering Samigo Entity Producer", e);
  }
}

代码示例来源:origin: sakaiproject/sakai

public static org.sakaiproject.entity.api.Reference newReference(org.sakaiproject.entity.api.Reference param0)
{
  org.sakaiproject.entity.api.EntityManager service = getInstance();
  if (service == null) return null;
  return service.newReference(param0);
}

代码示例来源:origin: org.sakaiproject.mailarchive/sakai-mailarchive-impl

/**
 * @inheritDoc
 */
protected List getHeaders(Event event)
{
  // send most of the headers from the original message, removing some
  Reference ref = EntityManager.newReference(event.getResource());
  MailArchiveMessage msg = (MailArchiveMessage) ref.getEntity();
  MailArchiveMessageHeader hdr = (MailArchiveMessageHeader) msg.getMailArchiveHeader();
  List headers = hdr.getMailHeaders();
  List filteredHeaders = super.getHeaders(event);
  for (int i = 0; i < headers.size(); i++)
  {
    String headerStr = (String) headers.get(i);
    if (headerStr.regionMatches(true, 0, MailArchiveService.HEADER_RETURN_PATH, 0, MailArchiveService.HEADER_RETURN_PATH.length())) 
      continue;
    if (headerStr.regionMatches(true, 0, MailArchiveService.HEADER_CONTENT_TRANSFER_ENCODING, 0, MailArchiveService.HEADER_CONTENT_TRANSFER_ENCODING.length())) 
      continue;
    if (headerStr.regionMatches(true, 0, MailArchiveService.HEADER_CONTENT_TYPE, 0, MailArchiveService.HEADER_CONTENT_TYPE.length())) 
      continue;
    
    filteredHeaders.add(headerStr);
  }
  return filteredHeaders;
}

代码示例来源:origin: org.sakaiproject/sakai-news-impl

/**
 * Final initialization, once all dependencies are set.
 */
public void init()
{
  try
  {
    M_log.info("init()");
    m_storage = m_memoryService
        .newCache("org.sakaiproject.news.api.NewsService.cache");
  }
  catch (Throwable t)
  {
    M_log.warn("init(): ", t);
  }
  
  // register as an entity producer
  EntityManager.registerEntityProducer(this, REFERENCE_ROOT);
} // init

代码示例来源:origin: sakaiproject/sakai

public static java.util.List newReferenceList()
{
  org.sakaiproject.entity.api.EntityManager service = getInstance();
  if (service == null) return null;
  return service.newReferenceList();
}

代码示例来源:origin: org.sakaiproject/sakai-rwiki-impl

.newReference(path);
ContentResource resource = ContentHostingService
    .getResource(ref.getId());

代码示例来源:origin: org.sakaiproject.basiclti/basiclti-impl

/**
 * Final initialization, once all dependencies are set.
 */
public void init()
{
  logger.info(this +".init()");
  if (ServerConfigurationService.getString(SakaiBLTIUtil.BASICLTI_ENCRYPTION_KEY, null) == null) {
    logger.error("BasicLTI secrets in database unencrypted, please set "+ SakaiBLTIUtil.BASICLTI_ENCRYPTION_KEY);
  }
  try
  {
    // register as an entity producer
    EntityManager.registerEntityProducer(this,REFERENCE_ROOT);
  }
  catch (Throwable t)
  {
    logger.warn("init(): ", t);
  }
  if ( ltiService == null ) ltiService = (LTIService) ComponentManager.get("org.sakaiproject.lti.api.LTIService");
}

代码示例来源:origin: org.sakaiproject.kernel/sakai-kernel-api

public static java.util.List newReferenceList(java.util.List param0)
{
  org.sakaiproject.entity.api.EntityManager service = getInstance();
  if (service == null) return null;
  return service.newReferenceList(param0);
}

相关文章