Interface EntityTypeService

    • 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 context
        entityType - 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 context
        limit - paging limit
        offset - 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 context
        entityTypeString - The label for the newly created EntityType
        Returns:
        The newly created EntityType
        Throws:
        SQLException - If something goes wrong
        AuthorizeException - If something geos wrong with authorizations