|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.wcm.utils.WCMCoreUtils
public class WCMCoreUtils
Created by The eXo Platform SAS Author : Tran Nguyen Ngoc ngoc.tran@exoplatform.com Sep 8, 2009
| Constructor Summary | |
|---|---|
WCMCoreUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
getService(java.lang.Class<T> clazz)
Gets the service. |
|
static org.exoplatform.services.jcr.ext.common.SessionProvider |
getSessionProvider()
Gets the system session provider. |
|
static org.exoplatform.services.jcr.ext.common.SessionProvider |
getUserSessionProvider()
Gets the session provider. |
|
static boolean |
hasPermission(java.lang.String userId,
java.util.List<java.lang.String> permissions,
boolean isNeedFullAccess)
Check current user has permission to access a node or not - For each permission, compare with user's permissions - If permission has membership type is "*", just check the user's group id only - If permission has other membership types, then check the user's membership type and user's group id |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WCMCoreUtils()
| Method Detail |
|---|
public static <T> T getService(java.lang.Class<T> clazz)
clazz - the clazz
public static org.exoplatform.services.jcr.ext.common.SessionProvider getSessionProvider()
public static org.exoplatform.services.jcr.ext.common.SessionProvider getUserSessionProvider()
public static boolean hasPermission(java.lang.String userId,
java.util.List<java.lang.String> permissions,
boolean isNeedFullAccess)
userId - the current user's namepermissions - the current nodeisNeedFullAccess - if true, count full access (4) then return true, if false, return true if match first permission
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||