|
||||||||||
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
org.wso2.carbon.registry.core.jdbc.handlers.filters.SimulationFilter
public class SimulationFilter
This is a built-in Filter that is used for simulation operations. The handler simulator uses an instance of this filter. When in simulation mode, this filter will run the associated simulation handler, and when not, the handler methods won't get called. The simulation mode can be set by accessing the instance of this Filter.
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_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 | |
---|---|
SimulationFilter()
|
Method Summary | |
---|---|
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 |
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. |
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. |
boolean |
handleSearchContent(RequestContext requestContext)
Determines whether the associating handler should handle the searchContent action. |
static Boolean |
isSimulation()
Method to obtain whether in simulation mode or not. |
static void |
setSimulation(Boolean input)
Method to set whether in simulation mode or not. |
Methods inherited from class org.wso2.carbon.registry.core.jdbc.handlers.filters.Filter |
---|
equals, getInvert, hashCode, setInvert |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimulationFilter()
Method Detail |
---|
public static Boolean isSimulation()
public static void setSimulation(Boolean input)
input
- whether in simulation mode or not.public boolean handleGet(RequestContext requestContext) throws RegistryException
Filter
handleGet
in class Filter
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 handlePut(RequestContext requestContext) throws RegistryException
Filter
handlePut
in class Filter
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 handleImportResource(RequestContext requestContext) throws RegistryException
Filter
handleImportResource
in class Filter
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 handleDelete(RequestContext requestContext) throws RegistryException
Filter
handleDelete
in class Filter
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 handlePutChild(RequestContext requestContext) throws RegistryException
Filter
handlePutChild
in class Filter
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 handleImportChild(RequestContext requestContext) throws RegistryException
Filter
handleImportChild
in class Filter
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
Filter
handleInvokeAspect
in class Filter
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
Filter
handleMove
in class Filter
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
Filter
handleCopy
in class Filter
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
Filter
handleRename
in class Filter
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
Filter
handleCreateLink
in class Filter
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
Filter
handleRemoveLink
in class Filter
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
Filter
handleAddAssociation
in class Filter
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
Filter
handleRemoveAssociation
in class Filter
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
Filter
handleGetAllAssociations
in class Filter
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
Filter
handleGetAssociations
in class Filter
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
Filter
handleApplyTag
in class Filter
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
Filter
handleRemoveTag
in class Filter
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
Filter
handleRateResource
in class Filter
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
Filter
handleRestoreVersion
in class Filter
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
Filter
handleCreateVersion
in class Filter
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
Filter
handleEditComment
in class Filter
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
Filter
handleRemoveComment
in class Filter
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
Filter
handleAddComment
in class Filter
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
Filter
handleGetComments
in class Filter
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
Filter
handleGetResourcePathsWithTag
in class Filter
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
Filter
handleGetTags
in class Filter
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
Filter
handleGetAverageRating
in class Filter
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
Filter
handleGetRating
in class Filter
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
Filter
handleGetVersions
in class Filter
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
Filter
handleExecuteQuery
in class Filter
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
Filter
handleSearchContent
in class Filter
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
Filter
handleResourceExists
in class Filter
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 handleDump(RequestContext requestContext) throws RegistryException
Filter
handleDump
in class Filter
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
Filter
handleRestore
in class Filter
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |