Liferay 6.2-ce-ga5

com.liferay.portlet.asset.model.impl
Class AssetEntryModelImpl

java.lang.Object
  extended by com.liferay.portal.model.impl.BaseModelImpl<AssetEntry>
      extended by com.liferay.portlet.asset.model.impl.AssetEntryModelImpl
All Implemented Interfaces:
AttachedModel, AuditedModel, BaseModel<AssetEntry>, ClassedModel, GroupedModel, TypedModel, AssetEntryModel, Serializable, Cloneable, Comparable<AssetEntry>
Direct Known Subclasses:
AssetEntryBaseImpl

@JSON(strict=true)
public class AssetEntryModelImpl
extends BaseModelImpl<AssetEntry>
implements AssetEntryModel

The base model implementation for the AssetEntry service. Represents a row in the "AssetEntry" database table, with each column mapped to a property of this class.

This implementation and its corresponding interface AssetEntryModel exist only as a container for the default property accessors generated by ServiceBuilder. Helper methods and all application logic should be put in AssetEntryImpl.

See Also:
AssetEntryImpl, AssetEntry, AssetEntryModel, Serialized Form
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Field Summary
static long CLASSNAMEID_COLUMN_BITMASK
           
static long CLASSPK_COLUMN_BITMASK
           
static long CLASSUUID_COLUMN_BITMASK
           
static boolean COLUMN_BITMASK_ENABLED
           
static long COMPANYID_COLUMN_BITMASK
           
static String DATA_SOURCE
           
static boolean ENTITY_CACHE_ENABLED
           
static long ENTRYID_COLUMN_BITMASK
           
static long EXPIRATIONDATE_COLUMN_BITMASK
           
static boolean FINDER_CACHE_ENABLED
           
static boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETCATEGORIES
           
static boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETTAGS
           
static long GROUPID_COLUMN_BITMASK
           
static long LAYOUTUUID_COLUMN_BITMASK
           
static long LOCK_EXPIRATION_TIME
           
static Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_COLUMNS
           
static String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_NAME
           
static String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_SQL_CREATE
           
static Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_COLUMNS
           
static String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_NAME
           
static String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_SQL_CREATE
           
static String ORDER_BY_JPQL
           
static String ORDER_BY_SQL
           
static long PUBLISHDATE_COLUMN_BITMASK
           
static String SESSION_FACTORY
           
static Object[][] TABLE_COLUMNS
           
static String TABLE_NAME
           
static String TABLE_SQL_CREATE
           
static String TABLE_SQL_DROP
           
static String TX_MANAGER
           
