MetaSecProfEntry Class
The IMetaSecProfEntry interface is used to read, write, modify, and delete the properties of a CMetaSecurityProfileEntry C++ class object. This interface is used only by the IMetaSecProfInfo interface.
Property |
Type |
Description |
IsUser |
Boolean |
True is the entry is for a user (the default setting), else false for a group |
ObjectID |
Long |
The object of the user or group |
Access |
AccessType |
The access permission for the user or group. Default is accFull. |
|
|
enum AccessType { |
|
|
accRead = MD_READ, |
|
|
accCollection = MD_COLLECTION, |
|
|
accUpdate = MD_UPDATE, |
|
|
accFull = MD_FULL |
|
|
} AccessType; |
SetEntryValues
Purpose:
Sets all the indicated values in one call. Can be used instead of the individual property calls.
Syntax:
HRESULT SetEntryValues(
[in] VARIANT_BOOL IsUser,
[in] long ObjectID,
[in] AccessType Access);
GetEntryValues
Purpose:
This call gets all the indicated values in one call. Can be used instead of the individual property calls unless you are using a scripting language such as VBScript. VBScript can accept only one return value for a function, so you must use the property calls below for it.
Syntax:
HRESULT GetEntryValues(
[out] VARIANT_BOOL* IsUser,
[out] long* ObjectID,
[out] AccessType* Access);
get_IsUser
Purpose:
Sets the IsUser property -- "true" if the ObjectID property is that of a MDS user, "false" if it is that if an MDS group.
Syntax:
HRESULT get_IsUser(
[out, retval] VARIANT_BOOL *pVal);
put_IsUser
Purpose:
Returns the value of the IsUser property.
Syntax:
HRESULT put_IsUser(
[in] VARIANT_BOOL newVal);
get_ObjectID
Purpose:
Returns the ObjectID property for the Security Profile Entry, Can be an MDS User id or an MDS Group ID.
Syntax:
HRESULT get_ObjectID(
[out, retval] long *pVal);
put_ObjectID
Purpose:
Sets the ObjectID property for the Security Profile Entry.
Syntax:
HRESULT put_ObjectID(
[in] long newVal);
get_Access
Purpose:
Sets the access (permission) for the indicated MDS User/Group for this SP entry. See Chapter 13: “Security Classes” for more detailed information.
Syntax:
HRESULT get_Access(
[out, retval] AccessType *pVal);
put_Access
Purpose:
Returns the access (permission) for the indicated MDS User/Group.
Syntax:
HRESULT put_Access(
[in] AccessType newVal);