ERUCES::TEACLTemplateMember
#include <teacl_template.h>
The TEACLTemplateMember class is used for the management of access control list (ACL)template members.
The ACLTemplateMember class represents an ACL Template member. The relationship between ACLTemplate and ACLTemplateMember is one to many relationship.
Inheritance
- Inherits ERUCES::TEUpdatableObject
Private Attrib
| Type | Name | Description |
|---|---|---|
| bool | m_bOwner |
Public Member Functions
| Member | Description |
|---|---|
TEACLTemplateMember() | The TEACLTemplateMember constructor is the default class constructor. |
TEACLTemplateMember(const TEACLTemplateMember &) | The TEACLTemplateMember constructor copies an object. |
~TEACLTemplateMember() | The TEACLTemplateMember destructor is the class destructor. |
void setPrincipalId(te_oid id) | The setPrincipalId method sets the principal ID. |
te_oid getPrincipalId() const | The getPrincipalId method gets a principal ID. |
void setSystemId(uint32_t sid) | The setSystemId method sets the system ID. |
uint32_t getSystemId() const | The getSystemId method gets a system ID. |
void setRight(uint32_t right) | The setRight method set the ACL access right. |
uint32_t getRight() const | The getRight method gets the ACL access right. |
void setACLTemplateId(te_oid id) | The setACLTemplateId method sets the TEACLTemplate ID. |
te_oid getACLTemplateId() const | The getACLTemplateId method gets the TEACLTemplate ID. |
void setStartTime(time_t start_time) | The setStartTime method sets the TEACLTemplate start time. |
time_t getStartTime() const | The getStartTime method gets the TEACLTemplate start time. |
void setEndTime(time_t end_time) | The setEndTime method sets the TEACLTemplate end time. |
time_t getEndTime() const | The getEndTime method gets the TEACLTemplate end time. |
void setMaxUsage(uint32_t usage) | The setMaxUsage method sets the TEACLTemplate maximum usage. |
uint32_t getMaxUsage() const | The getMaxUsage method gets the TEACLTemplate maximum usage. |
TEObject * clone() const | The clone method clones an ACLTemplateMember object. |
bool operator==(const TEACLTemplateMember &entry) const | The operator == method checks if two ACLTemplateMember objects are the same. |
Private Func
| Member | Description |
|---|---|
TEACLTemplateMember(const ACLTemplateMember *) |
Member Function Documentation
TEACLTemplateMember()
The TEACLTemplateMember constructor is the default class constructor.
TEACLTemplateMember(const TEACLTemplateMember &)
The TEACLTemplateMember constructor copies an object.
~TEACLTemplateMember()
The TEACLTemplateMember destructor is the class destructor.
void setPrincipalId(te_oid id)
The setPrincipalId method sets the principal ID.
Parameters
| Parameter | Description |
|---|---|
id | An object representing the Principal ID to be set. |
te_oid getPrincipalId() const
The getPrincipalId method gets a principal ID.
Returns: An object representing the Principal ID.
void setSystemId(uint32_t sid)
The setSystemId method sets the system ID.
Parameters
| Parameter | Description |
|---|---|
sid | An integer representing the System ID. |
uint32_t getSystemId() const
The getSystemId method gets a system ID.
Returns: An integer representing the System ID.
void setRight(uint32_t right)
The setRight method set the ACL access right.
Parameters
| Parameter | Description |
|---|---|
right | An integer representing the ACL access right. |
See also: TE_ACL_TEMPLATE_READ, TE_ACL_TEMPLATE_WRITE
uint32_t getRight() const
The getRight method gets the ACL access right.
Returns: An integer representing the ACL access right.
See also: TE_ACL_TEMPLATE_READ, TE_ACL_TEMPLATE_WRITE
void setACLTemplateId(te_oid id)
The setACLTemplateId method sets the TEACLTemplate ID.
Parameters
| Parameter | Description |
|---|---|
id | An object representing the TEACLTemplate ID. |
te_oid getACLTemplateId() const
The getACLTemplateId method gets the TEACLTemplate ID.
Returns: An object representing the TEACLTemplate ID.
void setStartTime(time_t start_time)
The setStartTime method sets the TEACLTemplate start time.
Parameters
| Parameter | Description |
|---|---|
start_time | An integer representing the TEACLTemplate Start Time. |
time_t getStartTime() const
The getStartTime method gets the TEACLTemplate start time.
Returns: An integer representing the TEACLTemplate Start Time.
void setEndTime(time_t end_time)
The setEndTime method sets the TEACLTemplate end time.
Parameters
| Parameter | Description |
|---|---|
end_time | An integer representing the TEACLTemplate end time. |
time_t getEndTime() const
The getEndTime method gets the TEACLTemplate end time.
Returns: An integer representing the TEACLTemplate end time.
void setMaxUsage(uint32_t usage)
The setMaxUsage method sets the TEACLTemplate maximum usage.
Parameters
| Parameter | Description |
|---|---|
usage | An integer representing the TEACLTemplate maximum usage. -1 = ? |
uint32_t getMaxUsage() const
The getMaxUsage method gets the TEACLTemplate maximum usage.
Returns: An integer representing the TEACLTemplate maximum usage. -1 = ?
TEObject * clone() const
The clone method clones an ACLTemplateMember object.
Returns: An object representing the cloned ACLTemplateMember object.
bool operator==(const TEACLTemplateMember &entry) const
The operator == method checks if two ACLTemplateMember objects are the same.
Two ACLTemplateMember objects are the same if their system ID, principal ID and ACL Template ID are the same.
Parameters
| Parameter | Description |
|---|---|
entry | A ACLTemplateMember object to be compared. |
Returns: A boolean representing True-Two ACLTemplateMember objects are the same or False-Not the same.
TEACLTemplateMember(const ACLTemplateMember *)
Constructor for internal use