org.wso2.carbon.registry.core.jdbc.handlers.filters
Class Filter

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter
Direct Known Subclasses:
MediaTypeMatcher, SimulationFilter, URLMatcher

public abstract class Filter
extends Object

Base class of all filter implementations. All handlers have to be registered in the JDBC registry with a filter implementation. Filter implementations determine the conditions to invoke the associating handler.


Field Summary
static String ADD_ASSOCIATION
          Represents an addAssociation operation on the registry.
static String ADD_COMMENT
          Represents an addComment operation on the registry.
static String APPLY_TAG
          Represents an applyTag operation on the registry.
static String COPY
          Represents a copy operation on the registry.
static String CREATE_LINK
          Represents a createLink operation on the registry.
static String CREATE_VERSION
          Represents a createVersions operation on the registry.
static String DELETE
          Represents a delete operation on the registry.
static String DUMP
          Represents a dump operation on the registry.
static String EDIT_COMMENT
          Represents an editComment operation on the registry.
static String EXECUTE_QUERY
          Represents an executeQuery operation on the registry.
static String GET
          Represents a get operation on the registry.
static String GET_ALL_ASSOCIATIONS
          Represents a getAllAssociations operation on the registry.
static String GET_ASSOCIATIONS
          Represents a getAssociations operation on the registry.
static String GET_AVERAGE_RATING
          Represents a getAverageRating operation on the registry.
static String GET_COMMENTS
          Represents a getComments operation on the registry.
static String GET_RATING
          Represents a getRating operation on the registry.
static String GET_REGISTRY_CONTEXT
          Represents a getRegistryContext operation on the registry.
static String GET_RESOURCE_PATHS_WITH_TAG
          Represents a getResourcePathsWithTag operation on the registry.
static String GET_TAGS
          Represents a getTags operation on the registry.
static String GET_VERSIONS
          Represents a getVersions operation on the registry.
static String IMPORT
          Represents an import operation on the registry.
static String IMPORT_CHILD
          Represents an importChild operation on the registry.
protected  boolean invert
          Whether to invert the result of the evaluated filter condition or not.
static String INVOKE_ASPECT
          Represents an invokeAspect operation on the registry.
static String MOVE
          Represents a move operation on the registry.
static String PUT
          Represents a put operation on the registry.
static String PUT_CHILD
          Represents a putChild operation on the registry.
static String RATE_RESOURCE
          Represents a rateResource operation on the registry.
static String REMOVE_ASSOCIATION
          Represents a removeAssociation operation on the registry.
static String REMOVE_COMMENT
          Represents a removeComment operation on the registry.
static String REMOVE_LINK
          Represents a removeLink operation on the registry.
static String REMOVE_TAG
          Represents a removeTag operation on the registry.
static String RENAME
          Represents a rename operation on the registry.
static String RESOURCE_EXISTS
          Represents a resourceExists operation on the registry.
static String RESTORE
          Represents a restore operation on the registry.
static String RESTORE_VERSION
          Represents a restoreVersion operation on the registry.
static String SEARCH_CONTENT
          Represents a searchContent operation on the registry.
 
Constructor Summary
Filter()
           
 
Method Summary
 boolean equals(Object obj)
          Revised implementation of the equals comparison to suite the modified hashCode method.
 String getInvert()
          Method to get inversion status.
 boolean handleAddAssociation(RequestContext requestContext)
          Determines whether the associating handler should handle the addAssociation action.
 boolean handleAddComment(RequestContext requestContext)
          Determines whether the associating handler should handle the addComment action.
 boolean handleApplyTag(RequestContext requestContext)
          Determines whether the associating handler should handle the applyTag action.
 boolean handleCopy(RequestContext requestContext)
          Determines whether the associating handler should handle the copy action.
 boolean handleCreateLink(RequestContext requestContext)
          Determines whether the associating handler should handle the createLink action.
 boolean handleCreateVersion(RequestContext requestContext)
          Determines whether the associating handler should handle the createVersion action.
abstract  boolean handleDelete(RequestContext requestContext)
          Determines whether the associating handler should handle the delete action.
 boolean handleDump(RequestContext requestContext)
          Determines whether the associating handler should handle the dump action.
 boolean handleEditComment(RequestContext requestContext)
          Determines whether the associating handler should handle the editComment action.
 boolean handleExecuteQuery(RequestContext requestContext)
          Determines whether the associating handler should handle the executeQuery action.
