Interface ISentryPlugin
Interface that has to be implemented by sentry plug-ins.
Sentry plug-ins also needs to be declared with attribute SentryPluginAttribute.
Namespace: SuperOffice.CRM.Security
Assembly: SoDataBase.dll
Syntax
public interface ISentryPlugin
Methods
Init(Sentry)
Called during the construction of the sentry.
Declaration
void Init(Sentry sentry)
Parameters
Type | Name | Description |
---|---|---|
Sentry | sentry | Instance of Sentry this instance of the plug-in is working with. |
Remarks
Construction of the sentry has not yet been completed when the init method is called.
The only property that is permitted to access this early is SentryQueryInfo.
ModifyFieldRights(FieldRights)
Called by the sentry every time it has completed the calculation of field rights.
This is done after table rights has been calculated.
Modify the content of the rights collection as needed.
Declaration
void ModifyFieldRights(FieldRights rights)
Parameters
Type | Name | Description |
---|---|---|
FieldRights | rights | Rights collection to modify. |
ModifyTableRights(TableRights)
Called by the sentry every time it has completed the calculation of table rights.
Modify the content of the rights collection as needed.
Declaration
void ModifyTableRights(TableRights rights)
Parameters
Type | Name | Description |
---|---|---|
TableRights | rights | Rights collection to modify. |