Fórum

How to provide Define Permissions in liferay 6.1

thumbnail
Satish Babu Anupoju, modificado 11 Anos atrás.

How to provide Define Permissions in liferay 6.1

Junior Member Postagens: 79 Data de Entrada: 20/02/11 Postagens Recentes
In Liferay 6.1 I have created one role named as "Demo" and i want to set the define permissions for my custom portlet like "SchedularPortlet".

When I am selecting my custom portlet (Schedular) it's not giving any options.

For better understanding please go through with attached screen shot.

Please guide me how to make access define permissions in liferay 6.1
thumbnail
ganesh sahu, modificado 11 Anos atrás.

RE: How to provide Define Permissions in liferay 6.1

Junior Member Postagens: 73 Data de Entrada: 24/07/12 Postagens Recentes
Satish Babu Anupoju:
In Liferay 6.1 I have created one role named as "Demo" and i want to set the define permissions for my custom portlet like "SchedularPortlet".

When I am selecting my custom portlet (Schedular) it's not giving any options.

For better understanding please go through with attached screen shot.

Please guide me how to make access define permissions in liferay 6.1



I am quite not sure.. but i think we need to define permissions for the custom portlet ie. Scheduler portlet in your case.

we can define portlet.properties and a permissions file called default.xml.

portlet.properties can be created in source folder....
default.xml will be placed in resource-actions folder in source folder.

In portlet.properties
resource.actions.configs=resource-actions/default.xml

in default.xml
<?xml version="1.0" encoding="UTF-8"?>
<resource-action-mapping>
<portlet-resource>
<portlet-name>product-admin</portlet-name>
<permissions>
<supports>
<action-key>ADD_PRODUCT</action-key>
<action-key>VIEW</action-key>
</supports>
<community-defaults>
<action-key>VIEW</action-key>
</community-defaults>
<guest-defaults>
<action-key>VIEW</action-key>
</guest-defaults>
<guest-unsupported>
<action-key>ADD_PRODUCT</action-key>
</guest-unsupported>
</permissions>
</resource-action-mapping>
please have a look here........
liferay permissions and security

Please correct me ....if i am wrong.