![]() |
C++/CLI Sample
Demonstrates how to create a C++/CLI library using the VideoXpert SDK
|
The Privilege class represents a specific permission that is given to a role. More...
#include <Privilege.h>
Public Member Functions | |
Privilege (VxSdk::IVxPrivilege *vxPrivilege) | |
Constructor. More... | |
virtual | ~Privilege () |
Destructor. More... | |
!Privilege () | |
Finaliser. More... | |
CPPCli::Results::Value | Link (System::Collections::Generic::List< DataSource^ >^dataSources) |
Associate data sources with this privilege. More... | |
CPPCli::Results::Value | Link (System::Collections::Generic::List< Device^ >^devices) |
Associate devices with this privilege. More... | |
CPPCli::Results::Value | Link (System::Collections::Generic::List< User^ >^users) |
Associate users with this privilege. More... | |
Results::Value | Refresh () |
Refreshes this instances properties. More... | |
CPPCli::Results::Value | Unlink (System::Collections::Generic::List< DataSource^ >^dataSources) |
Remove data source associations from this privilege. More... | |
CPPCli::Results::Value | Unlink (System::Collections::Generic::List< Device^ >^devices) |
Remove device associations from this privilege. More... | |
CPPCli::Results::Value | Unlink (System::Collections::Generic::List< User^ >^users) |
Remove user associations from this privilege. More... | |
Package Functions | |
System::Collections::Generic::List< DataSource^ >^ | _GetLinkedDataSources () |
System::Collections::Generic::List< Device^ >^ | _GetLinkedDevices () |
System::Collections::Generic::List< User^ >^ | _GetLinkedUsers () |
int | _GetPriority () |
bool | _GetRestricted () |
System::Collections::Generic::List< DataSource^ >^ | _GetUnLinkedDataSources () |
System::Collections::Generic::List< Device^ >^ | _GetUnLinkedDevices () |
System::Collections::Generic::List< User^ >^ | _GetUnLinkedUsers () |
Package Attributes | |
VxSdk::IVxPrivilege * | _privilege |
Properties | |
bool | ExcludeRestricted [get, set] |
Gets or sets whether the privilege is excluded from the associated resources. More... | |
System::String^ | Id [get] |
Gets the unique identifier for this privilege. More... | |
bool | IsRestricted [get, set] |
Gets or sets whether the privilege is restricted to the associated resources. More... | |
System::Collections::Generic::List< DataSource^ >^ | LinkedDataSources [get] |
Gets the data sources associated with this privilege. More... | |
System::Collections::Generic::List< Device^ >^ | LinkedDevices [get] |
Gets the devices associated with this privilege. More... | |
System::Collections::Generic::List< User^ >^ | LinkedUsers [get] |
Gets the users associated with this privilege. More... | |
PermissionIds | PermissionId [get] |
Gets the identifier of the permission being granted by this privilege. More... | |
int | Priority [get, set] |
Gets or sets the relative priority for the privilege, from 1 to 250. Smaller numbers have higher priority than larger numbers (e.g. 1 is the highest priority). More... | |
ResourceTypes | ResourceType [get] |
Gets the resource type, if any, that can be linked to this privilege. More... | |
System::Collections::Generic::List< DataSource^ >^ | UnLinkedDataSources [get] |
Gets the data sources not associated with this privilege. More... | |
System::Collections::Generic::List< Device^ >^ | UnLinkedDevices [get] |
Gets the devices not associated with this privilege. More... | |
System::Collections::Generic::List< User^ >^ | UnLinkedUsers [get] |
Gets the users not associated with this privilege. More... | |
The Privilege class represents a specific permission that is given to a role.
Definition at line 15 of file Privilege.h.
|
strong |
Enumerator | |
---|---|
Unknown |
An error or unknown value was returned. |
ViewVideoSources |
View video sources. |
UsePtzMode |
Use PTZ mode. |
LockPtzMode |
Lock PTZ mode. |
CreateSystemBookmarks |
Create system bookmarks. |
DeleteSystemBookmarks |
Delete system bookmarks. |
LaunchSavedViewsRemotely |
Launch saved views remotely. |
ViewRecordedVideo |
View recorded video. |
ExportMediaClips |
Export media clips. |
DeleteExports |
Delete exports. |
UseMap |
Use map. |
ViewMaps |
View maps. |
PlaceCamerasOnMap |
Place cameras on map. |
ManageMapFiles |
Manage map files. |
AccessUserViews |
Access user views. |
ManageSystemViews |
Manage system views. |
AuditUserActivity |
Audit user activity. |
ViewEventHistory |
View event history. |
HandleEvents |
Handle events. |
ConfigureEvents |
Configure events. |
ManageUserAccounts |
Manage user accounts. |
ManageAggregatorAccount |
Manage aggregator account. |
AssignRolesToUsers |
Assign roles to users. |
ManageRoles |
Manage roles. |
ManageSystemTags |
Manage system tags. |
SetupEdgeDevices |
Setup edge devices. |
ConfigureMonitorWallDecoders |
Configure monitor wall decoders. |
ConfigureRecording |
Configure recording. |
Definition at line 17 of file Privilege.h.
|
strong |
Values that represent a type of resource.
Enumerator | |
---|---|
Unknown |
An error or unknown value was returned. |
DataSource |
A data source. |
Device |
A device. |
User |
A user. |
Definition at line 106 of file Privilege.h.
CPPCli::Privilege::Privilege | ( | VxSdk::IVxPrivilege * | vxPrivilege | ) |
|
inlinevirtual |
Destructor.
Definition at line 126 of file Privilege.h.
CPPCli::Privilege::!Privilege | ( | ) |
|
package |
Definition at line 101 of file Privilege.cpp.
|
package |
Definition at line 126 of file Privilege.cpp.
|
package |
Definition at line 151 of file Privilege.cpp.
|
package |
Definition at line 176 of file Privilege.cpp.
|
package |
Definition at line 183 of file Privilege.cpp.
|
package |
Definition at line 190 of file Privilege.cpp.
|
package |
Definition at line 215 of file Privilege.cpp.
|
package |
Definition at line 240 of file Privilege.cpp.
CPPCli::Results::Value CPPCli::Privilege::Link | ( | System::Collections::Generic::List< DataSource^ >^ | dataSources | ) |
Associate data sources with this privilege.
dataSources | A List containing the data sources to be added. |
CPPCli::Results::Value CPPCli::Privilege::Link | ( | System::Collections::Generic::List< Device^ >^ | devices | ) |
Associate devices with this privilege.
devices | A List containing the devices to be added. |
CPPCli::Results::Value CPPCli::Privilege::Link | ( | System::Collections::Generic::List< User^ >^ | users | ) |
Associate users with this privilege.
users | A List containing the data sources to be added. |
CPPCli::Results::Value CPPCli::Privilege::Refresh | ( | ) |
Refreshes this instances properties.
Definition at line 58 of file Privilege.cpp.
CPPCli::Results::Value CPPCli::Privilege::Unlink | ( | System::Collections::Generic::List< DataSource^ >^ | dataSources | ) |
Remove data source associations from this privilege.
dataSources | A List containing the data sources to be removed. |
CPPCli::Results::Value CPPCli::Privilege::Unlink | ( | System::Collections::Generic::List< Device^ >^ | devices | ) |
Remove device associations from this privilege.
devices | A List containing the devices to be removed. |
CPPCli::Results::Value CPPCli::Privilege::Unlink | ( | System::Collections::Generic::List< User^ >^ | users | ) |
Remove user associations from this privilege.
users | A List containing the users to be removed. |
|
package |
Definition at line 296 of file Privilege.h.
|
getset |
Gets or sets whether the privilege is excluded from the associated resources.
true
if the privilege is excluded, false
if not.
Definition at line 187 of file Privilege.h.
|
get |
Gets the unique identifier for this privilege.
The unique identifier.
Definition at line 197 of file Privilege.h.
|
getset |
Gets or sets whether the privilege is restricted to the associated resources.
true
if restricted, false
if not.
Definition at line 206 of file Privilege.h.
|
get |
Gets the data sources associated with this privilege.
A list of data sources.
Definition at line 216 of file Privilege.h.
|
get |
Gets the devices associated with this privilege.
A list of devices.
Definition at line 225 of file Privilege.h.
|
get |
Gets the users associated with this privilege.
A list of users.
Definition at line 234 of file Privilege.h.
|
get |
Gets the identifier of the permission being granted by this privilege.
The permission identifier.
Definition at line 243 of file Privilege.h.
|
getset |
Gets or sets the relative priority for the privilege, from 1 to 250. Smaller numbers have higher priority than larger numbers (e.g. 1 is the highest priority).
The priority.
Definition at line 253 of file Privilege.h.
|
get |
Gets the resource type, if any, that can be linked to this privilege.
The resource type.
Definition at line 263 of file Privilege.h.
|
get |
Gets the data sources not associated with this privilege.
A list of data sources.
Definition at line 272 of file Privilege.h.
|
get |
Gets the devices not associated with this privilege.
A list of devices.
Definition at line 281 of file Privilege.h.
|
get |
Gets the users not associated with this privilege.
A list of users.
Definition at line 290 of file Privilege.h.