Class CollectionRoleServiceImpl
- java.lang.Object
-
- org.dspace.xmlworkflow.storedcomponents.CollectionRoleServiceImpl
-
- All Implemented Interfaces:
CollectionRoleService
public class CollectionRoleServiceImpl extends Object implements CollectionRoleService
Service implementation for the CollectionRole object. This class is responsible for all business logic calls for the CollectionRole object and is autowired by spring. This class should never be accessed directly.- Author:
- kevinvandevelde at atmire.com
-
-
Field Summary
Fields Modifier and Type Field Description protected CollectionRoleDAOcollectionRoleDAO-
Fields inherited from interface org.dspace.xmlworkflow.storedcomponents.service.CollectionRoleService
LEGACY_WORKFLOW_STEP1_NAME, LEGACY_WORKFLOW_STEP2_NAME, LEGACY_WORKFLOW_STEP3_NAME
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedCollectionRoleServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete 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
-
collectionRoleDAO
@Autowired(required=true) protected CollectionRoleDAO collectionRoleDAO
-
-
Method Detail
-
find
public CollectionRole find(Context context, int id) throws SQLException
- Specified by:
findin interfaceCollectionRoleService- Throws:
SQLException
-
find
public CollectionRole find(Context context, Collection collection, String role) throws SQLException
- Specified by:
findin interfaceCollectionRoleService- Throws:
SQLException
-
findByCollection
public List<CollectionRole> findByCollection(Context context, Collection collection) throws SQLException
- Specified by:
findByCollectionin interfaceCollectionRoleService- Throws:
SQLException
-
findByGroup
public List<CollectionRole> findByGroup(Context context, Group group) throws SQLException
- Specified by:
findByGroupin interfaceCollectionRoleService- Parameters:
context- DSpace contextgroup- EPerson Group- Returns:
- the list of CollectionRole assigned to the specified group
- Throws:
SQLException
-
create
public CollectionRole create(Context context, Collection collection, String roleId, Group group) throws SQLException
- Specified by:
createin interfaceCollectionRoleService- Throws:
SQLException
-
update
public void update(Context context, CollectionRole collectionRole) throws SQLException
- Specified by:
updatein interfaceCollectionRoleService- Throws:
SQLException
-
delete
public void delete(Context context, CollectionRole collectionRole) throws SQLException
- Specified by:
deletein interfaceCollectionRoleService- Throws:
SQLException
-
deleteByCollection
public void deleteByCollection(Context context, Collection collection) throws SQLException
- Specified by:
deleteByCollectionin interfaceCollectionRoleService- Throws:
SQLException
-
-