org.sakaiproject.entity.cover.EntityManager.getInstance()方法的使用及代码示例

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

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

EntityManager.getInstance介绍

[英]Access the component instance: special cover only method.
[中]访问组件实例:仅限特殊封面方法。

代码示例

代码示例来源: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: 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: 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.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);
}

代码示例来源: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: 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 java.util.List getEntityProducers()
{
  org.sakaiproject.entity.api.EntityManager service = getInstance();
  if (service == null) return null;
  return service.getEntityProducers();
}

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

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);
}

代码示例来源: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.kernel/sakai-kernel-api

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: org.sakaiproject.kernel/sakai-kernel-api

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.kernel/sakai-kernel-api

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.kernel/sakai-kernel-api

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

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

public Site getSite(String siteId) throws IdUnusedException
{
  Site site = null;
  try {
    site = SiteService.getInstance().getSite(siteId);
    return site;
  } catch (IdUnusedException e) {
    // Attempt to lookup by alias.
    String reference = portal.getSiteNeighbourhoodService().parseSiteAlias(siteId);
    if (reference != null)
    {
      Reference ref = EntityManager.getInstance().newReference(reference);
      try 
      {
        site = SiteService.getInstance().getSite(ref.getId());
        return site;
      }
      catch (IdUnusedException e2)
      {
      }
    }
    throw e;
  }
}

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

public Site getSite(String siteId) throws IdUnusedException
{
  Site site = null;
  try {
    site = SiteService.getInstance().getSite(siteId);
    return site;
  } catch (IdUnusedException e) {
    // Attempt to lookup by alias.
    String reference = portal.getSiteNeighbourhoodService().parseSiteAlias(siteId);
    if (reference != null)
    {
      Reference ref = EntityManager.getInstance().newReference(reference);
      try 
      {
        site = SiteService.getInstance().getSite(ref.getId());
        return site;
      }
      catch (IdUnusedException e2)
      {
      }
    }
    throw e;
  }
}

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

if (reference != null)
  Reference ref = EntityManager.getInstance().newReference(reference);
  try {
    return SiteService.getSiteVisit(ref.getId());

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

if (reference != null)
  Reference ref = EntityManager.getInstance().newReference(reference);
  try {
    return SiteService.getSiteVisit(ref.getId());

相关文章