Class CudamiEntitiesClient
- java.lang.Object
-
- de.digitalcollections.cudami.client.CudamiBaseClient<de.digitalcollections.model.identifiable.entity.Entity>
-
- de.digitalcollections.cudami.client.identifiable.entity.CudamiEntitiesClient
-
public class CudamiEntitiesClient extends CudamiBaseClient<de.digitalcollections.model.identifiable.entity.Entity>
-
-
Field Summary
-
Fields inherited from class de.digitalcollections.cudami.client.CudamiBaseClient
http, mapper, reader, serverUri, targetType
-
-
Constructor Summary
Constructors Constructor Description CudamiEntitiesClient(HttpClient http, String serverUrl, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRelatedFileresource(UUID uuid, UUID fileResourceUuid)voidaddRelation(UUID subjectEntityUuid, String predicate, UUID objectEntityUuid)longcount()de.digitalcollections.model.identifiable.entity.Entitycreate()de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity>find(de.digitalcollections.model.paging.PageRequest pageRequest)de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Entity>find(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest)List<de.digitalcollections.model.identifiable.entity.Entity>find(String searchTerm, int maxResults)de.digitalcollections.model.identifiable.entity.EntityfindOne(UUID uuid)de.digitalcollections.model.identifiable.entity.EntityfindOne(UUID uuid, String locale)de.digitalcollections.model.identifiable.entity.EntityfindOne(UUID uuid, Locale locale)de.digitalcollections.model.identifiable.entity.EntityfindOneByIdentifier(String namespace, String id)de.digitalcollections.model.identifiable.entity.EntityfindOneByRefId(long refId)ListfindRandomEntities(int count)ListgetRelatedFileResources(UUID uuid)List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation>getRelations(UUID subjectEntityUuid)de.digitalcollections.model.identifiable.entity.Entitysave(de.digitalcollections.model.identifiable.entity.Entity entity)List<de.digitalcollections.model.identifiable.resource.FileResource>saveRelatedFileResources(UUID uuid, List fileResources)List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation>saveRelationsForSubject(List relations)de.digitalcollections.model.identifiable.entity.Entityupdate(UUID uuid, de.digitalcollections.model.identifiable.entity.Entity entity)-
Methods inherited from class de.digitalcollections.cudami.client.CudamiBaseClient
createFullUri, doDeleteRequestForString, doGetRequestForObject, doGetRequestForObject, doGetRequestForObjectList, doGetRequestForObjectList, doGetRequestForObjectList, doGetRequestForPagedObjectList, doGetRequestForPagedObjectList, doGetRequestForString, doGetSearchRequestForPagedObjectList, doGetSearchRequestForPagedObjectList, doPatchRequestForString, doPatchRequestForString, doPostRequestForObject, doPostRequestForObject, doPostRequestForObject, doPostRequestForObject, doPostRequestForObjectList, doPostRequestForObjectList, doPostRequestForString, doPostRequestForString, doPutRequestForObject, doPutRequestForObject, doPutRequestForObjectList, doPutRequestForString, findByLanguageAndInitial, findByLanguageAndInitial
-
-
-
-
Constructor Detail
-
CudamiEntitiesClient
public CudamiEntitiesClient(HttpClient http, String serverUrl, com.fasterxml.jackson.databind.ObjectMapper mapper)
-
-
Method Detail
-
addRelatedFileresource
public void addRelatedFileresource(UUID uuid, UUID fileResourceUuid) throws HttpException
- Throws:
HttpException
-
addRelation
public void addRelation(UUID subjectEntityUuid, String predicate, UUID objectEntityUuid) throws HttpException
- Throws:
HttpException
-
count
public long count() throws HttpException- Throws:
HttpException
-
create
public de.digitalcollections.model.identifiable.entity.Entity create()
-
find
public de.digitalcollections.model.paging.PageResponse<de.digitalcollections.model.identifiable.entity.Entity> find(de.digitalcollections.model.paging.PageRequest pageRequest) throws HttpException- Throws:
HttpException
-
find
public de.digitalcollections.model.paging.SearchPageResponse<de.digitalcollections.model.identifiable.entity.Entity> find(de.digitalcollections.model.paging.SearchPageRequest searchPageRequest) throws HttpException- Throws:
HttpException
-
find
public List<de.digitalcollections.model.identifiable.entity.Entity> find(String searchTerm, int maxResults) throws HttpException
- Throws:
HttpException
-
findOne
public de.digitalcollections.model.identifiable.entity.Entity findOne(UUID uuid) throws HttpException
- Throws:
HttpException
-
findOne
public de.digitalcollections.model.identifiable.entity.Entity findOne(UUID uuid, Locale locale) throws HttpException
- Throws:
HttpException
-
findOne
public de.digitalcollections.model.identifiable.entity.Entity findOne(UUID uuid, String locale) throws HttpException
- Throws:
HttpException
-
findOneByIdentifier
public de.digitalcollections.model.identifiable.entity.Entity findOneByIdentifier(String namespace, String id) throws HttpException
- Throws:
HttpException
-
findOneByRefId
public de.digitalcollections.model.identifiable.entity.Entity findOneByRefId(long refId) throws HttpException- Throws:
HttpException
-
findRandomEntities
public List findRandomEntities(int count) throws HttpException
- Throws:
HttpException
-
getRelatedFileResources
public List getRelatedFileResources(UUID uuid) throws HttpException
- Throws:
HttpException
-
getRelations
public List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> getRelations(UUID subjectEntityUuid) throws HttpException
- Throws:
HttpException
-
save
public de.digitalcollections.model.identifiable.entity.Entity save(de.digitalcollections.model.identifiable.entity.Entity entity) throws HttpException- Throws:
HttpException
-
saveRelatedFileResources
public List<de.digitalcollections.model.identifiable.resource.FileResource> saveRelatedFileResources(UUID uuid, List fileResources) throws HttpException
- Throws:
HttpException
-
saveRelationsForSubject
public List<de.digitalcollections.model.identifiable.entity.relation.EntityRelation> saveRelationsForSubject(List relations) throws HttpException
- Throws:
HttpException
-
update
public de.digitalcollections.model.identifiable.entity.Entity update(UUID uuid, de.digitalcollections.model.identifiable.entity.Entity entity) throws HttpException
- Throws:
HttpException
-
-