Package org.bgerp.plugin.sec.auth
Class AuthResult
java.lang.Object
org.bgerp.plugin.sec.auth.AuthResult
Auth result
-
Constructor Summary
ConstructorsConstructorDescriptionAuthResult(Throwable exception) Auth errorAuthResult(User user, UpdateExpression updateExpression) Successful auth constructor -
Method Summary
Modifier and TypeMethodDescriptionvoiddoUpdateExpression(Connection con, User user) Execute JEXL update expression in case ofisSuccess()andhasUpdateExpression()getUser()booleanboolean
-
Constructor Details
-
AuthResult
Successful auth constructor- Parameters:
user-context-
-
AuthResult
Auth error- Parameters:
exception-
-
-
Method Details
-
isSuccess
public boolean isSuccess()- Returns:
- auth success
-
getUser
- Returns:
- user in case of
isSuccess()
-
hasUpdateExpression
public boolean hasUpdateExpression()- Returns:
- the result has a JEXL update expression
-
doUpdateExpression
Execute JEXL update expression in case ofisSuccess()andhasUpdateExpression()- Parameters:
con- DB connectionuser- the user
-
getException
- Returns:
- exception in case of not
isSuccess()
-