Package org.dspace.content.service
Interface EntityTypeService
-
- All Superinterfaces:
DSpaceCRUDService<EntityType>
- All Known Implementing Classes:
EntityTypeServiceImpl
public interface EntityTypeService extends DSpaceCRUDService<EntityType>
This Service is used to access the data for EntityTypes through the DAO objects
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description EntityTypecreate(Context context, String entityTypeString)This method creates an EntityType object in the database with the given entityTypeString as it's labelList<EntityType>findAll(Context context)Retrieves all the EntityType objects currently in the systemList<EntityType>findAll(Context context, Integer limit, Integer offset)Retrieves all the EntityType objects currently in the systemEntityTypefindByEntityType(Context context, String entityType)Retrieves the EntityType that has the entityType String parameter as label
-
-
-
Method Detail
-
findByEntityType
EntityType findByEntityType(Context context, String entityType) throws SQLException
Retrieves the EntityType that has the entityType String parameter as label- Parameters:
context- The relevant DSpace contextentityType- The String label that has to match- Returns:
- The EntityType that has a String
- Throws:
SQLException- If something goes wrong
-
findAll
List<EntityType> findAll(Context context) throws SQLException
Retrieves all the EntityType objects currently in the system- Parameters:
context- The relevant DSpace context- Returns:
- A list of all EntityType objects
- Throws:
SQLException- If something goes wrong
-
findAll
List<EntityType> findAll(Context context, Integer limit, Integer offset) throws SQLException
Retrieves all the EntityType objects currently in the system- Parameters:
context- The relevant DSpace contextlimit- paging limitoffset- paging offset- Returns:
- A list of all EntityType objects
- Throws:
SQLException- If something goes wrong
-
create
EntityType create(Context context, String entityTypeString) throws SQLException, AuthorizeException
This method creates an EntityType object in the database with the given entityTypeString as it's label- Parameters:
context- The relevant DSpace contextentityTypeString- The label for the newly created EntityType- Returns:
- The newly created EntityType
- Throws:
SQLException- If something goes wrongAuthorizeException- If something geos wrong with authorizations
-
-