|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.carbon.registry.core.jdbc.handlers.filters.Filter
public abstract class Filter
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 |
---|
public static final String GET
public static final String PUT
public static final String DELETE
public static final String IMPORT
public static final String PUT_CHILD
public static final String IMPORT_CHILD
public static final String INVOKE_ASPECT
public static final String MOVE
public static final String COPY
public static final String RENAME
public static final String CREATE_LINK
public static final String REMOVE_LINK
public static final String ADD_ASSOCIATION
public static final String REMOVE_ASSOCIATION
public static final String GET_ASSOCIATIONS
public static final String GET_ALL_ASSOCIATIONS
public static final String APPLY_TAG
public static final String GET_RESOURCE_PATHS_WITH_TAG
public static final String GET_TAGS
public static final String REMOVE_TAG
public static final String ADD_COMMENT
public static final String EDIT_COMMENT
public static final String REMOVE_COMMENT
public static final String GET_COMMENTS
public static final String RATE_RESOURCE
public static final String GET_AVERAGE_RATING
public static final String GET_RATING
public static final String CREATE_VERSION
public static final String GET_VERSIONS
public static final String RESTORE_VERSION
public static final String EXECUTE_QUERY
public static final String SEARCH_CONTENT
public static final String RESOURCE_EXISTS
public static final String GET_REGISTRY_CONTEXT
public static final String DUMP
public static final String RESTORE
protected boolean invert
Constructor Detail |
---|
public Filter()
Method Detail |
---|
public abstract boolean handleGet(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public abstract boolean handlePut(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public abstract boolean handleImportResource(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public abstract boolean handleDelete(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public abstract boolean handlePutChild(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public abstract boolean handleImportChild(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleInvokeAspect(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleMove(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleCopy(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRename(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleCreateLink(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRemoveLink(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleAddAssociation(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRemoveAssociation(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetAllAssociations(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetAssociations(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleApplyTag(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRemoveTag(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRateResource(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRestoreVersion(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleCreateVersion(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleEditComment(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleAddComment(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRemoveComment(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetComments(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetResourcePathsWithTag(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetTags(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetAverageRating(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetRating(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetVersions(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleExecuteQuery(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleSearchContent(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleResourceExists(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleGetRegistryContext(RequestContext requestContext)
requestContext
- Information about the current requestContext.
public boolean handleDump(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public boolean handleRestore(RequestContext requestContext) throws RegistryException
requestContext
- Information about the current requestContext.
RegistryException
- Filter implementations should deal with the specific exceptions and
throw a RegistryException if the exception has to be propagated to
the surface.public String getInvert()
public void setInvert(String invertStr)
invertStr
- inversion status string.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- object to compare for equality.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |