{CompanyName} FlexyGo

SecurityController..::..SetSecurity Method

Sets the security for given roles or users to diferent objects in the applicaion. Only Administrators

Namespace:  FLEXYGO.Controlers.UI
Assembly:  FlexyGo (in FlexyGo.dll)

Syntax


[BlacklistCheckAttribute]
[CompressAttribute]
public ActionResult SetSecurity(
	string SecurityType,
	string SecurityKey,
	string SecurityKey2,
	string SecurityItem,
	string SecurityItemValue,
	string SecurityId
)
<BlacklistCheckAttribute> _
<CompressAttribute> _
Public Function SetSecurity ( _
	SecurityType As String, _
	SecurityKey As String, _
	SecurityKey2 As String, _
	SecurityItem As String, _
	SecurityItemValue As String, _
	SecurityId As String _
) As ActionResult

Parameters

SecurityType
Type: String
Type of the security.
SecurityKey
Type: String
The primary key.
SecurityKey2
Type: String
The Primary key second value.
SecurityItem
Type: String
The security item to be set (CanEdit, CanView, CanPrint...).
SecurityItemValue
Type: String
The security item value (true or false).
SecurityId
Type: String
The security User or Role identifier.

Return Value

ActionResult.

Exceptions


ExceptionCondition
Exception