Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
ashish pradhan
user
12. April 2012 08:41
Antwort

ashish pradhan

Rang: Junior Member

Nachrichten: 54

Eintrittsdatum: 17. März 2012

Neue Beiträge

Hi,


1. i have a doubt that i want to keep three different users like HR,MARKETING,FINANCE. when the 3 user login they will see all the pages means Add button,manage all the pages and also work on that.but when i am creating user after sign in by our own user,it is not showing all the pages like Add button.how we can implement so that all the users can visible all the pages and work on that like liferay default user test.

2.as we know liferay have default user,when i am creating my account like xxxx@gmail.com. i can sign in but after sign in i am giving default liferay username,it is not opening.why????

can anybody answer me asap

Thanks in advance
Hitoshi Ozawa
RE: user
12. April 2012 16:24
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

#
# Input a list of default role names separated by \n characters that are
# associated with newly created users.
#
admin.default.role.names=Power User\nUser

2.as we know liferay have default user,when i am creating my account like xxxx@gmail.com. i can sign in but after sign in i am giving default liferay username,it is not opening.why????


Sorry. Need better explanation.
You can sign in using account like xxx@gmail.com?
When you sign in, you get default liferay username? Like what?
You can't sign in with liferay username? What's the error message?
Dhrutika Vyas
RE: user
12. April 2012 23:58
Antwort

Dhrutika Vyas

Rang: Expert

Nachrichten: 435

Eintrittsdatum: 9. Februar 2009

Neue Beiträge

Hi ,

For number 1 You can create 3 different role.

In your theme check if user has that particlaur role(HR,Admin,etc.) using Role API's and then display required links based on user role.

Regards,
Dhrutika
ashish pradhan
RE: user
14. April 2012 08:40
Antwort

ashish pradhan

Rang: Junior Member

Nachrichten: 54

Eintrittsdatum: 17. März 2012

Neue Beiträge

In your theme check if user has that particlaur role(HR,Admin,etc.) using Role API's and then display required links based on user role.

Can You Please Explain Clearly What you have written above
ashish pradhan
RE: user
14. April 2012 09:49
Antwort

ashish pradhan

Rang: Junior Member

Nachrichten: 54

Eintrittsdatum: 17. März 2012

Neue Beiträge

#
# Input a list of default role names separated by \n characters that are
# associated with newly created users.
#
admin.default.role.names=Power User\nUser

i can't understand .please explain briefly.

But in my project i need to configure Active directory in portal .here i want the groupwise user so that i need to login in mailportlet by different different groupwise user.

Thanks in advance
Hitoshi Ozawa
RE: user
14. April 2012 19:05
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7952

Eintrittsdatum: 23. März 2010

Neue Beiträge

Sorry, I think I'm not understanding you. I thought you just wanted to change the default user roles.

What do you mean by "groupwise user"?

You've integrated Active Directory with Liferay. Are you also getting organizational information from Active Directory as well?

I'm not sure what you want with mail portlet. Where does mail portlet fit in?
Dhrutika Vyas
RE: user
15. April 2012 11:32
Antwort

Dhrutika Vyas

Rang: Expert

Nachrichten: 435

Eintrittsdatum: 9. Februar 2009

Neue Beiträge

Hi,

You can add conditions in theme..from where your add,manage pages options are coming.

You can check role using roleservice API's

#set ($roleLocalService = $serviceLocator.findService("com.liferay.portal.service.RoleLocalService"))
#set ($userGroupRoleLocalService = $serviceLocator.findService("com.liferay.portal.service.UserGroupRoleLocalService"))
#set ($hrrole = $roleLocalService.getRole($user.getCompanyId(),"Your custom rolename"))
#if($hrrole )
#set ($hasHRRole = $userGroupRoleLocalService.hasUserGroupRole($user.getUserId(),$group_id,$hrrole .getRoleId()))
#end

whenever you want to check user has particular role use this hasHRRole ,it will return you boolean value.

I hope this helps you.

Regards,
Dhrutika
ashish pradhan
RE: user
16. April 2012 04:56
Antwort

ashish pradhan

Rang: Junior Member

Nachrichten: 54

Eintrittsdatum: 17. März 2012

Neue Beiträge

Hi,

I have created the different User to login the mailportlet. and those User i have pickedup from Database but thecompany dont want like this way.
They have said me to do All the User should be picked up from ActiveDirectory in portal .so i need to configure the ActiveDirectory . Actually i dont have idea where i have to Configure ActiveDirectory From ActiveDirectory only the User should be picked up and the User have their own LoginId to login mailportlet. Because in company we already have many User that much User i cant create . So all the User should be available in ActiveDirctory From ActiveDirectory only i have to pickup all the User no neeed to create again User .

For Example- If one User joined newly in company he will be available in active dirctory .no need to create again that User to me.

But The User should not come from Database i will come From ActiveDirectory because in comapany we already have all user in Activedirectory no need to create again User to me and they have their Own LoginId.



Another thing when i am connecting LDAP with Liferay has failed to connect to the LDAP server. Please check your configuration and verify that the LDAP server is running.


Please Help to configure that one
Can you Please give me some ideas