Class AbstractProfileAwareRemoteFileStore<T extends ConfigurationProfile>
java.lang.Object
org.craftercms.commons.file.stores.impl.AbstractProfileAwareRemoteFileStore<T>
- All Implemented Interfaces:
RemoteFileStore
- Direct Known Subclasses:
BoxFileStore
,S3FileStore
,WebDavFileStore
public abstract class AbstractProfileAwareRemoteFileStore<T extends ConfigurationProfile>
extends Object
implements RemoteFileStore
Base
RemoteFileStore
for stores that are aware of configuration profiles that should be used to connect
to the remote store.- Author:
- avasquez
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract RemoteFile
doGetFile
(ProfileAwareRemotePath path, T profile) getFile
(RemotePath path) Resolves the givenRemotePath
as aRemoteFile
.protected T
loadProfile
(String profile) void
setProfileLoader
(ConfigurationProfileLoader<T> profileLoader)
-
Field Details
-
profileLoader
-
-
Constructor Details
-
AbstractProfileAwareRemoteFileStore
public AbstractProfileAwareRemoteFileStore()
-
-
Method Details
-
setProfileLoader
-
getFile
Description copied from interface:RemoteFileStore
Resolves the givenRemotePath
as aRemoteFile
.- Specified by:
getFile
in interfaceRemoteFileStore
- Parameters:
path
- the path to the file in the remote store- Returns:
- the remote file
- Throws:
IOException
- if an IO error occurs while trying to resolve the remote file
-
doGetFile
- Throws:
IOException
-
loadProfile
- Throws:
IOException
-