static long VISIBLE_COLUMN_BITMASK
           
 
Constructor Summary
AssetEntryModelImpl()
           
 
Method Summary
 Object clone()
          Creates a shallow clone of this model instance.
 int compareTo(AssetEntry assetEntry)
           
 boolean equals(Object obj)
           
 String[] getAvailableLanguageIds()
           
 String getClassName()
          Returns the fully qualified class name of this asset entry.
 long getClassNameId()
          Returns the class name ID of this asset entry.
 long getClassPK()
          Returns the class p k of this asset entry.
 long getClassTypeId()
          Returns the class type ID of this asset entry.
 String getClassUuid()
          Returns the class uuid of this asset entry.
 long getColumnBitmask()
           
 long getCompanyId()
          Returns the company ID of this asset entry.
 Date getCreateDate()
          Returns the create date of this asset entry.
 String getDefaultLanguageId()
           
 String getDescription()
          Returns the description of this asset entry.
 String getDescription(Locale locale)
          Returns the localized description of this asset entry in the language.
 String getDescription(Locale locale, boolean useDefault)
          Returns the localized description of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
 String getDescription(String languageId)
          Returns the localized description of this asset entry in the language.
 String getDescription(String languageId, boolean useDefault)
          Returns the localized description of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
 String getDescriptionCurrentLanguageId()
           
 String getDescriptionCurrentValue()
           
 Map<Locale,String> getDescriptionMap()
          Returns a map of the locales and localized descriptions of this asset entry.
 Date getEndDate()
          Returns the end date of this asset entry.
 long getEntryId()
          Returns the entry ID of this asset entry.
 ExpandoBridge getExpandoBridge()
          Returns the expando bridge for this model instance.
 Date getExpirationDate()
          Returns the expiration date of this asset entry.
 long getGroupId()
          Returns the group ID of this asset entry.
 int getHeight()
          Returns the height of this asset entry.
 String getLayoutUuid()
          Returns the layout uuid of this asset entry.
 String getMimeType()
          Returns the mime type of this asset entry.
 Map<String,Object> getModelAttributes()
           
 Class<?> getModelClass()
           
 String getModelClassName()
           
 Date getModifiedDate()
          Returns the modified date of this asset entry.
 long getOriginalClassNameId()
           
 long getOriginalClassPK()
           
 String getOriginalClassUuid()
           
 long getOriginalCompanyId()
           
 Date getOriginalExpirationDate()
           
 long getOriginalGroupId()
           
 String getOriginalLayoutUuid()
           
 Date getOriginalPublishDate()
           
 boolean getOriginalVisible()
           
 long getPrimaryKey()
          Returns the primary key of this asset entry.
 Serializable getPrimaryKeyObj()
          Returns the primary key of this model instance.
 double getPriority()
          Returns the priority of this asset entry.
 Date getPublishDate()
          Returns the publish date of this asset entry.
 Date getStartDate()
          Returns the start date of this asset entry.
 String getSummary()
          Returns the summary of this asset entry.
 String getSummary(Locale locale)
          Returns the localized summary of this asset entry in the language.
 String getSummary(Locale locale, boolean useDefault)
          Returns the localized summary of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
 String getSummary(String languageId)
          Returns the localized summary of this asset entry in the language.
 String getSummary(String languageId, boolean useDefault)
          Returns the localized summary of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
 String getSummaryCurrentLanguageId()
           
 String getSummaryCurrentValue()
           
 Map<Locale,String> getSummaryMap()
          Returns a map of the locales and localized summaries of this asset entry.
 String getTitle()
          Returns the title of this asset entry.
 String getTitle(Locale locale)
          Returns the localized title of this asset entry in the language.
 String getTitle(Locale locale, boolean useDefault)
          Returns the localized title of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
 String getTitle(String languageId)
          Returns the localized title of this asset entry in the language.
 String getTitle(String languageId, boolean useDefault)
          Returns the localized title of this asset entry in the language, optionally using the default language if no localization exists for the requested language.
 String getTitleCurrentLanguageId()
           
 String getTitleCurrentValue()
           
 Map<Locale,String> getTitleMap()
          Returns a map of the locales and localized titles of this asset entry.
 String getUrl()
          Returns the url of this asset entry.
 long getUserId()
          Returns the user ID of this asset entry.
 String getUserName()
          Returns the user name of this asset entry.
 String getUserUuid()
          Returns the user uuid of this asset entry.
 int getViewCount()
          Returns the view count of this asset entry.
 boolean getVisible()
          Returns the visible of this asset entry.
 int getWidth()
          Returns the width of this asset entry.
 int hashCode()
           
 boolean isVisible()
          Returns true if this asset entry is visible.
 void prepareLocalizedFieldsForImport()
           
 void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
           
 void resetOriginalValues()
          Reset all original fields to current values.
 void setClassName(String className)
           
 void setClassNameId(long classNameId)
          Sets the class name ID of this asset entry.
 void setClassPK(long classPK)
          Sets the class p k of this asset entry.
 void setClassTypeId(long classTypeId)
          Sets the class type ID of this asset entry.
 void setClassUuid(String classUuid)
          Sets the class uuid of this asset entry.
 void setCompanyId(long companyId)
          Sets the company ID of this asset entry.
 void setCreateDate(Date createDate)
          Sets the create date of this asset entry.
 void setDescription(String description)
          Sets the description of this asset entry.
 void setDescription(String description, Locale locale)
          Sets the localized description of this asset entry in the language.
 void setDescription(String description, Locale locale, Locale defaultLocale)
          Sets the localized description of this asset entry in the language, and sets the default locale.
 void setDescriptionCurrentLanguageId(String languageId)
           
 void setDescriptionMap(Map<Locale,String> descriptionMap)
          Sets the localized descriptions of this asset entry from the map of locales and localized descriptions.
 void setDescriptionMap(Map<Locale,String> descriptionMap, Locale defaultLocale)
          Sets the localized descriptions of this asset entry from the map of locales and localized descriptions, and sets the default locale.
 void setEndDate(Date endDate)
          Sets the end date of this asset entry.
 void setEntryId(long entryId)
          Sets the entry ID of this asset entry.
 void setExpandoBridgeAttributes(ServiceContext serviceContext)
          Sets the expando bridge attributes for this model instance to the attributes stored in the service context.
 void setExpirationDate(Date expirationDate)
          Sets the expiration date of this asset entry.
 void setGroupId(long groupId)
          Sets the group ID of this asset entry.
 void setHeight(int height)
          Sets the height of this asset entry.
 void setLayoutUuid(String layoutUuid)
          Sets the layout uuid of this asset entry.
 void setMimeType(String mimeType)
          Sets the mime type of this asset entry.
 void setModelAttributes(Map<String,Object> attributes)
           
 void setModifiedDate(Date modifiedDate)
          Sets the modified date of this asset entry.
 void setPrimaryKey(long primaryKey)
          Sets the primary key of this asset entry.
 void setPrimaryKeyObj(Serializable primaryKeyObj)
          Sets the primary key of this model instance.
 void setPriority(double priority)
          Sets the priority of this asset entry.
 void setPublishDate(Date publishDate)
          Sets the publish date of this asset entry.
 void setStartDate(Date startDate)
          Sets the start date of this asset entry.
 void setSummary(String summary)
          Sets the summary of this asset entry.
 void setSummary(String summary, Locale locale)
          Sets the localized summary of this asset entry in the language.
 void setSummary(String summary, Locale locale, Locale defaultLocale)
          Sets the localized summary of this asset entry in the language, and sets the default locale.
 void setSummaryCurrentLanguageId(String languageId)
           
 void setSummaryMap(Map<Locale,String> summaryMap)
          Sets the localized summaries of this asset entry from the map of locales and localized summaries.
 void setSummaryMap(Map<Locale,String> summaryMap, Locale defaultLocale)
          Sets the localized summaries of this asset entry from the map of locales and localized summaries, and sets the default locale.
 void setTitle(String title)
          Sets the title of this asset entry.
 void setTitle(String title, Locale locale)
          Sets the localized title of this asset entry in the language.
 void setTitle(String title, Locale locale, Locale defaultLocale)
          Sets the localized title of this asset entry in the language, and sets the default locale.
 void setTitleCurrentLanguageId(String languageId)
           
 void setTitleMap(Map<Locale,String> titleMap)
          Sets the localized titles of this asset entry from the map of locales and localized titles.
 void setTitleMap(Map<Locale,String> titleMap, Locale defaultLocale)
          Sets the localized titles of this asset entry from the map of locales and localized titles, and sets the default locale.
 void setUrl(String url)
          Sets the url of this asset entry.
 void setUserId(long userId)
          Sets the user ID of this asset entry.
 void setUserName(String userName)
          Sets the user name of this asset entry.
 void setUserUuid(String userUuid)
          Sets the user uuid of this asset entry.
 void setViewCount(int viewCount)
          Sets the view count of this asset entry.
 void setVisible(boolean visible)
          Sets whether this asset entry is visible.
 void setWidth(int width)
          Sets the width of this asset entry.
 CacheModel<AssetEntry> toCacheModel()
          Returns a cache model object for this entity used by entity cache.
 AssetEntry toEscapedModel()
          Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.
static AssetEntry toModel(AssetEntrySoap soapModel)
          Converts the soap model instance into a normal model instance.
static List<AssetEntry> toModels(AssetEntrySoap[] soapModels)
          Converts the soap model instances into normal model instances.
 String toString()
           
 String toXmlString()
          Returns the XML representation of this model instance.
 
Methods inherited from class com.liferay.portal.model.impl.BaseModelImpl
getLocale, isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.liferay.portlet.asset.model.AssetEntryModel
isCachedModel, isEscapedModel, isNew, setCachedModel, setExpandoBridgeAttributes, setExpandoBridgeAttributes, setNew, toUnescapedModel
 

Field Detail

TABLE_NAME

public static final String TABLE_NAME
See Also:
Constant Field Values

TABLE_COLUMNS

public static final Object[][] TABLE_COLUMNS

TABLE_SQL_CREATE

public static final String TABLE_SQL_CREATE
See Also:
Constant Field Values

TABLE_SQL_DROP

public static final String TABLE_SQL_DROP
See Also:
Constant Field Values

ORDER_BY_JPQL

public static final String ORDER_BY_JPQL
See Also:
Constant Field Values

ORDER_BY_SQL

public static final String ORDER_BY_SQL
See Also:
Constant Field Values

DATA_SOURCE

public static final String DATA_SOURCE
See Also:
Constant Field Values

SESSION_FACTORY

public static final String SESSION_FACTORY
See Also:
Constant Field Values

TX_MANAGER

public static final String TX_MANAGER
See Also:
Constant Field Values

ENTITY_CACHE_ENABLED

public static final boolean ENTITY_CACHE_ENABLED

FINDER_CACHE_ENABLED

public static final boolean FINDER_CACHE_ENABLED

COLUMN_BITMASK_ENABLED

public static final boolean COLUMN_BITMASK_ENABLED

CLASSNAMEID_COLUMN_BITMASK

public static long CLASSNAMEID_COLUMN_BITMASK

CLASSPK_COLUMN_BITMASK

public static long CLASSPK_COLUMN_BITMASK

CLASSUUID_COLUMN_BITMASK

public static long CLASSUUID_COLUMN_BITMASK

COMPANYID_COLUMN_BITMASK

public static long COMPANYID_COLUMN_BITMASK

EXPIRATIONDATE_COLUMN_BITMASK

public static long EXPIRATIONDATE_COLUMN_BITMASK

GROUPID_COLUMN_BITMASK

public static long GROUPID_COLUMN_BITMASK

LAYOUTUUID_COLUMN_BITMASK

public static long LAYOUTUUID_COLUMN_BITMASK

PUBLISHDATE_COLUMN_BITMASK

public static long PUBLISHDATE_COLUMN_BITMASK

VISIBLE_COLUMN_BITMASK

public static long VISIBLE_COLUMN_BITMASK

ENTRYID_COLUMN_BITMASK

public static long ENTRYID_COLUMN_BITMASK

MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_NAME

public static final String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_NAME
See Also:
Constant Field Values

MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_COLUMNS

public static final Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_COLUMNS

MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_SQL_CREATE

public static final String MAPPING_TABLE_ASSETENTRIES_ASSETCATEGORIES_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETCATEGORIES

public static final boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETCATEGORIES

MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_NAME

public static final String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_NAME
See Also:
Constant Field Values

MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_COLUMNS

public static final Object[][] MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_COLUMNS

MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_SQL_CREATE

public static final String MAPPING_TABLE_ASSETENTRIES_ASSETTAGS_SQL_CREATE
See Also:
Constant Field Values

FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETTAGS

public static final boolean FINDER_CACHE_ENABLED_ASSETENTRIES_ASSETTAGS

LOCK_EXPIRATION_TIME

public static final long LOCK_EXPIRATION_TIME
Constructor Detail

AssetEntryModelImpl

public AssetEntryModelImpl()
Method Detail

toModel

public static AssetEntry toModel(AssetEntrySoap soapModel)
Converts the soap model instance into a normal model instance.

Parameters:
soapModel - the soap model instance to convert
Returns:
the normal model instance

toModels

public static List<AssetEntry> toModels(AssetEntrySoap[] soapModels)
Converts the soap model instances into normal model instances.

Parameters:
soapModels - the soap model instances to convert
Returns:
the normal model instances

getPrimaryKey

public long getPrimaryKey()
Description copied from interface: AssetEntryModel
Returns the primary key of this asset entry.

Specified by:
getPrimaryKey in interface AssetEntryModel
Returns:
the primary key of this asset entry

setPrimaryKey

public void setPrimaryKey(long primaryKey)
Description copied from interface: AssetEntryModel
Sets the primary key of this asset entry.

Specified by:
setPrimaryKey in interface AssetEntryModel
Parameters:
primaryKey - the primary key of this asset entry

getPrimaryKeyObj

public Serializable getPrimaryKeyObj()
Description copied from interface: BaseModel
Returns the primary key of this model instance.

Specified by:
getPrimaryKeyObj in interface BaseModel<AssetEntry>
Specified by:
getPrimaryKeyObj in interface ClassedModel
Specified by:
getPrimaryKeyObj in interface AssetEntryModel
Returns:
the primary key of this model instance

setPrimaryKeyObj

public void setPrimaryKeyObj(Serializable primaryKeyObj)
Description copied from interface: BaseModel
Sets the primary key of this model instance.

Specified by:
setPrimaryKeyObj in interface BaseModel<AssetEntry>
Specified by:
setPrimaryKeyObj in interface ClassedModel
Specified by:
setPrimaryKeyObj in interface AssetEntryModel
Parameters:
primaryKeyObj - the primary key of this model instance

