|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.wewebu.ow.server.plug.owrecord.filter.OwRecordFilterOperatorHelper
public class OwRecordFilterOperatorHelper
Helper class for FieldDefinition retrieval. Creates wrapper classes which have basic operators to be used with the requested FieldDefinition.
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
Nested Class Summary | |
---|---|
protected static class |
OwRecordFilterOperatorHelper.OwFieldDefWrapper
OwFieldDefWrapper. |
Field Summary | |
---|---|
static Collection<Integer> |
BOOLEAN_OPERATORS
|
static Collection<Integer> |
DEFAULT_OPERATORS
Collection of operators which is used for non-number fields. |
static Collection<Integer> |
MULTIVAL_OPERATORS
|
static Collection<Integer> |
NUMBER_OPERATORS
Collection of operators which is used for number fields (e.g. |
Constructor Summary | |
---|---|
OwRecordFilterOperatorHelper()
|
Method Summary | |
---|---|
Collection<com.wewebu.ow.server.field.OwFieldDefinition> |
collectFilterProperties(com.wewebu.ow.server.ecm.OwObject obj_p,
com.wewebu.ow.server.field.OwFieldDefinitionProvider fieldDefProvider_p,
Collection columnInfoList_p)
Process the column info collection depending on the given object to retrieve field definitions which can be used for filtering. |
com.wewebu.ow.server.field.OwFieldDefinition |
getFieldDefinition(com.wewebu.ow.server.field.OwFieldDefinitionProvider fieldDefinitonProvider_p,
String propName_p,
String resourceId_p)
Get a OwFieldDefintion which represents the given property name. |
List<String> |
getResourceIdsFromObject(com.wewebu.ow.server.ecm.OwObject obj_p)
Return a list which contains the IDs from where the object retrieves it children. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Collection<Integer> NUMBER_OPERATORS
public static final Collection<Integer> DEFAULT_OPERATORS
public static final Collection<Integer> MULTIVAL_OPERATORS
public static final Collection<Integer> BOOLEAN_OPERATORS
Constructor Detail |
---|
public OwRecordFilterOperatorHelper()
Method Detail |
---|
public Collection<com.wewebu.ow.server.field.OwFieldDefinition> collectFilterProperties(com.wewebu.ow.server.ecm.OwObject obj_p, com.wewebu.ow.server.field.OwFieldDefinitionProvider fieldDefProvider_p, Collection columnInfoList_p) throws Exception
obj_p
- OwObject which act as parent and define the resources to get field definitionsfieldDefProvider_p
- OwFieldDefinitionProvider from where the field definition of the properties can be requestedcolumnInfoList_p
- Collection of OwFieldColumnInfo object which should be checked for filtering
Exception
- if cannot retrieve filter properties from object, or field definitions.getResourceIdsFromObject(OwObject)
,
getFieldDefinition(OwFieldDefinitionProvider, String, String)
public com.wewebu.ow.server.field.OwFieldDefinition getFieldDefinition(com.wewebu.ow.server.field.OwFieldDefinitionProvider fieldDefinitonProvider_p, String propName_p, String resourceId_p) throws Exception
fieldDefinitonProvider_p
- OwFieldDefinitionProviderpropName_p
- String symbolic or unique name of propertyresourceId_p
- String resource id where to search for field definition
Exception
- if cannot get OwFieldDefinition or operators of OwFieldDefinitionpublic List<String> getResourceIdsFromObject(com.wewebu.ow.server.ecm.OwObject obj_p) throws Exception
If the object is a virtual folder, the IDs will be retrieved from the searchtemplate which is used by the object.
obj_p
- OwObject from which to request the OwResource(s)
Exception
- if resource ID could not be retrieved, or searchtemplate could not be parsed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |