Role Class |
Namespace: SOWIApp.Administrator
The Role type exposes the following members.
Name | Description | |
---|---|---|
AppName |
AppName is Module name resp class name
(Inherited from AppStandardDataItemClass.) | |
ClientID |
Gives client ID by user of the app used. Set of UserThisApp (Inherited from AppStandardDataItemClass.) | |
ConnectionString |
Gives database connection string of the app used
(Inherited from ConnectorDataItemClass.) | |
DataGridView |
Gives translated standard DataGridView with this properties
AppName,
TableName,
UserName and
ClientID (Inherited from AppStandardDataItemClass.) | |
DB |
Database object. Sets with method SetDB.
(Inherited from ConnectorDataItemClass.) | |
DictionaryUI |
Gives Dictionary for UI.
(Inherited from AppStandardDataItemClass.) | |
LanguageOut |
Gives language for UI from User. Can't setting then set default DE
(Inherited from AppStandardDataItemClass.) | |
NameUnchanged |
Flag no change value in field Name Default: false
(Inherited from ConnectorDataItemClass.) | |
NameUnique |
Flag whether Name unique Default: false
(Inherited from ConnectorDataItemClass.) | |
Permissions |
Gives permissions by User and Module
(Inherited from AppStandardDataItemClass.) | |
Provider |
Gives data provider type back.
(Inherited from ConnectorDataItemClass.) | |
RecordStandard |
Which data items read from database? All, active or archived records.
(Inherited from ConnectorDataItemClass.) | |
SortDirectionStandard |
Standard sort direction by sort field for example method GeAll
(Inherited from ConnectorDataItemClass.) | |
SortFieldStandard |
Standard sort field for example method GeAll
(Inherited from ConnectorDataItemClass.) | |
TableName |
usually TableName equal AppName
(Inherited from AppStandardDataItemClass.) | |
Token |
Session token, use for check permission and information for User name
(Inherited from AppStandardDataItemClass.) | |
UserName |
Gives user name of the app used
(Inherited from ConnectorDataItemClass.) | |
UserThisApp |
Gives user data item (SOWIData.Management.User) of the app used. The user is managed by UserName or set by constructor
(Inherited from AppStandardDataItemClass.) | |
XML |
XML object. Sets with method SetDB
(Inherited from ConnectorDataItemClass.) |
Name | Description | |
---|---|---|
Count(Records) |
Gives the count by all, active or archive data records
(Inherited from ConnectorDataItemClass.) | |
Count(String, Records) |
Gives the count by all, active or archive data records and filtering by Name
(Inherited from ConnectorDataItemClass.) | |
Delete(ListInt32) |
Delete all data items
(Inherited from ConnectorDataItemClass.) | |
Delete(Int32) |
Delete a data item - set Status = Delete (except XML provider)
(Inherited from ConnectorDataItemClass.) | |
Delete(String) |
Delete data item by Name
(Inherited from ConnectorDataItemClass.) | |
Equals | (Inherited from Object.) | |
Exist(Int32) |
Check exist data item by ID (hits can be multiple)
(Inherited from ConnectorDataItemClass.) | |
Exist(String) |
Check exist data item by Name (can be multiple)
(Inherited from ConnectorDataItemClass.) | |
ExistOne |
Check exist one data item by Name
(Inherited from ConnectorDataItemClass.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetAll |
Get data list by standards value without parameter.
(Inherited from ConnectorDataItemClass.) | |
GetAll(Records) |
Get data list by Records (all, active, archived)
(Inherited from ConnectorDataItemClass.) | |
GetAll(String, SortDirections) |
Get data list details with sort parameters
(Inherited from ConnectorDataItemClass.) | |
GetAll(String, Operators, Object) |
Get data list by search parameter.
(Inherited from ConnectorDataItemClass.) | |
GetAll(String, SortDirections, String, Operators, Object, Records) |
Get data list with all parameters.
(Inherited from ConnectorDataItemClass.) | |
GetByID |
Gives one data item by ID
(Inherited from ConnectorDataItemClass.) | |
GetByName |
Data item search by field Name
(Inherited from ConnectorDataItemClass.) | |
GetByRoleGroup | ||
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetList |
Gives raw data list and is basis for all data processing
(Overrides ConnectorDataItemClassGetList.) | |
GetRole |
Gives Roles data list include Permissions. Set User Roles (optional).
| |
GetRoleGroups |
Gives a Role Group list based on type Data Standard and filter without read only
| |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
GetView(ListViewConfig, DictionaryString, String) |
Gives a list of data by settings of ListView Config.
The list is divided into pages (paging).
(Inherited from AppStandardDataItemClass.) | |
GetView(ListViewConfig, String, DictionaryString, String) |
Data list configured by List View Config
(Inherited from AppStandardDataItemClass.) | |
Import(DataTable) |
Data import from a data table
(Inherited from AppStandardDataItemClass.) | |
Import(String) |
Data import from a CSV file. First row is column label.
(Inherited from AppStandardDataItemClass.) | |
Import(Stream, String, String) |
Data import from a stream with CSV structure. First row is column label.
(Inherited from AppStandardDataItemClass.) | |
ImportItem |
Import a data item
(Inherited from AppStandardDataItemClass.) | |
Initialize |
Database setting for use module
(Inherited from AppStandardDataItemClass.) | |
Insert(ListDataItemClass) |
Insert list of data items
(Inherited from ConnectorDataItemClass.) | |
Insert(DataItemClass) |
Insert data item
(Inherited from ConnectorDataItemClass.) | |
InsertOrUpdateByName |
If not exists data record by Name then call method Insert.
If exists data record unique then call method Update.
If more data records then trigger an exception DataFoundMoreAsOne
(Inherited from ConnectorDataItemClass.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDBActionDone |
Delete Permission and UserRole
(Overrides AppStandardDataItemClassOnDBActionDone(Object, EventArgDataDataItemClass).) | |
OnDBActionPermission |
Permission handling
(Inherited from AppStandardDataItemClass.) | |
OnDBActionPrepare |
Data prepare before database handling
(Inherited from AppStandardDataItemClass.) | |
OnDBActionPrepareApp |
Set Client ID
(Inherited from AppStandardDataItemClass.) | |
OnValidating |
Validating for required fields and can override
(Inherited from AppStandardDataItemClass.) | |
PermissionCheck(CRUD) |
Check Permission CRUD and Session Token of this App and User
(Inherited from AppStandardDataItemClass.) | |
PermissionCheck(CRUD) |
Check Permission CRUD and Session Token of this App and User
(Inherited from AppStandardDataItemClass.) | |
SetBasicRolesPermission |
Sets basic Roles and Permissions per Client. When not exists.
| |
SetDB |
Set database
(Overrides ConnectorDataItemClassSetDB.) | |
SetUserRole |
Set User Role
| |
SetUserThisApp |
Setting object property UserThisApp (SOWIData.Management.User) by UserName
(Inherited from AppStandardDataItemClass.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
Update(ListDataItemClass) |
Data list update
(Inherited from ConnectorDataItemClass.) | |
Update(DataItemClass) |
Data item update
(Inherited from ConnectorDataItemClass.) | |
Upload(String) |
Data content upload - not implemented
(Inherited from AppStandardDataItemClass.) | |
Upload(DataItemClass, FileContent) |
Save file data to data item. This method can be overwrite.
(Inherited from AppStandardDataItemClass.) | |
Validate |
Validate data item
(Inherited from ConnectorDataItemClass.) | |
ValidateEventArgData | (Inherited from AppStandardDataItemClass.) | |
ValidateRequired |
Validate with Data Grid View (Required)
(Inherited from AppStandardDataItemClass.) | |
Write |
Write a document. This not implemented.
(Inherited from AppStandardDataItemClass.) |
Name | Description | |
---|---|---|
DBActionAfter |
Triggered by methods Get*, Insert, Update and Delete
(Inherited from ConnectorDataItemClass.) | |
DBActionBefore |
Triggered by methods Get*, Insert, Update and Delete
(Inherited from ConnectorDataItemClass.) | |
DBActionDone |
Triggered by methods Get*, Insert, Update and Delete
(Inherited from ConnectorDataItemClass.) | |
DBActionPermission |
Triggered by methods Get*, Insert, Update and Delete
(Inherited from ConnectorDataItemClass.) | |
DBActionPrepare |
Triggered by methods Get*, Insert, Update and Delete
(Inherited from ConnectorDataItemClass.) | |
Validating |
Triggered by method Validate
(Inherited from ConnectorDataItemClass.) |