예제 #1
0
        public override void SetNotifications(INotificationDefinitionContext context)
        {
            context.Manager.Add(
                new NotificationDefinition(
                    AppNotificationNames.NewUserRegistered,
                    displayName: L("NewUserRegisteredNotificationDefinition"),
                    permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_Administration_Users)
                    )
                );

            context.Manager.Add(
                new NotificationDefinition(
                    AppNotificationNames.NewTenantRegistered,
                    displayName: L("NewTenantRegisteredNotificationDefinition"),
                    permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_Tenants)
                    )
                );
        }
        public override void SetNotifications(INotificationDefinitionContext context)
        {
            context.Manager.Add(
                new NotificationDefinition(
                    AppNotificationNames.NewUserRegistered,
                    displayName: L("NewUserRegisteredNotificationDefinition"),
                    permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_Administration_Users)
                    )
                );

            context.Manager.Add(
                new NotificationDefinition(
                    AppNotificationNames.NewTenantRegistered,
                    displayName: L("NewTenantRegisteredNotificationDefinition"),
                    permissionDependency: new SimplePermissionDependency(AppPermissions.Pages_Tenants)
                    )
                );
        }
예제 #3
0
 /// <summary>
 /// Used to add/manipulate notification definitions.
 /// </summary>
 /// <param name="context">Context</param>
 public abstract void SetNotifications(INotificationDefinitionContext context);
 public abstract void SetNotifications(INotificationDefinitionContext context);
예제 #5
0
 public abstract void Define(INotificationDefinitionContext context);
        public override void Define(INotificationDefinitionContext context)
        {
            var tenantsGroup = context.AddGroup(
                TenantNotificationNames.GroupName,
                L("Notifications:MultiTenancy"),
                false);

            tenantsGroup.AddNotification(
                TenantNotificationNames.NewTenantRegistered,
                L("Notifications:NewTenantRegisterd"),
                L("Notifications:NewTenantRegisterd"),
                notificationType: NotificationType.System,
                lifetime: NotificationLifetime.OnlyOne,
                allowSubscriptionToClients: false
                )
            .WithProviders();

            var usersGroup = context.AddGroup(
                UserNotificationNames.GroupName,
                L("Notifications:Users"));

            usersGroup.AddNotification(
                UserNotificationNames.WelcomeToApplication,
                L("Notifications:WelcomeToApplication"),
                L("Notifications:WelcomeToApplication"),
                notificationType: NotificationType.System,
                lifetime: NotificationLifetime.OnlyOne,
                allowSubscriptionToClients: true);

            var imGroup = context.AddGroup(
                MessageServiceNotificationNames.IM.GroupName,
                L("Notifications:IM"));

            imGroup.AddNotification(
                MessageServiceNotificationNames.IM.FriendValidation,
                L("Notifications:FriendValidation"),
                L("Notifications:FriendValidation"),
                notificationType: NotificationType.System,
                lifetime: NotificationLifetime.Persistent,
                allowSubscriptionToClients: true);
            imGroup.AddNotification(
                MessageServiceNotificationNames.IM.NewFriend,
                L("Notifications:NewFriend"),
                L("Notifications:NewFriend"),
                notificationType: NotificationType.System,
                lifetime: NotificationLifetime.Persistent,
                allowSubscriptionToClients: true);
            imGroup.AddNotification(
                MessageServiceNotificationNames.IM.JoinGroup,
                L("Notifications:JoinGroup"),
                L("Notifications:JoinGroup"),
                notificationType: NotificationType.System,
                lifetime: NotificationLifetime.Persistent,
                allowSubscriptionToClients: true);
            imGroup.AddNotification(
                MessageServiceNotificationNames.IM.ExitGroup,
                L("Notifications:ExitGroup"),
                L("Notifications:ExitGroup"),
                notificationType: NotificationType.System,
                lifetime: NotificationLifetime.Persistent,
                allowSubscriptionToClients: true);
            imGroup.AddNotification(
                MessageServiceNotificationNames.IM.DissolveGroup,
                L("Notifications:DissolveGroup"),
                L("Notifications:DissolveGroup"),
                notificationType: NotificationType.System,
                lifetime: NotificationLifetime.Persistent,
                allowSubscriptionToClients: true);
        }
 public override void Define(INotificationDefinitionContext context)
 {
     context.Add(new NotificationDefinition(AbpExceptionHandlingNotificationNames.NotificationName));
 }
예제 #8
0
 public override void SetNotifications(INotificationDefinitionContext context)
 {
 }
 public override void Define(INotificationDefinitionContext context)
 {
     context.Add(new NotificationDefinition("DefinitionANotification"));
 }
        public override void SetNotifications(INotificationDefinitionContext context)
        {
//            permissionDependency: new SimplePermissionDependency("App.Pages.UserManagement")
            context.Manager.Add(new NotificationDefinition(NotificationNames.AssignTaskItem));
            context.Manager.Add(new NotificationDefinition(NotificationNames.LinkUrl));
        }