コード例 #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");
 }
コード例 #5
0
 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");
 }
コード例 #8
0
 public CurrentUserUpdatePermission()
 {
     EntityDefinition = new CurrentUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Current User");
 }
コード例 #9
0
 public NonCofoundryUserUpdatePermission()
 {
     EntityDefinition = new NonCofoundryUserEntityDefinition();
     PermissionType   = CommonPermissionTypes.Update("Non Cofoundry Users");
 }