Class SuperUserLargeObjectService
java.lang.Object
dev.getelements.elements.service.largeobject.SuperUserLargeObjectService
- All Implemented Interfaces:
LargeObjectService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateLargeObject(CreateLargeObjectRequest createLargeObjectRequest) Creates a new instance ofLargeObjectfrom the suppliedCreateLargeObjectRequest.createLargeObjectFromUrl(CreateLargeObjectFromUrlRequest createRequest) Creates a new instance ofLargeObjectfrom the suppliedCreateLargeObjectFromUrlRequest.voiddeleteLargeObject(String objectId) Deletes the instance ofLargeObject, throw an instance ofLargeObjectNotFoundExceptionif the large object does not exist or the currently logged-in user does not have permission to access.findLargeObject(String objectId) Finds an instance ofLargeObject.jakarta.ws.rs.client.ClientreadLargeObjectContent(String objectId) Opens theLargeObjectfor reading.saveOrUpdateLargeObject(LargeObject largeObject) voidsetAccessRequestUtils(AccessRequestUtils accessRequestUtils) voidsetClient(jakarta.ws.rs.client.Client client) voidsetLargeObjectBucket(LargeObjectBucket largeObjectBucket) voidsetLargeObjectCdnUtils(LargeObjectCdnUtils largeObjectCdnUtils) voidsetLargeObjectDao(LargeObjectDao largeObjectDao) voidsetValidationHelper(ValidationHelper validationHelper) updateLargeObject(String objectId, UpdateLargeObjectRequest updateLargeObjectRequest) Updates the large object's metadata only.writeLargeObjectContent(String objectId) Opens theLargeObjectfor writing.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.getelements.elements.sdk.service.largeobject.LargeObjectService
createLargeObject, getLargeObject, updateLargeObject, updateLargeObject
-
Constructor Details
-
SuperUserLargeObjectService
public SuperUserLargeObjectService()
-
-
Method Details
-
findLargeObject
Description copied from interface:LargeObjectServiceFinds an instance ofLargeObject. If the currently logged-in user may not access the supplied object or it if it is not found, then this will return a result equivalent toOptional.empty().- Specified by:
findLargeObjectin interfaceLargeObjectService- Parameters:
objectId- the object id- Returns:
- the
Optional<LargeObject>, never null
-
updateLargeObject
public LargeObject updateLargeObject(String objectId, UpdateLargeObjectRequest updateLargeObjectRequest) Description copied from interface:LargeObjectServiceUpdates the large object's metadata only.- Specified by:
updateLargeObjectin interfaceLargeObjectService- Parameters:
objectId- the object idupdateLargeObjectRequest- theUpdateLargeObjectRequest- Returns:
- the large object
-
createLargeObject
Description copied from interface:LargeObjectServiceCreates a new instance ofLargeObjectfrom the suppliedCreateLargeObjectRequest.- Specified by:
createLargeObjectin interfaceLargeObjectService- Parameters:
createLargeObjectRequest- the large object request- Returns:
- the
LargeObjectas it was created
-
createLargeObjectFromUrl
public LargeObject createLargeObjectFromUrl(CreateLargeObjectFromUrlRequest createRequest) throws IOException Description copied from interface:LargeObjectServiceCreates a new instance ofLargeObjectfrom the suppliedCreateLargeObjectFromUrlRequest.- Specified by:
createLargeObjectFromUrlin interfaceLargeObjectService- Parameters:
createRequest- the large object request- Returns:
- the
LargeObjectas it was created - Throws:
IOException- if there was an error writing the large object
-
deleteLargeObject
Description copied from interface:LargeObjectServiceDeletes the instance ofLargeObject, throw an instance ofLargeObjectNotFoundExceptionif the large object does not exist or the currently logged-in user does not have permission to access.- Specified by:
deleteLargeObjectin interfaceLargeObjectService- Parameters:
objectId- the object id
-
readLargeObjectContent
Description copied from interface:LargeObjectServiceOpens theLargeObjectfor reading.- Specified by:
readLargeObjectContentin interfaceLargeObjectService- Parameters:
objectId- the object id- Returns:
- an InputStream used to read the object's contents
- Throws:
IOException
-
writeLargeObjectContent
Description copied from interface:LargeObjectServiceOpens theLargeObjectfor writing.- Specified by:
writeLargeObjectContentin interfaceLargeObjectService- Parameters:
objectId- the object id- Returns:
- an OutputStream used to write the object's contents.
- Throws:
IOException
-
saveOrUpdateLargeObject
- Specified by:
saveOrUpdateLargeObjectin interfaceLargeObjectService
-
getLargeObjectCdnUtils
-
setLargeObjectCdnUtils
-
getAccessRequestUtils
-
setAccessRequestUtils
-
getLargeObjectDao
-
setLargeObjectDao
-
getLargeObjectBucket
-
setLargeObjectBucket
-
getValidationHelper
-
setValidationHelper
-
getClient
public jakarta.ws.rs.client.Client getClient() -
setClient
@Inject public void setClient(jakarta.ws.rs.client.Client client)
-