Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Richard Cantor
Document Library
July 15, 2011 10:26 AM
Answer

Richard Cantor

Rank: New Member

Posts: 17

Join Date: March 18, 2009

Recent Posts

Liferay 5.2

Hello all,

Can someone please help me figure out...

If a user belongs to multiple communites, why can't that user view all document libraries associated with all communites the user is a member of?

I want the one document library portlet to show all document libraries of all communiies that a user is a member of.

Let me put the question another way...

Can a user only view the one document library of the community that he or she is in?

Please respond with the solution!!!

-Rich
Thiago Leão Moreira
RE: Document Library
July 15, 2011 12:59 PM
Answer

Thiago Leão Moreira

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1394

Join Date: October 10, 2007

Recent Posts

Hi Richard,

One simple reason for not have all the documents on the same Document Library portlet is that you can have in different communities files with the same name.
Jan Gregor
RE: Document Library
July 18, 2011 5:08 AM
Answer

Jan Gregor

Rank: Regular Member

Posts: 224

Join Date: October 20, 2010

Recent Posts

Hi Richard,

At the moment it is really so, that documents are always "scoped". that means they belong to a concrete community and are always visible only within this scope. OOTB Document library portlet does not allow you to "merge" document libraries from more communities, but you can use the Global community to store your documents/images which should be available in another communities/organizations. You can also configure the document library portlet to show content of this community as default.

Hope this suggestion will help you,

Regards,
Jan.
Richard Cantor
RE: Document Library
July 19, 2011 7:57 AM
Answer

Richard Cantor

Rank: New Member

Posts: 17

Join Date: March 18, 2009

Recent Posts

Ok, understand and thank you all for your replies.

If I had to hack into the code of Liferay's document library...

My requirement stands as is, so I must programmatically loop through all document libraries and communities that a user is acssociated with and display out all doc library folders.

Is there a way to do this? Can someone please start me off with some code?

If I get this far, and a user can view multiple folders from multiple communites... will the searching work, or must I hack deeper?

Please let me know emoticon

Thanks all,

-Rich
Thiago Leão Moreira
RE: Document Library
July 19, 2011 9:36 AM
Answer

Thiago Leão Moreira

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1394

Join Date: October 10, 2007

Recent Posts

Hey Rich,

Your requirement demands that the user edit/delete document? Or it will be a read-only portlet? If it is a read-only portlet I would suggest you to create a new portlet to do this and based it off Document Library Display portlet.
Petros Giakouvakis
RE: Document Library
August 11, 2011 4:16 PM
Answer

Petros Giakouvakis

Rank: Junior Member

Posts: 33

Join Date: August 3, 2009

Recent Posts

Another solution would consist in using a document library scoped to the portal e.g. and adding a custom field that allows you to select communities. You can then override the permissionChecker to implement an additional check on that field.
But this will offcourse require some programming. emoticon
Hitoshi Ozawa
RE: Document Library
August 11, 2011 4:20 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Another option is to use an external CMIS and use SSO and a portlet for the CMIS.
Petros Giakouvakis
RE: Document Library
August 11, 2011 4:27 PM
Answer

Petros Giakouvakis

Rank: Junior Member

Posts: 33

Join Date: August 3, 2009

Recent Posts

Yes, a better alternative I must admit. emoticon
Hitoshi Ozawa
RE: Document Library
August 11, 2011 4:31 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

I think there was an alfresco portlet available from their site.

The draw back is that you'll need another server and have to learn another software.
Petros Giakouvakis
RE: Document Library
August 11, 2011 4:40 PM
Answer

Petros Giakouvakis

Rank: Junior Member

Posts: 33

Join Date: August 3, 2009

Recent Posts

Actually the document library itself supports the use of external CMS systems for the persistence.

See also:
http://www.liferay.com/community/wiki/-/wiki/Main/Document+Library+Portlet#section-Document+Library+Portlet-Using+Different+Persistence+Systems

I presume you could use the listeners within Documentum or Alfresco to act upon an import to automatically assign permissions based on the membership of the user of eg. metadata of the content, or add it to a queue of workflow for manually defining the permissions.

But it might indeed be overkill if you don't already have such a CMS or the skills....
Hitoshi Ozawa
RE: Document Library
August 11, 2011 8:36 PM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 7990

Join Date: March 23, 2010

Recent Posts

Actually the document library itself supports the use of external CMS systems for the persistence.


Yes, Liferay has a CMISHook to enable an external CMS system to be used as a container,
but I don't think using this would solve the permission problem.
sharif razavi
RE: Document Library
August 15, 2011 5:10 AM
Answer

sharif razavi

Rank: Junior Member

Posts: 49

Join Date: August 13, 2009

Recent Posts