7 #ifndef WPP_O_2_LWM2M_ACCESS_CONTROL_H
8 #define WPP_O_2_LWM2M_ACCESS_CONTROL_H
16 #define AC_CLIENT_OWNER ID_T_MAX_VAL
17 #define AC_ACL_DEFAULT_ID LWM2M_AC_ACL_DEFAULT_ID
18 #define AC_OBJ_INST_NOT_SET ID_T_MAX_VAL
168 void resourcesCreate();
173 void resourcesInit();
Instance is interface class that implements manipulation with derived class resources....
Lwm2mAccessControl(lwm2m_context_t &context, const OBJ_LINK_T &id)
static bool removeInst(WppClient &ctx, ID_T instId)
Removes an instance of the object.
static Lwm2mAccessControl * createInst(WppClient &ctx, ID_T instId=ID_T_MAX_VAL)
Creates an instance of the object.
static void removeAcl(Instance &targetInst, ID_T serverShortId)
Remove ACL for target object instance.
void serverOperationNotifier(Instance *securityInst, ItemOp::TYPE type, const ResLink &resLink) override
This method must be implemented by the derived class, and handle information about resource operation...
static Object & object(WppClient &ctx)
Gets the Object reference.
static bool addAcl(Instance &targetInst, ID_T serverShortId, uint8_t acl=ALL_INST_RIGHTS)
Add ACL for target object instance.
void userOperationNotifier(ItemOp::TYPE type, const ResLink &resLink) override
This method must be implemented by the derived class, and handle information about resource operation...
static void remove(Object &targetObj)
Delete Lwm2mAccessControl object instance for target object.
static Lwm2mAccessControl * create(Object &targetObj, uint8_t defaultAcl=NO_ACCESS)
Create Lwm2mAccessControl object instance for target object.
static Lwm2mAccessControl * instance(WppClient &ctx, ID_T instId=ID_T_MAX_VAL)
Gets an instance of the object.
static void removeAcl(Object &targetObj, ID_T serverShortId)
Remove ACL for target object.
static bool addAcl(Object &targetObj, ID_T serverShortId, uint8_t acl=ALL_OBJ_RIGHTS)
Add ACL for target object.
The Object class implements manipulation with Instance interface class and its inheritors.
Represents a client interface for Wpp library.
The WppConnection class represents a connection interface for the Wpp library.
TYPE
Enum representing the different types of operations.
ObjLink - (object ID):(instance ID), example: 1:3. Represent as two integers in lwm2m_data_t....