getModelClass

public Class<?> getModelClass()
Specified by:
getModelClass in interface ClassedModel

getModelClassName

public String getModelClassName()
Specified by:
getModelClassName in interface ClassedModel

getModelAttributes

public Map<String,Object> getModelAttributes()
Specified by:
getModelAttributes in interface BaseModel<AssetEntry>
Overrides:
getModelAttributes in class BaseModelImpl<AssetEntry>

setModelAttributes

public void setModelAttributes(Map<String,Object> attributes)
Specified by:
setModelAttributes in interface BaseModel<AssetEntry>
Overrides:
setModelAttributes in class BaseModelImpl<AssetEntry>

getEntryId

@JSON
public long getEntryId()
Description copied from interface: AssetEntryModel
Returns the entry ID of this asset entry.

Specified by:
getEntryId in interface AssetEntryModel
Returns:
the entry ID of this asset entry

setEntryId

public void setEntryId(long entryId)
Description copied from interface: AssetEntryModel
Sets the entry ID of this asset entry.

Specified by:
setEntryId in interface AssetEntryModel
Parameters:
entryId - the entry ID of this asset entry

getGroupId

@JSON
public long getGroupId()
Description copied from interface: AssetEntryModel
Returns the group ID of this asset entry.

Specified by:
getGroupId in interface GroupedModel
Specified by:
getGroupId in interface AssetEntryModel
Returns:
the group ID of this asset entry

setGroupId

public void setGroupId(long groupId)
Description copied from interface: AssetEntryModel
Sets the group ID of this asset entry.

Specified by:
setGroupId in interface GroupedModel
Specified by:
setGroupId in interface AssetEntryModel
Parameters:
groupId - the group ID of this asset entry

getOriginalGroupId

public long getOriginalGroupId()

getCompanyId

@JSON
public long getCompanyId()
Description copied from interface: AssetEntryModel
Returns the company ID of this asset entry.

Specified by:
getCompanyId in interface AuditedModel
Specified by:
getCompanyId in interface AssetEntryModel
Returns:
the company ID of this asset entry

setCompanyId

public void setCompanyId(long companyId)
Description copied from interface: AssetEntryModel
Sets the company ID of this asset entry.

Specified by:
setCompanyId in interface AuditedModel
Specified by:
setCompanyId in interface AssetEntryModel
Parameters:
companyId - the company ID of this asset entry

getOriginalCompanyId

public long getOriginalCompanyId()

getUserId

@JSON
public long getUserId()
Description copied from interface: AssetEntryModel
Returns the user ID of this asset entry.

Specified by:
getUserId in interface AuditedModel
Specified by:
getUserId in interface AssetEntryModel
Returns:
the user ID of this asset entry

setUserId

public void setUserId(long userId)
Description copied from interface: AssetEntryModel
Sets the user ID of this asset entry.

Specified by:
setUserId in interface AuditedModel
Specified by:
setUserId in interface AssetEntryModel
Parameters:
userId - the user ID of this asset entry

getUserUuid

public String getUserUuid()
                   throws SystemException
Description copied from interface: AssetEntryModel
Returns the user uuid of this asset entry.

Specified by:
getUserUuid in interface AuditedModel
Specified by:
getUserUuid in interface AssetEntryModel
Returns:
the user uuid of this asset entry
Throws:
SystemException - if a system exception occurred

setUserUuid

public void setUserUuid(String userUuid)
Description copied from interface: AssetEntryModel
Sets the user uuid of this asset entry.

Specified by:
setUserUuid in interface AuditedModel
Specified by:
setUserUuid in interface AssetEntryModel
Parameters:
userUuid - the user uuid of this asset entry

getUserName

@JSON
public String getUserName()
Description copied from interface: AssetEntryModel
Returns the user name of this asset entry.

Specified by:
getUserName in interface AuditedModel
Specified by:
getUserName in interface AssetEntryModel
Returns:
the user name of this asset entry

setUserName

public void setUserName(String userName)
Description copied from interface: AssetEntryModel
Sets the user name of this asset entry.

Specified by:
setUserName in interface AuditedModel
Specified by:
setUserName in interface AssetEntryModel
Parameters:
userName - the user name of this asset entry

getCreateDate

@JSON
public Date getCreateDate()
Description copied from interface: AssetEntryModel
Returns the create date of this asset entry.

Specified by:
getCreateDate in interface AuditedModel
Specified by:
getCreateDate in interface AssetEntryModel
Returns:
the create date of this asset entry

setCreateDate

public void setCreateDate(Date createDate)
Description copied from interface: AssetEntryModel
Sets the create date of this asset entry.

Specified by:
setCreateDate in interface AuditedModel
Specified by:
setCreateDate in interface AssetEntryModel
Parameters:
createDate - the create date of this asset entry

getModifiedDate

@JSON
public Date getModifiedDate()
Description copied from interface: AssetEntryModel
Returns the modified date of this asset entry.

Specified by:
getModifiedDate in interface AuditedModel
Specified by:
getModifiedDate in interface AssetEntryModel
Returns:
the modified date of this asset entry

setModifiedDate

public void setModifiedDate(Date modifiedDate)
Description copied from interface: AssetEntryModel
Sets the modified date of this asset entry.

Specified by:
setModifiedDate in interface AuditedModel
Specified by:
setModifiedDate in interface AssetEntryModel
Parameters:
modifiedDate - the modified date of this asset entry

getClassName

public String getClassName()
Description copied from interface: AssetEntryModel
Returns the fully qualified class name of this asset entry.

Specified by:
getClassName in interface TypedModel
Specified by:
getClassName in interface AssetEntryModel
Returns:
the fully qualified class name of this asset entry

setClassName

public void setClassName(String className)
Specified by:
setClassName in interface AssetEntryModel

