예제 #1
0
 public RoleDeletePermission()
 {
     EntityDefinition = new RoleEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Roles");
 }
예제 #2
0
 public DocumentAssetDeletePermission()
 {
     EntityDefinition = new DocumentAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Document Assets");
 }
예제 #3
0
        public IEnumerable <IPermissionApplication> GetPermissions(DeleteUnstructuredDataDependenciesCommand command)
        {
            var entityDefinition = _entityDefinitionRepository.GetByCode(command.RootEntityDefinitionCode);

            EntityNotFoundException.ThrowIfNull(entityDefinition, command.RootEntityDefinitionCode);

            // Try and get a delete permission for the root entity.
            var permission = _permissionRepository.GetByEntityAndPermissionType(entityDefinition, CommonPermissionTypes.Delete("Entity"));

            if (permission != null)
            {
                yield return(permission);
            }
        }
 public PageDirectoryDeletePermission()
 {
     EntityDefinition = new PageDirectoryEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Page Directories");
 }
예제 #5
0
 public NonCofoundryUserDeletePermission()
 {
     EntityDefinition = new NonCofoundryUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Non Cofoundry Users");
 }
 public CustomEntityDeletePermission(ICustomEntityDefinition customEntityDefinition)
 {
     EntityDefinition = new CustomEntityDynamicEntityDefinition(customEntityDefinition);
     PermissionType   = CommonPermissionTypes.Delete(customEntityDefinition.NamePlural);
 }
 /// <summary>
 /// Constructor used internally by AuthorizePermissionAttribute.
 /// </summary>
 public CustomEntityDeletePermission()
 {
     PermissionType = CommonPermissionTypes.Delete("Not Set");
 }
 public ImageAssetDeletePermission()
 {
     EntityDefinition = new ImageAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Image Assets");
 }
예제 #9
0
 public CurrentUserDeletePermission()
 {
     EntityDefinition = new CurrentUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Current User");
 }
 public PageTemplateDeletePermission()
 {
     EntityDefinition = new PageTemplateEntityDefinition();
     PermissionType   = CommonPermissionTypes.Delete("Page Templates");
 }