Package com.avoka.fc.core.security
Class NotPortalAccountException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.springframework.security.core.AuthenticationException
-
- org.springframework.security.authentication.AccountStatusException
-
- com.avoka.fc.core.security.NotPortalAccountException
-
- All Implemented Interfaces:
Serializable
public class NotPortalAccountException extends org.springframework.security.authentication.AccountStatusException
Provides an exception used to denote an authenticated user account is not associated with the portal.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NotPortalAccountException(UserAccount userAccount, Portal portal)
Create a NotPortalAccountException with the given authenticated user account and unassociated portal.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Portal
getPortal()
Return the Portal the user account is not associated with.UserAccount
getUserAccount()
Return the authenticated local user account.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
NotPortalAccountException
public NotPortalAccountException(UserAccount userAccount, Portal portal)
Create a NotPortalAccountException with the given authenticated user account and unassociated portal.- Parameters:
userAccount
- the authenticated user accountportal
- the non associated portal
-
-
Method Detail
-
getUserAccount
public UserAccount getUserAccount()
Return the authenticated local user account.- Returns:
- the authenticated local user account
-
getPortal
public Portal getPortal()
Return the Portal the user account is not associated with.- Returns:
- the Portal the user account is not associated with
-
-