public class OwSearchTemplatesManager extends OwSupportBasedManager
Manager for OwSearchTemplate application objects.
Returns OwSearchTemplate objects.
Retrieves single objects and collection of 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
| Constructor and Description |
|---|
OwSearchTemplatesManager() |
OwSearchTemplatesManager(OwAOSupport aoSupport_p,
OwSearchTemplateFactory searchTemplateFactory_p)
Constructor - an empty string base path will be used
|
OwSearchTemplatesManager(OwAOSupport aoSupport_p,
String basePath_p,
OwSearchTemplateFactory searchTemplateFactory_p,
String singlePath_p,
String multiplePath_p)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OwSearchTemplate |
getApplicationObject(String strName_p,
boolean forceUserSpecificObject_p,
boolean createIfNotExist_p)
Returns the application object that is matched by the given name.
|
OwSearchTemplate |
getApplicationObject(String strName_p,
Object param_p,
boolean forceUserSpecificObject_p,
boolean createIfNotExist_p)
Returns the application object that is matched by the given name.
|
List<OwSearchTemplate> |
getApplicationObjects(String strName_p,
boolean forceUserSpecificObject_p)
Returns all application objects that are matched by the given name.
|
int |
getManagedType() |
OwAOType<?> |
getType() |
void |
init(OwAOType<?> type,
OwManagerConfiguration configuration,
OwSupportsConfiguration supports,
OwAOContext context) |
protected OwSearchTemplateFactory |
initSearchTemplateFactory(OwAOContext context) |
String |
toString() |
getAOSupportObject, getAOSupportObjectspublic OwSearchTemplatesManager()
public OwSearchTemplatesManager(OwAOSupport aoSupport_p, OwSearchTemplateFactory searchTemplateFactory_p)
aoSupport_p - application OwObject persistence supportsearchTemplateFactory_p - search template factory implementationpublic OwSearchTemplatesManager(OwAOSupport aoSupport_p, String basePath_p, OwSearchTemplateFactory searchTemplateFactory_p, String singlePath_p, String multiplePath_p)
basePath_p - path relative to the persistence support root of
the managed objects' containeraoSupport_p - application OwObject persistence supportsearchTemplateFactory_p - search template factory implementationsinglePath_p - single objects relative path - influences only getApplicationObject(String, boolean, boolean) and getApplicationObject(String, Object, boolean, boolean)multiplePath_p - multiple objects relative path - influences only getApplicationObjects(String, boolean)public OwSearchTemplate getApplicationObject(String strName_p, Object param_p, boolean forceUserSpecificObject_p, boolean createIfNotExist_p) throws OwException
OwAOManagerstrName_p - name of the object to retrieve e.g. "userprefs"param_p - optional Object, can be nullforceUserSpecificObject_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.OwException - if the given object could not be retrievedpublic OwSearchTemplate getApplicationObject(String strName_p, boolean forceUserSpecificObject_p, boolean createIfNotExist_p) throws OwException
OwAOManagerstrName_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.OwException - if the given object could not be retrievedpublic List<OwSearchTemplate> getApplicationObjects(String strName_p, boolean forceUserSpecificObject_p) throws OwException
OwAOManagerstrName_p - theforceUserSpecificObject_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.OwExceptionpublic int getManagedType()
public OwAOType<?> getType()
protected OwSearchTemplateFactory initSearchTemplateFactory(OwAOContext context)
public void init(OwAOType<?> type, OwManagerConfiguration configuration, OwSupportsConfiguration supports, OwAOContext context) throws OwConfigurationException
init in interface OwConfigurableManagerinit in class OwSupportBasedManagerOwConfigurationExceptionpublic String toString()
toString in class OwSupportBasedManagerCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.