001
014
015 package com.liferay.document.library.kernel.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.annotation.ImplementationClassName;
020 import com.liferay.portal.kernel.model.PersistedModel;
021 import com.liferay.portal.kernel.model.TreeModel;
022 import com.liferay.portal.kernel.util.Accessor;
023
024
033 @ImplementationClassName("com.liferay.portlet.documentlibrary.model.impl.DLFileEntryImpl")
034 @ProviderType
035 public interface DLFileEntry extends DLFileEntryModel, PersistedModel, TreeModel {
036
041 public static final Accessor<DLFileEntry, Long> FILE_ENTRY_ID_ACCESSOR = new Accessor<DLFileEntry, Long>() {
042 @Override
043 public Long get(DLFileEntry dlFileEntry) {
044 return dlFileEntry.getFileEntryId();
045 }
046
047 @Override
048 public Class<Long> getAttributeClass() {
049 return Long.class;
050 }
051
052 @Override
053 public Class<DLFileEntry> getTypeClass() {
054 return DLFileEntry.class;
055 }
056 };
057
058 @Override
059 public java.lang.String buildTreePath()
060 throws com.liferay.portal.kernel.exception.PortalException;
061
062 public java.io.InputStream getContentStream()
063 throws com.liferay.portal.kernel.exception.PortalException;
064
065 public java.io.InputStream getContentStream(java.lang.String version)
066 throws com.liferay.portal.kernel.exception.PortalException;
067
068 public long getDataRepositoryId();
069
070 public java.util.Map<java.lang.String, com.liferay.dynamic.data.mapping.kernel.DDMFormValues> getDDMFormValuesMap(
071 long fileVersionId)
072 throws com.liferay.portal.kernel.exception.PortalException;
073
074 public DLFileEntryType getDLFileEntryType()
075 throws com.liferay.portal.kernel.exception.PortalException;
076
077 public com.liferay.portal.kernel.util.UnicodeProperties getExtraSettingsProperties();
078
079 public java.util.List<DLFileShortcut> getFileShortcuts();
080
081 public DLFileVersion getFileVersion()
082 throws com.liferay.portal.kernel.exception.PortalException;
083
084 public DLFileVersion getFileVersion(java.lang.String version)
085 throws com.liferay.portal.kernel.exception.PortalException;
086
087 public java.util.List<DLFileVersion> getFileVersions(int status);
088
089 public int getFileVersionsCount(int status);
090
091 public DLFolder getFolder()
092 throws com.liferay.portal.kernel.exception.PortalException;
093
094 public java.lang.String getIcon();
095
096 public java.lang.String getIconCssClass();
097
098 public DLFileVersion getLatestFileVersion(boolean trusted)
099 throws com.liferay.portal.kernel.exception.PortalException;
100
101 public com.liferay.portal.kernel.lock.Lock getLock();
102
103 public java.lang.String getLuceneProperties();
104
105 public boolean hasLock();
106
107 public boolean isCheckedOut();
108
109 public boolean isInHiddenFolder();
110
111 public void setExtraSettingsProperties(
112 com.liferay.portal.kernel.util.UnicodeProperties extraSettingsProperties);
113 }