Package com.logicaldoc.core.store
Class StoreResource.Builder
java.lang.Object
com.logicaldoc.core.store.StoreResource.Builder
- Enclosing class:
StoreResource
A builder for
StoreResources- Since:
- 9.2.2
- Author:
- Marco Meschieri - LogicalDOC
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()docId(long docId) document(AbstractDocument document) Takes the docId and fileVersion from the givenDocumentFormatExceptionorVersionfileVersion(String fileVersion) resource(StoreResource res) Assigns the suffix of the mobile thumbnailAssigns the suffix of the PDF conversionAssigns the suffix of the thumbnail imageAssigns the suffix of the tile image
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
fileVersion
-
suffix
-
suffixPdfConversion
Assigns the suffix of the PDF conversion- Returns:
- The configured builder
-
suffixTile
Assigns the suffix of the tile image- Returns:
- The configured builder
-
suffixThumbnail
Assigns the suffix of the thumbnail image- Returns:
- The configured builder
-
suffixMobile
Assigns the suffix of the mobile thumbnail- Returns:
- The configured builder
-
docId
-
resource
-
name
-
document
Takes the docId and fileVersion from the givenDocumentFormatExceptionorVersion- Parameters:
document- The document or version- Returns:
- The configured builder
- Throws:
PersistenceException- Error in the data layer
-
build
-