|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.jira.scheme.AbstractSchemeManager
Field Summary | |
protected ProjectManager |
projectManager
|
Fields inherited from interface com.atlassian.jira.scheme.SchemeManager |
PROJECT_ASSOCIATION |
Constructor Summary | |
protected |
AbstractSchemeManager(ProjectManager projectManager)
|
Method Summary | |
void |
addDefaultSchemeToProject(org.ofbiz.core.entity.GenericValue project)
Adds the default scheme to a particular project |
void |
addSchemeToProject(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue scheme)
Adds a scheme to a particular project |
org.ofbiz.core.entity.GenericValue |
copyScheme(org.ofbiz.core.entity.GenericValue scheme)
Copys a scheme, giving the new scheme the same entities as the original one |
abstract org.ofbiz.core.entity.GenericValue |
copySchemeEntity(org.ofbiz.core.entity.GenericValue scheme,
org.ofbiz.core.entity.GenericValue entity)
|
org.ofbiz.core.entity.GenericValue |
createDefaultScheme()
Creates a default scheme, with an id of 0 |
org.ofbiz.core.entity.GenericValue |
createScheme(String name,
String description)
Creates a new scheme |
void |
deleteEntity(Long id)
Deletes an entity from the database |
void |
deleteScheme(Long id)
Deletes a scheme from the database |
abstract String |
getAssociationType()
|
org.ofbiz.core.entity.GenericValue |
getDefaultScheme()
Gets the default scheme. |
List |
getEntities(org.ofbiz.core.entity.GenericValue scheme)
Get all Scheme entity records for a particular scheme |
List |
getEntities(String parameter)
Get all entity records with a particular parameter |
org.ofbiz.core.entity.GenericValue |
getEntity(Long id)
Gets a scheme entity based on the id of the entity |
abstract String |
getEntityName()
|
Collection |
getGroups(Long entityTypeId,
org.ofbiz.core.entity.GenericValue project)
|
protected org.ofbiz.core.entity.GenericValue |
getProjectAndValidate(org.ofbiz.core.entity.GenericValue projectOrIssue)
|
List |
getProjects(org.ofbiz.core.entity.GenericValue scheme)
Gets all projects that are associated with that scheme |
org.ofbiz.core.entity.GenericValue |
getScheme(Long id)
Gets a scheme based on the Id of the scheme |
org.ofbiz.core.entity.GenericValue |
getScheme(String name)
Gets a scheme based on the name of the scheme |
abstract String |
getSchemeDesc()
|
abstract String |
getSchemeEntityName()
|
List |
getSchemes()
Gets all the Schemes of a certain type in the database |
List |
getSchemes(org.ofbiz.core.entity.GenericValue project)
Get all schemes of a certain type attached to a project. |
Collection |
getUsers(Long permissionId,
org.ofbiz.core.entity.GenericValue projectOrIssue)
Retrieves a list of users that have current permission in a project (e.g. |
boolean |
removeEntities(org.ofbiz.core.entity.GenericValue scheme,
Long entityTypeId)
Retrieves all the entites for this permissio and then removes them. |
boolean |
removeEntities(String parameter)
Removes all scheme entities with this parameter |
void |
removeSchemesFromProject(org.ofbiz.core.entity.GenericValue project)
Removes all schemes from a project |
boolean |
schemeExists(String name)
Determine if the scheme exists |
void |
updateScheme(org.ofbiz.core.entity.GenericValue entity)
Updates any changes to the scheme |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.jira.scheme.SchemeManager |
createSchemeEntity, getEntities, getEntities, getEntities, getEntities, hasSchemeAuthority, hasSchemeAuthority |
Field Detail |
protected final ProjectManager projectManager
Constructor Detail |
protected AbstractSchemeManager(ProjectManager projectManager)
Method Detail |
public abstract String getSchemeEntityName()
public abstract String getEntityName()
public abstract String getSchemeDesc()
public abstract String getAssociationType()
public abstract org.ofbiz.core.entity.GenericValue copySchemeEntity(org.ofbiz.core.entity.GenericValue scheme, org.ofbiz.core.entity.GenericValue entity) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue getScheme(Long id) throws org.ofbiz.core.entity.GenericEntityException
getScheme
in interface SchemeManager
id
- Id of the scheme
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue getScheme(String name) throws org.ofbiz.core.entity.GenericEntityException
getScheme
in interface SchemeManager
name
- Name of the scheme
org.ofbiz.core.entity.GenericEntityException
public List getSchemes() throws org.ofbiz.core.entity.GenericEntityException
getSchemes
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
public List getSchemes(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
getSchemes
in interface SchemeManager
project
- The project that the schemes are attached to
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue getEntity(Long id) throws org.ofbiz.core.entity.GenericEntityException
getEntity
in interface SchemeManager
id
- The id of the entity
org.ofbiz.core.entity.GenericEntityException
public List getEntities(String parameter) throws org.ofbiz.core.entity.GenericEntityException
getEntities
in interface SchemeManager
parameter
- The parameter in the entity
org.ofbiz.core.entity.GenericEntityException
public List getEntities(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
getEntities
in interface SchemeManager
scheme
- The scheme that the entities belong to
org.ofbiz.core.entity.GenericEntityException
public boolean schemeExists(String name) throws org.ofbiz.core.entity.GenericEntityException
schemeExists
in interface SchemeManager
name
- The name of the scheme
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue createScheme(String name, String description) throws org.ofbiz.core.entity.GenericEntityException
createScheme
in interface SchemeManager
name
- The name of the new schemedescription
- The description of the new scheme
org.ofbiz.core.entity.GenericEntityException
public void updateScheme(org.ofbiz.core.entity.GenericValue entity) throws org.ofbiz.core.entity.GenericEntityException
updateScheme
in interface SchemeManager
entity
- The modified scheme
org.ofbiz.core.entity.GenericEntityException
public void deleteScheme(Long id) throws org.ofbiz.core.entity.GenericEntityException
deleteScheme
in interface SchemeManager
id
- Id of the scheme to be deleted
org.ofbiz.core.entity.GenericEntityException
public void addSchemeToProject(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
addSchemeToProject
in interface SchemeManager
project
- The project that the scheme is to be added toscheme
- The scheme to be added
org.ofbiz.core.entity.GenericEntityException
public void removeSchemesFromProject(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
removeSchemesFromProject
in interface SchemeManager
project
- The project that all schemes are to be deleted from
org.ofbiz.core.entity.GenericEntityException
public void deleteEntity(Long id) throws org.ofbiz.core.entity.GenericEntityException
deleteEntity
in interface SchemeManager
id
- The id of the entity to be deleted
org.ofbiz.core.entity.GenericEntityException
public List getProjects(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
getProjects
in interface SchemeManager
scheme
- The scheme used to get all projects
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue createDefaultScheme() throws org.ofbiz.core.entity.GenericEntityException
createDefaultScheme
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
public boolean removeEntities(String parameter) throws RemoveException
removeEntities
in interface SchemeManager
parameter
- must NOT be null
RemoveException
public boolean removeEntities(org.ofbiz.core.entity.GenericValue scheme, Long entityTypeId) throws RemoveException
removeEntities
in interface SchemeManager
scheme
- to remove entites from must NOT be nullentityTypeId
- to remove
RemoveException
public org.ofbiz.core.entity.GenericValue getDefaultScheme() throws org.ofbiz.core.entity.GenericEntityException
getDefaultScheme
in interface SchemeManager
org.ofbiz.core.entity.GenericEntityException
public void addDefaultSchemeToProject(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
addDefaultSchemeToProject
in interface SchemeManager
project
- The project that the scheme is to be added to
org.ofbiz.core.entity.GenericEntityException
public org.ofbiz.core.entity.GenericValue copyScheme(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
copyScheme
in interface SchemeManager
scheme
- The permission scheme to be copied
org.ofbiz.core.entity.GenericEntityException
public Collection getGroups(Long entityTypeId, org.ofbiz.core.entity.GenericValue project)
getGroups
in interface SchemeManager
public Collection getUsers(Long permissionId, org.ofbiz.core.entity.GenericValue projectOrIssue)
getUsers
in interface SchemeManager
permissionId
- projectOrIssue
- protected org.ofbiz.core.entity.GenericValue getProjectAndValidate(org.ofbiz.core.entity.GenericValue projectOrIssue)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |