Showing posts with label Roles and Permission. Show all posts
Showing posts with label Roles and Permission. Show all posts

Friday, March 23, 2018

Change Permission of a File/Document by Groovy in Lilferay


In the previous blog we Change the permission of a file to guest programmatically in this blog we change the permission by groovy script. 

So Lets start this:-
Continue Reading...

Programmatically Change Permission of a File/Document in Lilferay


Sometimes we need to change the permission of a document to Guest in Liferay. For this we can change this by Groovy Script or programatically. Today we will change this programatically:-

So lets start this:-
Continue Reading...

Friday, June 19, 2015

Create Custom Permission and Show/Hide Content on the Basis of Permission by Using Permission Checker


Today we will discuss How to create our own Custom permission in Liferay and then Show or Hide content on the basis of Permission associated with the User. Also we create model level permission so that Permission can be apply to a particular Model. Before reading this you must know how to create Services for this you can read my previous blog Service Builder in Detail and how to create Role and assign user to that role for this you may refer Role Creation.
Continue Reading...

Thursday, June 18, 2015

Permission in Liferay


Today we will discuss Permission in Liferay. Permission in Liferay is a Complex topic itself so today we discuss just basic of permission System. In Liferay we have  :-
  • Users
  • One User can have multiple roles.Ex- Admin,Guest,Owner, PowerUser etc.
  • One Role can have multiple permissions.Ex- View,Add Site,Add Role,Add Users etc.
Continue Reading...

Saturday, June 6, 2015

Control Panel Permission in Liferay


Today we will discuss how to handle Control Panel Permission in Liferay.Before reading this you must know how to create a particular role and how to assign Users to it.For this you may refer my previous post here.

Today we will create a User that can do all the control panel task except he can not create Sites and Roles.




Continue Reading...

Monday, April 6, 2015

Role Checking in Liferay for Show/Hide Content

Show/Hide Content on basis of Role in Liferay


Today we will discuss how to Show/Hide content on the basis of role or we can say that how we perform Role checking in liferay. For achieving this we create two roles teacher and student then we create two users Student and Teacher and assign role accordingly.Then finally Check roles and show/hide content. Lets start step by step:-

Continue Reading...

Total Pageviews

Number Of Unique Visitor

Free counters!