Package org.dspace.content.service
Interface EntityTypeService
- All Superinterfaces:
DSpaceCRUDService<EntityType>
- All Known Implementing Classes:
EntityTypeServiceImpl
This Service is used to access the data for EntityTypes through the DAO objects
-
Method Summary
Modifier and TypeMethodDescriptionintcountEntityTypesByNames(Context context, List<String> names) This method creates an EntityType object in the database with the given entityTypeString as it's labelRetrieves all the EntityType objects currently in the systemRetrieves all the EntityType objects currently in the systemfindByEntityType(Context context, String entityType) Retrieves the EntityType that has the entityType String parameter as labelgetSubmitAuthorizedTypes(Context context) Retrieves all entity types related to the collections on which the current user can depositvoidinitDefaultEntityTypeNames(Context context) Initializes the EntityType names, and marks them "permanent".
-
Method Details
-
findByEntityType
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
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
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
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
-
getSubmitAuthorizedTypes
List<String> getSubmitAuthorizedTypes(Context context) throws SQLException, org.apache.solr.client.solrj.SolrServerException, IOException Retrieves all entity types related to the collections on which the current user can deposit- Parameters:
context- DSpace context object- Returns:
- Throws:
SQLException- If database errororg.apache.solr.client.solrj.SolrServerException- If there is a problem in communicating with SolrIOException- If IO error
-
getEntityTypesByNames
List<EntityType> getEntityTypesByNames(Context context, List<String> names, Integer limit, Integer offset) throws SQLException - Parameters:
context- DSpace context objectnames- List of Entity type names that you want to retrievelimit- paging limitoffset- the position of the first result to return- Returns:
- Throws:
SQLException- if database error
-
countEntityTypesByNames
- Parameters:
context- DSpace context objectnames- List of Entity type names that you want to retrieve- Returns:
- Throws:
SQLException- if database error
-
initDefaultEntityTypeNames
Initializes the EntityType names, and marks them "permanent".- Parameters:
context- DSpace context object- Throws:
SQLException- Database exceptionAuthorizeException- Authorization error
-