getClassNameId

@JSON
public long getClassNameId()
Description copied from interface: AssetEntryModel
Returns the class name ID of this asset entry.

Specified by:
getClassNameId in interface TypedModel
Specified by:
getClassNameId in interface AssetEntryModel
Returns:
the class name ID of this asset entry

setClassNameId

public void setClassNameId(long classNameId)
Description copied from interface: AssetEntryModel
Sets the class name ID of this asset entry.

Specified by:
setClassNameId in interface TypedModel
Specified by:
setClassNameId in interface AssetEntryModel
Parameters:
classNameId - the class name ID of this asset entry

getOriginalClassNameId

public long getOriginalClassNameId()

getClassPK

@JSON
public long getClassPK()
Description copied from interface: AssetEntryModel
Returns the class p k of this asset entry.

Specified by:
getClassPK in interface AttachedModel
Specified by:
getClassPK in interface AssetEntryModel
Returns:
the class p k of this asset entry

setClassPK

public void setClassPK(long classPK)
Description copied from interface: AssetEntryModel
Sets the class p k of this asset entry.

Specified by:
setClassPK in interface AttachedModel
Specified by:
setClassPK in interface AssetEntryModel
Parameters:
classPK - the class p k of this asset entry

getOriginalClassPK

public long getOriginalClassPK()

getClassUuid

@JSON
public String getClassUuid()
Description copied from interface: AssetEntryModel
Returns the class uuid of this asset entry.

Specified by:
getClassUuid in interface AssetEntryModel
Returns:
the class uuid of this asset entry

setClassUuid

public void setClassUuid(String classUuid)
Description copied from interface: AssetEntryModel
Sets the class uuid of this asset entry.

Specified by:
setClassUuid in interface AssetEntryModel
Parameters:
classUuid - the class uuid of this asset entry

getOriginalClassUuid

public String getOriginalClassUuid()

getClassTypeId

@JSON
public long getClassTypeId()
Description copied from interface: AssetEntryModel
Returns the class type ID of this asset entry.

Specified by:
getClassTypeId in interface AssetEntryModel
Returns:
the class type ID of this asset entry

setClassTypeId

public void setClassTypeId(long classTypeId)
Description copied from interface: AssetEntryModel
Sets the class type ID of this asset entry.

Specified by:
setClassTypeId in interface AssetEntryModel
Parameters:
classTypeId - the class type ID of this asset entry

getVisible

@JSON
public boolean getVisible()
Description copied from interface: AssetEntryModel
Returns the visible of this asset entry.

Specified by:
getVisible in interface AssetEntryModel
Returns:
the visible of this asset entry

isVisible

public boolean isVisible()
Description copied from interface: AssetEntryModel
Returns true if this asset entry is visible.

Specified by:
isVisible in interface AssetEntryModel
Returns:
true if this asset entry is visible; false otherwise

setVisible

public void setVisible(boolean visible)
Description copied from interface: AssetEntryModel
Sets whether this asset entry is visible.

Specified by:
setVisible in interface AssetEntryModel
Parameters:
visible - the visible of this asset entry

getOriginalVisible

public boolean getOriginalVisible()

getStartDate

@JSON
public Date getStartDate()
Description copied from interface: AssetEntryModel
Returns the start date of this asset entry.

Specified by:
getStartDate in interface AssetEntryModel
Returns:
the start date of this asset entry

setStartDate

public void setStartDate(Date startDate)
Description copied from interface: AssetEntryModel
Sets the start date of this asset entry.

Specified by:
setStartDate in interface AssetEntryModel
Parameters:
startDate - the start date of this asset entry

getEndDate

@JSON
public Date getEndDate()
Description copied from interface: AssetEntryModel
Returns the end date of this asset entry.

Specified by:
getEndDate in interface AssetEntryModel
Returns:
the end date of this asset entry

setEndDate

public void setEndDate(Date endDate)
Description copied from interface: AssetEntryModel
Sets the end date of this asset entry.

Specified by:
setEndDate in interface AssetEntryModel
Parameters:
endDate - the end date of this asset entry

getPublishDate

@JSON
public Date getPublishDate()
Description copied from interface: AssetEntryModel
Returns the publish date of this asset entry.

Specified by:
getPublishDate in interface AssetEntryModel
Returns:
the publish date of this asset entry

setPublishDate

public void setPublishDate(Date publishDate)
Description copied from interface: AssetEntryModel
Sets the publish date of this asset entry.

Specified by:
setPublishDate in interface AssetEntryModel
Parameters:
publishDate - the publish date of this asset entry

getOriginalPublishDate

public Date getOriginalPublishDate()

getExpirationDate

@JSON
public Date getExpirationDate()
Description copied from interface: AssetEntryModel
Returns the expiration date of this asset entry.

Specified by:
getExpirationDate in interface AssetEntryModel
Returns:
the expiration date of this asset entry

setExpirationDate

public void setExpirationDate(Date expirationDate)
Description copied from interface: AssetEntryModel
Sets the expiration date of this asset entry.

Specified by:
setExpirationDate in interface AssetEntryModel
Parameters:
expirationDate - the expiration date of this asset entry

getOriginalExpirationDate

public Date getOriginalExpirationDate()

getMimeType

@JSON
public String getMimeType()
Description copied from interface: AssetEntryModel
Returns the mime type of this asset entry.

Specified by:
getMimeType in interface AssetEntryModel
Returns:
the mime type of this asset entry

setMimeType

public void setMimeType(String mimeType)
Description copied from interface: AssetEntryModel
Sets the mime type of this asset entry.

Specified by:
setMimeType in interface AssetEntryModel
Parameters:
mimeType - the mime type of this asset entry

getTitle

@JSON
public String getTitle()
Description copied from interface: AssetEntryModel
Returns the title of this asset entry.

