public class FormRequestValidator extends Object
IExtendedFormRequestContext
s by checking usage-privilegesConstructor and Description |
---|
FormRequestValidator() |
Modifier and Type | Method and Description |
---|---|
static boolean |
checkPreviewContext(IExtendedFormRequestContext requestCtx) |
static boolean |
checkPreviewContext(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
checkPrintContext(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
checkProvideCtx(IExtendedFormRequestContext requestCtx) |
static boolean |
checkProvideCtx(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
checkProzessCtx(IExtendedFormRequestContext requestCtx) |
static boolean |
checkProzessCtx(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
checkReviewCtx(IExtendedFormRequestContext requestCtx) |
static boolean |
checkReviewCtx(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
checkWorkflowCtx(IExtendedFormRequestContext requestCtx) |
static boolean |
checkWorkflowCtx(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
hasNoActiveFormVersion(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
isFormLimitReached(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
isFormModuleNotRunning(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
isFormRecordHasErrors(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
isFsForbidden(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
isInactiveFormVersion(IExtendedFormRequestContext requestCtx,
boolean writeError)
Liefert
true , wenn die im Kontext gesetzte FormVersion nicht die aktive FormVersion des Projektes ist. |
static boolean |
isInvalidFormVersion(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
isInvalidProjektState(IExtendedFormRequestContext requestCtx,
boolean writeError)
Ein Projekt ist valide, wenn es existiert UND ein aktives Formular (activeFormVersion) besitzt.
|
static boolean |
isInvalidRequestType(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
isKerberosUnauthorized(IExtendedFormRequestContext requestCtx,
boolean writeError)
Deprecated.
user
FormAuthContext or KerberosAuthenticator |
static boolean |
isNTLMUnauthorized(IExtendedFormRequestContext requestCtx,
boolean writeError)
Deprecated.
user
FormAuthContext or NtlmAuthenticator |
static boolean |
isProjektNotExcisting(IExtendedFormRequestContext requestCtx,
boolean writeError) |
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
|
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.
|
static boolean |
isUnauthorizedPostfachbearbeiter(IExtendedFormRequestContext requestCtx,
boolean writeError)
Check if the user is allowed to review the process in the current inbox
|
static boolean |
isUnauthorizedPreview(IExtendedFormRequestContext requestCtx,
boolean writeError) |
static boolean |
isUnauthorizedReprovide(IExtendedFormRequestContext requestCtx,
boolean writeError)
Check if the current user is allowed to view the current process
|
public static boolean checkProzessCtx(IExtendedFormRequestContext requestCtx)
public static boolean checkProzessCtx(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean checkWorkflowCtx(IExtendedFormRequestContext requestCtx)
public static boolean checkWorkflowCtx(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean checkPreviewContext(IExtendedFormRequestContext requestCtx)
public static boolean checkPreviewContext(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean checkPrintContext(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean checkProvideCtx(IExtendedFormRequestContext requestCtx)
public static boolean checkProvideCtx(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean checkReviewCtx(IExtendedFormRequestContext requestCtx)
public static boolean checkReviewCtx(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isInvalidProjektState(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isInvalidFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isInvalidRequestType(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isFormRecordHasErrors(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean hasNoActiveFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isProjektNotExcisting(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isProjektOffline(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isUnauthorizedReprovide(IExtendedFormRequestContext requestCtx, boolean writeError)
requestCtx
- IExtendedFormRequestContext
with the user and processwriteError
- Boolean
if errors should be written into re responseBoolean
is user is unauthorizedpublic static boolean isUnauthorizedPostfachbearbeiter(IExtendedFormRequestContext requestCtx, boolean writeError)
requestCtx
- IExtendedFormRequestContext
with the user and processwriteError
- Boolean
if errors should be written into re responseBoolean
is user is unauthorizedpublic static boolean isUnauthorizedBenutzer(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isUnauthorizedPreview(IExtendedFormRequestContext requestCtx, boolean writeError)
@Deprecated public static boolean isNTLMUnauthorized(IExtendedFormRequestContext requestCtx, boolean writeError)
FormAuthContext
or NtlmAuthenticator
@Deprecated public static boolean isKerberosUnauthorized(IExtendedFormRequestContext requestCtx, boolean writeError)
FormAuthContext
or KerberosAuthenticator
public static boolean isInactiveFormVersion(IExtendedFormRequestContext requestCtx, boolean writeError)
true
, wenn die im Kontext gesetzte FormVersion nicht die aktive FormVersion des Projektes ist.public static boolean isFsForbidden(IExtendedFormRequestContext requestCtx, boolean writeError)
requestCtx
- IExtendedFormRequestContext
with request-datawriteError
- Boolean
if errors should be written into re responseBoolean
is user is unauthorizedpublic static boolean isFormModuleNotRunning(IExtendedFormRequestContext requestCtx, boolean writeError)
public static boolean isFormLimitReached(IExtendedFormRequestContext requestCtx, boolean writeError)
Copyright © 2021 XIMA MEDIA GmbH. All rights reserved.