Sitefinity CMS

Creating Security Classes Send comments on this topic.
See Also
Developing with Sitefinity > Programming Security > Creating Security Classes

Glossary Item Box

The Telerik.Security namespace provides base classes and Web controls that allow working with security settings that are shared with the main Sitefinity administrative user interface. Implementators of custom modules will need this namespace in order to provide security settings for their modules through Sitefinity's administration.

 

Creating a PermissionSettings Class

Every securable module should contain a PermissionSettings class that inherits from the Telerik.Security.SecuredStatic class. This class provides the overall interface between the securable module and the Sitefinity security system.

 

Creating a Permission Class

Every securable module should contain a Permission class that inherits from the Telerik.Security.AccessPermission class. This class defines the actual permissions for the module and provides methods for checking permissions.

 

Creating a Rights Class

Every securable module should contain a Rights class that implements Telerik.Security.IAccessPermission. This class defines the properties implemented by permissions. Typically, it is implemented with two partial classes, one that uses the PermissionSettings class to handle the Parent property and one that uses Nolics to handle the other properties.

 

Nolics Copy Code
namespace TelerikSample.Discussions;
dbclass DiscussionsRights [TableName = "Discussions_Rights"]{    PRIMARY KEY string Application[50], string Role[50];    INT GRANT;    INT Deny;}

query GetRights
FOR DiscussionsRights [ProcedureName = "Discussions_GetRights"] {
   string Application[50]
= Application;
}

 

See Also