ResourcePersistenceTypeHandler@Component public class ManagedResourcePersistenceTypeHandler extends java.lang.Object implements ResourcePersistenceTypeHandler
| Constructor | Description |
|---|---|
ManagedResourcePersistenceTypeHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
de.digitalcollections.model.api.identifiable.resource.enums.FileResourcePersistenceType |
getResourcePersistenceType() |
|
protected java.lang.String |
getSplittedUuidPath(java.lang.String uuid) |
|
java.util.List<java.net.URI> |
getUris(java.lang.String key,
de.digitalcollections.model.api.identifiable.resource.MimeType mimeType) |
minimum ":"-separators is one, because of namespace in id is required
|
void |
setRepositoryFolderPath(java.lang.String path) |
|
protected static java.lang.String[] |
splitEqually(java.lang.String text,
int partLength) |
Convert "Thequickbrownfoxjumps" to String[] {"Theq","uick","brow","nfox","jump","s"}
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetUri, getUrispublic ManagedResourcePersistenceTypeHandler()
@Value("${resourceRepository.managedPathFactory.folderpath}")
public void setRepositoryFolderPath(java.lang.String path)
public java.util.List<java.net.URI> getUris(java.lang.String key,
de.digitalcollections.model.api.identifiable.resource.MimeType mimeType)
throws de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceIOException
getUris in interface ResourcePersistenceTypeHandlerkey - the resource key (managed resource key is an uuid)mimeType - the MIME type of the resource (e.g. "application/xml")de.digitalcollections.model.api.identifiable.resource.exceptions.ResourceIOExceptionpublic de.digitalcollections.model.api.identifiable.resource.enums.FileResourcePersistenceType getResourcePersistenceType()
getResourcePersistenceType in interface ResourcePersistenceTypeHandlerprotected java.lang.String getSplittedUuidPath(java.lang.String uuid)
protected static java.lang.String[] splitEqually(java.lang.String text,
int partLength)
text - text to splitpartLength - length of partsCopyright © 2018. All rights reserved.