com.wewebu.ow.server.ao
Class OwVirtualFoldersManager

java.lang.Object
  extended by com.wewebu.ow.server.ao.OwSupportBasedManager
      extended by com.wewebu.ow.server.ao.OwVirtualFoldersManager
All Implemented Interfaces:
OwAOManager

public class OwVirtualFoldersManager
extends OwSupportBasedManager

Manager for virtual folder OwObject application objects.

Returns OwObject objects.

Retrieves only single objects.

Does not support parameterized retrieval through getApplicationObject(String, Object, boolean, boolean).

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 String DEFAULT_BASE_PATH
           
 
Constructor Summary
OwVirtualFoldersManager(OwAOSupport aoSupport_p, OwVirtualFolderFactory virtualFolderFactory_p)
          Constructor - DEFAULT_BASE_PATH path will be used
OwVirtualFoldersManager(OwAOSupport aoSupport_p, OwVirtualFolderFactory virtualFolderFactory_p, OwRoleManager roleManager_p, String basePath_p)
          Constructor - DEFAULT_BASE_PATH path will be used
 
Method Summary
 OwObject getApplicationObject(String strName_p, boolean forceUserSpecificObject_p, boolean createIfNotExist_p)
          Returns the application object that is matched by the given name.
 OwObject getApplicationObject(String strName_p, Object param_p, boolean forceUserSpecificObject_p, boolean createIfNotExist_p)
          Returns the application object that is matched by the given name.
 Collection<?> getApplicationObjects(String strName_p, boolean forceUserSpecificObject_p)
          Returns all application objects that are matched by the given name.
 int getManagedType()
           
 String toString()
           
 
Methods inherited from class com.wewebu.ow.server.ao.OwSupportBasedManager
getAOSupportObject, getAOSupportObjects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_BASE_PATH

public static final String DEFAULT_BASE_PATH
See Also:
Constant Field Values
Constructor Detail

OwVirtualFoldersManager

public OwVirtualFoldersManager(OwAOSupport aoSupport_p,
                               OwVirtualFolderFactory virtualFolderFactory_p)
Constructor - DEFAULT_BASE_PATH path will be used

Parameters:
aoSupport_p - application OwObject persistence support
virtualFolderFactory_p - virtual folder factory implementation

OwVirtualFoldersManager

public OwVirtualFoldersManager(OwAOSupport aoSupport_p,
                               OwVirtualFolderFactory virtualFolderFactory_p,
                               OwRoleManager roleManager_p,
                               String basePath_p)
Constructor - DEFAULT_BASE_PATH path will be used

Parameters:
aoSupport_p - application OwObject persistence support
virtualFolderFactory_p - virtual folder factory implementation
roleManager_p - role manager used for filtering allowed virtual folders (can be null if no role based filtering is required)
Since:
4.0.0.0
Method Detail

getApplicationObject

public OwObject getApplicationObject(String strName_p,
                                     Object param_p,
                                     boolean forceUserSpecificObject_p,
                                     boolean createIfNotExist_p)
                              throws OwException
Description copied from interface: OwAOManager
Returns the application object that is matched by the given name.

Parameters:
strName_p - name of the object to retrieve e.g. "userprefs"
param_p - optional Object, can be null
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.
Returns:
an Alfresco Workdesk application object
Throws:
OwException - if the given object could not be retrieved

getApplicationObject

public final OwObject getApplicationObject(String strName_p,
                                           boolean forceUserSpecificObject_p,
                                           boolean createIfNotExist_p)
                                    throws OwException
Description copied from interface: OwAOManager
Returns the application object that is matched by the given name.

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.
Returns:
an Alfresco Workdesk application object
Throws:
OwException - if the given object could not be retrieved

getApplicationObjects

public Collection<?> getApplicationObjects(String strName_p,
                                           boolean forceUserSpecificObject_p)
                                    throws OwException
Description copied from interface: OwAOManager
Returns all application objects that are matched by the given name.

Parameters:
strName_p - the
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.
Returns:
a collection of Alfresco Workdesk application objects
Throws:
OwException

getManagedType

public final int getManagedType()
Returns:
the managed objects type integer code

toString

public String toString()
Overrides:
toString in class OwSupportBasedManager


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.