Class PermissionUtil
- java.lang.Object
-
- com.marklogic.contentpump.utilities.PermissionUtil
-
public class PermissionUtil extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_PERM_QUERYstatic org.apache.commons.logging.LogLOG
-
Constructor Summary
Constructors Constructor Description PermissionUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.marklogic.xcc.ContentCapabilitygetCapbility(String cap)static List<com.marklogic.xcc.ContentPermission>getDefaultPermissions(org.apache.hadoop.conf.Configuration conf, LinkedMapWritable roleMap)static List<com.marklogic.xcc.ContentPermission>getPermissions(String[] perms)Get a list of ContentPermission from given string
-
-
-
Field Detail
-
LOG
public static final org.apache.commons.logging.Log LOG
-
DEFAULT_PERM_QUERY
public static final String DEFAULT_PERM_QUERY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPermissions
public static List<com.marklogic.xcc.ContentPermission> getPermissions(String[] perms)
Get a list of ContentPermission from given string- Parameters:
perms- a string of role-name,capability pais, separated by commna- Returns:
-
getDefaultPermissions
public static List<com.marklogic.xcc.ContentPermission> getDefaultPermissions(org.apache.hadoop.conf.Configuration conf, LinkedMapWritable roleMap) throws IOException
- Throws:
IOException
-
getCapbility
public static com.marklogic.xcc.ContentCapability getCapbility(String cap)
-
-