public class WorkflowBasedPermissionSchemeManager extends DefaultPermissionSchemeManager implements Startable
<step id="23" name="Pending Biz User Approval"> .... <meta name="jira.permission.assignable.group">acme-bizusers</meta>
When getUsers(Long, PermissionContext)
is called to discover assignable users,
this permission scheme manager first does the regular "Assignable" check, and then filters returned users for membership
of the 'jira.permission.assignable.group' (in this example). If jira.permission.assignable.* isn't specified for a step, all permission-derived users
are returned.
groupManager, projectManager, schemeFactory, securityTypeManager
PROJECT_ASSOCIATION
Constructor and Description |
---|
WorkflowBasedPermissionSchemeManager(ProjectManager projectManager,
PermissionTypeManager permissionTypeManager,
WorkflowPermissionFactory workflowPermissionFactory,
PermissionContextFactory permissionContextFactory,
OfBizDelegator ofBizDelegator,
SchemeFactory schemeFactory,
com.atlassian.event.api.EventPublisher eventPublisher,
NodeAssociationStore nodeAssociationStore,
GroupManager groupManager,
com.atlassian.cache.CacheManager cacheManager,
PermissionSchemeAttributeManager permissionSchemeAttributeManager) |
Modifier and Type | Method and Description |
---|---|
Collection<ApplicationUser> |
getUsers(Long permissionId,
PermissionContext ctx) |
Collection<ApplicationUser> |
getUsers(ProjectPermissionKey permissionKey,
PermissionContext ctx) |
void |
onClearCache(ClearCacheEvent event) |
void |
onSchemePermissionsFKChangedEvent(SchemePermissionsFKChangedEvent event) |
void |
start()
Registers this CachingFieldConfigContextPersister's cache in the JIRA instrumentation.
|
createSchemeAddedToProjectEvent, createSchemeCopiedEvent, createSchemeCreatedEvent, createSchemeEntity, createSchemeEntityDeletedEvent, createSchemeEntityNoEvent, createSchemeRemovedFromProjectEvent, createSchemeUpdatedEvent, deleteEntities, deleteEntity, deleteScheme, flushSchemeEntities, getDefaultDescriptionKey, getDefaultNameKey, getEntities, getEntities, getEntities, getEntities, getEntities, getEntities, getEntities, getEntities, getEntities, getEntitiesByType, getEntityName, getGroups, getGroups, getGroups, getPermissionSchemeEntries, getPermissionSchemeEntries, getPermissionSchemeEntries, getSchemeDesc, getSchemeEntityName, getSchemeFor, getSchemeIdFor, getSchemesContainingEntity, hasExtendedProjectAdministration, hasProjectWidePermission, hasSchemePermission, hasSchemePermission, hasSchemePermission, hasSchemePermission, isGroupUsed, makeSchemeEntity, removeEntities, removeEntities, swapParameterForEntitiesOfType
addDefaultSchemeToProject, addDefaultSchemeToProject, addSchemeToProject, addSchemeToProject, copyScheme, copyScheme, createDefaultScheme, createScheme, createSchemeAndEntities, createSchemeGenericValue, createSchemeNoEvent, createSchemeObject, flushProjectSchemes, getApplicationI18n, getAssociatedSchemes, getAssociationType, getDefaultScheme, getDefaultSchemeObject, getEntities, getEntitiesByIds, getEntity, getNameForCopy, getProjects, getScheme, getScheme, getSchemeObject, getSchemeObject, getSchemeObjects, getSchemes, getSchemes, getUnassociatedSchemes, getUsers, getUsers, getUsers, removeSchemesFromProject, removeSchemesFromProject, schemeExists, updateScheme, updateScheme
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAssociationType
addDefaultSchemeToProject, addDefaultSchemeToProject, addSchemeToProject, addSchemeToProject, copyScheme, copyScheme, createDefaultScheme, createScheme, createSchemeAndEntities, createSchemeObject, getAssociatedSchemes, getDefaultScheme, getDefaultSchemeObject, getEntities, getEntitiesByIds, getEntity, getProjects, getScheme, getScheme, getSchemeObject, getSchemeObject, getSchemeObjects, getSchemes, getSchemes, getUnassociatedSchemes, getUsers, getUsers, getUsers, removeSchemesFromProject, removeSchemesFromProject, schemeExists, updateScheme, updateScheme
isGroupUsed
public WorkflowBasedPermissionSchemeManager(ProjectManager projectManager, PermissionTypeManager permissionTypeManager, WorkflowPermissionFactory workflowPermissionFactory, PermissionContextFactory permissionContextFactory, OfBizDelegator ofBizDelegator, SchemeFactory schemeFactory, com.atlassian.event.api.EventPublisher eventPublisher, NodeAssociationStore nodeAssociationStore, GroupManager groupManager, com.atlassian.cache.CacheManager cacheManager, PermissionSchemeAttributeManager permissionSchemeAttributeManager)
public void start() throws Exception
DefaultPermissionSchemeManager
start
in interface Startable
start
in class DefaultPermissionSchemeManager
Exception
- Allows implementations to throw an Exception.@EventListener public void onClearCache(ClearCacheEvent event)
onClearCache
in class DefaultPermissionSchemeManager
@EventListener public void onSchemePermissionsFKChangedEvent(SchemePermissionsFKChangedEvent event)
onSchemePermissionsFKChangedEvent
in class DefaultPermissionSchemeManager
public Collection<ApplicationUser> getUsers(Long permissionId, PermissionContext ctx)
getUsers
in interface PermissionSchemeManager
getUsers
in interface SchemeManager
getUsers
in class AbstractSchemeManager
public Collection<ApplicationUser> getUsers(@Nonnull ProjectPermissionKey permissionKey, @Nonnull PermissionContext ctx)
getUsers
in interface PermissionSchemeManager
getUsers
in class DefaultPermissionSchemeManager
Copyright © 2002-2024 Atlassian. All Rights Reserved.