/** * Copyright (c) 2000-present Liferay, Inc. All rights reserved. * * This library is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free * Software Foundation; either version 2.1 of the License, or (at your option) * any later version. * * This library is distributed in the hope that it will be useful, but WITHOUT * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. */ package com.liferay.asset.kernel.model; import aQute.bnd.annotation.ProviderType; import com.liferay.expando.kernel.model.ExpandoBridge; import com.liferay.portal.kernel.bean.AutoEscape; import com.liferay.portal.kernel.exception.LocaleException; import com.liferay.portal.kernel.model.AttachedModel; import com.liferay.portal.kernel.model.BaseModel; import com.liferay.portal.kernel.model.CacheModel; import com.liferay.portal.kernel.model.GroupedModel; import com.liferay.portal.kernel.model.LocalizedModel; import com.liferay.portal.kernel.model.ShardedModel; import com.liferay.portal.kernel.service.ServiceContext; import java.io.Serializable; import java.util.Date; import java.util.Locale; import java.util.Map; /** * The base model interface for the AssetEntry service. Represents a row in the "AssetEntry" database table, with each column mapped to a property of this class. * * <p> * This interface and its corresponding implementation {@link com.liferay.portlet.asset.model.impl.AssetEntryModelImpl} exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in {@link com.liferay.portlet.asset.model.impl.AssetEntryImpl}. * </p> * * @author Brian Wing Shun Chan * @see AssetEntry * @see com.liferay.portlet.asset.model.impl.AssetEntryImpl * @see com.liferay.portlet.asset.model.impl.AssetEntryModelImpl * @generated */ @ProviderType public interface AssetEntryModel extends AttachedModel, BaseModel<AssetEntry>, GroupedModel, LocalizedModel, ShardedModel { /* * NOTE FOR DEVELOPERS: * * Never modify or reference this interface directly. All methods that expect a asset entry model instance should use the {@link AssetEntry} interface instead. */ /** * Returns the primary key of this asset entry. * * @return the primary key of this asset entry */ public long getPrimaryKey(); /** * Sets the primary key of this asset entry. * * @param primaryKey the primary key of this asset entry */ public void setPrimaryKey(long primaryKey); /** * Returns the entry ID of this asset entry. * * @return the entry ID of this asset entry */ public long getEntryId(); /** * Sets the entry ID of this asset entry. * * @param entryId the entry ID of this asset entry */ public void setEntryId(long entryId); /** * Returns the group ID of this asset entry. * * @return the group ID of this asset entry */ @Override public long getGroupId(); /** * Sets the group ID of this asset entry. * * @param groupId the group ID of this asset entry */ @Override public void setGroupId(long groupId); /** * Returns the company ID of this asset entry. * * @return the company ID of this asset entry */ @Override public long getCompanyId(); /** * Sets the company ID of this asset entry. * * @param companyId the company ID of this asset entry */ @Override public void setCompanyId(long companyId); /** * Returns the user ID of this asset entry. * * @return the user ID of this asset entry */ @Override public long getUserId(); /** * Sets the user ID of this asset entry. * * @param userId the user ID of this asset entry */ @Override public void setUserId(long userId); /** * Returns the user uuid of this asset entry. * * @return the user uuid of this asset entry */ @Override public String getUserUuid(); /** * Sets the user uuid of this asset entry. * * @param userUuid the user uuid of this asset entry */ @Override public void setUserUuid(String userUuid); /** * Returns the user name of this asset entry. * * @return the user name of this asset entry */ @AutoEscape @Override public String getUserName(); /** * Sets the user name of this asset entry. * * @param userName the user name of this asset entry */ @Override public void setUserName(String userName); /** * Returns the create date of this asset entry. * * @return the create date of this asset entry */ @Override public Date getCreateDate(); /** * Sets the create date of this asset entry. * * @param createDate the create date of this asset entry */ @Override public void setCreateDate(Date createDate); /** * Returns the modified date of this asset entry. * * @return the modified date of this asset entry */ @Override public Date getModifiedDate(); /** * Sets the modified date of this asset entry. * * @param modifiedDate the modified date of this asset entry */ @Override public void setModifiedDate(Date modifiedDate); /** * Returns the fully qualified class name of this asset entry. * * @return the fully qualified class name of this asset entry */ @Override public String getClassName(); public void setClassName(String className); /** * Returns the class name ID of this asset entry. * * @return the class name ID of this asset entry */ @Override public long getClassNameId(); /** * Sets the class name ID of this asset entry. * * @param classNameId the class name ID of this asset entry */ @Override public void setClassNameId(long classNameId); /** * Returns the class pk of this asset entry. * * @return the class pk of this asset entry */ @Override public long getClassPK(); /** * Sets the class pk of this asset entry. * * @param classPK the class pk of this asset entry */ @Override public void setClassPK(long classPK); /** * Returns the class uuid of this asset entry. * * @return the class uuid of this asset entry */ @AutoEscape public String getClassUuid(); /** * Sets the class uuid of this asset entry. * * @param classUuid the class uuid of this asset entry */ public void setClassUuid(String classUuid); /** * Returns the class type ID of this asset entry. * * @return the class type ID of this asset entry */ public long getClassTypeId(); /** * Sets the class type ID of this asset entry. * * @param classTypeId the class type ID of this asset entry */ public void setClassTypeId(long classTypeId); /** * Returns the listable of this asset entry. * * @return the listable of this asset entry */ public boolean getListable(); /** * Returns <code>true</code> if this asset entry is listable. * * @return <code>true</code> if this asset entry is listable; <code>false</code> otherwise */ public boolean isListable(); /** * Sets whether this asset entry is listable. * * @param listable the listable of this asset entry */ public void setListable(boolean listable); /** * Returns the visible of this asset entry. * * @return the visible of this asset entry */ public boolean getVisible(); /** * Returns <code>true</code> if this asset entry is visible. * * @return <code>true</code> if this asset entry is visible; <code>false</code> otherwise */ public boolean isVisible(); /** * Sets whether this asset entry is visible. * * @param visible the visible of this asset entry */ public void setVisible(boolean visible); /** * Returns the start date of this asset entry. * * @return the start date of this asset entry */ public Date getStartDate(); /** * Sets the start date of this asset entry. * * @param startDate the start date of this asset entry */ public void setStartDate(Date startDate); /** * Returns the end date of this asset entry. * * @return the end date of this asset entry */ public Date getEndDate(); /** * Sets the end date of this asset entry. * * @param endDate the end date of this asset entry */ public void setEndDate(Date endDate); /** * Returns the publish date of this asset entry. * * @return the publish date of this asset entry */ public Date getPublishDate(); /** * Sets the publish date of this asset entry. * * @param publishDate the publish date of this asset entry */ public void setPublishDate(Date publishDate); /** * Returns the expiration date of this asset entry. * * @return the expiration date of this asset entry */ public Date getExpirationDate(); /** * Sets the expiration date of this asset entry. * * @param expirationDate the expiration date of this asset entry */ public void setExpirationDate(Date expirationDate); /** * Returns the mime type of this asset entry. * * @return the mime type of this asset entry */ @AutoEscape public String getMimeType(); /** * Sets the mime type of this asset entry. * * @param mimeType the mime type of this asset entry */ public void setMimeType(String mimeType); /** * Returns the title of this asset entry. * * @return the title of this asset entry */ public String getTitle(); /** * Returns the localized title of this asset entry in the language. Uses the default language if no localization exists for the requested language. * * @param locale the locale of the language * @return the localized title of this asset entry */ @AutoEscape public String getTitle(Locale locale); /** * Returns the localized title of this asset entry in the language, optionally using the default language if no localization exists for the requested language. * * @param locale the local of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized title of this asset entry. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned. */ @AutoEscape public String getTitle(Locale locale, boolean useDefault); /** * Returns the localized title of this asset entry in the language. Uses the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @return the localized title of this asset entry */ @AutoEscape public String getTitle(String languageId); /** * Returns the localized title of this asset entry in the language, optionally using the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized title of this asset entry */ @AutoEscape public String getTitle(String languageId, boolean useDefault); @AutoEscape public String getTitleCurrentLanguageId(); @AutoEscape public String getTitleCurrentValue(); /** * Returns a map of the locales and localized titles of this asset entry. * * @return the locales and localized titles of this asset entry */ public Map<Locale, String> getTitleMap(); /** * Sets the title of this asset entry. * * @param title the title of this asset entry */ public void setTitle(String title); /** * Sets the localized title of this asset entry in the language. * * @param title the localized title of this asset entry * @param locale the locale of the language */ public void setTitle(String title, Locale locale); /** * Sets the localized title of this asset entry in the language, and sets the default locale. * * @param title the localized title of this asset entry * @param locale the locale of the language * @param defaultLocale the default locale */ public void setTitle(String title, Locale locale, Locale defaultLocale); public void setTitleCurrentLanguageId(String languageId); /** * Sets the localized titles of this asset entry from the map of locales and localized titles. * * @param titleMap the locales and localized titles of this asset entry */ public void setTitleMap(Map<Locale, String> titleMap); /** * Sets the localized titles of this asset entry from the map of locales and localized titles, and sets the default locale. * * @param titleMap the locales and localized titles of this asset entry * @param defaultLocale the default locale */ public void setTitleMap(Map<Locale, String> titleMap, Locale defaultLocale); /** * Returns the description of this asset entry. * * @return the description of this asset entry */ public String getDescription(); /** * Returns the localized description of this asset entry in the language. Uses the default language if no localization exists for the requested language. * * @param locale the locale of the language * @return the localized description of this asset entry */ @AutoEscape public String getDescription(Locale locale); /** * Returns the localized description of this asset entry in the language, optionally using the default language if no localization exists for the requested language. * * @param locale the local of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized description of this asset entry. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned. */ @AutoEscape public String getDescription(Locale locale, boolean useDefault); /** * Returns the localized description of this asset entry in the language. Uses the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @return the localized description of this asset entry */ @AutoEscape public String getDescription(String languageId); /** * Returns the localized description of this asset entry in the language, optionally using the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized description of this asset entry */ @AutoEscape public String getDescription(String languageId, boolean useDefault); @AutoEscape public String getDescriptionCurrentLanguageId(); @AutoEscape public String getDescriptionCurrentValue(); /** * Returns a map of the locales and localized descriptions of this asset entry. * * @return the locales and localized descriptions of this asset entry */ public Map<Locale, String> getDescriptionMap(); /** * Sets the description of this asset entry. * * @param description the description of this asset entry */ public void setDescription(String description); /** * Sets the localized description of this asset entry in the language. * * @param description the localized description of this asset entry * @param locale the locale of the language */ public void setDescription(String description, Locale locale); /** * Sets the localized description of this asset entry in the language, and sets the default locale. * * @param description the localized description of this asset entry * @param locale the locale of the language * @param defaultLocale the default locale */ public void setDescription(String description, Locale locale, Locale defaultLocale); public void setDescriptionCurrentLanguageId(String languageId); /** * Sets the localized descriptions of this asset entry from the map of locales and localized descriptions. * * @param descriptionMap the locales and localized descriptions of this asset entry */ public void setDescriptionMap(Map<Locale, String> descriptionMap); /** * Sets the localized descriptions of this asset entry from the map of locales and localized descriptions, and sets the default locale. * * @param descriptionMap the locales and localized descriptions of this asset entry * @param defaultLocale the default locale */ public void setDescriptionMap(Map<Locale, String> descriptionMap, Locale defaultLocale); /** * Returns the summary of this asset entry. * * @return the summary of this asset entry */ public String getSummary(); /** * Returns the localized summary of this asset entry in the language. Uses the default language if no localization exists for the requested language. * * @param locale the locale of the language * @return the localized summary of this asset entry */ @AutoEscape public String getSummary(Locale locale); /** * Returns the localized summary of this asset entry in the language, optionally using the default language if no localization exists for the requested language. * * @param locale the local of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized summary of this asset entry. If <code>useDefault</code> is <code>false</code> and no localization exists for the requested language, an empty string will be returned. */ @AutoEscape public String getSummary(Locale locale, boolean useDefault); /** * Returns the localized summary of this asset entry in the language. Uses the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @return the localized summary of this asset entry */ @AutoEscape public String getSummary(String languageId); /** * Returns the localized summary of this asset entry in the language, optionally using the default language if no localization exists for the requested language. * * @param languageId the ID of the language * @param useDefault whether to use the default language if no localization exists for the requested language * @return the localized summary of this asset entry */ @AutoEscape public String getSummary(String languageId, boolean useDefault); @AutoEscape public String getSummaryCurrentLanguageId(); @AutoEscape public String getSummaryCurrentValue(); /** * Returns a map of the locales and localized summaries of this asset entry. * * @return the locales and localized summaries of this asset entry */ public Map<Locale, String> getSummaryMap(); /** * Sets the summary of this asset entry. * * @param summary the summary of this asset entry */ public void setSummary(String summary); /** * Sets the localized summary of this asset entry in the language. * * @param summary the localized summary of this asset entry * @param locale the locale of the language */ public void setSummary(String summary, Locale locale); /** * Sets the localized summary of this asset entry in the language, and sets the default locale. * * @param summary the localized summary of this asset entry * @param locale the locale of the language * @param defaultLocale the default locale */ public void setSummary(String summary, Locale locale, Locale defaultLocale); public void setSummaryCurrentLanguageId(String languageId); /** * Sets the localized summaries of this asset entry from the map of locales and localized summaries. * * @param summaryMap the locales and localized summaries of this asset entry */ public void setSummaryMap(Map<Locale, String> summaryMap); /** * Sets the localized summaries of this asset entry from the map of locales and localized summaries, and sets the default locale. * * @param summaryMap the locales and localized summaries of this asset entry * @param defaultLocale the default locale */ public void setSummaryMap(Map<Locale, String> summaryMap, Locale defaultLocale); /** * Returns the url of this asset entry. * * @return the url of this asset entry */ @AutoEscape public String getUrl(); /** * Sets the url of this asset entry. * * @param url the url of this asset entry */ public void setUrl(String url); /** * Returns the layout uuid of this asset entry. * * @return the layout uuid of this asset entry */ @AutoEscape public String getLayoutUuid(); /** * Sets the layout uuid of this asset entry. * * @param layoutUuid the layout uuid of this asset entry */ public void setLayoutUuid(String layoutUuid); /** * Returns the height of this asset entry. * * @return the height of this asset entry */ public int getHeight(); /** * Sets the height of this asset entry. * * @param height the height of this asset entry */ public void setHeight(int height); /** * Returns the width of this asset entry. * * @return the width of this asset entry */ public int getWidth(); /** * Sets the width of this asset entry. * * @param width the width of this asset entry */ public void setWidth(int width); /** * Returns the priority of this asset entry. * * @return the priority of this asset entry */ public double getPriority(); /** * Sets the priority of this asset entry. * * @param priority the priority of this asset entry */ public void setPriority(double priority); /** * Returns the view count of this asset entry. * * @return the view count of this asset entry */ public int getViewCount(); /** * Sets the view count of this asset entry. * * @param viewCount the view count of this asset entry */ public void setViewCount(int viewCount); @Override public boolean isNew(); @Override public void setNew(boolean n); @Override public boolean isCachedModel(); @Override public void setCachedModel(boolean cachedModel); @Override public boolean isEscapedModel(); @Override public Serializable getPrimaryKeyObj(); @Override public void setPrimaryKeyObj(Serializable primaryKeyObj); @Override public ExpandoBridge getExpandoBridge(); @Override public void setExpandoBridgeAttributes(BaseModel<?> baseModel); @Override public void setExpandoBridgeAttributes(ExpandoBridge expandoBridge); @Override public void setExpandoBridgeAttributes(ServiceContext serviceContext); @Override public String[] getAvailableLanguageIds(); @Override public String getDefaultLanguageId(); @Override public void prepareLocalizedFieldsForImport() throws LocaleException; @Override public void prepareLocalizedFieldsForImport(Locale defaultImportLocale) throws LocaleException; @Override public Object clone(); @Override public int compareTo(AssetEntry assetEntry); @Override public int hashCode(); @Override public CacheModel<AssetEntry> toCacheModel(); @Override public AssetEntry toEscapedModel(); @Override public AssetEntry toUnescapedModel(); @Override public String toString(); @Override public String toXmlString(); }