Package de.xima.fc.form.request
Class FormRequestValidator
- java.lang.Object
-
- de.xima.fc.form.request.FormRequestValidator
-
public class FormRequestValidator extends Object
Class for validating anIExtendedFormRequestContexts by checking usage-privileges- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description FormRequestValidator()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static booleancheckPreviewContext(IExtendedFormRequestContext requestCtx)static booleancheckPreviewContext(IExtendedFormRequestContext requestCtx, boolean writeError)static booleancheckPrintContext(IExtendedFormRequestContext requestCtx, boolean writeError)static booleancheckProvideCtx(IExtendedFormRequestContext requestCtx)static booleancheckProvideCtx(IExtendedFormRequestContext requestCtx, boolean writeError)static booleancheckProzessCtx(IExtendedFormRequestContext requestCtx)static booleancheckProzessCtx(IExtendedFormRequestContext requestCtx, boolean writeError)static booleancheckReviewCtx(IExtendedFormRequestContext requestCtx)static booleancheckReviewCtx(IExtendedFormRequestContext requestCtx, boolean writeError)static booleancheckWorkflowCtx(IExtendedFormRequestContext requestCtx)static booleancheckWorkflowCtx(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanhasNoActiveFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisFormLimitReached(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisFormModuleNotRunning(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisFormRecordHasErrors(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisFsForbidden(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisInactiveFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)Lieferttrue, wenn die im Kontext gesetzte FormVersion nicht die aktive FormVersion des Projektes ist.static booleanisInvalidFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisInvalidProjektState(IExtendedFormRequestContext requestCtx, boolean writeError)Ein Projekt ist valide, wenn es existiert UND ein aktives Formular (activeFormVersion) besitzt.static booleanisInvalidRequestType(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisKerberosUnauthorized(IExtendedFormRequestContext requestCtx, boolean writeError)Deprecated.userFormAuthContextorKerberosAuthenticatorstatic booleanisNTLMUnauthorized(IExtendedFormRequestContext requestCtx, boolean writeError)Deprecated.userFormAuthContextorNtlmAuthenticatorstatic booleanisProjektNotExcisting(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisProjektOffline(IExtendedFormRequestContext requestCtx, boolean writeError)Ein Projekt is 'online', wenn der entsprechende Schalter gesetzt ist und es keine zeitlichen Einschränkungen gibt oder das aktuelle Datum innerhalb des Zeitfensters liegtstatic booleanisUnauthorizedBenutzer(IExtendedFormRequestContext requestCtx, boolean writeError)Ein Anwender ist zum Ansehen eines Formulars (projekt) authorisiert, wenn dem Projekt KEINE Benutzergruppen zugeordnet sind und kein Teilnahmepasswort festgelegt wurde (Projekt besitzt keine Zugriffsbeschränkung); oder innerhalb der Session das korrekte Teilnahmepasswort eingegeben wurde; oder der Formularzugriff innerhalb des aktuellen Projektes auf bestimmte Benutzergruppen beschränkt ist und der aktuelle Benutzer in mindestens einer dieser Benutzergruppe ist.static booleanisUnauthorizedPostfachbearbeiter(IExtendedFormRequestContext requestCtx, boolean writeError)Check if the user is allowed to review the process in the current inboxstatic booleanisUnauthorizedPreview(IExtendedFormRequestContext requestCtx, boolean writeError)static booleanisUnauthorizedReprovide(IExtendedFormRequestContext requestCtx, boolean writeError)Deprecated.Is now checked inisUnauthorizedBenutzer(IExtendedFormRequestContext, boolean).
-
-
-
Method Detail
-
checkProzessCtx
public static boolean checkProzessCtx(IExtendedFormRequestContext requestCtx)
-
checkProzessCtx
public static boolean checkProzessCtx(IExtendedFormRequestContext requestCtx, boolean writeError)
-
checkWorkflowCtx
public static boolean checkWorkflowCtx(IExtendedFormRequestContext requestCtx)
-
checkWorkflowCtx
public static boolean checkWorkflowCtx(IExtendedFormRequestContext requestCtx, boolean writeError)
-
checkPreviewContext
public static boolean checkPreviewContext(IExtendedFormRequestContext requestCtx)
-
checkPreviewContext
public static boolean checkPreviewContext(IExtendedFormRequestContext requestCtx, boolean writeError)
-
checkPrintContext
public static boolean checkPrintContext(IExtendedFormRequestContext requestCtx, boolean writeError)
-
checkProvideCtx
public static boolean checkProvideCtx(IExtendedFormRequestContext requestCtx)
-
checkProvideCtx
public static boolean checkProvideCtx(IExtendedFormRequestContext requestCtx, boolean writeError)
-
checkReviewCtx
public static boolean checkReviewCtx(IExtendedFormRequestContext requestCtx)
-
checkReviewCtx
public static boolean checkReviewCtx(IExtendedFormRequestContext requestCtx, boolean writeError)
-
isInvalidProjektState
public static boolean isInvalidProjektState(IExtendedFormRequestContext requestCtx, boolean writeError)
Ein Projekt ist valide, wenn es existiert UND ein aktives Formular (activeFormVersion) besitzt.
-
isInvalidFormVersion
public static boolean isInvalidFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)
-
isInvalidRequestType
public static boolean isInvalidRequestType(IExtendedFormRequestContext requestCtx, boolean writeError)
-
isFormRecordHasErrors
public static boolean isFormRecordHasErrors(IExtendedFormRequestContext requestCtx, boolean writeError)
-
hasNoActiveFormVersion
public static boolean hasNoActiveFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)
-
isProjektNotExcisting
public static boolean isProjektNotExcisting(IExtendedFormRequestContext requestCtx, boolean writeError)
-
isProjektOffline
public static boolean isProjektOffline(IExtendedFormRequestContext requestCtx, boolean writeError)
Ein Projekt is 'online', wenn- der entsprechende Schalter gesetzt ist und
- es keine zeitlichen Einschränkungen gibt oder das aktuelle Datum innerhalb des Zeitfensters liegt
-
isUnauthorizedReprovide
@Deprecated public static boolean isUnauthorizedReprovide(IExtendedFormRequestContext requestCtx, boolean writeError)
Deprecated.Is now checked inisUnauthorizedBenutzer(IExtendedFormRequestContext, boolean). Check if the current user is allowed to view the current process- Parameters:
requestCtx-IExtendedFormRequestContextwith the user and processwriteError-Booleanif errors should be written into re response- Returns:
Booleanis user is unauthorized
-
isUnauthorizedPostfachbearbeiter
public static boolean isUnauthorizedPostfachbearbeiter(IExtendedFormRequestContext requestCtx, boolean writeError)
Check if the user is allowed to review the process in the current inbox- Parameters:
requestCtx-IExtendedFormRequestContextwith the user and processwriteError-Booleanif errors should be written into re response- Returns:
Booleanis user is unauthorized
-
isUnauthorizedBenutzer
public static boolean isUnauthorizedBenutzer(IExtendedFormRequestContext requestCtx, boolean writeError)
Ein Anwender ist zum Ansehen eines Formulars (projekt) authorisiert, wenn- dem Projekt KEINE Benutzergruppen zugeordnet sind und kein Teilnahmepasswort festgelegt wurde (Projekt besitzt keine Zugriffsbeschränkung); oder
- innerhalb der Session das korrekte Teilnahmepasswort eingegeben wurde; oder
- der Formularzugriff innerhalb des aktuellen Projektes auf bestimmte Benutzergruppen beschränkt ist und der aktuelle Benutzer in mindestens einer dieser Benutzergruppe ist.
-
isUnauthorizedPreview
public static boolean isUnauthorizedPreview(IExtendedFormRequestContext requestCtx, boolean writeError)
-
isNTLMUnauthorized
@Deprecated public static boolean isNTLMUnauthorized(IExtendedFormRequestContext requestCtx, boolean writeError)
Deprecated.userFormAuthContextorNtlmAuthenticator
-
isKerberosUnauthorized
@Deprecated public static boolean isKerberosUnauthorized(IExtendedFormRequestContext requestCtx, boolean writeError)
Deprecated.userFormAuthContextorKerberosAuthenticator
-
isInactiveFormVersion
public static boolean isInactiveFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)
Lieferttrue, wenn die im Kontext gesetzte FormVersion nicht die aktive FormVersion des Projektes ist.
-
isFsForbidden
public static boolean isFsForbidden(IExtendedFormRequestContext requestCtx, boolean writeError)
- Parameters:
requestCtx-IExtendedFormRequestContextwith request-datawriteError-Booleanif errors should be written into re response- Returns:
Booleanis user is unauthorized
-
isFormModuleNotRunning
public static boolean isFormModuleNotRunning(IExtendedFormRequestContext requestCtx, boolean writeError)
-
isFormLimitReached
public static boolean isFormLimitReached(IExtendedFormRequestContext requestCtx, boolean writeError)
-
-