com.atlassian.jira.scheme
Interface SchemeManager

All Known Subinterfaces:
IssueSecuritySchemeManager, NotificationSchemeManager, PermissionSchemeManager
All Known Implementing Classes:
AbstractSchemeManager, DefaultNotificationSchemeManager, DefaultPermissionSchemeManager, IssueSecuritySchemeManagerImpl

public interface SchemeManager


Method Summary
 void addDefaultSchemeToProject(GenericValue project)
           
 void addSchemeToProject(GenericValue project, GenericValue scheme)
           
 GenericValue copyScheme(GenericValue scheme)
           
 GenericValue createDefaultScheme()
           
 GenericValue createScheme(java.lang.String name, java.lang.String description)
           
 GenericValue createSchemeEntity(GenericValue scheme, SchemeEntity entity)
           
 void deleteEntity(java.lang.Long id)
           
 void deleteScheme(java.lang.Long id)
           
 GenericValue getDefaultScheme()
           
 java.util.List getEntities(GenericValue scheme)
           
 java.util.List getEntities(GenericValue scheme, java.lang.Long entityTypeId)
           
 java.util.List getEntities(GenericValue scheme, java.lang.Long entityTypeId, java.lang.String parameter)
           
 java.util.List getEntities(GenericValue scheme, java.lang.String entityTypeId)
           
 java.util.List getEntities(GenericValue scheme, java.lang.String type, java.lang.Long entityTypeId)
           
 GenericValue getEntity(java.lang.Long id)
           
 java.util.Collection getGroups(java.lang.Long permissionId, GenericValue project)
           
 java.util.List getProjects(GenericValue scheme)
           
 GenericValue getScheme(java.lang.Long id)
           
 GenericValue getScheme(java.lang.String name)
           
 java.util.List getSchemes()
           
 java.util.List getSchemes(GenericValue project)
           
 java.util.Collection getUsers(java.lang.Long permissionId, GenericValue project)
           
 boolean hasSchemeAuthority(java.lang.Long entityType, GenericValue entity)
           
 boolean hasSchemeAuthority(java.lang.Long entityType, GenericValue entity, User user)
           
 boolean removeEntities(GenericValue scheme, java.lang.Long permissionId)
           
 boolean removeEntities(java.lang.String parameter)
          Removes all scheme entities with this parameter
 void removeSchemesFromProject(GenericValue project)
           
 boolean schemeExists(java.lang.String name)
           
 void updateScheme(GenericValue entity)
           
 

Method Detail

getScheme

public GenericValue getScheme(java.lang.Long id)
                       throws GenericEntityException
Throws:
GenericEntityException

getSchemes

public java.util.List getSchemes()
                          throws GenericEntityException
Throws:
GenericEntityException

getScheme

public GenericValue getScheme(java.lang.String name)
                       throws GenericEntityException
Throws:
GenericEntityException

getSchemes

public java.util.List getSchemes(GenericValue project)
                          throws GenericEntityException
Throws:
GenericEntityException

schemeExists

public boolean schemeExists(java.lang.String name)
                     throws GenericEntityException
Throws:
GenericEntityException

createScheme

public GenericValue createScheme(java.lang.String name,
                                 java.lang.String description)
                          throws GenericEntityException
Throws:
GenericEntityException

getEntity

public GenericValue getEntity(java.lang.Long id)
                       throws GenericEntityException
Throws:
GenericEntityException

getEntities

public java.util.List getEntities(GenericValue scheme)
                           throws GenericEntityException
Throws:
GenericEntityException

getEntities

public java.util.List getEntities(GenericValue scheme,
                                  java.lang.Long entityTypeId)
                           throws GenericEntityException
Throws:
GenericEntityException

getEntities

public java.util.List getEntities(GenericValue scheme,
                                  java.lang.Long entityTypeId,
                                  java.lang.String parameter)
                           throws GenericEntityException
Throws:
GenericEntityException

getEntities

public java.util.List getEntities(GenericValue scheme,
                                  java.lang.String type,
                                  java.lang.Long entityTypeId)
                           throws GenericEntityException
Throws:
GenericEntityException

getEntities

public java.util.List getEntities(GenericValue scheme,
                                  java.lang.String entityTypeId)
                           throws GenericEntityException
Throws:
GenericEntityException

updateScheme

public void updateScheme(GenericValue entity)
                  throws GenericEntityException
Throws:
GenericEntityException

deleteScheme

public void deleteScheme(java.lang.Long id)
                  throws GenericEntityException
Throws:
GenericEntityException

addSchemeToProject

public void addSchemeToProject(GenericValue project,
                               GenericValue scheme)
                        throws GenericEntityException
Throws:
GenericEntityException

removeSchemesFromProject

public void removeSchemesFromProject(GenericValue project)
                              throws GenericEntityException
Throws:
GenericEntityException

createSchemeEntity

public GenericValue createSchemeEntity(GenericValue scheme,
                                       SchemeEntity entity)
                                throws GenericEntityException
Throws:
GenericEntityException

deleteEntity

public void deleteEntity(java.lang.Long id)
                  throws GenericEntityException
Throws:
GenericEntityException

getProjects

public java.util.List getProjects(GenericValue scheme)
                           throws GenericEntityException
Throws:
GenericEntityException

createDefaultScheme

public GenericValue createDefaultScheme()
                                 throws GenericEntityException
Throws:
GenericEntityException

getDefaultScheme

public GenericValue getDefaultScheme()
                              throws GenericEntityException
Throws:
GenericEntityException

addDefaultSchemeToProject

public void addDefaultSchemeToProject(GenericValue project)
                               throws GenericEntityException
Throws:
GenericEntityException

copyScheme

public GenericValue copyScheme(GenericValue scheme)
                        throws GenericEntityException
Throws:
GenericEntityException

hasSchemeAuthority

public boolean hasSchemeAuthority(java.lang.Long entityType,
                                  GenericValue entity)

hasSchemeAuthority

public boolean hasSchemeAuthority(java.lang.Long entityType,
                                  GenericValue entity,
                                  User user)

removeEntities

public boolean removeEntities(GenericValue scheme,
                              java.lang.Long permissionId)
                       throws RemoveException
Throws:
RemoveException

removeEntities

public boolean removeEntities(java.lang.String parameter)
                       throws RemoveException
Removes all scheme entities with this parameter

Parameters:
parameter - must NOT be null
Returns:
Throws:
RemoveException

getGroups

public java.util.Collection getGroups(java.lang.Long permissionId,
                                      GenericValue project)

getUsers

public java.util.Collection getUsers(java.lang.Long permissionId,
                                     GenericValue project)