Uses of Enum Class
com.almworks.jira.structure.api.permissions.PermissionLevel
Packages that use PermissionLevel
Package
Description
This package features
StructureManager service,
which is used to create structures and change their properties (but not the forest), and
Structure interface, which represents structures.-
Uses of PermissionLevel in com.almworks.jira.structure.api.permissions
Methods in com.almworks.jira.structure.api.permissions that return PermissionLevelModifier and TypeMethodDescriptionabstract PermissionLevelPermissionRule.apply(ApplicationUser user, PermissionLevel pass, List<Object> callStack, La<Long, List<PermissionRule>> resolver) Apply permission rule and return the result.PermissionRule.ApplyStructure.apply(ApplicationUser user, PermissionLevel pass, List<Object> callStack, La<Long, List<PermissionRule>> resolver) PermissionRule.SetLevel.apply(ApplicationUser user, PermissionLevel pass, List<Object> callStack, La<Long, List<PermissionRule>> resolver) static PermissionLevelPermissionLevel.fromSerial(int serial) Used to look up permission level by serial number.PermissionRule.SetLevel.getLevel()static PermissionLevelReturns the enum constant of this class with the specified name.static PermissionLevel[]PermissionLevel.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in com.almworks.jira.structure.api.permissions with parameters of type PermissionLevelModifier and TypeMethodDescriptionabstract PermissionLevelPermissionRule.apply(ApplicationUser user, PermissionLevel pass, List<Object> callStack, La<Long, List<PermissionRule>> resolver) Apply permission rule and return the result.PermissionRule.ApplyStructure.apply(ApplicationUser user, PermissionLevel pass, List<Object> callStack, La<Long, List<PermissionRule>> resolver) PermissionRule.SetLevel.apply(ApplicationUser user, PermissionLevel pass, List<Object> callStack, La<Long, List<PermissionRule>> resolver) booleanPermissionLevel.includes(PermissionLevel requiredPermission) Used to check whether effective permission is enough to do something:if (permission.includes(PermissionLevel.EDIT))voidPermissionRule.SetLevel.setLevel(PermissionLevel level) Constructors in com.almworks.jira.structure.api.permissions with parameters of type PermissionLevel -
Uses of PermissionLevel in com.almworks.jira.structure.api.structure
Methods in com.almworks.jira.structure.api.structure that return PermissionLevelModifier and TypeMethodDescriptionStructure.getEffectivePermission()Calculates permission level for this structure based on the current user.StructureManager.getStructurePermission(Long structureId) Calculates access level to a structure for the current user.StructureManager.getStructurePermission(Long structureId, ApplicationUser user) Calculates access level to a structure for the specified user.Methods in com.almworks.jira.structure.api.structure with parameters of type PermissionLevelModifier and TypeMethodDescriptionStructureManager.getAllStructures(PermissionLevel requiredLevel) Retrieves a list of all unarchived structures that are accessible to the current user at the specified permission level.StructureManager.getAllStructures(PermissionLevel requiredLevel, boolean includeArchived) Retrieves a list of all structures that are visible to the current user at the specified permission level.StructureManager.getArchivedStructures(PermissionLevel requiredLevel) Retrieves a list of all archived structures that are visible to the current user at the specified permission level.StructureManager.getStructure(Long structureId, PermissionLevel requiredLevel) Retrieves a structure given structure ID.StructureManager.getStructuresByName(String name, PermissionLevel requiredLevel) Convenience method to search for unarchived structures with the specified name.StructureManager.getStructuresByName(String name, PermissionLevel requiredLevel, boolean searchArchivedStructures) Convenience method that searches for structures with the specified name.booleanStructureManager.isAccessible(Long structureId, PermissionLevel requiredLevel) Checks that the specified structure exists and the current user has access to it with the required permission level. -
Uses of PermissionLevel in com.almworks.jira.structure.api.util
Methods in com.almworks.jira.structure.api.util that return PermissionLevelModifier and TypeMethodDescriptionstatic PermissionLevelStructureUtil.applyPermissions(List<PermissionRule> permissions, ApplicationUser user, List<Object> stack, La<Long, List<PermissionRule>> resolver, PermissionLevel pass) Methods in com.almworks.jira.structure.api.util with parameters of type PermissionLevelModifier and TypeMethodDescriptionstatic PermissionLevelStructureUtil.applyPermissions(List<PermissionRule> permissions, ApplicationUser user, List<Object> stack, La<Long, List<PermissionRule>> resolver, PermissionLevel pass) -
Uses of PermissionLevel in com.almworks.jira.structure.api.view
Methods in com.almworks.jira.structure.api.view that return PermissionLevelModifier and TypeMethodDescriptionStructureView.getEffectivePermission(ApplicationUser user) Calculates access level to this view for the specified user.StructureViewManager.getViewPermission(Long viewId, ApplicationUser user) Calculates the access level that the specified user has to the specified view.Methods in com.almworks.jira.structure.api.view with parameters of type PermissionLevelModifier and TypeMethodDescriptionStructureViewManager.getView(Long viewId, PermissionLevel requiredLevel) Retrieves a view specified by the numeric view ID and checks if thecurrent userhas the specified access level for that view.StructureViewManager.getViews(PermissionLevel requiredLevel) Retrieves a list of all views that thecurrent userhas the specified access level to.booleanStructureViewManager.isAccessible(Long viewId, PermissionLevel level) Checks if the specified view exists and thecurrent userhas the given access level to it.