public interface EntityTypeService extends DSpaceCRUDService<EntityType>
| Modifier and Type | Method and Description |
|---|---|
EntityType |
create(Context context,
String entityTypeString)
This method creates an EntityType object in the database with the given entityTypeString as it's label
|
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
|
EntityType findByEntityType(Context context, String entityType) throws SQLException
context - The relevant DSpace contextentityType - The String label that has to matchSQLException - If something goes wrongList<EntityType> findAll(Context context) throws SQLException
context - The relevant DSpace contextSQLException - If something goes wrongEntityType create(Context context, String entityTypeString) throws SQLException, AuthorizeException
context - The relevant DSpace contextentityTypeString - The label for the newly created EntityTypeSQLException - If something goes wrongAuthorizeException - If something geos wrong with authorizationsCopyright © 2019 DuraSpace. All rights reserved.