示例#1
0
 public WebDirectoryUpdatePermission()
 {
     EntityDefinition = new WebDirectoryEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Web Directories");
 }
        public IEnumerable <IPermissionApplication> GetPermissions(UpdateUnstructuredDataDependenciesCommand 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.Update("Entity"));

            if (permission != null)
            {
                yield return(permission);
            }
        }
示例#3
0
 public RewriteRuleUpdatePermission()
 {
     EntityDefinition = new RewriteRuleEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Rewrite Rules");
 }
示例#4
0
 public PageTemplateUpdatePermission()
 {
     EntityDefinition = new PageTemplateEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Page Templates");
 }
 public DocumentAssetUpdatePermission()
 {
     EntityDefinition = new DocumentAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Document Assets");
 }
示例#6
0
 public CustomEntityUpdatePermission(ICustomEntityDefinition customEntityDefinition)
 {
     EntityDefinition = new CustomEntityDynamicEntityDefinition(customEntityDefinition);
     PermissionType   = CommonPermissionTypes.Update(customEntityDefinition.NamePlural);
 }
示例#7
0
 public ImageAssetUpdatePermission()
 {
     EntityDefinition = new ImageAssetEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Image Assets");
 }
 public CurrentUserUpdatePermission()
 {
     EntityDefinition = new CurrentUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Current User");
 }
示例#9
0
 public NonCofoundryUserUpdatePermission()
 {
     EntityDefinition = new NonCofoundryUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Non Cofoundry Users");
 }