Class AdminPermissionChecker
- java.lang.Object
-
- org.apache.jackrabbit.vault.packaging.impl.AdminPermissionChecker
-
public class AdminPermissionChecker extends Object
Utility class to check if a session has administrative permissions (e.g. to check if a package can be installed)
-
-
Field Summary
Fields Modifier and Type Field Description static org.apache.maven.artifact.versioning.ComparableVersion
VERSION_OAK_140
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
hasAdministrativePermissions(@NotNull Session session, String... additionalAdminAuthorizableIdsOrPrincipalNames)
Checks if the user who opened the session has administrative permissions
-
-
-
Method Detail
-
hasAdministrativePermissions
public static boolean hasAdministrativePermissions(@NotNull @NotNull Session session, String... additionalAdminAuthorizableIdsOrPrincipalNames) throws RepositoryException
Checks if the user who opened the session has administrative permissions- Parameters:
session
- a JCR session- Returns:
- whether the passed session is an admin session
- Throws:
RepositoryException
- If an error occurrs.
-
-