com.atlassian.jira.scheme
Interface SchemeManager

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

public interface SchemeManager


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

Method Detail

getScheme

public org.ofbiz.core.entity.GenericValue getScheme(java.lang.Long id)
                                             throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getSchemes

public java.util.List getSchemes()
                          throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getScheme

public org.ofbiz.core.entity.GenericValue getScheme(java.lang.String name)
                                             throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getSchemes

public java.util.List getSchemes(org.ofbiz.core.entity.GenericValue project)
                          throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

schemeExists

public boolean schemeExists(java.lang.String name)
                     throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

createScheme

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

getEntity

public org.ofbiz.core.entity.GenericValue getEntity(java.lang.Long id)
                                             throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getEntities

public java.util.List getEntities(org.ofbiz.core.entity.GenericValue scheme)
                           throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getEntities

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

getEntities

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

getEntities

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

getEntities

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

updateScheme

public void updateScheme(org.ofbiz.core.entity.GenericValue entity)
                  throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

deleteScheme

public void deleteScheme(java.lang.Long id)
                  throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

addSchemeToProject

public void addSchemeToProject(org.ofbiz.core.entity.GenericValue project,
                               org.ofbiz.core.entity.GenericValue scheme)
                        throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

removeSchemesFromProject

public void removeSchemesFromProject(org.ofbiz.core.entity.GenericValue project)
                              throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

createSchemeEntity

public org.ofbiz.core.entity.GenericValue createSchemeEntity(org.ofbiz.core.entity.GenericValue scheme,
                                                             SchemeEntity entity)
                                                      throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

deleteEntity

public void deleteEntity(java.lang.Long id)
                  throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getProjects

public java.util.List getProjects(org.ofbiz.core.entity.GenericValue scheme)
                           throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

createDefaultScheme

public org.ofbiz.core.entity.GenericValue createDefaultScheme()
                                                       throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

getDefaultScheme

public org.ofbiz.core.entity.GenericValue getDefaultScheme()
                                                    throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

addDefaultSchemeToProject

public void addDefaultSchemeToProject(org.ofbiz.core.entity.GenericValue project)
                               throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

copyScheme

public org.ofbiz.core.entity.GenericValue copyScheme(org.ofbiz.core.entity.GenericValue scheme)
                                              throws org.ofbiz.core.entity.GenericEntityException
Throws:
org.ofbiz.core.entity.GenericEntityException

hasSchemeAuthority

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

hasSchemeAuthority

public boolean hasSchemeAuthority(java.lang.Long entityType,
                                  org.ofbiz.core.entity.GenericValue entity,
                                  com.opensymphony.user.User user,
                                  boolean issueCreation)

removeEntities

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

getEntities

public java.util.List getEntities(java.lang.String parameter)
                           throws org.ofbiz.core.entity.GenericEntityException
Get all entity records with a particular parameter

Parameters:
parameter - The parameter in the entity
Returns:
List of (GenericValue) entities
Throws:
org.ofbiz.core.entity.GenericEntityException

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,
                                      org.ofbiz.core.entity.GenericValue project)

getUsers

public java.util.Collection getUsers(java.lang.Long permissionId,
                                     org.ofbiz.core.entity.GenericValue issueOrProject)


Copyright © 2002-2005 Atlassian. All Rights Reserved.