001
014
015 package com.liferay.portlet.trash.model;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.util.Accessor;
020 import com.liferay.portal.model.PersistedModel;
021
022
031 @ProviderType
032 public interface TrashEntry extends TrashEntryModel, PersistedModel {
033
038 public static final Accessor<TrashEntry, Long> ENTRY_ID_ACCESSOR = new Accessor<TrashEntry, Long>() {
039 @Override
040 public Long get(TrashEntry trashEntry) {
041 return trashEntry.getEntryId();
042 }
043
044 @Override
045 public Class<Long> getAttributeClass() {
046 return Long.class;
047 }
048
049 @Override
050 public Class<TrashEntry> getTypeClass() {
051 return TrashEntry.class;
052 }
053 };
054
055 public com.liferay.portlet.trash.model.TrashEntry getRootEntry();
056
057 public com.liferay.portal.kernel.util.UnicodeProperties getTypeSettingsProperties();
058
059 public java.lang.String getTypeSettingsProperty(java.lang.String key);
060
061 public java.lang.String getTypeSettingsProperty(java.lang.String key,
062 java.lang.String defaultValue);
063
064 public boolean isTrashEntry(java.lang.Class<?> clazz, long classPK);
065
066 public boolean isTrashEntry(java.lang.String className, long classPK);
067
068 public void setRootEntry(
069 com.liferay.portlet.trash.model.TrashEntry rootEntry);
070
071 public void setTypeSettingsProperties(
072 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties);
073 }