abstract  boolean handleGet(RequestContext requestContext)
          Determines whether the associating handler should handle the get action.
 boolean handleGetAllAssociations(RequestContext requestContext)
          Determines whether the associating handler should handle the getAllAssociations action.
 boolean handleGetAssociations(RequestContext requestContext)
          Determines whether the associating handler should handle the getAssociations action.
 boolean handleGetAverageRating(RequestContext requestContext)
          Determines whether the associating handler should handle the getAverageRating action.
 boolean handleGetComments(RequestContext requestContext)
          Determines whether the associating handler should handle the getComments action.
 boolean handleGetRating(RequestContext requestContext)
          Determines whether the associating handler should handle the getRating action.
 boolean handleGetRegistryContext(RequestContext requestContext)
          Determines whether the associating handler should handle the getRegistryContext action.
 boolean handleGetResourcePathsWithTag(RequestContext requestContext)
          Determines whether the associating handler should handle the getResourcePathsWithTag action.
 boolean handleGetTags(RequestContext requestContext)
          Determines whether the associating handler should handle the getTags action.
 boolean handleGetVersions(RequestContext requestContext)
          Determines whether the associating handler should handle the getVersions action.
abstract  boolean handleImportChild(RequestContext requestContext)
          Determines whether the associating handler should handle the importChild action.
abstract  boolean handleImportResource(RequestContext requestContext)
          Determines whether the associating handler should handle the import resource action.
 boolean handleInvokeAspect(RequestContext requestContext)
          Determines whether the associating handler should handle the invokeAspect action.
 boolean handleMove(RequestContext requestContext)
          Determines whether the associating handler should handle the move action.
abstract  boolean handlePut(RequestContext requestContext)
          Determines whether the associating handler should handle the put action.
abstract  boolean handlePutChild(RequestContext requestContext)
          Determines whether the associating handler should handle the putChild action.
 boolean handleRateResource(RequestContext requestContext)
          Determines whether the associating handler should handle the rateResource action.
 boolean handleRemoveAssociation(RequestContext requestContext)
          Determines whether the associating handler should handle the removeAssociation action.
 boolean handleRemoveComment(RequestContext requestContext)
          Determines whether the associating handler should handle the removeComment action.
 boolean handleRemoveLink(RequestContext requestContext)
          Determines whether the associating handler should handle the removeLink action.
 boolean handleRemoveTag(RequestContext requestContext)
          Determines whether the associating handler should handle the removeTag action.
 boolean handleRename(RequestContext requestContext)
          Determines whether the associating handler should handle the rename action.
 boolean handleResourceExists(RequestContext requestContext)
          Determines whether the associating handler should handle the resourceExists action.
 boolean handleRestore(RequestContext requestContext)
          Determines whether the associating handler should handle the restore action.
 boolean handleRestoreVersion(RequestContext requestContext)
          Determines whether the associating handler should handle the restoreVersion action.
 boolean handleSearchContent(RequestContext requestContext)
          Determines whether the associating handler should handle the searchContent action.
 int hashCode()
          This overrides the default hash code implementation for filter objects, to make sure that each filter of the same type will have identical hash codes unless otherwise it has its own extension.
 void setInvert(String invertStr)
          Method to set inversion status.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GET

public static final String GET
Represents a get operation on the registry.

See Also:
Constant Field Values

PUT

public static final String PUT
Represents a put operation on the registry.

See Also:
Constant Field Values

DELETE

public static final String DELETE
Represents a delete operation on the registry.

See Also:
Constant Field Values

IMPORT

public static final String IMPORT
Represents an import operation on the registry.

See Also:
Constant Field Values

PUT_CHILD

public static final String PUT_CHILD
Represents a putChild operation on the registry.

See Also:
Constant Field Values

IMPORT_CHILD

public static final String IMPORT_CHILD
Represents an importChild operation on the registry.

See Also:
Constant Field Values

INVOKE_ASPECT

public static final String INVOKE_ASPECT
Represents an invokeAspect operation on the registry.

See Also:
Constant Field Values

MOVE

public static final String MOVE
Represents a move operation on the registry.

See Also:
Constant Field Values

COPY

public static final String COPY
Represents a copy operation on the registry.

See Also:
Constant Field Values

RENAME

public static final String RENAME
Represents a rename operation on the registry.

See Also:
Constant Field Values

CREATE_LINK

public static final String CREATE_LINK
Represents a createLink operation on the registry.

See Also:
Constant Field Values

REMOVE_LINK

public static final String REMOVE_LINK
Represents a removeLink operation on the registry.

See Also:
Constant Field Values

ADD_ASSOCIATION

public static final String ADD_ASSOCIATION
Represents an addAssociation operation on the registry.

See Also:
Constant Field Values

REMOVE_ASSOCIATION

public static final String REMOVE_ASSOCIATION
Represents a removeAssociation operation on the registry.

See Also:
Constant Field Values

GET_ASSOCIATIONS

public static final String GET_ASSOCIATIONS
Represents a getAssociations operation on the registry.

See Also:
Constant Field Values

GET_ALL_ASSOCIATIONS

