Skip to main content

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

Private Attrib

TypeNameDescription
boolm_bOwner

Public Member Functions

MemberDescription
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() constThe getPrincipalId method gets a principal ID.
void setSystemId(uint32_t sid)The setSystemId method sets the system ID.
uint32_t getSystemId() constThe getSystemId method gets a system ID.
void setRight(uint32_t right)The setRight method set the ACL access right.
uint32_t getRight() constThe getRight method gets the ACL access right.
void setACLTemplateId(te_oid id)The setACLTemplateId method sets the TEACLTemplate ID.
te_oid getACLTemplateId() constThe getACLTemplateId method gets the TEACLTemplate ID.
void setStartTime(time_t start_time)The setStartTime method sets the TEACLTemplate start time.
time_t getStartTime() constThe getStartTime method gets the TEACLTemplate start time.
void setEndTime(time_t end_time)The setEndTime method sets the TEACLTemplate end time.
time_t getEndTime() constThe getEndTime method gets the TEACLTemplate end time.
void setMaxUsage(uint32_t usage)The setMaxUsage method sets the TEACLTemplate maximum usage.
uint32_t getMaxUsage() constThe getMaxUsage method gets the TEACLTemplate maximum usage.
TEObject * clone() constThe clone method clones an ACLTemplateMember object.
bool operator==(const TEACLTemplateMember &entry) constThe operator == method checks if two ACLTemplateMember objects are the same.

Private Func

MemberDescription
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

ParameterDescription
idAn 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

ParameterDescription
sidAn 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

ParameterDescription
rightAn 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

ParameterDescription
idAn 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

ParameterDescription
start_timeAn 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

ParameterDescription
end_timeAn 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

ParameterDescription
usageAn 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

ParameterDescription
entryA 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