public class OwStandardSemiVirtualFolderAdapter extends Object implements OwSemiVirtualFolderAdapter
Standard semi-virtual-folder adapter implementation.
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
VIRTUAL_FOLDER_SEARCH_PATH_PROPERTY
Constructor and Description |
---|
OwStandardSemiVirtualFolderAdapter(OwNetwork network_p)
Constructor
|
Modifier and Type | Method and Description |
---|---|
protected Object |
convertPropertyValue(OwSearchCriteria searchCriteria_p,
OwProperty folderProperty_p)
(overridable)
Convert the given property value to a value compatible with given search criteria.
|
OwObjectCollection |
getChildren(OwSemiVirtualFolder semiVirtualFolder_p,
int[] objectTypes_p,
Collection propertyNames_p,
OwSort sort_p,
int maxSize_p,
int versionSelection_p,
OwSearchNode filterCriteria_p)
Retrieves all children of the given semi-virtual-folder object.
|
OwIterable<OwObject> |
getChildren(OwSemiVirtualFolder semiVirtualFolder_p,
OwLoadContext loadContext)
Same behavior as
OwSemiVirtualFolderAdapter.getChildren(OwSemiVirtualFolder, int[], Collection, OwSort, int, int, OwSearchNode) but returning a pageable OwIterable . |
OwVirtualFolderObject |
getVirtualFolder(OwSemiVirtualFolder semiVirtualFolder_p)
Retrieve the virtual folder object corresponding to this semi-virtual-folder adapter.
Clients of this interface should consider the possible caching of the virtual folder object instance by their adapter. |
protected Map |
propagateRootProperties(OwSemiVirtualFolder rootObj_p,
OwSearchNode search_p)
Called to propagate the defined set of properties from
"physical" parent to it's virtual children.
|
public OwStandardSemiVirtualFolderAdapter(OwNetwork network_p)
network_p
- public OwObjectCollection getChildren(OwSemiVirtualFolder semiVirtualFolder_p, int[] objectTypes_p, Collection propertyNames_p, OwSort sort_p, int maxSize_p, int versionSelection_p, OwSearchNode filterCriteria_p) throws OwException
OwSemiVirtualFolderAdapter
OwObject.getChilds(int[], Collection, OwSort, int, int, OwSearchNode)
method.getChildren
in interface OwSemiVirtualFolderAdapter
semiVirtualFolder_p
- the semi-virtual-folder object whose children are to be retrievedobjectTypes_p
- the requested object types (folder or document)propertyNames_p
- properties to fetch from DMS system along with the children, can be null.sort_p
- OwSort Sortcriteria list to sort return listmaxSize_p
- int maximum number of objects to retrieveversionSelection_p
- int Selects the versions as defined in OwSearchTemplate.VERSION_SELECT_...filterCriteria_p
- optional OwSearchNode to filter the children, can be null
NOTE: This parameter is an additional filter to the internal SearchTemplate used in the getSearchTemplate(...) function
The internal SearchTemplate used in the getSearchTemplate(...) is used for virtual folders, the FilterCriteria_p is used to refine the result of a nodeOwSemiVirtualFolder.includesPhysicalChildren()
)OwException
public OwIterable<OwObject> getChildren(OwSemiVirtualFolder semiVirtualFolder_p, OwLoadContext loadContext) throws OwException
OwSemiVirtualFolderAdapter
OwSemiVirtualFolderAdapter.getChildren(OwSemiVirtualFolder, int[], Collection, OwSort, int, int, OwSearchNode)
but returning a pageable OwIterable
.getChildren
in interface OwSemiVirtualFolderAdapter
OwIterable
OwException
public OwVirtualFolderObject getVirtualFolder(OwSemiVirtualFolder semiVirtualFolder_p) throws OwException
OwSemiVirtualFolderAdapter
getVirtualFolder
in interface OwSemiVirtualFolderAdapter
OwException
protected Object convertPropertyValue(OwSearchCriteria searchCriteria_p, OwProperty folderProperty_p) throws Exception
OwSearchCriteria.getJavaClassName()
and OwFieldDefinition.getJavaClassName()
).
If the two classes don't match search a search-criteria based string conversion is performed
on the properties value string representation.searchCriteria_p
- folderProperty_p
- Exception
protected Map propagateRootProperties(OwSemiVirtualFolder rootObj_p, OwSearchNode search_p) throws Exception
rootObj_p
- OwSemiVirtualFolder to use for propagationsearch_p
- OwSearchNode where to map the propertiesException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.