public static final String GET_ALL_ASSOCIATIONS
Represents a getAllAssociations operation on the registry.

See Also:
Constant Field Values

APPLY_TAG

public static final String APPLY_TAG
Represents an applyTag operation on the registry.

See Also:
Constant Field Values

GET_RESOURCE_PATHS_WITH_TAG

public static final String GET_RESOURCE_PATHS_WITH_TAG
Represents a getResourcePathsWithTag operation on the registry.

See Also:
Constant Field Values

GET_TAGS

public static final String GET_TAGS
Represents a getTags operation on the registry.

See Also:
Constant Field Values

REMOVE_TAG

public static final String REMOVE_TAG
Represents a removeTag operation on the registry.

See Also:
Constant Field Values

ADD_COMMENT

public static final String ADD_COMMENT
Represents an addComment operation on the registry.

See Also:
Constant Field Values

EDIT_COMMENT

public static final String EDIT_COMMENT
Represents an editComment operation on the registry.

See Also:
Constant Field Values

REMOVE_COMMENT

public static final String REMOVE_COMMENT
Represents a removeComment operation on the registry.

See Also:
Constant Field Values

GET_COMMENTS

public static final String GET_COMMENTS
Represents a getComments operation on the registry.

See Also:
Constant Field Values

RATE_RESOURCE

public static final String RATE_RESOURCE
Represents a rateResource operation on the registry.

See Also:
Constant Field Values

GET_AVERAGE_RATING

public static final String GET_AVERAGE_RATING
Represents a getAverageRating operation on the registry.

See Also:
Constant Field Values

GET_RATING

public static final String GET_RATING
Represents a getRating operation on the registry.

See Also:
Constant Field Values

CREATE_VERSION

public static final String CREATE_VERSION
Represents a createVersions operation on the registry.

See Also:
Constant Field Values

GET_VERSIONS

public static final String GET_VERSIONS
Represents a getVersions operation on the registry.

See Also:
Constant Field Values

RESTORE_VERSION

public static final String RESTORE_VERSION
Represents a restoreVersion operation on the registry.

See Also:
Constant Field Values

EXECUTE_QUERY

public static final String EXECUTE_QUERY
Represents an executeQuery operation on the registry.

See Also:
Constant Field Values

SEARCH_CONTENT

public static final String SEARCH_CONTENT
Represents a searchContent operation on the registry.

See Also:
Constant Field Values

RESOURCE_EXISTS

public static final String RESOURCE_EXISTS
Represents a resourceExists operation on the registry.

See Also:
Constant Field Values

GET_REGISTRY_CONTEXT

public static final String GET_REGISTRY_CONTEXT
Represents a getRegistryContext operation on the registry.

See Also:
Constant Field Values

DUMP

public static final String DUMP
Represents a dump operation on the registry.

See Also:
Constant Field Values

RESTORE

public static final String RESTORE
Represents a restore operation on the registry.

See Also:
Constant Field Values

invert

protected boolean invert
Whether to invert the result of the evaluated filter condition or not.

Constructor Detail

Filter

public Filter()
Method Detail

handleGet

public abstract boolean handleGet(RequestContext requestContext)
                           throws RegistryException
Determines whether the associating handler should handle the get action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handlePut

public abstract boolean handlePut(RequestContext requestContext)
                           throws RegistryException
Determines whether the associating handler should handle the put action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleImportResource

public abstract boolean handleImportResource(RequestContext requestContext)
                                      throws RegistryException
Determines whether the associating handler should handle the import resource action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleDelete

public abstract boolean handleDelete(RequestContext requestContext)
                              throws RegistryException
Determines whether the associating handler should handle the delete action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handlePutChild

public abstract boolean handlePutChild(RequestContext requestContext)
                                throws RegistryException
Determines whether the associating handler should handle the putChild action. putChild action occurs when it is attempted to put a resource as a child of the resource referred by requestContext.parentPath or to the resource requestContext.parentCollection.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleImportChild

public abstract boolean handleImportChild(RequestContext requestContext)
                                   throws RegistryException
Determines whether the associating handler should handle the importChild action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleInvokeAspect

public boolean handleInvokeAspect(RequestContext requestContext)
                           throws RegistryException
Determines whether the associating handler should handle the invokeAspect action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleMove

public boolean handleMove(RequestContext requestContext)
                   throws RegistryException
Determines whether the associating handler should handle the move action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleCopy

public boolean handleCopy(RequestContext requestContext)
                   throws RegistryException
Determines whether the associating handler should handle the copy action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleRename

public boolean handleRename(RequestContext requestContext)
                     throws RegistryException
Determines whether the associating handler should handle the rename action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleCreateLink

public boolean handleCreateLink(RequestContext requestContext)
                         throws RegistryException
