|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SchemeManager
Field Summary | |
---|---|
static String |
PROJECT_ASSOCIATION
The one and only "association type". |
Method Summary | |
---|---|
void |
addDefaultSchemeToProject(org.ofbiz.core.entity.GenericValue project)
|
void |
addSchemeToProject(org.ofbiz.core.entity.GenericValue project,
org.ofbiz.core.entity.GenericValue scheme)
|
void |
addSchemeToProject(Project project,
Scheme 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(String name,
String description)
|
Scheme |
createSchemeAndEntities(Scheme scheme)
|
org.ofbiz.core.entity.GenericValue |
createSchemeEntity(org.ofbiz.core.entity.GenericValue scheme,
SchemeEntity entity)
|
void |
deleteEntity(Long id)
|
void |
deleteScheme(Long id)
|
List<Scheme> |
getAssociatedSchemes(boolean withEntitiesComparable)
|
org.ofbiz.core.entity.GenericValue |
getDefaultScheme()
Gets the default scheme. |
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long entityTypeId)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
Long entityTypeId,
String parameter)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
String entityTypeId)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(org.ofbiz.core.entity.GenericValue scheme,
String type,
Long entityTypeId)
|
List<org.ofbiz.core.entity.GenericValue> |
getEntities(String type,
String parameter)
Get all entity records with a particular parameter |
org.ofbiz.core.entity.GenericValue |
getEntity(Long id)
|
Collection<Group> |
getGroups(Long permissionId,
org.ofbiz.core.entity.GenericValue project)
|
List<org.ofbiz.core.entity.GenericValue> |
getProjects(org.ofbiz.core.entity.GenericValue scheme)
Deprecated. use getProjects(Scheme) instead |
List<Project> |
getProjects(Scheme scheme)
|
org.ofbiz.core.entity.GenericValue |
getScheme(Long id)
|
org.ofbiz.core.entity.GenericValue |
getScheme(String name)
Deprecated. use @{link #getSchemeObject(String)} |
Scheme |
getSchemeObject(Long id)
Gets a scheme by id from the database. |
Scheme |
getSchemeObject(String name)
Gets a scheme by name from the database. |
List<Scheme> |
getSchemeObjects()
Gets all scheme objects in the database. |
List<org.ofbiz.core.entity.GenericValue> |
getSchemes()
Deprecated. use getSchemeObjects() |
List<org.ofbiz.core.entity.GenericValue> |
getSchemes(org.ofbiz.core.entity.GenericValue project)
|
List<Scheme> |
getUnassociatedSchemes()
Will return all @link Scheme objects that are not currently associated with any projects. |
Collection<User> |
getUsers(Long permissionId,
org.ofbiz.core.entity.GenericValue issueOrProject)
Deprecated. Use getUsers(Long, com.atlassian.jira.permission.PermissionContext) instead. |
Collection<User> |
getUsers(Long permissionId,
PermissionContext ctx)
|
boolean |
hasSchemeAuthority(Long entityType,
org.ofbiz.core.entity.GenericValue entity)
Checks anonymous permission of the given permission type for the given entity. |
boolean |
hasSchemeAuthority(Long entityType,
org.ofbiz.core.entity.GenericValue entity,
com.atlassian.crowd.embedded.api.User user,
boolean issueCreation)
Checks the given user's permission of the given permission type for the given entity. |
boolean |
removeEntities(org.ofbiz.core.entity.GenericValue scheme,
Long permissionId)
|
boolean |
removeEntities(String type,
String parameter)
Removes all scheme entities with this parameter and type |
void |
removeSchemesFromProject(org.ofbiz.core.entity.GenericValue project)
|
void |
removeSchemesFromProject(Project project)
|
boolean |
schemeExists(String name)
|
void |
updateScheme(org.ofbiz.core.entity.GenericValue entity)
|
void |
updateScheme(Scheme scheme)
|
Field Detail |
---|
static final String PROJECT_ASSOCIATION
Method Detail |
---|
org.ofbiz.core.entity.GenericValue getScheme(Long id) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<org.ofbiz.core.entity.GenericValue> getSchemes() throws org.ofbiz.core.entity.GenericEntityException
getSchemeObjects()
org.ofbiz.core.entity.GenericEntityException
List<Scheme> getAssociatedSchemes(boolean withEntitiesComparable) throws DataAccessException
DataAccessException
org.ofbiz.core.entity.GenericValue getScheme(String name) throws org.ofbiz.core.entity.GenericEntityException
name
-
org.ofbiz.core.entity.GenericEntityException
List<org.ofbiz.core.entity.GenericValue> getSchemes(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
boolean schemeExists(String name) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericValue createScheme(String name, String description) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
Scheme createSchemeAndEntities(Scheme scheme) throws DataAccessException
DataAccessException
org.ofbiz.core.entity.GenericValue getEntity(Long id) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, Long entityTypeId, String parameter) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String type, Long entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
List<org.ofbiz.core.entity.GenericValue> getEntities(org.ofbiz.core.entity.GenericValue scheme, String entityTypeId) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
void updateScheme(org.ofbiz.core.entity.GenericValue entity) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
void updateScheme(Scheme scheme) throws DataAccessException
DataAccessException
void deleteScheme(Long id) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
void addSchemeToProject(org.ofbiz.core.entity.GenericValue project, org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
void addSchemeToProject(Project project, Scheme scheme) throws DataAccessException
DataAccessException
void removeSchemesFromProject(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
void removeSchemesFromProject(Project project) throws DataAccessException
DataAccessException
org.ofbiz.core.entity.GenericValue createSchemeEntity(org.ofbiz.core.entity.GenericValue scheme, SchemeEntity entity) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
void deleteEntity(Long id) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
@Deprecated List<org.ofbiz.core.entity.GenericValue> getProjects(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
getProjects(Scheme)
instead
scheme
-
org.ofbiz.core.entity.GenericEntityException
List<Project> getProjects(Scheme scheme) throws DataAccessException
DataAccessException
org.ofbiz.core.entity.GenericValue createDefaultScheme() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericValue getDefaultScheme() throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
void addDefaultSchemeToProject(org.ofbiz.core.entity.GenericValue project) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericValue copyScheme(org.ofbiz.core.entity.GenericValue scheme) throws org.ofbiz.core.entity.GenericEntityException
org.ofbiz.core.entity.GenericEntityException
boolean hasSchemeAuthority(Long entityType, org.ofbiz.core.entity.GenericValue entity)
entityType
- permission type.entity
- the entity to which permission is being checked.
boolean hasSchemeAuthority(Long entityType, org.ofbiz.core.entity.GenericValue entity, com.atlassian.crowd.embedded.api.User user, boolean issueCreation)
entityType
- permission type.entity
- the entity to which permission is being checked.user
- the user.issueCreation
- whether the permission is for creating an issue.
boolean removeEntities(org.ofbiz.core.entity.GenericValue scheme, Long permissionId) throws RemoveException
RemoveException
List<org.ofbiz.core.entity.GenericValue> getEntities(String type, String parameter) throws org.ofbiz.core.entity.GenericEntityException
type
- The type of entity you wish to retrieve, eg 'user', 'group', 'projectrole'parameter
- The parameter in the entity
org.ofbiz.core.entity.GenericEntityException
boolean removeEntities(String type, String parameter) throws RemoveException
type
- the 'type' of entity you are deleting, eg 'group', 'user', 'projectrole'parameter
- must NOT be null
RemoveException
Collection<Group> getGroups(Long permissionId, org.ofbiz.core.entity.GenericValue project)
@Deprecated Collection<User> getUsers(Long permissionId, org.ofbiz.core.entity.GenericValue issueOrProject)
getUsers(Long, com.atlassian.jira.permission.PermissionContext)
instead.
Collection<User> getUsers(Long permissionId, PermissionContext ctx)
List<Scheme> getUnassociatedSchemes() throws DataAccessException
DataAccessException
- if the database is down or equivalent.Scheme getSchemeObject(Long id) throws DataAccessException
id
- the id of the scheme to get.
DataAccessException
- if the database is down or equivalent.Scheme getSchemeObject(String name) throws DataAccessException
name
- the name of the scheme to get.
DataAccessException
- if the database is down or equivalent.List<Scheme> getSchemeObjects() throws DataAccessException
DataAccessException
- if the database is down or equivalent.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |