Package | Description |
---|---|
com.almworks.jira.structure.api.permissions | |
com.almworks.jira.structure.api.structure |
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. |
com.almworks.jira.structure.api.util | |
com.almworks.jira.structure.api.view |
Modifier and Type | Method and Description |
---|---|
abstract PermissionLevel |
PermissionRule.apply(ApplicationUser user,
PermissionLevel pass,
List<Object> callStack,
La<Long,List<PermissionRule>> resolver)
Apply permission rule and return the result.
|
PermissionLevel |
PermissionRule.ApplyStructure.apply(ApplicationUser user,
PermissionLevel pass,
List<Object> callStack,
La<Long,List<PermissionRule>> resolver) |
PermissionLevel |
PermissionRule.SetLevel.apply(ApplicationUser user,
PermissionLevel pass,
List<Object> callStack,
La<Long,List<PermissionRule>> resolver) |
static PermissionLevel |
PermissionLevel.fromSerial(int serial)
Used to look up permission level by serial number.
|
PermissionLevel |
PermissionRule.SetLevel.getLevel() |
static PermissionLevel |
PermissionLevel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PermissionLevel[] |
PermissionLevel.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
abstract PermissionLevel |
PermissionRule.apply(ApplicationUser user,
PermissionLevel pass,
List<Object> callStack,
La<Long,List<PermissionRule>> resolver)
Apply permission rule and return the result.
|
PermissionLevel |
PermissionRule.ApplyStructure.apply(ApplicationUser user,
PermissionLevel pass,
List<Object> callStack,
La<Long,List<PermissionRule>> resolver) |
PermissionLevel |
PermissionRule.SetLevel.apply(ApplicationUser user,
PermissionLevel pass,
List<Object> callStack,
La<Long,List<PermissionRule>> resolver) |
boolean |
PermissionLevel.includes(PermissionLevel requiredPermission)
Used to check whether effective permission is enough to do something:
if (permission.includes(PermissionLevel.EDIT)) |
void |
PermissionRule.SetLevel.setLevel(PermissionLevel level) |
Constructor and Description |
---|
SetLevel(PermissionSubject subject,
PermissionLevel level) |
Modifier and Type | Method and Description |
---|---|
PermissionLevel |
Structure.getEffectivePermission()
Calculates permission level for this structure based on the current user.
|
PermissionLevel |
StructureManager.getStructurePermission(Long structureId)
Calculates access level to a structure for the current user.
|
PermissionLevel |
StructureManager.getStructurePermission(Long structureId,
ApplicationUser user)
Calculates access level to a structure for the specified user.
|
Modifier and Type | Method and Description |
---|---|
List<Structure> |
StructureManager.getAllStructures(PermissionLevel requiredLevel)
Retrieves a list of all unarchived structures that are accessible to the
current user at the specified permission level.
|
List<Structure> |
StructureManager.getAllStructures(PermissionLevel requiredLevel,
boolean includeArchived)
Retrieves a list of all structures that are visible to the current user
at the specified permission level.
|
List<Structure> |
StructureManager.getArchivedStructures(PermissionLevel requiredLevel)
Retrieves a list of all archived structures that are visible to the current user
at the specified permission level.
|
Structure |
StructureManager.getStructure(Long structureId,
PermissionLevel requiredLevel)
Retrieves a structure given structure ID.
|
List<Structure> |
StructureManager.getStructuresByName(String name,
PermissionLevel requiredLevel)
Convenience method to search for unarchived structures with the specified name.
|
List<Structure> |
StructureManager.getStructuresByName(String name,
PermissionLevel requiredLevel,
boolean searchArchivedStructures)
Convenience method that searches for structures with the specified name.
|
boolean |
StructureManager.isAccessible(Long structureId,
PermissionLevel requiredLevel)
Checks that the specified structure exists and the current user has access to it
with the required permission level.
|
Modifier and Type | Method and Description |
---|---|
static PermissionLevel |
StructureUtil.applyPermissions(List<PermissionRule> permissions,
ApplicationUser user,
List<Object> stack,
La<Long,List<PermissionRule>> resolver,
PermissionLevel pass) |
Modifier and Type | Method and Description |
---|---|
static PermissionLevel |
StructureUtil.applyPermissions(List<PermissionRule> permissions,
ApplicationUser user,
List<Object> stack,
La<Long,List<PermissionRule>> resolver,
PermissionLevel pass) |
Modifier and Type | Method and Description |
---|---|
PermissionLevel |
StructureView.getEffectivePermission(ApplicationUser user)
Calculates access level to this view for the specified user.
|
PermissionLevel |
StructureViewManager.getViewPermission(Long viewId,
ApplicationUser user)
Calculates the access level that the specified user has to the specified view.
|
Modifier and Type | Method and Description |
---|---|
StructureView |
StructureViewManager.getView(Long viewId,
PermissionLevel requiredLevel)
Retrieves a view specified by the numeric view ID and checks if
the
current user has the specified access level for that view. |
List<StructureView> |
StructureViewManager.getViews(PermissionLevel requiredLevel)
Retrieves a list of all views that the
current user
has the specified access level to. |
boolean |
StructureViewManager.isAccessible(Long viewId,
PermissionLevel level)
Checks if the specified view exists and the
current user has the given
access level to it. |
Copyright © 2024 Tempo Software. All Rights Reserved.