Class AbstractIdentifiableController<T extends de.digitalcollections.model.identifiable.Identifiable>
java.lang.Object
de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController<T>
de.digitalcollections.cudami.server.controller.identifiable.AbstractIdentifiableController<T>
- Direct Known Subclasses:
AbstractEntityController,ArticleController,EventController,FamilyNameController,FileResourceMetadataController,GeoLocationController,GivenNameController,HeadwordEntryController,IdentifiableController,ImageFileResourceController,LinkedDataFileResourceController,ProjectController,WebpageController,WebsiteController
public abstract class AbstractIdentifiableController<T extends de.digitalcollections.model.identifiable.Identifiable>
extends AbstractUniqueObjectController<T>
-
Field Summary
Fields inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
LOGGER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionextractNamespaceAndId(javax.servlet.http.HttpServletRequest request) Extract the namespace and identifier from the HttpServletRequestorg.springframework.http.ResponseEntity<T>getByIdentifier(javax.servlet.http.HttpServletRequest request) protected abstract IdentifiableService<T>Methods inherited from class de.digitalcollections.cudami.server.controller.AbstractUniqueObjectController
buildExamplesWithUuids, buildExampleWithUuid, count, delete, delete, find, getByUuid, getByUuidAndLocale, getByUuids, save, updateMethods inherited from class de.digitalcollections.cudami.server.controller.AbstractPagingAndSortingController
createPageRequest, getFieldType, mergeFilters
-
Constructor Details
-
AbstractIdentifiableController
public AbstractIdentifiableController()
-
-
Method Details
-
extractNamespaceAndId
public static org.apache.commons.lang3.tuple.Pair<String,String> extractNamespaceAndId(javax.servlet.http.HttpServletRequest request) throws ValidationException Extract the namespace and identifier from the HttpServletRequest- Parameters:
request- the HttpServletRequest- Returns:
- Pair of namespace and identifier
- Throws:
ValidationException- in case of a missing namespace or malformed parameter
-
getByIdentifier
public org.springframework.http.ResponseEntity<T> getByIdentifier(javax.servlet.http.HttpServletRequest request) throws ServiceException, ValidationException - Throws:
ServiceExceptionValidationException
-
getService
- Specified by:
getServicein classAbstractUniqueObjectController<T extends de.digitalcollections.model.identifiable.Identifiable>
-
getLanguages
- Throws:
ServiceException
-