Interface ExtRepositoryFileEntry
- All Superinterfaces:
ExtRepositoryModel
,ExtRepositoryObject
Represents the external repository file entry object. Implementers of
external repositories must provide an implementation of this class to make
the bridge between Liferay Portal and external repository domains. All data
returned by these implementations is in native repository format.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.liferay.document.library.repository.external.ExtRepositoryObject
ExtRepositoryObject.ExtRepositoryPermission
-
Method Summary
Modifier and TypeMethodDescriptionReturns an identifier for the user who checked out the file from the external repository, ornull
if the file is not checked out.Returns the MIME type of the external repository file, ornull
if the MIME type is not available in the external repository.getTitle()
Returns the external repository file entry's name, including its extension.Methods inherited from interface com.liferay.document.library.repository.external.ExtRepositoryModel
getCreateDate, getExtRepositoryModelKey, getOwner, getSize
Methods inherited from interface com.liferay.document.library.repository.external.ExtRepositoryObject
containsPermission, getDescription, getExtension, getModifiedDate
-
Method Details
-
getCheckedOutBy
String getCheckedOutBy()Returns an identifier for the user who checked out the file from the external repository, ornull
if the file is not checked out. The returned user identifier is converted from the native repository format to the Liferay format by calling theExtRepository.getLiferayLogin(String)
method.- Returns:
- an identifier for the user who checked out the file from the
external repository, or
null
if the file is not checked out
-
getMimeType
String getMimeType()Returns the MIME type of the external repository file, ornull
if the MIME type is not available in the external repository. If the MIME type is unavailable, Liferay Portal guesses the MIME type (usually by looking at the extension).- Returns:
- the MIME type of the external repository file, or
null
if the MIME type is not available in the external repository
-
getTitle
String getTitle()Returns the external repository file entry's name, including its extension.- Returns:
- the external repository file entry's name, including its extension
-