Package com.saperion.ngc.iform
Class FormUtil
- java.lang.Object
-
- com.saperion.ngc.iform.FormUtil
-
public final class FormUtil extends java.lang.ObjectProvides utility-methods forIntelligentFormViews.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancanModifyDocuments(IntelligentFormView form)Checks if all viewers of the form are able to edit documents.static booleancanShowRevisions(IntelligentFormView form)Checks if all viewers of the given form are able to show revisions.static booleanisIndexForm(FormMode formMode)Returns true if the form is any type of index-form.static booleanisIndexForm(IntelligentFormView form)Returns true if the form is any type of index-form.static booleanisQueryForm(FormMode formMode)Returns true if the form is any type of query-form.static booleanisQueryForm(IntelligentFormView form)Returns true if the form is any type of query-form.
-
-
-
Method Detail
-
isQueryForm
public static boolean isQueryForm(FormMode formMode)
Returns true if the form is any type of query-form.- Parameters:
formMode- mode of the form- Returns:
- true if the form is a query-form
-
isQueryForm
public static boolean isQueryForm(IntelligentFormView form)
Returns true if the form is any type of query-form.- Parameters:
form- the form- Returns:
- true if the form is a query-form
-
isIndexForm
public static boolean isIndexForm(FormMode formMode)
Returns true if the form is any type of index-form.- Parameters:
formMode- the mode of the form- Returns:
- true if the form is a index-form
-
isIndexForm
public static boolean isIndexForm(IntelligentFormView form)
Returns true if the form is any type of index-form.- Parameters:
form- the form- Returns:
- true if the form is a index-form
-
canModifyDocuments
public static boolean canModifyDocuments(IntelligentFormView form)
Checks if all viewers of the form are able to edit documents.- Parameters:
form- the form to check- Returns:
- true if all viewers can edit document, otherwise false
-
canShowRevisions
public static boolean canShowRevisions(IntelligentFormView form)
Checks if all viewers of the given form are able to show revisions.- Parameters:
form- the form to check- Returns:
- true if all viewers can show revisions, otherwise false
-
-