Package com.saperion.ngc.iform
Class FormUtil
- java.lang.Object
-
- com.saperion.ngc.iform.FormUtil
-
public final class FormUtil extends java.lang.Object
Provides utility-methods forIntelligentFormView
s.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canModifyDocuments(IntelligentFormView form)
Checks if all viewers of the form are able to edit documents.static boolean
canShowRevisions(IntelligentFormView form)
Checks if all viewers of the given form are able to show revisions.static boolean
isIndexForm(FormMode formMode)
Returns true if the form is any type of index-form.static boolean
isIndexForm(IntelligentFormView form)
Returns true if the form is any type of index-form.static boolean
isQueryForm(FormMode formMode)
Returns true if the form is any type of query-form.static boolean
isQueryForm(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
-
-