public CustomEntityReadPermission(ICustomEntityDefinition customEntityDefinition)
 {
     EntityDefinition = new CustomEntityDynamicEntityDefinition(customEntityDefinition);
     PermissionType   = CommonPermissionTypes.Read(customEntityDefinition.NamePlural);
 }
Exemplo n.º 2
0
 public RewriteRuleReadPermission()
 {
     EntityDefinition = new RewriteRuleEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Rewrite Rules");
 }
Exemplo n.º 3
0
 public CofoundryUserReadPermission()
 {
     EntityDefinition = new UserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Cofoundry Users");
 }
 /// <summary>
 /// Constructor used internally by AuthorizePermissionAttribute.
 /// </summary>
 public CustomEntityReadPermission()
 {
     PermissionType = CommonPermissionTypes.Read("Not Set");
 }
 public ImageAssetReadPermission()
 {
     EntityDefinition = new ImageAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Image Assets");
 }
Exemplo n.º 6
0
 public PageTemplateReadPermission()
 {
     EntityDefinition = new PageTemplateEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Page Templates");
 }
Exemplo n.º 7
0
 public PageDirectoryReadPermission()
 {
     EntityDefinition = new PageDirectoryEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Page Directories");
 }
Exemplo n.º 8
0
        public IEnumerable <IPermissionApplication> GetPermissions(GetEntityDependencySummaryByRelatedEntityIdRangeQuery query)
        {
            var entityDefinition = _entityDefinitionRepository.GetRequiredByCode(query.EntityDefinitionCode);

            if (entityDefinition == null)
            {
                yield break;
            }

            var permission = _permissionRepository.GetByEntityAndPermissionType(entityDefinition, CommonPermissionTypes.Read("Entity"));

            if (permission != null)
            {
                yield return(permission);
            }
        }
Exemplo n.º 9
0
 public DocumentAssetReadPermission()
 {
     EntityDefinition = new DocumentAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Read("Document Assets");
 }