public interface PermissionSchemeManager extends SchemeManager
com.atlassian.jira.permission.PermissionSchemeService} for higher level operations.
PROJECT_ASSOCIATION
Modifier and Type | Method and Description |
---|---|
void |
flushSchemeEntities() |
String |
getAssociationType() |
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme)
Get all Scheme entity records for a particular scheme.
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long entityTypeId)
Deprecated.
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long entityTypeId,
String parameter)
Deprecated.
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long permissionId,
String type,
String parameter)
Deprecated.
Use
getEntities(GenericValue, ProjectPermissionKey, String, String) . Since v6.3. |
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
ProjectPermissionKey permissionKey)
Deprecated.
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
ProjectPermissionKey permissionKey,
String parameter)
Deprecated.
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
ProjectPermissionKey permissionKey,
String type,
String parameter)
Deprecated.
Use
getPermissionSchemeEntries(long, com.atlassian.jira.security.plugin.ProjectPermissionKey, String) instead. Since v6.4. |
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
String permissionKey)
Deprecated.
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
String type,
Long entityTypeId)
Deprecated.
Use
getPermissionSchemeEntries(long, com.atlassian.jira.security.plugin.ProjectPermissionKey, String) instead. Since v6.4. |
List<org.ofbiz.core.entity.GenericValue> |
getEntitiesByType(org.ofbiz.core.entity.GenericValue scheme,
ProjectPermissionKey permissionKey,
String type)
Deprecated.
Use
getPermissionSchemeEntries(long, com.atlassian.jira.security.plugin.ProjectPermissionKey, String) instead. Since v6.4. |
String |
getEntityName() |
Collection<com.atlassian.crowd.embedded.api.Group> |
getGroups(Long permissionId,
Project project)
Deprecated.
Use
getGroups(ProjectPermissionKey, Project) . Since v6.3. |
Collection<com.atlassian.crowd.embedded.api.Group> |
getGroups(ProjectPermissionKey permissionKey,
Project project) |
Collection<PermissionSchemeEntry> |
getPermissionSchemeEntries(long schemeId,
ProjectPermissionKey permissionKey)
Returns the PermissionSchemeEntries for the given Permission Scheme and ProjectPermissionKey.
|
Collection<PermissionSchemeEntry> |
getPermissionSchemeEntries(long schemeId,
ProjectPermissionKey permissionKey,
String type)
Returns the PermissionSchemeEntries for the given Permission Scheme and ProjectPermissionKey.
|
Collection<PermissionSchemeEntry> |
getPermissionSchemeEntries(Scheme scheme,
ProjectPermissionKey permissionKey)
Returns the PermissionSchemeEntries for the given Permission Scheme and ProjectPermissionKey.
|
String |
getSchemeDesc() |
String |
getSchemeEntityName() |
Collection<org.ofbiz.core.entity.GenericValue> |
getSchemesContainingEntity(String type,
String parameter)
This is a method that is meant to quickly get you all the schemes that contain an entity of the
specified type and parameter.
|
Collection<ApplicationUser> |
getUsers(Long permissionId,
PermissionContext ctx)
Deprecated.
Use
getUsers(ProjectPermissionKey, PermissionContext) . Since v6.3. |
Collection<ApplicationUser> |
getUsers(ProjectPermissionKey permissionKey,
PermissionContext ctx) |
boolean |
hasExtendedProjectAdministration(Project project)
Checks if scheme for project has
com.atlassian.jira.permission.PermissionSchemeAttributeManager.AttributeKeys#EXTENDED_ADMINISTER_PROJECTS_ENABLED_ATTRIBUTE enabled. |
ProjectWidePermission |
hasProjectWidePermission(ProjectPermissionKey permissionKey,
Project project,
ApplicationUser user,
boolean issueCreation) |
boolean |
hasSchemePermission(ProjectPermissionKey permissionKey,
Issue issue)
Checks anonymous permission of the given permission type for the given issue.
|
boolean |
hasSchemePermission(ProjectPermissionKey permissionKey,
Issue issue,
ApplicationUser user,
boolean issueCreation)
Checks the given user's permission of the given permission type for the given issue.
|
boolean |
hasSchemePermission(ProjectPermissionKey permissionKey,
Project project)
Checks anonymous permission of the given permission type for the given project.
|
boolean |
hasSchemePermission(ProjectPermissionKey permissionKey,
Project project,
ApplicationUser user,
boolean issueCreation)
Checks the given user's permission of the given permission type for the given project.
|
addDefaultSchemeToProject, addDefaultSchemeToProject, addSchemeToProject, addSchemeToProject, copyScheme, copyScheme, createDefaultScheme, createScheme, createSchemeAndEntities, createSchemeEntity, createSchemeObject, deleteEntities, deleteEntity, deleteScheme, getAssociatedSchemes, getDefaultScheme, getDefaultSchemeObject, getEntities, getEntitiesByIds, getEntity, getGroups, getProjects, getScheme, getScheme, getSchemeFor, getSchemeIdFor, getSchemeObject, getSchemeObject, getSchemeObjects, getSchemes, getSchemes, getUnassociatedSchemes, getUsers, getUsers, getUsers, removeEntities, removeEntities, removeSchemesFromProject, removeSchemesFromProject, schemeExists, swapParameterForEntitiesOfType, updateScheme, updateScheme
String getSchemeEntityName()
String getEntityName()
String getAssociationType()
String getSchemeDesc()
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
getEntities
in interface SchemeManager
scheme
- The scheme that the entities belong toorg.ofbiz.core.entity.GenericEntityException
- If a DB error occurs@Deprecated List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
getPermissionSchemeEntries(com.atlassian.jira.scheme.Scheme, com.atlassian.jira.security.plugin.ProjectPermissionKey)
instead. Since v6.4.getEntities
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
@Deprecated List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String permissionKey) throws org.ofbiz.core.entity.GenericEntityException
getPermissionSchemeEntries(com.atlassian.jira.scheme.Scheme, com.atlassian.jira.security.plugin.ProjectPermissionKey)
instead. Since v6.4.getEntities
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
@Deprecated List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long entityTypeId, String parameter) throws org.ofbiz.core.entity.GenericEntityException
getPermissionSchemeEntries(com.atlassian.jira.scheme.Scheme, com.atlassian.jira.security.plugin.ProjectPermissionKey)
instead. Since v6.4.getEntities
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
@Deprecated List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String type, Long entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
getPermissionSchemeEntries(long, com.atlassian.jira.security.plugin.ProjectPermissionKey, String)
instead. Since v6.4.getEntities
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
Collection<PermissionSchemeEntry> getPermissionSchemeEntries(@Nonnull Scheme scheme, @Nonnull ProjectPermissionKey permissionKey)
scheme
- The permission schemepermissionKey
- The permission typegetPermissionSchemeEntries(long, ProjectPermissionKey)
Collection<PermissionSchemeEntry> getPermissionSchemeEntries(long schemeId, @Nonnull ProjectPermissionKey permissionKey)
schemeId
- The permission schemepermissionKey
- The permission typegetPermissionSchemeEntries(Scheme, ProjectPermissionKey)
Collection<PermissionSchemeEntry> getPermissionSchemeEntries(long schemeId, @Nonnull ProjectPermissionKey permissionKey, @Nonnull String type)
schemeId
- The permission schemepermissionKey
- The permission typegetPermissionSchemeEntries(long, ProjectPermissionKey)
List<org.ofbiz.core.entity.GenericValue> getEntities(@Nonnull org.ofbiz.core.entity.GenericValue scheme, @Nonnull ProjectPermissionKey permissionKey) throws org.ofbiz.core.entity.GenericEntityException
getPermissionSchemeEntries(com.atlassian.jira.scheme.Scheme, com.atlassian.jira.security.plugin.ProjectPermissionKey)
instead. Since v6.4.org.ofbiz.core.entity.GenericEntityException
@Deprecated List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long permissionId, String type, String parameter) throws org.ofbiz.core.entity.GenericEntityException
getEntities(GenericValue, ProjectPermissionKey, String, String)
. Since v6.3.scheme
- The scheme that the permissions belong topermissionId
- The Id of the permissionparameter
- The permission parameter (group name etc)type
- The type of the permission(Group, Current Reporter etc)org.ofbiz.core.entity.GenericEntityException
@Deprecated List<org.ofbiz.core.entity.GenericValue> getEntities(@Nonnull org.ofbiz.core.entity.GenericValue scheme, @Nonnull ProjectPermissionKey permissionKey, @Nonnull String type, @Nonnull String parameter) throws org.ofbiz.core.entity.GenericEntityException
getPermissionSchemeEntries(long, com.atlassian.jira.security.plugin.ProjectPermissionKey, String)
instead. Since v6.4.scheme
- The scheme that the permissions belong topermissionKey
- The key of the permissionparameter
- The permission parameter (group name etc)type
- The type of the permission(Group, Current Reporter etc)org.ofbiz.core.entity.GenericEntityException
@Deprecated List<org.ofbiz.core.entity.GenericValue> getEntities(@Nonnull org.ofbiz.core.entity.GenericValue scheme, @Nonnull ProjectPermissionKey permissionKey, @Nonnull String parameter) throws org.ofbiz.core.entity.GenericEntityException
getPermissionSchemeEntries(com.atlassian.jira.scheme.Scheme, com.atlassian.jira.security.plugin.ProjectPermissionKey)
instead. Since v6.4.org.ofbiz.core.entity.GenericEntityException
@Deprecated List<org.ofbiz.core.entity.GenericValue> getEntitiesByType(@Nonnull org.ofbiz.core.entity.GenericValue scheme, @Nonnull ProjectPermissionKey permissionKey, @Nonnull String type) throws org.ofbiz.core.entity.GenericEntityException
getPermissionSchemeEntries(long, com.atlassian.jira.security.plugin.ProjectPermissionKey, String)
instead. Since v6.4.org.ofbiz.core.entity.GenericEntityException
void flushSchemeEntities()
Collection<org.ofbiz.core.entity.GenericValue> getSchemesContainingEntity(String type, String parameter)
type
- is the entity typeparameter
- is the scheme entries parameter value@Internal boolean hasSchemePermission(@Nonnull ProjectPermissionKey permissionKey, @Nonnull Project project)
permissionKey
- permission key.project
- the project to which permission is being checked.@Internal boolean hasSchemePermission(@Nonnull ProjectPermissionKey permissionKey, @Nonnull Issue issue)
permissionKey
- permission key.issue
- the issue to which permission is being checked.@Internal boolean hasSchemePermission(@Nonnull ProjectPermissionKey permissionKey, @Nonnull Project project, @Nullable ApplicationUser user, boolean issueCreation)
permissionKey
- permission key.project
- the project to which permission is being checked.user
- the user.issueCreation
- whether the permission is for creating an issue.@Internal ProjectWidePermission hasProjectWidePermission(@Nonnull ProjectPermissionKey permissionKey, @Nonnull Project project, @Nonnull ApplicationUser user, boolean issueCreation)
@Internal boolean hasSchemePermission(@Nonnull ProjectPermissionKey permissionKey, @Nonnull Issue issue, @Nullable ApplicationUser user, boolean issueCreation)
permissionKey
- permission key.issue
- the issue to check permission againstuser
- the user.issueCreation
- whether the permission is for creating an issue.@Deprecated Collection<com.atlassian.crowd.embedded.api.Group> getGroups(Long permissionId, Project project)
getGroups(ProjectPermissionKey, Project)
. Since v6.3.getGroups
in interface SchemeManager
Collection<com.atlassian.crowd.embedded.api.Group> getGroups(@Nonnull ProjectPermissionKey permissionKey, @Nonnull Project project)
@Deprecated Collection<ApplicationUser> getUsers(Long permissionId, PermissionContext ctx)
getUsers(ProjectPermissionKey, PermissionContext)
. Since v6.3.getUsers
in interface SchemeManager
Collection<ApplicationUser> getUsers(@Nonnull ProjectPermissionKey permissionKey, @Nonnull PermissionContext ctx)
@ExperimentalApi boolean hasExtendedProjectAdministration(@Nullable Project project)
com.atlassian.jira.permission.PermissionSchemeAttributeManager.AttributeKeys#EXTENDED_ADMINISTER_PROJECTS_ENABLED_ATTRIBUTE
enabled.project
- com.atlassian.jira.permission.PermissionSchemeAttributeManager.AttributeKeys#EXTENDED_ADMINISTER_PROJECTS_ENABLED_ATTRIBUTE
enabled, false otherwise.Copyright © 2002-2019 Atlassian. All Rights Reserved.