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

java.lang.Object
  extended by org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter
      extended by org.wso2.carbon.registry.core.jdbc.handlers.filters.URLMatcher

public class URLMatcher
extends Filter

This is a built-in Filter implementation to match against the URL (path) of the resources. This can match different URLs for different handler operations. URLs to match for necessary handler operations can be given as regular expressions. If a URL for particular operation is not specified, it will always evaluate to false.

Handler authors can use this Filter in their configurations if the filtering requirement is only to match against URLs of the resources.


Field Summary
 
Fields inherited from class org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter
ADD_ASSOCIATION, ADD_COMMENT, APPLY_TAG, COPY, CREATE_LINK, CREATE_VERSION, DELETE, DUMP, EDIT_COMMENT, EXECUTE_QUERY, GET, GET_ALL_ASSOCIATIONS, GET_ASSOCIATIONS, GET_AVERAGE_RATING, GET_COMMENTS, GET_RATING, GET_REGISTRY_CONTEXT, GET_RESOURCE_PATHS_WITH_TAG, GET_TAGS, GET_VERSIONS, IMPORT, IMPORT_CHILD, invert, INVOKE_ASPECT, MOVE, PUT, PUT_CHILD, RATE_RESOURCE, REMOVE_ASSOCIATION, REMOVE_COMMENT, REMOVE_LINK, REMOVE_TAG, RENAME, RESOURCE_EXISTS, RESTORE, RESTORE_VERSION, SEARCH_CONTENT
 
Constructor Summary
URLMatcher()
           
 
Method Summary
 boolean equals(java.lang.Object other)
          Compares this MediaTypeMatcher to the specified object.
 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.
 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.
 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 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.
 boolean handleImportChild(RequestContext requestContext)
          Determines whether the associating handler should handle the importChild action.
 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.
 boolean handlePut(RequestContext requestContext)
          Determines whether the associating handler should handle the put action.
 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.
 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 setAddAssociationPattern(java.lang.String addAssociationPattern)
          Method to set addAssociation Pattern
 void setAddCommentPattern(java.lang.String addCommentPattern)
          Method to set addComment Pattern
 void setApplyTagPattern(java.lang.String applyTagPattern)
          Method to set applyTag Pattern
 void setCopyPattern(java.lang.String copyPattern)
          Method to set copy Pattern
 void setCreateLinkPattern(java.lang.String createLinkPattern)
          Method to set createLink Pattern
 void setCreateVersionPattern(java.lang.String createVersionPattern)
          Method to set createVersion Pattern
 void setDeletePattern(java.lang.String deletePattern)
          Method to set delete Pattern
 void setDumpPattern(java.lang.String dumpPattern)
          Method to set dump Pattern
 void setEditCommentPattern(java.lang.String editCommentPattern)
          Method to set editComment Pattern
 void setExecuteQueryPattern(java.lang.String executeQuery)
          Method to set get Pattern
 void setGetAllAssociationsPattern(java.lang.String getAllAssociationsPattern)
          Method to set getAllAssociations Pattern
 void setGetAssociationsPattern(java.lang.String getAssociationsPattern)
          Method to set getAssociations Pattern
 void setGetAverageRatingPattern(java.lang.String getAverageRatingPattern)
          Method to set getAverageRating Pattern
 void setGetCommentsPattern(java.lang.String getCommentsPattern)
          Method to set getComments Pattern
 void setGetPattern(java.lang.String getPattern)
          Method to set get Pattern
 void setGetRatingPattern(java.lang.String getRatingPattern)
          Method to set getRating Pattern
 void setGetRegistryContextPattern(java.lang.String getRegistryContextPattern)
          Method to set getRegistryContext Pattern
 void setGetTagsPattern(java.lang.String getTagsPattern)
          Method to set getTags Pattern
 void setGetVersionsPattern(java.lang.String getVersionsPattern)
          Method to set getVersions Pattern
 void setImportChildPattern(java.lang.String importChildPattern)
          Method to set importChild Pattern
 void setImportPattern(java.lang.String importPattern)
          Method to set import Pattern
 void setInvokeAspectPattern(java.lang.String invokeAspectPattern)
          Method to set invokeAspect Pattern
 void setMovePattern(java.lang.String movePattern)
          Method to set move Pattern
 void setPattern(java.lang.String pattern)
          Method to set the given pattern for all registry operations.
 void setPutChildPattern(java.lang.String putChildPattern)
          Method to set putChild Pattern
 void setPutPattern(java.lang.String putPattern)
          Method to set put Pattern
 void setRateResourcePattern(java.lang.String rateResourcePattern)
          Method to set rateResource Pattern
 void setRemoveAssociationPattern(java.lang.String removeAssociationPattern)
          Method to set removeAssociation Pattern
 void setRemoveCommentPattern(java.lang.String removeCommentPattern)
          Method to set removeComment Pattern
 void setRemoveLinkPattern(java.lang.String removeLinkPattern)
          Method to set removeLink Pattern
 void setRemoveTagPattern(java.lang.String removeTagPattern)
          Method to set removeTag Pattern
 void setRenamePattern(java.lang.String renamePattern)
          Method to set rename Pattern
 void setResourceExistsPattern(java.lang.String resourceExistsPattern)
          Method to set resourceExists Pattern
 void setRestorePattern(java.lang.String restorePattern)
          Method to set restore Pattern
 void setRestoreVersionPattern(java.lang.String restoreVersionPattern)
          Method to set restoreVersion Pattern
 
Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter
getInvert, handleGetResourcePathsWithTag, handleSearchContent, setInvert
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLMatcher

