public class OwManagedAOProvider extends Object implements OwAOProvider, OwAOConfigurableProvider
Application objects provider for managed contexts.
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 |
|---|
OwManagedAOProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected OwAOConfiguration |
createConfiguration(OwXMLUtil configuration,
OwAOContext context) |
<T> T |
getApplicationObject(OwAOType<T> type,
String name,
boolean forceSpecificObj,
boolean createNonExisting)
get a Objects for the application to work, like search templates, preferences...
|
<T> T |
getApplicationObject(OwAOType<T> type,
String name,
List<Object> params,
boolean forceSpecificObj,
boolean createNonExisting)
get an application object with specific parameters, like search templates, preferences...
|
<T> List<T> |
getApplicationObjects(OwAOType<T> type,
String name,
boolean forceSpecificObj)
get a list of Objects for the application to work, like search templates, preferences...
|
void |
init(OwXMLUtil configuration,
OwAOContext context) |
public <T> List<T> getApplicationObjects(OwAOType<T> type, String name, boolean forceSpecificObj) throws OwException
OwAOProvidergetApplicationObjects in interface OwAOProvidertype - OwAOType type which define class and integer representation of requested application object.name - String Name of the object to retrieve e.g. "userprefs"forceSpecificObj - if true, the object must be specific to the logged in user, otherwise the OwAOProvider determines if it is common to a site or specific to a group or a user.OwExceptionpublic <T> T getApplicationObject(OwAOType<T> type, String name, boolean forceSpecificObj, boolean createNonExisting) throws OwException
OwAOProvidergetApplicationObject in interface OwAOProvidertype - OwAOType type which define class and integer representation of requested application object.name - String name/location of the object to retrieve e.g. "userprefs"forceSpecificObj - if true, the object must be specific to the logged in user, otherwise the OwAOProvider determines if it is common to a site or specific to a group or a user.createNonExisting - boolean true = create if not existOwExceptionpublic <T> T getApplicationObject(OwAOType<T> type, String name, List<Object> params, boolean forceSpecificObj, boolean createNonExisting) throws OwException
OwAOProvidergetApplicationObject in interface OwAOProvidertype - OwAOType type which define class and integer representation of requested application objectname - String Name/Location of the object to retrieve e.g. "userprefs"params - List of objects (optional can be null)forceSpecificObj - boolean if true, the object must be specific to the logged in user, otherwise the OwAOProvider determines if it is common to a site or specific to a group or a user.createNonExisting - boolean true = create if not existOwExceptionpublic void init(OwXMLUtil configuration, OwAOContext context) throws OwConfigurationException
init in interface OwAOConfigurableProviderOwConfigurationExceptionprotected OwAOConfiguration createConfiguration(OwXMLUtil configuration, OwAOContext context) throws OwConfigurationException
OwConfigurationExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.