Specified by:
getTitle in interface AssetEntryModel
Returns:
the title of this asset entry

getTitle

public String getTitle(Locale locale)
Description copied from interface: AssetEntryModel
Returns the localized title of this asset entry in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getTitle in interface AssetEntryModel
Parameters:
locale - the locale of the language
Returns:
the localized title of this asset entry

getTitle

public String getTitle(Locale locale,
                       boolean useDefault)
Description copied from interface: AssetEntryModel
Returns the localized title of this asset entry in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getTitle in interface AssetEntryModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized title of this asset entry. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getTitle

public String getTitle(String languageId)
Description copied from interface: AssetEntryModel
Returns the localized title of this asset entry in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getTitle in interface AssetEntryModel
Parameters:
languageId - the ID of the language
Returns:
the localized title of this asset entry

getTitle

public String getTitle(String languageId,
                       boolean useDefault)
Description copied from interface: AssetEntryModel
Returns the localized title of this asset entry in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getTitle in interface AssetEntryModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized title of this asset entry

getTitleCurrentLanguageId

public String getTitleCurrentLanguageId()
Specified by:
getTitleCurrentLanguageId in interface AssetEntryModel

getTitleCurrentValue

@JSON
public String getTitleCurrentValue()
Specified by:
getTitleCurrentValue in interface AssetEntryModel

getTitleMap

public Map<Locale,String> getTitleMap()
Description copied from interface: AssetEntryModel
Returns a map of the locales and localized titles of this asset entry.

Specified by:
getTitleMap in interface AssetEntryModel
Returns:
the locales and localized titles of this asset entry

setTitle

public void setTitle(String title)
Description copied from interface: AssetEntryModel
Sets the title of this asset entry.

Specified by:
setTitle in interface AssetEntryModel
Parameters:
title - the title of this asset entry

setTitle

public void setTitle(String title,
                     Locale locale)
Description copied from interface: AssetEntryModel
Sets the localized title of this asset entry in the language.

Specified by:
setTitle in interface AssetEntryModel
Parameters:
title - the localized title of this asset entry
locale - the locale of the language

setTitle

public void setTitle(String title,
                     Locale locale,
                     Locale defaultLocale)
Description copied from interface: AssetEntryModel
Sets the localized title of this asset entry in the language, and sets the default locale.

Specified by:
setTitle in interface AssetEntryModel
Parameters:
title - the localized title of this asset entry
locale - the locale of the language
defaultLocale - the default locale

setTitleCurrentLanguageId

public void setTitleCurrentLanguageId(String languageId)
Specified by:
setTitleCurrentLanguageId in interface AssetEntryModel

setTitleMap

public void setTitleMap(Map<Locale,String> titleMap)
Description copied from interface: AssetEntryModel
Sets the localized titles of this asset entry from the map of locales and localized titles.

Specified by:
setTitleMap in interface AssetEntryModel
Parameters:
titleMap - the locales and localized titles of this asset entry

setTitleMap

public void setTitleMap(Map<Locale,String> titleMap,
                        Locale defaultLocale)
Description copied from interface: AssetEntryModel
Sets the localized titles of this asset entry from the map of locales and localized titles, and sets the default locale.

Specified by:
setTitleMap in interface AssetEntryModel
Parameters:
titleMap - the locales and localized titles of this asset entry
defaultLocale - the default locale

getDescription

@JSON
public String getDescription()
Description copied from interface: AssetEntryModel
Returns the description of this asset entry.

Specified by:
getDescription in interface AssetEntryModel
Returns:
the description of this asset entry

getDescription

public String getDescription(Locale locale)
Description copied from interface: AssetEntryModel
Returns the localized description of this asset entry in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface AssetEntryModel
Parameters:
locale - the locale of the language
Returns:
the localized description of this asset entry

getDescription

public String getDescription(Locale locale,
                             boolean useDefault)
Description copied from interface: AssetEntryModel
Returns the localized description of this asset entry in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getDescription in interface AssetEntryModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized description of this asset entry. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getDescription

public String getDescription(String languageId)
Description copied from interface: AssetEntryModel
Returns the localized description of this asset entry in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getDescription in interface AssetEntryModel
Parameters:
languageId - the ID of the language
Returns:
the localized description of this asset entry

getDescription

public String getDescription(String languageId,
                             boolean useDefault)
Description copied from interface: AssetEntryModel
Returns the localized description of this asset entry in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getDescription in interface AssetEntryModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized description of this asset entry

getDescriptionCurrentLanguageId

public String getDescriptionCurrentLanguageId()
Specified by:
getDescriptionCurrentLanguageId in interface AssetEntryModel

getDescriptionCurrentValue

@JSON
public String getDescriptionCurrentValue()
Specified by:
getDescriptionCurrentValue in interface AssetEntryModel

getDescriptionMap

public Map<Locale,String> getDescriptionMap()
Description copied from interface: AssetEntryModel
Returns a map of the locales and localized descriptions of this asset entry.

Specified by:
getDescriptionMap in interface AssetEntryModel
Returns:
the locales and localized descriptions of this asset entry

setDescription

public void setDescription(String description)
Description copied from interface: AssetEntryModel
Sets the description of this asset entry.

Specified by:
setDescription in interface AssetEntryModel
Parameters:
description - the description of this asset entry

setDescription

public void setDescription(String description,
                           Locale locale)
Description copied from interface: AssetEntryModel
Sets the localized description of this asset entry in the language.

Specified by:
setDescription in interface AssetEntryModel
Parameters:
description - the localized description of this asset entry
locale - the locale of the language

setDescription

public void setDescription(String description,
                           Locale locale,
                           Locale defaultLocale)
Description copied from interface: AssetEntryModel
Sets the localized description of this asset entry in the language, and sets the default locale.