public URLMatcher()
Method Detail

hashCode

public int hashCode()
Description copied from class: Filter
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 Filter
Returns:
hash code for this filter type.

equals

public boolean equals(java.lang.Object other)
Compares this MediaTypeMatcher to the specified object. The result is true if and only if the argument is not null and is a MediaTypeMatcher object that contains the same values for the fields as this object.

Overrides:
equals in class Filter
Parameters:
other - The object to compare the MediaTypeMatcher against
Returns:
true if the given object represents a MediaTypeMatcher equivalent to this instance, false otherwise.

handleGet

public boolean handleGet(RequestContext requestContext)
                  throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the get action.

Specified by:
handleGet in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the executeQuery action.

Overrides:
handleExecuteQuery in class Filter
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 boolean handlePut(RequestContext requestContext)
                  throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the put action.

Specified by:
handlePut in class Filter
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 boolean handleImportResource(RequestContext requestContext)
                             throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the import resource action.

Specified by:
handleImportResource in class Filter
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 boolean handleDelete(RequestContext requestContext)
                     throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the delete action.

Specified by:
handleDelete in class Filter
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 boolean handlePutChild(RequestContext requestContext)
                       throws RegistryException
Description copied from class: Filter
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.

Specified by:
handlePutChild in class Filter
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 boolean handleImportChild(RequestContext requestContext)
                          throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the importChild action.

Specified by:
handleImportChild in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the invokeAspect action.

Overrides:
handleInvokeAspect in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the copy action.

Overrides:
handleCopy in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the move action.

Overrides:
handleMove in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the rename action.

Overrides:
handleRename in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the createLink action.

Overrides:
handleCreateLink in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the removeLink action.

Overrides:
handleRemoveLink in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the resourceExists action.

Overrides:
handleResourceExists in class Filter
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)
Description copied from class: Filter
Determines whether the associating handler should handle the getRegistryContext action.

Overrides:
handleGetRegistryContext in class Filter
Parameters:
requestContext - Information about the current requestContext.
Returns:
true if the associating handler should handle the request. false otherwise.

handleAddAssociation

public boolean handleAddAssociation(RequestContext requestContext)
                             throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the addAssociation action.

