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 class
JpaSecurity.AccessType
-
Field Summary
Fields Modifier and Type Field Description static JpaSecurity.AccessType
CAN_CREATE
static JpaSecurity.AccessType
CAN_EXPORT
static JpaSecurity.AccessType
CAN_READ
static JpaSecurity.AccessType
CAN_REMOVE
static JpaSecurity.AccessType
CAN_WRITE
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
check(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)
Set<JpaSecurity.AccessType>
getAccessTypes(Class<? extends Model> model, Long id)
Filter
getFilter(JpaSecurity.AccessType type, Class<? extends Model> model, Long... ids)
boolean
hasRole(String name)
boolean
isPermitted(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)
-
-