Package org.javlo.service.shared
Class LocalFileSharedContentProvider
- java.lang.Object
-
- org.javlo.service.shared.AbstractSharedContentProvider
-
- org.javlo.service.shared.LocalImageSharedContentProvider
-
- org.javlo.service.shared.LocalFileSharedContentProvider
-
- All Implemented Interfaces:
ISharedContentProvider
- Direct Known Subclasses:
ImportedFileSharedContentProvider
public class LocalFileSharedContentProvider extends LocalImageSharedContentProvider
-
-
Field Summary
Fields Modifier and Type Field Description static String
NAME
-
Fields inherited from class org.javlo.service.shared.LocalImageSharedContentProvider
IMAGE_FILTER
-
Fields inherited from class org.javlo.service.shared.AbstractSharedContentProvider
categories, name, url
-
Fields inherited from interface org.javlo.service.shared.ISharedContentProvider
TYPE_DEFAULT, TYPE_IMAGE, TYPE_MULTIMEDIA, TYPE_TEXT
-
-
Constructor Summary
Constructors Constructor Description LocalFileSharedContentProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
acceptedDocument(ContentContext ctx, String fileName)
protected ComponentBean
getComponentBean(String name, String category, String specialValue, String lg)
protected FileFilter
getFilter()
File
getFolder(ContentContext ctx, String category)
protected String
getPreviewURL(ContentContext ctx, ComponentBean compBean)
protected File
getRootFolder(ContentContext ctx)
-
Methods inherited from class org.javlo.service.shared.LocalImageSharedContentProvider
exist, getCategories, getContent, getType, isCategoryAccepted, isUploadable, upload
-
Methods inherited from class org.javlo.service.shared.AbstractSharedContentProvider
getCategoriesSize, getContent, getContentSize, getLabel, getName, getURL, isCategoryAccepted, isEmpty, isLarge, isSearch, refresh, searchContent, setCategories, setName, setURL
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFilter
protected FileFilter getFilter()
- Overrides:
getFilter
in classLocalImageSharedContentProvider
-
getRootFolder
protected File getRootFolder(ContentContext ctx)
- Overrides:
getRootFolder
in classLocalImageSharedContentProvider
-
getComponentBean
protected ComponentBean getComponentBean(String name, String category, String specialValue, String lg)
- Overrides:
getComponentBean
in classLocalImageSharedContentProvider
-
getPreviewURL
protected String getPreviewURL(ContentContext ctx, ComponentBean compBean) throws Exception
- Overrides:
getPreviewURL
in classLocalImageSharedContentProvider
- Throws:
Exception
-
acceptedDocument
protected boolean acceptedDocument(ContentContext ctx, String fileName)
- Overrides:
acceptedDocument
in classLocalImageSharedContentProvider
-
getFolder
public File getFolder(ContentContext ctx, String category)
- Specified by:
getFolder
in interfaceISharedContentProvider
- Overrides:
getFolder
in classAbstractSharedContentProvider
-
-