public class OwRepositoryAOSupport extends Object implements OwAOSupport, OwConfigurableSupport
Simple Repository based OwAOSupport. Will retrieve ApplicationObjects (Searchtemplates,...) from a repository, using the provided OwNetwork.
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 |
|---|
OwRepositoryAOSupport() |
OwRepositoryAOSupport(OwNetwork<?> network_p,
String path_p,
int[] objectTypes_p,
int versionSelection_p,
String aoClassName_p)
Create an instance with a max size of Integer.MAX_VALUE for object retrieval.
|
OwRepositoryAOSupport(OwNetwork<?> network_p,
String path_p,
int[] objectTypes_p,
int versionSelection_p,
String aoClassName_p,
int maxSize_p)
Create an instance with a max size of Integer.MAX_VALUE,
for object retrieval.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxSize()
Get maximum retrieval size.
|
OwObject |
getSupportObject(String strName_p,
boolean forceUserspecificObject_p,
boolean createIfNotExist_p)
Returns the persistent application
OwObject that is matched by the given name. |
OwObject[] |
getSupportObjects(String strName_p,
boolean forceUserspecificObject_p,
boolean createIfNotExist_p)
Returns a collection of persistent application
OwObjects that are matched by the given name. |
void |
init(OwSupportConfiguration configuration,
OwAOContext context) |
void |
setMaxSize(int maxSize_p)
Set max size to be used during retrieval.
|
public OwRepositoryAOSupport()
public OwRepositoryAOSupport(OwNetwork<?> network_p, String path_p, int[] objectTypes_p, int versionSelection_p, String aoClassName_p)
network_p - OwNetwork to usepath_p - String path where to searchobjectTypes_p - types to requestversionSelection_p - int version selection see OwSearchtTemplateaoClassName_p - String objectclass new to create new instancespublic OwRepositoryAOSupport(OwNetwork<?> network_p, String path_p, int[] objectTypes_p, int versionSelection_p, String aoClassName_p, int maxSize_p)
network_p - OwNetwork to usepath_p - String path where to searchobjectTypes_p - types to requestversionSelection_p - int version selection see OwSearchtTemplateaoClassName_p - String objectclass new to create new instancesmaxSize_p - int number of maximum children to retrievepublic void init(OwSupportConfiguration configuration, OwAOContext context) throws OwConfigurationException
init in interface OwConfigurableSupportOwConfigurationExceptionpublic OwObject getSupportObject(String strName_p, boolean forceUserspecificObject_p, boolean createIfNotExist_p) throws OwException
OwAOSupportOwObject that is matched by the given name.getSupportObject in interface OwAOSupportstrName_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.createIfNotExist_p - if true the object will be created if it does not existOwObjectOwException - if the given object could not be retrievedpublic OwObject[] getSupportObjects(String strName_p, boolean forceUserspecificObject_p, boolean createIfNotExist_p) throws OwException
OwAOSupportOwObjects that are matched by the given name.getSupportObjects in interface OwAOSupportstrName_p - name of the objects 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.createIfNotExist_p - if true the objects container will be created if it does not existOwObject. Some entries might be null if
the implementation of this support allows it (usually null entries signal objects that
could not be retrieved).OwException - if the given object could not be retrievedpublic int getMaxSize()
public void setMaxSize(int maxSize_p)
maxSize_p - int amountCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.