public class FAQServiceUtils extends Object
| Constructor and Description |
|---|
FAQServiceUtils() |
| Modifier and Type | Method and Description |
|---|---|
static org.exoplatform.forum.common.jcr.SessionManager |
getSessionManager() |
static List<String> |
getUserPermission(String[] userGroupMembership)
Find usernames matching user, group or membership expressions
|
static boolean |
isGroupExpression(String expr)
Is the expression a group expression
|
static boolean |
isMembershipExpression(String expr)
Is the expression a membership expression (MEMBERSHIPTYPE:GROUP)
|
static void |
reparePermissions(javax.jcr.Node node,
String owner)
Repare permission of node
|
public static boolean isGroupExpression(String expr)
expr - public static boolean isMembershipExpression(String expr)
expr - public static List<String> getUserPermission(String[] userGroupMembership) throws Exception
userGroupMembership - list that may contain usernames or group names or membership expressions in the form MEMBERSHIPTYPE:GROUPExceptionpublic static void reparePermissions(javax.jcr.Node node,
String owner)
throws Exception
node - Node which is repared permissionowner - permission will be added for this nodeExceptionpublic static org.exoplatform.forum.common.jcr.SessionManager getSessionManager()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.