@Component public class ManagedResourcePersistenceTypeHandler extends Object implements ResourcePersistenceTypeHandler
| Constructor and Description |
|---|
ManagedResourcePersistenceTypeHandler() |
| Modifier and Type | Method and Description |
|---|---|
ResourcePersistenceType |
getResourcePersistenceType() |
protected String |
getSplittedUuidPath(String uuid) |
List<URI> |
getUris(String key,
MimeType mimeType)
minimum ":"-separators is one, because of namespace in id is required
|
void |
setRepositoryFolderPath(String path) |
protected static String[] |
splitEqually(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(value="${resourceRepository.managedPathFactory.folderpath}")
public void setRepositoryFolderPath(String path)
public List<URI> getUris(String key, MimeType mimeType) throws ResourceIOException
getUris in interface ResourcePersistenceTypeHandlerkey - the resource key (manged resource key is an uuid)mimeType - the MIME type of the resource (e.g. "application/xml")ResourceIOExceptionpublic ResourcePersistenceType getResourcePersistenceType()
getResourcePersistenceType in interface ResourcePersistenceTypeHandlerCopyright © 2018. All rights reserved.