org.exoplatform.commons.utils
Class CommonsUtils

java.lang.Object
  extended by org.exoplatform.commons.utils.CommonsUtils

public class CommonsUtils
extends Object


Constructor Summary
CommonsUtils()
           
 
Method Summary
static org.exoplatform.services.jcr.core.ManageableRepository getRepository()
          Get the current repository
static String getRestContextName()
           
static
<T> T
getService(Class<T> clazz)
          Gets the service.
static
<T> T
getService(Class<T> clazz, String containerName)
          Gets the service.
static org.exoplatform.services.jcr.ext.common.SessionProvider getSystemSessionProvider()
          Gets the system session provider.
static org.exoplatform.services.jcr.ext.common.SessionProvider getUserSessionProvider()
          Gets the session provider.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommonsUtils

public CommonsUtils()
Method Detail

getSystemSessionProvider

public static org.exoplatform.services.jcr.ext.common.SessionProvider getSystemSessionProvider()
Gets the system session provider.

Returns:
the system session provider

getUserSessionProvider

public static org.exoplatform.services.jcr.ext.common.SessionProvider getUserSessionProvider()
Gets the session provider.

Returns:
the session provider

getService

public static <T> T getService(Class<T> clazz)
Gets the service.

Parameters:
clazz - the clazz
Returns:
the service

getService

public static <T> T getService(Class<T> clazz,
                               String containerName)
Gets the service.

Parameters:
clazz - the class
containerName - the container's name
Returns:
the service

getRepository

public static org.exoplatform.services.jcr.core.ManageableRepository getRepository()
Get the current repository

Returns:
the current manageable repository

getRestContextName

public static String getRestContextName()


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.