Overrides:
handleAddAssociation in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the removeAssociation action.

Overrides:
handleRemoveAssociation in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the getAllAssociations action.

Overrides:
handleGetAllAssociations in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the getAssociations action.

Overrides:
handleGetAssociations in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the applyTag action.

Overrides:
handleApplyTag in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the getTags action.

Overrides:
handleGetTags in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the removeTag action.

Overrides:
handleRemoveTag in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the addComment action.

Overrides:
handleAddComment in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the editComment action.

Overrides:
handleEditComment in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the removeComment action.

Overrides:
handleRemoveComment in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the getComments action.

Overrides:
handleGetComments in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the rateResource action.

Overrides:
handleRateResource in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the getAverageRating action.

Overrides:
handleGetAverageRating in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the getRating action.

Overrides:
handleGetRating in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the createVersion action.

Overrides:
handleCreateVersion in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the getVersions action.

Overrides:
handleGetVersions in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the restoreVersion action.

Overrides:
handleRestoreVersion in class Filter
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.

handleDump

public boolean handleDump(RequestContext requestContext)
                   throws RegistryException
Description copied from class: Filter
Determines whether the associating handler should handle the dump action.

Overrides:
handleDump in class Filter
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
Description copied from class: Filter
Determines whether the associating handler should handle the restore action.

Overrides:
handleRestore in class Filter
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.

setGetPattern

public void setGetPattern(java.lang.String getPattern)
Method to set get Pattern

Parameters:
getPattern - the get Pattern

setExecuteQueryPattern

public void setExecuteQueryPattern(java.lang.String executeQuery)
Method to set get Pattern

Parameters:
executeQuery - the get Pattern

setPutPattern

public void setPutPattern(java.lang.String putPattern)
Method to set put Pattern

Parameters:
putPattern - the put Pattern

setImportPattern

public void setImportPattern(java.lang.String importPattern)
Method to set import Pattern

Parameters:
importPattern - the import Pattern

setDeletePattern

public void setDeletePattern(java.lang.String deletePattern)
Method to set delete Pattern

Parameters:
deletePattern - the delete Pattern

setPutChildPattern

public void setPutChildPattern(java.lang.String putChildPattern)
Method to set putChild Pattern

Parameters:
putChildPattern - the putChild Pattern

setImportChildPattern

public void setImportChildPattern(java.lang.String importChildPattern)
Method to set importChild Pattern

Parameters:
importChildPattern - the importChild Pattern

setInvokeAspectPattern

public void setInvokeAspectPattern(java.lang.String invokeAspectPattern)
Method to set invokeAspect Pattern

Parameters:
invokeAspectPattern - the invokeAspect Pattern

setMovePattern

public void setMovePattern(java.lang.String movePattern)
Method to set move Pattern

Parameters:
movePattern - the move Pattern

setCopyPattern

public void setCopyPattern(java.lang.String copyPattern)
Method to set copy Pattern

Parameters:
copyPattern - the copy Pattern

setRenamePattern

public void setRenamePattern(java.lang.String renamePattern)
Method to set rename Pattern

Parameters:
renamePattern - the rename Pattern

setCreateLinkPattern

public void setCreateLinkPattern(java.lang.String createLinkPattern)
Method to set createLink Pattern

Parameters:
createLinkPattern - the createLink Pattern

setRemoveLinkPattern

public void setRemoveLinkPattern(java.lang.String removeLinkPattern)
Method to set removeLink Pattern

Parameters:
removeLinkPattern - the removeLink Pattern

setResourceExistsPattern

public void setResourceExistsPattern(java.lang.String resourceExistsPattern)
Method to set resourceExists Pattern

Parameters:
resourceExistsPattern - the resourceExists Pattern

setGetRegistryContextPattern

public void setGetRegistryContextPattern(java.lang.String getRegistryContextPattern)
Method to set getRegistryContext Pattern

Parameters:
getRegistryContextPattern - the getRegistryContext Pattern

