Base solution for your next web application

Activities of "hole7"

Answer

Hi Hikalkan,

Thanks in advance

Hi Hikalkan,

In the Application/#/tenant/settings demo page, are you building it dynamically so that we don't modify code every time we're gonna add new setting?

Thanks

Answer

Hi hikalkan,

Thanks for your advice.

Please give me some specific domain business!

Let's say that I'm gonna follow module-zero designing, so in the user management page we don't show any tenant users, then I need to add one option called "Change admin permissions" to tenant management to modify the permissions for tenant admin user. Am I right?

Thanks, Ho Le

Question

Good evening everyone,

I'm working on user management scenario and having trouble when manage users and permissions with tenant.

I haven't had much experience with this stuff, so anyone please give me some advice!

Let's say, I'm a Host admin user (superadmin) and my site has 2 tenants - with two tenant admin user (admin1 and admin2).

So I have some questions for this stuff in the real world.

1/ Is the superadmin should(can) manage all host users and tenant users? 2/ If (1) is not, so, how can we change/set permissions for tenant admin to access some features? 3/ with module zero, could I show all system users if current logged in user is host user but when he/she change permissions for selected user, system can only show the appropriate permissions with editing user? I mean if editing user is another host user system will display host permissions for selecting otherwise if editing user is tenant user, system will only show tenant permissions.

Thanks everyone, Ho Le

Hi,

As my little knowledge of abp -zero, it's already have a table for this stuff,

SELECT * FROM [dbo].[AbpUserNotifications]

You can use State column which has two values: 0 and 1 correspoding with UserNotificationSate enum of abp framework

Thanks, Ho Le

Hi hikalkan,

For getting by string, I know how to do that but in my case I'm having a ILocalizableString object (which is DisplayName of notification definition) and I want to get back the localization string before sending back to client :)

By the way, I had solution, I injected ILocalizationContext and then use Localize extension

Thanks

Hi hikalkan,

I got it.

Thank you very much :)

Hi,

I'm confusing about LocalizableString class, that, why it's not implemented interface ILocalizableString?

Because, we're using ILocalizableString to define on setting for localization but when I'd like to get back the value I cannot use GetString of ILocalizationManager because it just accepts a parameter with type LocalizableString.

Please see image in attached. [http://pasteboard.co/2CB1iVcu.png])

Thanks Ho Le

Hi,

No problems

I did install Hangfire.SqlServer (1.5.3.0) and setting dependency on AbpHangireModule too, but don't know why it's not working.

Let me try to reinstall it :) hope somehow it works :)

Thanks a lot

Hi,

I'd like to subscribe to a general notification like 'NewUserCreated'

I know that firstly I (admin user) must subscribe to that notification. Then, when there is a new user created, I will receive a notification.

I can figure how to publish a notification in this case ( call Publish notification CreateUser function of UserService, for example)

But, I'm confusing where should I put the code for subscribe to that Notification?

Anyone please help me!

I saw from the document:

public class MyService : ITransientDependency { private readonly INotificationSubscriptionManager _notificationSubscriptionManager;

public MyService(INotificationSubscriptionManager notificationSubscriptionManager)
{
    _notificationSubscriptionManager = notificationSubscriptionManager;
}

//Subscribe to a general notification
public async Task Subscribe_SentFrendshipRequest(int? tenantId, long userId)
{
    await _notificationSubscriptionManager.SubscribeAsync(tenantId, userId, "SentFrendshipRequest");    
}

//Subscribe to an entity notification
public async Task Subscribe_CommentPhoto(int? tenantId, long userId, Guid photoId)
{
    await _notificationSubscriptionManager.SubscribeAsync(tenantId, userId, "CommentPhoto", new EntityIdentifier(typeof(Photo), photoId));   
}

}

But with my case I don't think of any service that will appropriate for a general subscription like that. And when should I call the Subscribe_SentFriendshipRequest, for example?

Thank you

Showing 1 to 10 of 21 entries