Fórum

Needed: END TO END EXAMPLE of permissions and JSP

Frustrated Developer, modificado 12 Anos atrás.

Needed: END TO END EXAMPLE of permissions and JSP

New Member Mensagem: 1 Data de Entrada: 07/06/11 Postagens Recentes
Here's what I am trying to do, and after days of dealing with this undocumented stuff, am ready to throw up my hands.

I want to be able to hide parts of a portlet if someone has a certain role, e.g. guest cannot see parts X, Y and Z.

boolean hasPermission(long groupId,
String name,
long primKey,
String actionId) <----- This is not documentation, not when you don't explain what groupId, name, primKey, and actionId is

Ditto any "blog post" where someone says

"Oh! That's easy, you just say

<c:if "<%=permissionChecker.hasPermission(groupId, name, primKey, actionid) %>

Which is basically the same as the previous.

I'd like to see a complete example that can be typed in to an editor and run, in Liferay 6.

There needs to be more sample projects for this stuff than "Hello World".