Package com.jalios.jcms.policy
Class BasicRemoteDocumentPolicyFilter
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyFilter
-
- com.jalios.jcms.policy.BasicRemoteDocumentPolicyFilter
-
- All Implemented Interfaces:
PluginComponent
,PolicyFilter
,RemoteDocumentPolicyFilter
,java.lang.Comparable
public class BasicRemoteDocumentPolicyFilter extends AbstractPolicyFilter implements RemoteDocumentPolicyFilter
-
-
Field Summary
-
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
-
Fields inherited from interface com.jalios.jcms.plugin.PluginComponent
REVISION
-
-
Constructor Summary
Constructors Constructor Description BasicRemoteDocumentPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getContentType(java.lang.String remoteUri)
java.lang.String
getDownloadUrl(FileDocument remoteDocument)
java.lang.String
getRemotePreviewUrl(FileDocument remoteDocument)
java.lang.String
getRemoteThumbnailUrl(FileDocument remoteDocument)
java.lang.String
getTitle(java.lang.String remoteUri)
boolean
init(Plugin plugin)
Initialize the component with the given plugin configurationboolean
previewWithIFrame(FileDocument remoteDocument)
boolean
previewWithMedia(FileDocument remoteDocument)
-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
-
-
-
-
Method Detail
-
init
public boolean init(Plugin plugin)
Description copied from interface:PluginComponent
Initialize the component with the given plugin configuration- Specified by:
init
in interfacePluginComponent
- Parameters:
plugin
- the calling plugin- Returns:
- true if the component has been correctly initialized.
-
getDownloadUrl
public java.lang.String getDownloadUrl(FileDocument remoteDocument)
- Specified by:
getDownloadUrl
in interfaceRemoteDocumentPolicyFilter
-
getRemotePreviewUrl
public java.lang.String getRemotePreviewUrl(FileDocument remoteDocument)
- Specified by:
getRemotePreviewUrl
in interfaceRemoteDocumentPolicyFilter
-
getRemoteThumbnailUrl
public java.lang.String getRemoteThumbnailUrl(FileDocument remoteDocument)
- Specified by:
getRemoteThumbnailUrl
in interfaceRemoteDocumentPolicyFilter
-
previewWithIFrame
public boolean previewWithIFrame(FileDocument remoteDocument)
- Specified by:
previewWithIFrame
in interfaceRemoteDocumentPolicyFilter
-
previewWithMedia
public boolean previewWithMedia(FileDocument remoteDocument)
- Specified by:
previewWithMedia
in interfaceRemoteDocumentPolicyFilter
-
getTitle
public java.lang.String getTitle(java.lang.String remoteUri)
- Specified by:
getTitle
in interfaceRemoteDocumentPolicyFilter
-
getContentType
public java.lang.String getContentType(java.lang.String remoteUri)
- Specified by:
getContentType
in interfaceRemoteDocumentPolicyFilter
-
-