mapfish.Protocol.MergeFilterDecorator

Instances of this class decorate a protocol by merging filters provided by searchers before invoking the decorated protocol’s read method.

Inherits from

Summary
mapfish.Protocol.MergeFilterDecoratorInstances of this class decorate a protocol by merging filters provided by searchers before invoking the decorated protocol’s read method.
Properties
protocol{OpenLayers.Protocol} The decorated protocol.
Constructor
mapfish.Protocol.MergeFilterDecorator
Functions
registerRegister a searcher.
unregisterUnregister a searcher.
createCreate features, this method does nothing more than calling the decorator protocol’s create method.
readMerge filters provided by searchers, and call the decorated protocol’s read method, passing it the merged filter.
updateUpdate features, this method does nothing more than calling the decorator protocol’s update method.
deleteDelete features, this method does nothing more than calling the decorator protocol’s delete method.

Properties

protocol

{OpenLayers.Protocol} The decorated protocol.

Constructor

mapfish.Protocol.MergeFilterDecorator

Parameters

options{Object}

Functions

register

register: function(searcher)

Register a searcher.

unregister

unregister: function(searcher)

Unregister a searcher.

create

"create": function(features,
options)

Create features, this method does nothing more than calling the decorator protocol’s create method.

Parameters

features{Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector}
options{Object} Optional object for configuring the request.  This object is modified and should not be reused.

Returns

{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object, this object is also passed to the callback function when the request completes.

read

"read": function(options)

Merge filters provided by searchers, and call the decorated protocol’s read method, passing it the merged filter.

Parameters

options{Object} Optional object for configuring the request.  This object is modified and should not be reused.

Returns

{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object, this object is also passed to the callback function when the request completes.

update

"update": function(features,
options)

Update features, this method does nothing more than calling the decorator protocol’s update method.

Parameters

features{Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector}
options{Object} Optional object for configuring the request.  This object is modified and should not be reused.

Returns

{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object, this object is also passed to the callback function when the request completes.

delete

"delete": function(features,
options)

Delete features, this method does nothing more than calling the decorator protocol’s delete method.

Parameters

features{Array({OpenLayers.Feature.Vector})} or {OpenLayers.Feature.Vector}
options{Object} Optional object for configuring the request.  This object is modified and should not be reused.

Returns

{OpenLayers.Protocol.Response} An OpenLayers.Protocol.Response object, this object is also passed to the callback function when the request completes.

Abstract vector layer protocol class.
register: function(searcher)
Register a searcher.
unregister: function(searcher)
Unregister a searcher.
"create": function(features,
options)
Create features, this method does nothing more than calling the decorator protocol’s create method.
"read": function(options)
Merge filters provided by searchers, and call the decorated protocol’s read method, passing it the merged filter.
"update": function(features,
options)
Update features, this method does nothing more than calling the decorator protocol’s update method.
"delete": function(features,
options)
Delete features, this method does nothing more than calling the decorator protocol’s delete method.
Vector features use the OpenLayers.Geometry classes as geometry description.
Protocols return Response objects to their users.
Close