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()
           
 java.lang.String getAssociationType()
           
 java.util.List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, java.lang.Long permissionId, java.lang.String type, java.lang.String parameter)
          Get all Generic Value permission records for a particular scheme and permission Id
 java.lang.String getEntityName()
           
 java.lang.String getSchemeDesc()
           
 java.lang.String getSchemeEntityName()
           
 java.util.Collection<org.ofbiz.core.entity.GenericValue> getSchemesContainingEntity(java.lang.String type, java.lang.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

java.lang.String getSchemeEntityName()

getEntityName

java.lang.String getEntityName()

getAssociationType

java.lang.String getAssociationType()

getSchemeDesc

java.lang.String getSchemeDesc()

getEntities

java.util.List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme,
                                                               java.lang.Long permissionId,
                                                               java.lang.String type,
                                                               java.lang.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

java.util.Collection<org.ofbiz.core.entity.GenericValue> getSchemesContainingEntity(java.lang.String type,
                                                                                    java.lang.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-2010 Atlassian. All Rights Reserved.