public ImageAssetUpdatePermission() { EntityDefinition = new ImageAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Image Assets"); }
public DocumentAssetUpdatePermission() { EntityDefinition = new DocumentAssetEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Document Assets"); }
public CurrentUserUpdatePermission() { EntityDefinition = new CurrentUserEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Current User"); }
public CustomEntityUpdatePermission(ICustomEntityDefinition customEntityDefinition) { EntityDefinition = new CustomEntityDynamicEntityDefinition(customEntityDefinition); PermissionType = CommonPermissionTypes.Update(customEntityDefinition.NamePlural); }
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); } }
/// <summary> /// Constructor used internally by AuthorizePermissionAttribute. /// </summary> public CustomEntityUpdatePermission() { PermissionType = CommonPermissionTypes.Update("Not Set"); }
public CofoundryUserUpdatePermission() { EntityDefinition = new UserEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Cofoundry Users"); }
public PageTemplateUpdatePermission() { EntityDefinition = new PageTemplateEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Page Templates"); }
public RoleUpdatePermission() { EntityDefinition = new RoleEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Roles"); }
public PageDirectoryUpdatePermission() { EntityDefinition = new PageDirectoryEntityDefinition(); PermissionType = CommonPermissionTypes.Update("Page Directories"); }