Interface CollectionRoleService
-
- All Known Implementing Classes:
CollectionRoleServiceImpl
public interface CollectionRoleServiceService interface class for the CollectionRole object. The implementation of this class is responsible for all business logic calls for the CollectionRole object and is autowired by spring- Author:
- kevinvandevelde at atmire.com
-
-
Field Summary
Fields Modifier and Type Field Description static StringLEGACY_WORKFLOW_STEP1_NAMEThis is the default name of the role equivalent in the default configuration to the "legacy" workflow step1.static StringLEGACY_WORKFLOW_STEP2_NAMEThis is the default name of the role equivalent in the default configuration to the "legacy" workflow step2.static StringLEGACY_WORKFLOW_STEP3_NAMEThis is the default name of the role equivalent in the default configuration to the "legacy" workflow step3.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CollectionRolecreate(Context context, Collection collection, String roleId, Group group)voiddelete(Context context, CollectionRole collectionRole)voiddeleteByCollection(Context context, Collection collection)CollectionRolefind(Context context, int id)CollectionRolefind(Context context, Collection collection, String role)List<CollectionRole>findByCollection(Context context, Collection collection)List<CollectionRole>findByGroup(Context context, Group group)voidupdate(Context context, CollectionRole collectionRole)
-
-
-
Field Detail
-
LEGACY_WORKFLOW_STEP1_NAME
static final String LEGACY_WORKFLOW_STEP1_NAME
This is the default name of the role equivalent in the default configuration to the "legacy" workflow step1. Old piece of code will expect to use it in place of the workflow step1- See Also:
- Constant Field Values
-
LEGACY_WORKFLOW_STEP2_NAME
static final String LEGACY_WORKFLOW_STEP2_NAME
This is the default name of the role equivalent in the default configuration to the "legacy" workflow step2. Old piece of code will expect to use it in place of the workflow step2- See Also:
- Constant Field Values
-
LEGACY_WORKFLOW_STEP3_NAME
static final String LEGACY_WORKFLOW_STEP3_NAME
This is the default name of the role equivalent in the default configuration to the "legacy" workflow step3. Old piece of code will expect to use it in place of the workflow step3- See Also:
- Constant Field Values
-
-
Method Detail
-
find
CollectionRole find(Context context, int id) throws SQLException
- Throws:
SQLException
-
find
CollectionRole find(Context context, Collection collection, String role) throws SQLException
- Throws:
SQLException
-
findByGroup
List<CollectionRole> findByGroup(Context context, Group group) throws SQLException
- Parameters:
context- DSpace contextgroup- EPerson Group- Returns:
- the list of CollectionRole assigned to the specified group
- Throws:
SQLException
-
findByCollection
List<CollectionRole> findByCollection(Context context, Collection collection) throws SQLException
- Throws:
SQLException
-
create
CollectionRole create(Context context, Collection collection, String roleId, Group group) throws SQLException
- Throws:
SQLException
-
update
void update(Context context, CollectionRole collectionRole) throws SQLException
- Throws:
SQLException
-
delete
void delete(Context context, CollectionRole collectionRole) throws SQLException
- Throws:
SQLException
-
deleteByCollection
void deleteByCollection(Context context, Collection collection) throws SQLException
- Throws:
SQLException
-
-