Specified by:
setDescription in interface AssetEntryModel
Parameters:
description - the localized description of this asset entry
locale - the locale of the language
defaultLocale - the default locale

setDescriptionCurrentLanguageId

public void setDescriptionCurrentLanguageId(String languageId)
Specified by:
setDescriptionCurrentLanguageId in interface AssetEntryModel

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap)
Description copied from interface: AssetEntryModel
Sets the localized descriptions of this asset entry from the map of locales and localized descriptions.

Specified by:
setDescriptionMap in interface AssetEntryModel
Parameters:
descriptionMap - the locales and localized descriptions of this asset entry

setDescriptionMap

public void setDescriptionMap(Map<Locale,String> descriptionMap,
                              Locale defaultLocale)
Description copied from interface: AssetEntryModel
Sets the localized descriptions of this asset entry from the map of locales and localized descriptions, and sets the default locale.

Specified by:
setDescriptionMap in interface AssetEntryModel
Parameters:
descriptionMap - the locales and localized descriptions of this asset entry
defaultLocale - the default locale

getSummary

@JSON
public String getSummary()
Description copied from interface: AssetEntryModel
Returns the summary of this asset entry.

Specified by:
getSummary in interface AssetEntryModel
Returns:
the summary of this asset entry

getSummary

public String getSummary(Locale locale)
Description copied from interface: AssetEntryModel
Returns the localized summary of this asset entry in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getSummary in interface AssetEntryModel
Parameters:
locale - the locale of the language
Returns:
the localized summary of this asset entry

getSummary

public String getSummary(Locale locale,
                         boolean useDefault)
Description copied from interface: AssetEntryModel
Returns the localized summary of this asset entry in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getSummary in interface AssetEntryModel
Parameters:
locale - the local of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized summary of this asset entry. If useDefault is false and no localization exists for the requested language, an empty string will be returned.

getSummary

public String getSummary(String languageId)
Description copied from interface: AssetEntryModel
Returns the localized summary of this asset entry in the language. Uses the default language if no localization exists for the requested language.

Specified by:
getSummary in interface AssetEntryModel
Parameters:
languageId - the ID of the language
Returns:
the localized summary of this asset entry

getSummary

public String getSummary(String languageId,
                         boolean useDefault)
Description copied from interface: AssetEntryModel
Returns the localized summary of this asset entry in the language, optionally using the default language if no localization exists for the requested language.

Specified by:
getSummary in interface AssetEntryModel
Parameters:
languageId - the ID of the language
useDefault - whether to use the default language if no localization exists for the requested language
Returns:
the localized summary of this asset entry

getSummaryCurrentLanguageId

public String getSummaryCurrentLanguageId()
Specified by:
getSummaryCurrentLanguageId in interface AssetEntryModel

getSummaryCurrentValue

@JSON
public String getSummaryCurrentValue()
Specified by:
getSummaryCurrentValue in interface AssetEntryModel

getSummaryMap

public Map<Locale,String> getSummaryMap()
Description copied from interface: AssetEntryModel
Returns a map of the locales and localized summaries of this asset entry.

Specified by:
getSummaryMap in interface AssetEntryModel
Returns:
the locales and localized summaries of this asset entry

setSummary

public void setSummary(String summary)
Description copied from interface: AssetEntryModel
Sets the summary of this asset entry.

Specified by:
setSummary in interface AssetEntryModel
Parameters:
summary - the summary of this asset entry

setSummary

public void setSummary(String summary,
                       Locale locale)
Description copied from interface: AssetEntryModel
Sets the localized summary of this asset entry in the language.

Specified by:
setSummary in interface AssetEntryModel
Parameters:
summary - the localized summary of this asset entry
locale - the locale of the language

setSummary

public void setSummary(String summary,
                       Locale locale,
                       Locale defaultLocale)
Description copied from interface: AssetEntryModel
Sets the localized summary of this asset entry in the language, and sets the default locale.

Specified by:
setSummary in interface AssetEntryModel
Parameters:
summary - the localized summary of this asset entry
locale - the locale of the language
defaultLocale - the default locale

setSummaryCurrentLanguageId

public void setSummaryCurrentLanguageId(String languageId)
Specified by:
setSummaryCurrentLanguageId in interface AssetEntryModel

setSummaryMap

public void setSummaryMap(Map<Locale,String> summaryMap)
Description copied from interface: AssetEntryModel
Sets the localized summaries of this asset entry from the map of locales and localized summaries.

Specified by:
setSummaryMap in interface AssetEntryModel
Parameters:
summaryMap - the locales and localized summaries of this asset entry

setSummaryMap

public void setSummaryMap(Map<Locale,String> summaryMap,
                          Locale defaultLocale)
Description copied from interface: AssetEntryModel
Sets the localized summaries of this asset entry from the map of locales and localized summaries, and sets the default locale.

Specified by:
setSummaryMap in interface AssetEntryModel
Parameters:
summaryMap - the locales and localized summaries of this asset entry
defaultLocale - the default locale

getUrl

@JSON
public String getUrl()
Description copied from interface: AssetEntryModel
Returns the url of this asset entry.

Specified by:
getUrl in interface AssetEntryModel
Returns:
the url of this asset entry

setUrl

public void setUrl(String url)
Description copied from interface: AssetEntryModel
Sets the url of this asset entry.

Specified by:
setUrl in interface AssetEntryModel
Parameters:
url - the url of this asset entry

getLayoutUuid

@JSON
public String getLayoutUuid()
Description copied from interface: AssetEntryModel
Returns the layout uuid of this asset entry.

Specified by:
getLayoutUuid in interface AssetEntryModel
Returns:
the layout uuid of this asset entry

setLayoutUuid

public void setLayoutUuid(String layoutUuid)
Description copied from interface: AssetEntryModel
Sets the layout uuid of this asset entry.

