public class AuthorizationCheck extends Object implements Serializable
Input for the authorization check alogrithm
Modifier and Type | Field and Description |
---|---|
protected int |
authDefaultPerm
the default permissions to use if no matching authorization
can be found.
|
protected List<String> |
authGroupIds
the ids of the groups to check permissions for
|
protected int |
authPerms
the permission(s) to check for
|
protected String |
authResourceId
the id of the resource to check permissions for
|
protected String |
authResourceIdQueryParam
query parameter for resaource Id.
|
protected int |
authResourceType
the type of the resource to check permissions for
|
protected String |
authUserId
the id of the user to check permissions for
|
protected boolean |
isAuthorizationCheckEnabled
If true authorization check is performed.
|
Constructor and Description |
---|
AuthorizationCheck() |
Modifier and Type | Method and Description |
---|---|
int |
getAuthDefaultPerm() |
List<String> |
getAuthGroupIds() |
int |
getAuthPerms() |
String |
getAuthResourceId() |
String |
getAuthResourceIdQueryParam() |
int |
getAuthResourceType() |
String |
getAuthUserId() |
boolean |
isAuthorizationCheckEnabled() |
void |
setAuthDefaultPerm(int authDefaultPerm) |
void |
setAuthGroupIds(List<String> authGroupIds) |
void |
setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed) |
void |
setAuthPerms(int authPerms) |
void |
setAuthResourceId(String authResourceId) |
void |
setAuthResourceIdQueryParam(String authResourceIdQueryParam) |
void |
setAuthResourceType(int authResourceType) |
void |
setAuthUserId(String authUserId) |
protected boolean isAuthorizationCheckEnabled
protected String authUserId
protected int authPerms
protected int authResourceType
protected String authResourceId
protected String authResourceIdQueryParam
protected int authDefaultPerm
public boolean isAuthorizationCheckEnabled()
public void setAuthorizationCheckEnabled(boolean isAuthorizationCheckPerformed)
public String getAuthUserId()
public void setAuthUserId(String authUserId)
public int getAuthPerms()
public void setAuthPerms(int authPerms)
public int getAuthResourceType()
public void setAuthResourceType(int authResourceType)
public String getAuthResourceId()
public void setAuthResourceId(String authResourceId)
public int getAuthDefaultPerm()
public void setAuthDefaultPerm(int authDefaultPerm)
public String getAuthResourceIdQueryParam()
public void setAuthResourceIdQueryParam(String authResourceIdQueryParam)
Copyright © 2015. All rights reserved.