public class OwFileAOSupport extends Object implements OwAOSupport, OwConfigurableSupport
An file system application OwObject provider.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
| Modifier and Type | Class and Description |
|---|---|
protected static class |
OwFileAOSupport.BasicFileFilter |
| Modifier and Type | Field and Description |
|---|---|
static char |
PATH_SEPARATOR
Separator used for the file system path, creating for example the default ow_app location
|
| Constructor and Description |
|---|
OwFileAOSupport() |
OwFileAOSupport(OwNetwork<?> network_p,
OwNetworkConfiguration configuration_p,
String defaultLocation_p)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected FileFilter |
createFileFilter()
Factory for FileFilter which will return only specific files.
|
File |
getSupportFile(String strName_p,
boolean forceUserspecificObject_p,
boolean createIfNotExist_p,
boolean isFile_p) |
OwObject |
getSupportObject(String strName_p,
boolean forceUserspecificObject_p,
boolean createIfNotExist_p)
Returns the persistent application
OwObject that is matched by the given name. |
OwObject[] |
getSupportObjects(String strName_p,
boolean forceUserspecificObject_p,
boolean createIfNotExist_p)
Returns a collection of persistent application
OwObjects that are matched by the given name. |
void |
init(OwSupportConfiguration configuration,
OwAOContext context) |
String |
toString() |
public static final char PATH_SEPARATOR
public OwFileAOSupport()
public OwFileAOSupport(OwNetwork<?> network_p, OwNetworkConfiguration configuration_p, String defaultLocation_p) throws OwException
network_p - current networkconfiguration_p - bootstrap configuration wrapperOwExceptionpublic void init(OwSupportConfiguration configuration, OwAOContext context) throws OwConfigurationException
init in interface OwConfigurableSupportOwConfigurationExceptionpublic OwObject[] getSupportObjects(String strName_p, boolean forceUserspecificObject_p, boolean createIfNotExist_p) throws OwException
OwAOSupportOwObjects that are matched by the given name.getSupportObjects in interface OwAOSupportstrName_p - name of the objects to retrieve e.g. "userprefs"forceUserspecificObject_p - if true, the object must be specific to the logged in user, otherwise the ECM Adapter determines if it is common to a site or specific to a group or a user.createIfNotExist_p - if true the objects container will be created if it does not existOwObject. Some entries might be null if
the implementation of this support allows it (usually null entries signal objects that
could not be retrieved).OwException - if the given object could not be retrievedpublic OwObject getSupportObject(String strName_p, boolean forceUserspecificObject_p, boolean createIfNotExist_p) throws OwException
OwAOSupportOwObject that is matched by the given name.getSupportObject in interface OwAOSupportstrName_p - name of the object to retrieve e.g. "userprefs"forceUserspecificObject_p - if true, the object must be specific to the logged in user, otherwise the ECM Adapter determines if it is common to a site or specific to a group or a user.createIfNotExist_p - if true the object will be created if it does not existOwObjectOwException - if the given object could not be retrievedpublic File getSupportFile(String strName_p, boolean forceUserspecificObject_p, boolean createIfNotExist_p, boolean isFile_p) throws OwException
OwExceptionprotected FileFilter createFileFilter()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.