public class OwStandardSearchSpecialNodeOperator extends Object
Standard implementation to scan a search node structure for special nodes, like paths, object stores and classes.
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 |
---|
OwStandardSearchSpecialNodeOperator() |
Modifier and Type | Method and Description |
---|---|
Object[] |
getClasses()
Array of OwClass, representing the
classes defined for the scanned search node
|
int |
getMergeType()
Get the int representation of the merge type.
|
String |
getMergeTypeRepresentation()
get the merge type as string representation
|
List |
getObjectStores()
Retrieve a List of scanned object stores/repositories that the given
search node refers.
|
Collection |
getPaths()
Collection of String representing search-path objects referred by the
scanned search node.
|
List |
getSubpaths()
Returns a list of possible paths to
specified in the search node structure.
|
protected void |
handleClasses(OwSearchNode classSearchNode_p)
(overridable)
Handling for search node where the specified
classes are contained.
|
protected void |
handleResourcepaths(OwSearchNode pathSearchNode_p)
(overridable)
Handling the paths search node to extract and add it to
getPaths() collection. |
void |
scan(OwSearchNode searchNode_p)
Traverse the search criteria tree, create and cache the special node
information (namely referred paths within object-stores and object classes )
. |
protected void |
setClasses(Object[] owClassArr_p)
Method to set the array of OwClass.
|
protected void |
setMergeType(int mergeType_p)
Method to set the merge type, which is not
verifying if given parameter value is valid.
|
public Object[] getClasses()
public String getMergeTypeRepresentation()
OwSearchOperator.MERGE_UNION = "union" OwSearchOperator.MERGE_INTERSECT = "intersection" OwSearchOperator.MERGE_NONE = "none" (default)
getMergeType()
valuepublic int getMergeType()
OwSearchOperator.MERGE_*
public List getObjectStores()
OwSearchObjectStore
s representing the object stores/repositories
that the scanned search node referspublic Collection getPaths()
OwSearchPath
spublic List getSubpaths()
Just iterating over the scanned paths (getPaths()
and removing the object store/repository only references.
OwSearchPath
subpaths
public void scan(OwSearchNode searchNode_p) throws Exception
searchNode_p
- OwSearchNode
from where the scan should startException
- if problem occur requesting the FieldDefinition from OwSearchNodeprotected void handleResourcepaths(OwSearchNode pathSearchNode_p)
getPaths()
collection.
This method is called if a search criteria is found form path type.
pathSearchNode_p
- OwSearchNode to use for paths extraction.protected void handleClasses(OwSearchNode classSearchNode_p)
This method is called by scan(OwSearchNode)
, if
a node with class definition was found.
classSearchNode_p
- SearchNode containing the classesprotected void setMergeType(int mergeType_p)
mergeType_p
- value for the merge typeprotected void setClasses(Object[] owClassArr_p)
owClassArr_p
- array of OwClass or nullCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.