Tribune

Home » Liferay Portal » English » 3. Development

Vista Combinata Vista Piatta Vista ad Albero
Discussioni [ Precedente | Successivo ]
toggle
Gwowen Fu
DLFileEntry and FileEntry
4 ottobre 2012 9.10
Risposta

Gwowen Fu

Punteggio: Regular Member

Messaggi: 197

Data di Iscrizione: 27 dicembre 2010

Messaggi recenti

Does anyone know what is the difference between DLFileEntry and FileEntry?

I know when to use DLFileEntry but have no idea when to use FileEntry.

Thanks!
Gwowen
Mika Koivisto
RE: DLFileEntry and FileEntry
4 ottobre 2012 11.07
Risposta

Mika Koivisto

LIFERAY STAFF

Punteggio: Liferay Legend

Messaggi: 1325

Data di Iscrizione: 7 agosto 2006

Messaggi recenti

DLFileEntry is part of the internal LiferayRepository implementation and you should not be using it. FileEntry is the generic repository FileEntry and the actual implementation could be one from Liferay, Sharepoint, CMIS or Documentum for instance. In Liferay 6.1 the document library was refactored to support multiple repositories the internal LiferayRepository is just one of the repository implementations. FileEntry and Folder are the generic ones and you should be using the repository API through DLAppServiceUtil otherwise you will be bypassing a lot of logic. DLFileEntry, DLFileEntryLocalService etc are considered internal implementation now and can change at anytime and should not be used directly.