| Home >> All >> org >> mentawai >> [ filter Javadoc ] |
org.mentawai.filter: Javadoc index of package org.mentawai.filter.
Package Samples:
org.mentawai.filter
Classes:
RedirectAfterLogin: A marker interface to indicate that an action can receive a redirection after a login. An action should implement this interface if it wants to receive a redirection after the user logs in. Redirect After Login is basically this: The user tries to access action /MyAction.mtw The user is not logged, so he is taken to the login page. After a successful login, instead of going to the first page (welcome page), it is taken to the /MyAction.mtw action. For this to happen, MyAction has to implement this marker interface.
OutputFilter: A filter that takes all the properties of the action and place them in the output, so that you don't have to call output.setValue() manually. Note that this filter uses the method action.getClass().getDeclaredMethods() in order to find the getters, in other words, it will only find getters of the base class and not from its superclasses. This is ok because action inheritance is not very common. For ModelDriven actions, the method action.getModel().getClass().getMethods() is used instead, pretty much like in the OVFilter.
OVFilter: A filter that takes all the properties of a bean and place them in the action output. Use this filter, for example, if you want to show all properties of an User bean, but you don't want to manually place them in the action output, in other words, you place the User bean in the output and use the OVFilter to accomplish the same result. Note that this filter uses the method Class.getMethods() in order to find the getters, in other words, getters from the class and its superclasses will be called for properties.
InjectionFilter: A filter that tries to inject the input values in the action through setters. (Ex. setUsername() , setPassword() , etc.) It can also inject the input value directly in the attribute, even if it is a private field. Use this filter if you don't want to deal with the action input object and instaed you want to inject its values in the action. This filter tries to inject all the input values in the action.
ValidationFilter: A filter to validate the values of an action input. Apply this filter to validate the input values of your actions. By default, error messages are inside the /validation/ directory and a ClassMessageContext is used. (Only if LocaleManager.isUseMasterForEverything returns false) By default, the result returned when the validation fails is BaseAction.ERROR .
VOFilter: A filter that tries to populate a bean with the action input values. Use this filter if you want to provide your action with a ready-to-use bean instead of a bunch of action input values. This filter tries to inject all the action input values in a Java object through setters. It can also inject directly in the bean's attributes, even if the field is private.
TransactionFilter: Use this filter to put your action inside a transaction. You action will be commited or rolledback depending on its result. The default is to commit if and only if your action returns SUCCESS. However you can pass your own results to define a commit.
HibernateFilter: Use this filter to place an opened and connected Hibernate session in the action input. There is no need to close the session. The filter does it automatically when the action ends.
RedirectAfterLoginFilter: A filter that implements the redirect after login mechanism. Apply this filter to your Login action if you want it to perform a redict to the first page the user tried to access.
AuthenticationFree: This is a marker interface to indicate that an action does not want to be blocked by the AuthenticationFilter. For example, this is the case of the BaseLoginAction.
ConversionFilter: A filter to perform conversions of the action input values. Use this filter if you want to convert values of your action input.
AuthorizationFilter: A filter to handle user authorization. You should use this filter to protect your actions from unauthorized access.
AuthenticationFilter: A filter to handle user authentcation. You should use this filter to protect your actions from unauthorized access.
ConnectionFilter: A filter to serve a ready-to-use database connection to its actions.
Validator
ModelDriven
IoCFilter
FileUploadFilter
ExceptionFilter
DependencyFilter
| Home | Contact Us | Privacy Policy | Terms of Service |