Package org.exoplatform.webui.ext.filter
Enum UIExtensionFilterType
- java.lang.Object
-
- java.lang.Enum<UIExtensionFilterType>
-
- org.exoplatform.webui.ext.filter.UIExtensionFilterType
-
- All Implemented Interfaces:
Serializable,Comparable<UIExtensionFilterType>
public enum UIExtensionFilterType extends Enum<UIExtensionFilterType>
All the existing types of filters Created by The eXo Platform SAS Author : eXoPlatform nicolas.filotto@exoplatform.com 14 mai 2009
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MANDATORYThis type of filter will be used to know if the action related to the extension can be launched and to know if the component related to the extension can be added to the webui tree The filter is required to launch the action and to add the component related to the extension to the webui tree.OPTIONALThis type of filter will only be used to know if the action related to the extension can be launched.REQUIREDThis type of filter will only be used to know if the action related to the extension can be launched.REQUISITEThis type of filter will be used to know if the action related to the extension can be launched.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanacceptOnlyIfOK()Indicates if the filter allows to continue if it failsbooleancheckOtherFiltersOnlyIfOK()Indicates if the other filters can be checked if it failsbooleanshowExtensionOnlyIfOK()Indicates if the filter allows to display the extension if it failsstatic UIExtensionFilterTypevalueOf(String name)Returns the enum constant of this type with the specified name.static UIExtensionFilterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MANDATORY
public static final UIExtensionFilterType MANDATORY
This type of filter will be used to know if the action related to the extension can be launched and to know if the component related to the extension can be added to the webui tree The filter is required to launch the action and to add the component related to the extension to the webui tree. If it succeeds, we will check the other filters. If it fails, we will stop.
-
REQUISITE
public static final UIExtensionFilterType REQUISITE
This type of filter will be used to know if the action related to the extension can be launched. The filter is required to launch the action. to the webui tree. If it succeeds, we will check the other filters. If it fails, we will stop.
-
REQUIRED
public static final UIExtensionFilterType REQUIRED
This type of filter will only be used to know if the action related to the extension can be launched. The filter is required to launch the action. If it succeeds or fails, we will check the other filters. It can be used to add warnings
-
OPTIONAL
public static final UIExtensionFilterType OPTIONAL
This type of filter will only be used to know if the action related to the extension can be launched. The filter is not required to launch the action. If it succeeds or fails, we will check the other filters. It can be used for auditing purpose
-
-
Method Detail
-
values
public static UIExtensionFilterType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UIExtensionFilterType c : UIExtensionFilterType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UIExtensionFilterType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
showExtensionOnlyIfOK
public boolean showExtensionOnlyIfOK()
Indicates if the filter allows to display the extension if it fails
-
checkOtherFiltersOnlyIfOK
public boolean checkOtherFiltersOnlyIfOK()
Indicates if the other filters can be checked if it fails
-
acceptOnlyIfOK
public boolean acceptOnlyIfOK()
Indicates if the filter allows to continue if it fails
-
-