com.atlassian.jira.permission
Interface PermissionSchemeManager

All Superinterfaces:
SchemeManager
All Known Implementing Classes:
DefaultPermissionSchemeManager, WorkflowBasedPermissionSchemeManager

public interface PermissionSchemeManager
extends SchemeManager

This class is used to handle Permission Schemes. Permission Schemes are created, removed and edited through this class


Field Summary
 
Fields inherited from interface com.atlassian.jira.scheme.SchemeManager
PROJECT_ASSOCIATION
 
Method Summary
 void flushSchemeEntities()
           
 String getAssociationType()
           
 List getEntities(org.ofbiz.core.entity.GenericValue scheme, Long permissionId, String type, String parameter)
          Get all Generic Value permission records for a particular scheme and permission Id
 String getEntityName()
           
 String getSchemeDesc()
           
 String getSchemeEntityName()
           
 Collection 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.
 
Methods inherited from interface com.atlassian.jira.scheme.SchemeManager
addDefaultSchemeToProject, addSchemeToProject, addSchemeToProject, copyScheme, createDefaultScheme, createScheme, createSchemeAndEntities, createSchemeEntity, deleteEntity, deleteScheme, getAssociatedSchemes, getDefaultScheme, getEntities, getEntities, getEntities, getEntities, getEntities, getEntities, getEntity, getGroups, getProjects, getProjects, getScheme, getScheme, getSchemes, getSchemes, getUnassociatedSchemes, getUsers, getUsers, hasSchemeAuthority, hasSchemeAuthority, removeEntities, removeEntities, removeSchemesFromProject, removeSchemesFromProject, schemeExists, updateScheme, updateScheme
 

Method Detail

getSchemeEntityName

String getSchemeEntityName()

getEntityName

String getEntityName()

getAssociationType

String getAssociationType()

getSchemeDesc

String getSchemeDesc()

getEntities

List getEntities(org.ofbiz.core.entity.GenericValue scheme,
                 Long permissionId,
                 String type,
                 String parameter)
                 throws org.ofbiz.core.entity.GenericEntityException
Get all Generic Value permission records for a particular scheme and permission Id

Parameters:
scheme - The scheme that the permissions belong to
permissionId - The Id of the permission
parameter - The permission parameter (group name etc)
type - The type of the permission(Group, Current Reporter etc)
Returns:
List of (GenericValue) permissions
Throws:
org.ofbiz.core.entity.GenericEntityException

flushSchemeEntities

void flushSchemeEntities()

getSchemesContainingEntity

Collection 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.

Parameters:
type - is the entity type
parameter - is the scheme entries parameter value
Returns:
Collection of GenericValues that represents a scheme


Copyright © 2002-2009 Atlassian. All Rights Reserved.