Interface PolicyEnforcement
public interface PolicyEnforcement
Check access entry point.
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancheckAccess(String projectId, String action) This method is used if the params is String.class instead of UUID.class and Action.classdefault booleancheckAccess(String entityName, String projectId, String action) Performs evaluation of authorization policies using given entity name, current project and operation for currently authenticated user.booleancheckAccess(String entityName, Set<UUID> projectIdSet, String action) Performs evaluation of authorization policies using given entity name, set of projects and operation for currently authenticated user.booleancheckAccess(String entityName, Set<UUID> projectIdSet, Operation action) Performs evaluation of authorization policies using given entity name, set of projects and operation for currently authenticated user.default booleancheckAccess(String entityName, UUID projectId, String action) Performs evaluation of authorization policies using given entity name, current project and operation for currently authenticated user.default booleanPerforms evaluation of authorization policies using given current project, set of objectIds and operation for currently authenticated user.booleanPerforms evaluation of authorization policies using given current project, set of objectIds and operation for currently authenticated user.default booleancheckAccess(String entityName, UUID projectId, UUID objectId, String operation) Performs evaluation of authorization policies using given current project, objectId and operation for currently authenticated user.booleancheckAccess(String entityName, UUID projectId, UUID objectId, Operation operation) Performs evaluation of authorization policies using given current project, objectId and operation for currently authenticated user.booleancheckAccess(String entityName, UUID projectId, Operation action) Performs evaluation of authorization policies using given current project, entity name and operation for currently authenticated user.booleancheckAccess(Set<UUID> projectIdSet, String action) Performs evaluation of authorization policies using given set of projects and operation for currently authenticated user, execute checkAccess (UUID projectId, String action) for each project in the set.default booleancheckAccess(UUID projectId, String action) This method is used if the params is UUID.class and String.class instead of Action.classbooleancheckAccess(UUID projectId, Operation action) Performs evaluation of authorization policies using given current project and operation for currently authenticated user.default booleancheckExternalAccess(String projectId, String action) booleancheckExternalAccess(String entityName, UUID projectId, Operation action) Performs evaluation of authorization policies using given current project, set of objectIds and operation for currently authenticated user.booleancheckPoliciesForOperation(String entityName, Project project, Operation operation) booleancheckPoliciesForOperation(Project project, Operation operation) Check policy for project.default ProjectgetProjectEntityWithGroup(UUID projectId, List<UUID> leads, List<UUID> qaTaEngineers, List<UUID> devOpsEngineers, List<UUID> atpRunners, List<UUID> atpSupports, Permissions permissions) Create project entity with users fields.booleanisAdmin()Performs evaluation of authorization policies using user role.booleanPerforms evaluation of authorization policies.booleanbooleanPerforms evaluation of authorization policies using user role.
-
Method Details
-
checkAccess
This method is used if the params is String.class instead of UUID.class and Action.class- Returns:
- permission
-
checkAccess
This method is used if the params is UUID.class and String.class instead of Action.class- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given set of projects and operation for currently authenticated user, execute checkAccess (UUID projectId, String action) for each project in the set. If for at least one project checkAccess(UUID projectId, String action) return false, then the method will also return false.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given current project and operation for currently authenticated user.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given current project, entity name and operation for currently authenticated user. This method is used if the params is UUID.class and String.class instead of Action.class.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given entity name, set of projects and operation for currently authenticated user.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given entity name, set of projects and operation for currently authenticated user.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given entity name, current project and operation for currently authenticated user.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given entity name, current project and operation for currently authenticated user.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given current project, objectId and operation for currently authenticated user.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given current project, objectId and operation for currently authenticated user.- Returns:
- permission
-
checkAccess
Performs evaluation of authorization policies using given current project, set of objectIds and operation for currently authenticated user.- Returns:
- permission
-
checkAccess
default boolean checkAccess(String entityName, UUID projectId, Set<UUID> objectIds, String operation) Performs evaluation of authorization policies using given current project, set of objectIds and operation for currently authenticated user.- Returns:
- permission
-
checkExternalAccess
Performs evaluation of authorization policies using given current project, set of objectIds and operation for currently authenticated user.- Returns:
- permission
-
checkExternalAccess
-
isAdmin
boolean isAdmin()Performs evaluation of authorization policies using user role. -
isExternal
boolean isExternal() -
isSupport
boolean isSupport()Performs evaluation of authorization policies using user role. -
isAuthenticated
boolean isAuthenticated()Performs evaluation of authorization policies. -
getProjectEntityWithGroup
default Project getProjectEntityWithGroup(UUID projectId, List<UUID> leads, List<UUID> qaTaEngineers, List<UUID> devOpsEngineers, List<UUID> atpRunners, List<UUID> atpSupports, Permissions permissions) Create project entity with users fields.- Parameters:
leads- list of leads IDqaTaEngineers- list of QA/TA engineers IDdevOpsEngineers- list of devops engineers IDatpRunners- list of atp runners ID- Returns:
Project
-
checkPoliciesForOperation
Check policy for project. -
checkPoliciesForOperation
-