void
|
addDefaultSchemeToProject(GenericValue project)
|
void
|
addDefaultSchemeToProject(Project project)
Adds the default scheme to a particular project
|
void
|
addSchemeToProject(Project project, Scheme scheme)
Adds a scheme to a particular project
|
void
|
addSchemeToProject(GenericValue project, GenericValue scheme)
|
GenericValue
|
copyScheme(GenericValue scheme)
|
Scheme
|
copyScheme(Scheme scheme)
Copys a scheme, giving the new scheme the same entities as the original one
|
GenericValue
|
createDefaultScheme()
Creates a default scheme, with an id of 0
|
GenericValue
|
createScheme(String name, String description)
|
Scheme
|
createSchemeAndEntities(Scheme scheme)
|
GenericValue
|
createSchemeEntity(GenericValue scheme, SchemeEntity entity)
|
Scheme
|
createSchemeObject(String name, String description)
Creates a new scheme
|
void
|
deleteEntity(Long id)
Deletes an entity with the given id from the database.
|
void
|
deleteScheme(Long id)
Deletes a scheme from the database
|
List<Scheme>
|
getAssociatedSchemes(boolean withEntitiesComparable)
Gets all schemes of this type in the database taht are associated with at least one project.
|
GenericValue
|
getDefaultScheme()
|
Scheme
|
getDefaultSchemeObject()
Gets the default scheme.
|
List<GenericValue>
|
getEntities(GenericValue scheme, String type, Long entityTypeId)
|
List<GenericValue>
|
getEntities(GenericValue scheme)
Get all Scheme entity records for a particular scheme
|
List<GenericValue>
|
getEntities(GenericValue scheme, String entityTypeId)
|
List<GenericValue>
|
getEntities(String type, String parameter)
Get all entity records with a particular parameter
|
List<GenericValue>
|
getEntities(GenericValue scheme, Long entityTypeId, String parameter)
|
List<GenericValue>
|
getEntities(GenericValue scheme, Long entityTypeId)
|
GenericValue
|
getEntity(Long id)
Gets a scheme entity based on the id of the entity
|
Collection<Group>
|
getGroups(Long permissionId, Project project)
|
Collection<Group>
|
getGroups(Long permissionId, GenericValue project)
|
@Deprecated
List<GenericValue>
|
getProjects(GenericValue scheme)
|
List<Project>
|
getProjects(Scheme scheme)
Gets all projects that are associated with that scheme
|
GenericValue
|
getScheme(Long id)
|
GenericValue
|
getScheme(String name)
|
Scheme
|
getSchemeFor(Project project)
Get the scheme of this type attached to the given project.
|
Scheme
|
getSchemeObject(String name)
Gets a scheme by name from the database.
|
Scheme
|
getSchemeObject(Long id)
Gets a scheme by id from the database.
|
List<Scheme>
|
getSchemeObjects()
Gets all scheme objects in the database.
|
List<GenericValue>
|
getSchemes(GenericValue project)
|
List<GenericValue>
|
getSchemes()
|
List<Scheme>
|
getUnassociatedSchemes()
Will return all @link Scheme objects that are not currently associated with any projects.
|
Collection<User>
|
getUsers(Long permissionId, Issue issue)
|
@Deprecated
Collection<User>
|
getUsers(Long permissionId, GenericValue issueOrProject)
|
Collection<User>
|
getUsers(Long permissionId, Project project)
|
Collection<User>
|
getUsers(Long permissionId, PermissionContext ctx)
|
boolean
|
hasSchemeAuthority(Long entityType, GenericValue entity, User user, boolean issueCreation)
Checks the given user's permission of the given permission type for the given entity.
|
boolean
|
hasSchemeAuthority(Long entityType, GenericValue entity)
Checks anonymous permission of the given permission type for the given entity.
|
boolean
|
removeEntities(GenericValue scheme, Long entityTypeId)
|
boolean
|
removeEntities(String type, String parameter)
Removes all scheme entities with this parameter and type
|
void
|
removeSchemesFromProject(Project project)
Removes all schemes from a project
|
void
|
removeSchemesFromProject(GenericValue project)
|
boolean
|
schemeExists(String name)
Determine if the given scheme name exists.
|
void
|
updateScheme(Scheme scheme)
Updates any changes to the scheme object.
|
void
|
updateScheme(GenericValue entity)
|