Specified by:
setLayoutUuid in interface AssetEntryModel
Parameters:
layoutUuid - the layout uuid of this asset entry

getOriginalLayoutUuid

public String getOriginalLayoutUuid()

getHeight

@JSON
public int getHeight()
Description copied from interface: AssetEntryModel
Returns the height of this asset entry.

Specified by:
getHeight in interface AssetEntryModel
Returns:
the height of this asset entry

setHeight

public void setHeight(int height)
Description copied from interface: AssetEntryModel
Sets the height of this asset entry.

Specified by:
setHeight in interface AssetEntryModel
Parameters:
height - the height of this asset entry

getWidth

@JSON
public int getWidth()
Description copied from interface: AssetEntryModel
Returns the width of this asset entry.

Specified by:
getWidth in interface AssetEntryModel
Returns:
the width of this asset entry

setWidth

public void setWidth(int width)
Description copied from interface: AssetEntryModel
Sets the width of this asset entry.

Specified by:
setWidth in interface AssetEntryModel
Parameters:
width - the width of this asset entry

getPriority

@JSON
public double getPriority()
Description copied from interface: AssetEntryModel
Returns the priority of this asset entry.

Specified by:
getPriority in interface AssetEntryModel
Returns:
the priority of this asset entry

setPriority

public void setPriority(double priority)
Description copied from interface: AssetEntryModel
Sets the priority of this asset entry.

Specified by:
setPriority in interface AssetEntryModel
Parameters:
priority - the priority of this asset entry

getViewCount

@JSON
public int getViewCount()
Description copied from interface: AssetEntryModel
Returns the view count of this asset entry.

Specified by:
getViewCount in interface AssetEntryModel
Returns:
the view count of this asset entry

setViewCount

public void setViewCount(int viewCount)
Description copied from interface: AssetEntryModel
Sets the view count of this asset entry.

Specified by:
setViewCount in interface AssetEntryModel
Parameters:
viewCount - the view count of this asset entry

getColumnBitmask

public long getColumnBitmask()

getExpandoBridge

public ExpandoBridge getExpandoBridge()
Description copied from interface: BaseModel
Returns the expando bridge for this model instance.

Specified by:
getExpandoBridge in interface BaseModel<AssetEntry>
Specified by:
getExpandoBridge in interface ClassedModel
Specified by:
getExpandoBridge in interface AssetEntryModel
Overrides:
getExpandoBridge in class BaseModelImpl<AssetEntry>
Returns:
the expando bridge for this model instance

setExpandoBridgeAttributes

public void setExpandoBridgeAttributes(ServiceContext serviceContext)
Description copied from interface: BaseModel
Sets the expando bridge attributes for this model instance to the attributes stored in the service context.

Specified by:
setExpandoBridgeAttributes in interface BaseModel<AssetEntry>
Specified by:
setExpandoBridgeAttributes in interface AssetEntryModel
Overrides:
setExpandoBridgeAttributes in class BaseModelImpl<AssetEntry>
Parameters:
serviceContext - the service context to be applied
See Also:
ServiceContext.getExpandoBridgeAttributes( )

getAvailableLanguageIds

public String[] getAvailableLanguageIds()
Specified by:
getAvailableLanguageIds in interface AssetEntryModel

getDefaultLanguageId

public String getDefaultLanguageId()
Specified by:
getDefaultLanguageId in interface AssetEntryModel

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport()
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface AssetEntryModel
Throws:
LocaleException

prepareLocalizedFieldsForImport

public void prepareLocalizedFieldsForImport(Locale defaultImportLocale)
                                     throws LocaleException
Specified by:
prepareLocalizedFieldsForImport in interface AssetEntryModel
Throws:
LocaleException

toEscapedModel

public AssetEntry toEscapedModel()
Description copied from interface: BaseModel
Returns a copy of this entity as an escaped model instance by wrapping it with an AutoEscapeBeanHandler.

Specified by:
toEscapedModel in interface BaseModel<AssetEntry>
Specified by:
toEscapedModel in interface AssetEntryModel
Overrides:
toEscapedModel in class BaseModelImpl<AssetEntry>
Returns:
the escaped model instance
See Also:
AutoEscapeBeanHandler

clone

public Object clone()
Description copied from interface: BaseModel
Creates a shallow clone of this model instance.

Specified by:
clone in interface BaseModel<AssetEntry>
Specified by:
clone in interface AssetEntryModel
Specified by:
clone in class BaseModelImpl<AssetEntry>
Returns:
the shallow clone of this model instance

compareTo

public int compareTo(AssetEntry assetEntry)
Specified by:
compareTo in interface AssetEntryModel
Specified by:
compareTo in interface Comparable<AssetEntry>

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface AssetEntryModel
Overrides:
hashCode in class Object

resetOriginalValues

public void resetOriginalValues()
Description copied from interface: BaseModel
Reset all original fields to current values.

Specified by:
resetOriginalValues in interface BaseModel<AssetEntry>
Overrides:
resetOriginalValues in class BaseModelImpl<AssetEntry>

toCacheModel

public CacheModel<AssetEntry> toCacheModel()
Description copied from interface: BaseModel
Returns a cache model object for this entity used by entity cache.

Specified by:
toCacheModel in interface BaseModel<AssetEntry>
Specified by:
toCacheModel in interface AssetEntryModel
Overrides:
toCacheModel in class BaseModelImpl<AssetEntry>
Returns:
the cache model object

toString

public String toString()
Specified by:
toString in interface AssetEntryModel
Overrides:
toString in class Object

toXmlString

public String toXmlString()
Description copied from interface: BaseModel
Returns the XML representation of this model instance.

Specified by:
toXmlString in interface BaseModel<AssetEntry>
Specified by:
toXmlString in interface AssetEntryModel
Returns:
the XML representation of this model instance

Liferay 6.2-ce-ga5