Determines whether the associating handler should handle the createLink action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleRemoveLink

public boolean handleRemoveLink(RequestContext requestContext)
                         throws RegistryException
Determines whether the associating handler should handle the removeLink action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleAddAssociation

public boolean handleAddAssociation(RequestContext requestContext)
                             throws RegistryException
Determines whether the associating handler should handle the addAssociation action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleRemoveAssociation

public boolean handleRemoveAssociation(RequestContext requestContext)
                                throws RegistryException
Determines whether the associating handler should handle the removeAssociation action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetAllAssociations

public boolean handleGetAllAssociations(RequestContext requestContext)
                                 throws RegistryException
Determines whether the associating handler should handle the getAllAssociations action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetAssociations

public boolean handleGetAssociations(RequestContext requestContext)
                              throws RegistryException
Determines whether the associating handler should handle the getAssociations action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleApplyTag

public boolean handleApplyTag(RequestContext requestContext)
                       throws RegistryException
Determines whether the associating handler should handle the applyTag action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleRemoveTag

public boolean handleRemoveTag(RequestContext requestContext)
                        throws RegistryException
Determines whether the associating handler should handle the removeTag action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleRateResource

public boolean handleRateResource(RequestContext requestContext)
                           throws RegistryException
Determines whether the associating handler should handle the rateResource action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleRestoreVersion

public boolean handleRestoreVersion(RequestContext requestContext)
                             throws RegistryException
Determines whether the associating handler should handle the restoreVersion action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleCreateVersion

public boolean handleCreateVersion(RequestContext requestContext)
                            throws RegistryException
Determines whether the associating handler should handle the createVersion action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleEditComment

public boolean handleEditComment(RequestContext requestContext)
                          throws RegistryException
Determines whether the associating handler should handle the editComment action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleAddComment

public boolean handleAddComment(RequestContext requestContext)
                         throws RegistryException
Determines whether the associating handler should handle the addComment action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleRemoveComment

public boolean handleRemoveComment(RequestContext requestContext)
                            throws RegistryException
Determines whether the associating handler should handle the removeComment action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetComments

public boolean handleGetComments(RequestContext requestContext)
                          throws RegistryException
Determines whether the associating handler should handle the getComments action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetResourcePathsWithTag

public boolean handleGetResourcePathsWithTag(RequestContext requestContext)
                                      throws RegistryException
Determines whether the associating handler should handle the getResourcePathsWithTag action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetTags

public boolean handleGetTags(RequestContext requestContext)
                      throws RegistryException
Determines whether the associating handler should handle the getTags action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetAverageRating

public boolean handleGetAverageRating(RequestContext requestContext)
                               throws RegistryException
Determines whether the associating handler should handle the getAverageRating action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetRating

public boolean handleGetRating(RequestContext requestContext)
                        throws RegistryException
Determines whether the associating handler should handle the getRating action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetVersions

public boolean handleGetVersions(RequestContext requestContext)
                          throws RegistryException
Determines whether the associating handler should handle the getVersions action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleExecuteQuery

public boolean handleExecuteQuery(RequestContext requestContext)
                           throws RegistryException
Determines whether the associating handler should handle the executeQuery action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleSearchContent

public boolean handleSearchContent(RequestContext requestContext)
                            throws RegistryException
Determines whether the associating handler should handle the searchContent action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleResourceExists

public boolean handleResourceExists(RequestContext requestContext)
                             throws RegistryException
Determines whether the associating handler should handle the resourceExists action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleGetRegistryContext

public boolean handleGetRegistryContext(RequestContext requestContext)
Determines whether the associating handler should handle the getRegistryContext action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.

handleDump

public boolean handleDump(RequestContext requestContext)
                   throws RegistryException
Determines whether the associating handler should handle the dump action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

handleRestore

public boolean handleRestore(RequestContext requestContext)
                      throws RegistryException
Determines whether the associating handler should handle the restore action.

Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.
Throws:
RegistryException - Filter implementations should deal with the specific exceptions and throw a RegistryException if the exception has to be propagated to the surface.

getInvert

public String getInvert()
Method to get inversion status.

Returns:
inversion status.

setInvert

public void setInvert(String invertStr)
Method to set inversion status.

Parameters:
invertStr - inversion status string.

hashCode

public int hashCode()
This overrides the default hash code implementation for filter objects, to make sure that each filter of the same type will have identical hash codes unless otherwise it has its own extension.

Overrides:
hashCode in class Object
Returns:
hash code for this filter type.

equals

public boolean equals(Object obj)
Revised implementation of the equals comparison to suite the modified hashCode method.

Overrides:
equals in class Object
Parameters:
obj - object to compare for equality.
Returns:
whether equal or not.


Copyright © 2013 WSO2 Inc. All Rights Reserved.