Class CASecurityPolicy
java.lang.Object
com.io7m.cardant.security.CASecurityPolicy
The security policy objects.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.io7m.medrina.api.MObjectThe audit log.static final com.io7m.medrina.api.MActionNameA "delete" action.static final com.io7m.medrina.api.MObjectThe files section of the inventory.static final com.io7m.medrina.api.MObjectThe items section of the inventory.static final com.io7m.medrina.api.MObjectThe locations section of the inventory.static final com.io7m.medrina.api.MObjectThe stock section of the inventory.static final com.io7m.medrina.api.MActionNameA "read" action.static final com.io7m.medrina.api.MRoleNameA reader of the audit log.static final com.io7m.medrina.api.MRoleNameAn all-powerful administrator of inventories.static final com.io7m.medrina.api.MRoleNameA reader of inventory files.static final com.io7m.medrina.api.MRoleNameA writer of inventory files.static final com.io7m.medrina.api.MRoleNameA reader of inventory items.static final com.io7m.medrina.api.MRoleNameA writer of inventory items.static final com.io7m.medrina.api.MRoleNameA reader of inventory locations.static final com.io7m.medrina.api.MRoleNameA writer of inventory locations.static final com.io7m.medrina.api.MRoleNameA reader of inventory stock.static final com.io7m.medrina.api.MRoleNameA writer of inventory stock.static final Set<com.io7m.medrina.api.MRoleName> All roles.static final com.io7m.medrina.api.MActionNameA "write" action. -
Method Summary
Modifier and TypeMethodDescriptionstatic com.io7m.medrina.api.MPolicyopen()Load the internal security policy.
-
Field Details
-
AUDIT
public static final com.io7m.medrina.api.MObject AUDITThe audit log. -
INVENTORY_ITEMS
public static final com.io7m.medrina.api.MObject INVENTORY_ITEMSThe items section of the inventory. -
INVENTORY_FILES
public static final com.io7m.medrina.api.MObject INVENTORY_FILESThe files section of the inventory. -
INVENTORY_LOCATIONS
public static final com.io7m.medrina.api.MObject INVENTORY_LOCATIONSThe locations section of the inventory. -
INVENTORY_STOCK
public static final com.io7m.medrina.api.MObject INVENTORY_STOCKThe stock section of the inventory. -
READ
public static final com.io7m.medrina.api.MActionName READA "read" action. -
WRITE
public static final com.io7m.medrina.api.MActionName WRITEA "write" action. -
DELETE
public static final com.io7m.medrina.api.MActionName DELETEA "delete" action. -
ROLE_INVENTORY_FILES_WRITER
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_FILES_WRITERA writer of inventory files. -
ROLE_INVENTORY_FILES_READER
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_FILES_READERA reader of inventory files. -
ROLE_INVENTORY_STOCK_WRITER
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_STOCK_WRITERA writer of inventory stock. -
ROLE_INVENTORY_STOCK_READER
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_STOCK_READERA reader of inventory stock. -
ROLE_INVENTORY_ITEMS_WRITER
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_ITEMS_WRITERA writer of inventory items. -
ROLE_INVENTORY_ITEMS_READER
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_ITEMS_READERA reader of inventory items. -
ROLE_INVENTORY_LOCATIONS_WRITER
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_LOCATIONS_WRITERA writer of inventory locations. -
ROLE_INVENTORY_LOCATIONS_READER
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_LOCATIONS_READERA reader of inventory locations. -
ROLE_AUDIT_READER
public static final com.io7m.medrina.api.MRoleName ROLE_AUDIT_READERA reader of the audit log. -
ROLE_INVENTORY_ADMIN
public static final com.io7m.medrina.api.MRoleName ROLE_INVENTORY_ADMINAn all-powerful administrator of inventories. -
ROLES_ALL
All roles.
-
-
Method Details
-
open
Load the internal security policy.- Returns:
- A policy
- Throws:
IOException- On errors
-