|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.connector.filesystem.BasePropertiesFactory
public abstract class BasePropertiesFactory
A base class for CustomPropertiesFactory
implementations that handle "extra" or "custom" properties for 'nt:file',
'nt:folder', or 'nt:resource' nodes.
Field Summary | |
---|---|
protected static Set<Name> |
NO_NAMES
|
protected static Collection<Property> |
NO_PROPERTIES_COLLECTION
|
protected Set<Name> |
STANDARD_PROPERTIES_FOR_CONTENT
Only certain properties are tolerated when writing content (dna:resource or jcr:resource) nodes. |
protected Set<Name> |
STANDARD_PROPERTIES_FOR_FILE_OR_FOLDER
Only certain properties are tolerated when writing files (nt:file) or folders (nt:folder) nodes. |
Constructor Summary | |
---|---|
protected |
BasePropertiesFactory()
Create an instance of this factory. |
Method Summary | |
---|---|
FilenameFilter |
getFilenameFilter(FilenameFilter exclusionFilter)
Create a filename filter that will ignore any files needed by this implementation. |
File |
propertiesFileForFile(File file)
Returns the file used for storing extra properties for files. |
File |
propertiesFileForFolder(File folder)
Returns the file used for storing extra properties for folders. |
File |
propertiesFileForResource(File resource)
Returns the file used for storing properties for resources. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.modeshape.connector.filesystem.CustomPropertiesFactory |
---|
getDirectoryProperties, getFileProperties, getResourceProperties, recordDirectoryProperties, recordFileProperties, recordResourceProperties |
Field Detail |
---|
protected final Set<Name> STANDARD_PROPERTIES_FOR_CONTENT
protected final Set<Name> STANDARD_PROPERTIES_FOR_FILE_OR_FOLDER
protected static final Collection<Property> NO_PROPERTIES_COLLECTION
protected static final Set<Name> NO_NAMES
Constructor Detail |
---|
protected BasePropertiesFactory()
Method Detail |
---|
public FilenameFilter getFilenameFilter(FilenameFilter exclusionFilter)
exclusionFilter
- the default filter, which should be included; may be null if there is no such filter
public File propertiesFileForFile(File file)
CustomPropertiesFactory
propertiesFileForFile
in interface CustomPropertiesFactory
file
- a non-null File
representing an existing file.
null
if custom properties are not supportedpublic File propertiesFileForFolder(File folder)
CustomPropertiesFactory
propertiesFileForFolder
in interface CustomPropertiesFactory
folder
- a non-null File
representing an existing folder.
null
if custom properties are not supportedpublic File propertiesFileForResource(File resource)
CustomPropertiesFactory
propertiesFileForResource
in interface CustomPropertiesFactory
resource
- a non-null File
representing an existing file.
null
if custom properties are not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |