public class EntityTypeServiceImpl extends Object implements EntityTypeService
| Modifier and Type | Field and Description |
|---|---|
protected AuthorizeService |
authorizeService |
protected EntityTypeDAO |
entityTypeDAO |
| Constructor and Description |
|---|
EntityTypeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
EntityType |
create(Context context) |
EntityType |
create(Context context,
String entityTypeString)
This method creates an EntityType object in the database with the given entityTypeString as it's label
|
void |
delete(Context context,
EntityType entityType) |
EntityType |
find(Context context,
int id) |
List<EntityType> |
findAll(Context context)
Retrieves all the EntityType objects currently in the system
|
EntityType |
findByEntityType(Context context,
String entityType)
Retrieves the EntityType that has the entityType String parameter as label
|
void |
update(Context context,
EntityType entityType) |
void |
update(Context context,
List<EntityType> entityTypes) |
@Autowired(required=true) protected EntityTypeDAO entityTypeDAO
@Autowired(required=true) protected AuthorizeService authorizeService
public EntityType findByEntityType(Context context, String entityType) throws SQLException
EntityTypeServicefindByEntityType in interface EntityTypeServicecontext - The relevant DSpace contextentityType - The String label that has to matchSQLException - If something goes wrongpublic List<EntityType> findAll(Context context) throws SQLException
EntityTypeServicefindAll in interface EntityTypeServicecontext - The relevant DSpace contextSQLException - If something goes wrongpublic EntityType create(Context context) throws SQLException, AuthorizeException
create in interface DSpaceCRUDService<EntityType>SQLExceptionAuthorizeExceptionpublic EntityType create(Context context, String entityTypeString) throws SQLException, AuthorizeException
EntityTypeServicecreate in interface EntityTypeServicecontext - The relevant DSpace contextentityTypeString - The label for the newly created EntityTypeSQLException - If something goes wrongAuthorizeException - If something geos wrong with authorizationspublic EntityType find(Context context, int id) throws SQLException
find in interface DSpaceCRUDService<EntityType>SQLExceptionpublic void update(Context context, EntityType entityType) throws SQLException, AuthorizeException
update in interface DSpaceCRUDService<EntityType>SQLExceptionAuthorizeExceptionpublic void update(Context context, List<EntityType> entityTypes) throws SQLException, AuthorizeException
update in interface DSpaceCRUDService<EntityType>SQLExceptionAuthorizeExceptionpublic void delete(Context context, EntityType entityType) throws SQLException, AuthorizeException
delete in interface DSpaceCRUDService<EntityType>SQLExceptionAuthorizeExceptionCopyright © 2019 DuraSpace. All rights reserved.