com.wewebu.ow.server.ao
Class OwFileAOSupport

java.lang.Object
  extended by com.wewebu.ow.server.ao.OwFileAOSupport
All Implemented Interfaces:
OwAOSupport

public class OwFileAOSupport
extends Object
implements OwAOSupport

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

Since:
3.2.0.0

Field Summary
static char PATH_SEPARATOR
          Separator used for the file system path, creating for example the default ow_app location
 
Constructor Summary
OwFileAOSupport(OwNetwork network_p, OwNetworkConfiguration configuration_p, String defaultLocation_p)
          Constructor
 
Method Summary
 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.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PATH_SEPARATOR

public static final char PATH_SEPARATOR
Separator used for the file system path, creating for example the default ow_app location

See Also:
Constant Field Values
Constructor Detail

OwFileAOSupport

public OwFileAOSupport(OwNetwork network_p,
                       OwNetworkConfiguration configuration_p,
                       String defaultLocation_p)
                throws OwException
Constructor

Parameters:
network_p - current network
configuration_p - bootstrap configuration wrapper
Throws:
OwException
Method Detail

getSupportObjects

public OwObject[] getSupportObjects(String strName_p,
                                    boolean forceUserspecificObject_p,
                                    boolean createIfNotExist_p)
                             throws OwException
Description copied from interface: OwAOSupport
Returns a collection of persistent application OwObjects that are matched by the given name.

Specified by:
getSupportObjects in interface OwAOSupport
Parameters:
strName_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 exist
Returns:
a collection object stored as OwObject. Some entries might be null if the implementation of this support allows it (usually null entries signal objects that could not be retrieved).
Throws:
OwException - if the given object could not be retrieved

getSupportObject

public OwObject getSupportObject(String strName_p,
                                 boolean forceUserspecificObject_p,
                                 boolean createIfNotExist_p)
                          throws OwException
Description copied from interface: OwAOSupport
Returns the persistent application OwObject that is matched by the given name.

Specified by:
getSupportObject in interface OwAOSupport
Parameters:
strName_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 exist
Returns:
an application object stored as OwObject
Throws:
OwException - if the given object could not be retrieved

getSupportFile

public File getSupportFile(String strName_p,
                           boolean forceUserspecificObject_p,
                           boolean createIfNotExist_p,
                           boolean isFile_p)
                    throws OwException
Throws:
OwException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.