com.wewebu.ow.server.ecmimpl
Class OwBackwardsCompatibilityAOProvider

java.lang.Object
  extended by com.wewebu.ow.server.ecmimpl.OwBackwardsCompatibilityAOProvider
All Implemented Interfaces:
OwAOProvider

public class OwBackwardsCompatibilityAOProvider
extends Object
implements OwAOProvider

AOProvider bound to the current network 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

Since:
4.0.0.0

Constructor Summary
OwBackwardsCompatibilityAOProvider(OwNetwork adaptor, OwRoleManager roleManager)
           
 
Method Summary
<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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OwBackwardsCompatibilityAOProvider

public OwBackwardsCompatibilityAOProvider(OwNetwork adaptor,
                                          OwRoleManager roleManager)
Method Detail

getApplicationObjects

public <T> List<T> getApplicationObjects(OwAOType<T> type,
                                         String name,
                                         boolean forceSpecificObj)
                              throws OwException
Description copied from interface: OwAOProvider
get a list of Objects for the application to work, like search templates, preferences...

Specified by:
getApplicationObjects in interface OwAOProvider
Parameters:
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.
Returns:
Collection, which elements need to be cast to the appropriate type according to aoType
Throws:
OwException

getApplicationObject

public <T> T getApplicationObject(OwAOType<T> type,
                                  String name,
                                  boolean forceSpecificObj,
                                  boolean createNonExisting)
                       throws OwException
Description copied from interface: OwAOProvider
get a Objects for the application to work, like search templates, preferences...

Specified by:
getApplicationObject in interface OwAOProvider
Parameters:
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 exist
Returns:
Object, which needs to be cast to the appropriate type according to iTyp_p
Throws:
OwException

getApplicationObject

public <T> T getApplicationObject(OwAOType<T> aoType,
                                  String name,
                                  List<Object> params,
                                  boolean forceSpecificObj,
                                  boolean createNonExisting)
                       throws OwException
Description copied from interface: OwAOProvider
get an application object with specific parameters, like search templates, preferences...

Specified by:
getApplicationObject in interface OwAOProvider
Parameters:
aoType - OwAOType type which define class and integer representation of requested application object
name - 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 exist
Returns:
Object, which needs to be cast to the appropriate type according to iTyp_p
Throws:
OwException

getDefaultLocation

protected String getDefaultLocation(OwAOType<?> aoType,
                                    String name,
                                    List<Object> params)
Return the default location for specific application object

Parameters:
aoType - OwAOType specific application object type
name - String name or location defined by retrieval (can be null)
params - List of objects for additional information (can be null)
Returns:
String location/path for specific objects


Copyright © 2013 Alfresco Business Solutions. All Rights Reserved.