Class PermissionUtil
- java.lang.Object
-
- org.apache.jackrabbit.oak.security.authorization.permission.PermissionUtil
-
- All Implemented Interfaces:
PermissionConstants
public final class PermissionUtil extends Object implements PermissionConstants
Utility methods to evaluate permissions.
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.spi.security.authorization.permission.PermissionConstants
DEFAULT_READ_PATHS, NT_REP_PERMISSION_STORE, NT_REP_PERMISSIONS, PARAM_ADMINISTRATIVE_PRINCIPALS, PARAM_PERMISSIONS_JR2, PARAM_READ_PATHS, PERMISSION_NODE_NAMES, PERMISSION_NODETYPE_NAMES, PERMISSION_PROPERTY_NAMES, PERMISSIONS_STORE_PATH, REP_ACCESS_CONTROLLED_PATH, REP_IS_ALLOW, REP_NUM_PERMISSIONS, REP_PERMISSION_STORE, REP_PRIVILEGE_BITS, VALUE_PERMISSIONS_JR2
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
checkACLPath(@NotNull Tree node, @NotNull String path)
static boolean
checkACLPath(@NotNull NodeBuilder node, @NotNull String path)
static @NotNull String
getEntryName(@Nullable String accessControlledPath)
static @Nullable String
getParentPathOrNull(@NotNull String path)
static @Nullable String
getPath(@Nullable Tree parentBefore, @Nullable Tree parentAfter)
static @NotNull Tree
getPermissionsRoot(@NotNull Root root, @NotNull String permissionRootName)
static @NotNull Tree
getPrincipalRoot(@NotNull Tree permissionsTree, @NotNull String principalName)
static @NotNull Tree
getReadOnlyTree(@NotNull Tree tree, @NotNull Root readOnlyRoot)
static @Nullable Tree
getReadOnlyTreeOrNull(@Nullable Tree tree, @NotNull Root readOnlyRoot)
static boolean
isAdminOrSystem(@NotNull Set<Principal> principals, @NotNull ConfigurationParameters config)
-
-
-
Method Detail
-
getParentPathOrNull
@Nullable public static @Nullable String getParentPathOrNull(@NotNull @NotNull String path)
-
getEntryName
@NotNull public static @NotNull String getEntryName(@Nullable @Nullable String accessControlledPath)
-
checkACLPath
public static boolean checkACLPath(@NotNull @NotNull NodeBuilder node, @NotNull @NotNull String path)
-
checkACLPath
public static boolean checkACLPath(@NotNull @NotNull Tree node, @NotNull @NotNull String path)
-
getPermissionsRoot
@NotNull public static @NotNull Tree getPermissionsRoot(@NotNull @NotNull Root root, @NotNull @NotNull String permissionRootName)
-
getPrincipalRoot
@NotNull public static @NotNull Tree getPrincipalRoot(@NotNull @NotNull Tree permissionsTree, @NotNull @NotNull String principalName)
-
isAdminOrSystem
public static boolean isAdminOrSystem(@NotNull @NotNull Set<Principal> principals, @NotNull @NotNull ConfigurationParameters config)
-
getPath
@Nullable public static @Nullable String getPath(@Nullable @Nullable Tree parentBefore, @Nullable @Nullable Tree parentAfter)
-
getReadOnlyTreeOrNull
@Nullable public static @Nullable Tree getReadOnlyTreeOrNull(@Nullable @Nullable Tree tree, @NotNull @NotNull Root readOnlyRoot)
-
-