Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
BRONDY DENIS
Create new Liferay document library types programatically
December 10, 2012 12:48 AM
Answer

BRONDY DENIS

Rank: New Member

Posts: 3

Join Date: December 10, 2012

Recent Posts

Hello everybody,

We usually don't ask for support and search as deep as we can when we have a problem, but at this point, we tried and we didn't succeed.

We are using the local document library API (no JAAS authentication) in order to add document programatically and we succeed in it. However, we really don't know how to add a document and create its associated type automatically.
We have a java thread that looks for files in a dedicated directory using a regular expression based on the filename. When a file is detected, we publish the file but its impossible, let say, to create a new document type identified by the string name "Document BLABAL type" and a simple metadata set (I think we succeed once but it wasn't really clean...the document type was there but the metadata set no...strange).

Is anyone using this feature ?
Thanks again to everybody who is posting and supporting this forum.
denis
BRONDY DENIS
RE: Create new Liferay document library types programatically
December 13, 2012 12:43 AM
Answer

BRONDY DENIS

Rank: New Member

Posts: 3

Join Date: December 10, 2012

Recent Posts

One small "up"

I can't imagine we are the first using this nice feature ...

Tks guys,
denis
Mika Koivisto
RE: Create new Liferay document library types programatically
December 13, 2012 4:29 PM
Answer

Mika Koivisto

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1498

Join Date: August 7, 2006

Recent Posts

Take a look at AddDefaultDocumentLibraryStructuresAction to see how we add the default document types.
BRONDY DENIS
RE: Create new Liferay document library types programatically
December 17, 2012 12:26 AM
Answer

BRONDY DENIS

Rank: New Member

Posts: 3

Join Date: December 10, 2012

Recent Posts

Hey Mika,

Thanks for the reply. That's a good idea.... Next time, I will start from here.
denis