public class CommonsUtils extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CONFIGURED_DOMAIN_URL_KEY |
static String |
CONFIGURED_TENANT_MASTER_HOST_KEY |
| Constructor and Description |
|---|
CommonsUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
endRequest(Object service) |
static String |
getCurrentDomain()
Get the current domain name by configuration
|
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.
|
static boolean |
isFeatureActive(String featureName) |
static void |
startRequest(Object service) |
public static final String CONFIGURED_TENANT_MASTER_HOST_KEY
public static final String CONFIGURED_DOMAIN_URL_KEY
public static org.exoplatform.services.jcr.ext.common.SessionProvider getSystemSessionProvider()
public static org.exoplatform.services.jcr.ext.common.SessionProvider getUserSessionProvider()
public static <T> T getService(Class<T> clazz)
clazz - the clazzpublic static <T> T getService(Class<T> clazz, String containerName)
clazz - the classcontainerName - the container's namepublic static org.exoplatform.services.jcr.core.ManageableRepository getRepository()
public static String getRestContextName()
public static boolean isFeatureActive(String featureName)
public static String getCurrentDomain()
public static void startRequest(Object service)
public static void endRequest(Object service)
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.