public class OwBackwardsCompatibilityAOProvider extends Object implements OwAOConfigurableProvider
AOProvider bound to the old, deprecated network application objects retrieval methods implementation. Will work like it was defined by delegating to network to provide the application objects.
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 |
---|---|
static interface |
OwBackwardsCompatibilityAOProvider.OwLegacyAONetwork
Deprecated.
this interface is meant to support old network adapters, it should not be used for
for other purposes
|
Constructor and Description |
---|
OwBackwardsCompatibilityAOProvider() |
OwBackwardsCompatibilityAOProvider(OwNetwork adaptor,
OwRoleManager roleManager) |
Modifier and Type | Method and Description |
---|---|
<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> aoType,
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...
|
protected String |
getDefaultLocation(OwAOType<?> aoType,
String name,
List<Object> params)
Return the default location for specific application object
|
void |
init(OwXMLUtil configuration,
OwAOContext context) |
public OwBackwardsCompatibilityAOProvider()
public OwBackwardsCompatibilityAOProvider(OwNetwork adaptor, OwRoleManager roleManager) throws OwException
OwException
public <T> List<T> getApplicationObjects(OwAOType<T> type, String name, boolean forceSpecificObj) throws OwException
OwAOProvider
getApplicationObjects
in interface OwAOProvider
type
- 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.OwException
public <T> T getApplicationObject(OwAOType<T> type, String name, boolean forceSpecificObj, boolean createNonExisting) throws OwException
OwAOProvider
getApplicationObject
in interface OwAOProvider
type
- 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 existOwException
public <T> T getApplicationObject(OwAOType<T> aoType, String name, List<Object> params, boolean forceSpecificObj, boolean createNonExisting) throws OwException
OwAOProvider
getApplicationObject
in interface OwAOProvider
aoType
- 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 existOwException
protected String getDefaultLocation(OwAOType<?> aoType, String name, List<Object> params)
aoType
- OwAOType specific application object typename
- String name or location defined by retrieval (can be null)params
- List of objects for additional information (can be null)public void init(OwXMLUtil configuration, OwAOContext context) throws OwConfigurationException
init
in interface OwAOConfigurableProvider
OwConfigurationException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.