Visualização combinada Visão plana Exibição em árvore
Tópicos [ Anterior | Próximo ]
toggle
Dan Raz
Adding Application
7 de Abril de 2008 10:18
Resposta

Dan Raz

Ranking: New Member

Mensagens: 8

Data de entrada: 2 de Abril de 2008

Mensagens recentes

Hi,
I've been trying to find documentation for the following question, but was unable to find anything in the forums, wiki, or the pdf manuals.

I would like to deploy applications/plugin's (not sure what the difference it), but also have a bit more control than I see I currently have. When I add a plugin through the plugin interface installer, Liferay only asks me for a WAR file. Then I automatically see the plugin in the list of Applications when I select "Add Application" from the drop down menu on the top right. The JSP portlet (plug in) I have uploaded as a WAR appears under the "undefined" section of the Application list.

I need to be able to do the following things:
1) Be able to categorize the plugin in the Application list (and not have it as "undefined"). Ie, there are predefined categories (Admin, CMS, etc), but I'd like to create my own.
2) Be able to control what kinds of users see what applications/plugins in that application list. If I, for example, create a category named "Dan" (instead of "undefined"), I would need to restrict some users to not see that there is a category named "Dan," and other users to see that "Dan" as a category exists, but only see some applications that are allowed for them to use.

In short, I do not see an interface that allows one to do the aforementioned tasks. Could anybody point me to documentation/other info on these matters?

Also, I've looked at
portlet-custom.xml
liferay-portlet.xml and
liferay-display.xml

I think those files contain all the info I need to modify/add applications. My concern in modifying these files directly is that there is a DB component that I am not aware of that is linked to these files and the whole portal is going to crash. Also, I'd like to stick to GUI/API that the portal framework comes with to avoid problems when Liferay comes out with a new version..

Any insight?

Thanks,
Dan
venka reddy
RE: Adding Application
23 de Março de 2012 00:05
Resposta

venka reddy

Ranking: Regular Member

Mensagens: 231

Data de entrada: 23 de Março de 2011

Mensagens recentes

Hi,

Would you got the solution for it?

Interesting to know
David H Nebinger
RE: Adding Application
23 de Março de 2012 06:16
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 7010

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

The category is determined in liferay-display.xml. If there is no file there, it will go into the Undetermined category.

Roles are defined in the portlet.xml and liferay-portlet.xml. Usually portlets have all privileges, removing unnecessary and adding specific roles will allow you to determine who will see it in the add dialog.
Hitoshi Ozawa
RE: Adding Application
24 de Março de 2012 02:45
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens recentes

Settings David mentioned are covered in the book "Liferay in Action".

Example: page 58, "2.6.1 Changing the protlet's category and name"
David H Nebinger
RE: Adding Application
26 de Março de 2012 13:44
Resposta

David H Nebinger

Ranking: Liferay Legend

Mensagens: 7010

Data de entrada: 1 de Setembro de 2006

Mensagens recentes

Hitoshi, are you getting kickbacks promoting that book? emoticon

It is certainly a great reference that all newbies should get, unfortunately most seem to want to come to the forum first and read later...

I'm still trying to get through Jonas' new book, but finding the extra cycles for that has proven challenging as of late...
Hitoshi Ozawa
RE: Adding Application
26 de Março de 2012 14:37
Resposta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensagens: 7990

Data de entrada: 23 de Março de 2010

Mensagens recentes

It's a great introducy book and deserves credit. I'm promoting it because it may motivates people to write more books - in the end, I'll benefit from that too.