Package io.goobi.viewer.model.security
Class AccessPermission
java.lang.Object
io.goobi.viewer.model.security.AccessPermission
- All Implemented Interfaces:
Serializable
Access permission check outcome. Apart from access granted true/false status, additional attributes can be defined here.
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic AccessPermission
denied()
static AccessPermission
granted()
boolean
boolean
boolean
setGranted
(boolean granted) setRedirect
(boolean redirect) setRedirectUrl
(String redirectUrl) setTicketRequired
(boolean ticketRequired) toString()
-
Constructor Details
-
AccessPermission
public AccessPermission()
-
-
Method Details
-
denied
- Returns:
AccessPermission
with denied status
-
granted
- Returns:
AccessPermission
with granted status
-
isGranted
public boolean isGranted()- Returns:
- the granted
-
setGranted
- Parameters:
granted
- the granted to set- Returns:
- this
-
isTicketRequired
public boolean isTicketRequired()- Returns:
- the ticketRequired
-
setTicketRequired
- Parameters:
ticketRequired
- the ticketRequired to set- Returns:
- this
-
isRedirect
public boolean isRedirect()- Returns:
- the redirect
-
setRedirect
- Parameters:
redirect
- the redirect to set- Returns:
- this
-
getRedirectUrl
- Returns:
- the redirectUrl
-
setRedirectUrl
- Parameters:
redirectUrl
- the redirectUrl to set- Returns:
- this
-
toString
-