Package com.axelor.db
Interface JpaSecurity
-
- All Known Implementing Classes:
AuthSecurityWarner
public interface JpaSecurity
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classJpaSecurity.AccessType
-
Field Summary
Fields Modifier and Type Field Description static JpaSecurity.AccessTypeCAN_CREATEstatic JpaSecurity.AccessTypeCAN_EXPORTstatic JpaSecurity.AccessTypeCAN_READstatic JpaSecurity.AccessTypeCAN_REMOVEstatic JpaSecurity.AccessTypeCAN_WRITE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheck(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)Set<JpaSecurity.AccessType>getAccessTypes(Class<? extends Model> model, Long id)FiltergetFilter(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)booleanhasRole(String name)booleanisPermitted(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)
-
-
-
Field Detail
-
CAN_READ
static final JpaSecurity.AccessType CAN_READ
-
CAN_WRITE
static final JpaSecurity.AccessType CAN_WRITE
-
CAN_CREATE
static final JpaSecurity.AccessType CAN_CREATE
-
CAN_REMOVE
static final JpaSecurity.AccessType CAN_REMOVE
-
CAN_EXPORT
static final JpaSecurity.AccessType CAN_EXPORT
-
-
Method Detail
-
getAccessTypes
Set<JpaSecurity.AccessType> getAccessTypes(Class<? extends Model> model, Long id)
-
hasRole
boolean hasRole(String name)
-
getFilter
Filter getFilter(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)
-
isPermitted
boolean isPermitted(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)
-
check
void check(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)
-
-