public class Authorization extends ModelObject
AuthorizationType
and and extent of the AuthorizationExtent
.
An instance of this represents a single Authorization like (READ, ANY) --> Allow the user to Read for Any (including self) user.Authorization
applies to an entire module or sub-module (blanket across the Module
or Sub-Module.Constructor and Description |
---|
Authorization() |
Authorization(Authorization a) |
Authorization(IAuthorizationType type) |
Authorization(IAuthorizationType type,
AuthorizationExtent extent) |
Authorization(IAuthorizationType type,
AuthorizationExtent extent,
IAuthorizationService.AuthState state) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
AuthorizationExtent |
getExtent()
SELF, OWNER, ANY etc
|
IAuthorizationService.AuthState |
getState()
If it matches the
AuthorizationService should return this as a result |
IAuthorizationType |
getType()
READ, ADD, EDIT, DELETE etc.
|
int |
hashCode() |
void |
setExtent(AuthorizationExtent extent)
SELF, OWNER, ANY etc
|
void |
setState(IAuthorizationService.AuthState state)
If it matches the
AuthorizationService should return this as a result |
void |
setType(IAuthorizationType type)
READ, ADD, EDIT, DELETE etc.
|
public Authorization()
public Authorization(Authorization a)
public Authorization(IAuthorizationType type)
public Authorization(IAuthorizationType type, AuthorizationExtent extent)
public Authorization(IAuthorizationType type, AuthorizationExtent extent, IAuthorizationService.AuthState state)
public IAuthorizationType getType()
public void setType(IAuthorizationType type)
public AuthorizationExtent getExtent()
public void setExtent(AuthorizationExtent extent)
public IAuthorizationService.AuthState getState()
AuthorizationService
should return this as a resultpublic void setState(IAuthorizationService.AuthState state)
AuthorizationService
should return this as a resultCopyright © 2018. All rights reserved.