setAddAssociationPattern

public void setAddAssociationPattern(java.lang.String addAssociationPattern)
Method to set addAssociation Pattern

Parameters:
addAssociationPattern - the addAssociation Pattern

setRemoveAssociationPattern

public void setRemoveAssociationPattern(java.lang.String removeAssociationPattern)
Method to set removeAssociation Pattern

Parameters:
removeAssociationPattern - the removeAssociation Pattern

setGetAllAssociationsPattern

public void setGetAllAssociationsPattern(java.lang.String getAllAssociationsPattern)
Method to set getAllAssociations Pattern

Parameters:
getAllAssociationsPattern - the getAllAssociations Pattern

setGetAssociationsPattern

public void setGetAssociationsPattern(java.lang.String getAssociationsPattern)
Method to set getAssociations Pattern

Parameters:
getAssociationsPattern - the getAssociations Pattern

setApplyTagPattern

public void setApplyTagPattern(java.lang.String applyTagPattern)
Method to set applyTag Pattern

Parameters:
applyTagPattern - the applyTag Pattern

setGetTagsPattern

public void setGetTagsPattern(java.lang.String getTagsPattern)
Method to set getTags Pattern

Parameters:
getTagsPattern - the getTags Pattern

setRemoveTagPattern

public void setRemoveTagPattern(java.lang.String removeTagPattern)
Method to set removeTag Pattern

Parameters:
removeTagPattern - the removeTag Pattern

setAddCommentPattern

public void setAddCommentPattern(java.lang.String addCommentPattern)
Method to set addComment Pattern

Parameters:
addCommentPattern - the addComment Pattern

setEditCommentPattern

public void setEditCommentPattern(java.lang.String editCommentPattern)
Method to set editComment Pattern

Parameters:
editCommentPattern - the editComment Pattern

setRemoveCommentPattern

public void setRemoveCommentPattern(java.lang.String removeCommentPattern)
Method to set removeComment Pattern

Parameters:
removeCommentPattern - the removeComment Pattern

setGetCommentsPattern

public void setGetCommentsPattern(java.lang.String getCommentsPattern)
Method to set getComments Pattern

Parameters:
getCommentsPattern - the getComments Pattern

setRateResourcePattern

public void setRateResourcePattern(java.lang.String rateResourcePattern)
Method to set rateResource Pattern

Parameters:
rateResourcePattern - the rateResource Pattern

setGetAverageRatingPattern

public void setGetAverageRatingPattern(java.lang.String getAverageRatingPattern)
Method to set getAverageRating Pattern

Parameters:
getAverageRatingPattern - the getAverageRating Pattern

setGetRatingPattern

public void setGetRatingPattern(java.lang.String getRatingPattern)
Method to set getRating Pattern

Parameters:
getRatingPattern - the getRating Pattern

setCreateVersionPattern

public void setCreateVersionPattern(java.lang.String createVersionPattern)
Method to set createVersion Pattern

Parameters:
createVersionPattern - the createVersion Pattern

setGetVersionsPattern

public void setGetVersionsPattern(java.lang.String getVersionsPattern)
Method to set getVersions Pattern

Parameters:
getVersionsPattern - the getVersions Pattern

setRestoreVersionPattern

public void setRestoreVersionPattern(java.lang.String restoreVersionPattern)
Method to set restoreVersion Pattern

Parameters:
restoreVersionPattern - the restoreVersion Pattern

setDumpPattern

public void setDumpPattern(java.lang.String dumpPattern)
Method to set dump Pattern

Parameters:
dumpPattern - the dump Pattern

setRestorePattern

public void setRestorePattern(java.lang.String restorePattern)
Method to set restore Pattern

Parameters:
restorePattern - the restore Pattern

setPattern

public void setPattern(java.lang.String pattern)
Method to set the given pattern for all registry operations.

Parameters:
pattern - the pattern to set.


Copyright © 2011 WSO2 Inc. All Rights Reserved.