com.elasticpath.domain.catalog.impl
Class DigitalAssetImpl

java.lang.Object
  extended by com.elasticpath.domain.impl.AbstractEpDomainImpl
      extended by com.elasticpath.domain.impl.AbstractPersistenceImpl
          extended by com.elasticpath.domain.impl.AbstractValueObjectImpl
              extended by com.elasticpath.domain.catalog.impl.DigitalAssetImpl
All Implemented Interfaces:
DigitalAsset, EpDomain, Persistence, ValueObject, java.io.Serializable

public class DigitalAssetImpl
extends AbstractValueObjectImpl
implements DigitalAsset

This is a default implementation of DigitalAsset.

See Also:
Serialized Form

Field Summary
static long serialVersionUID
          Serial version id.
 
Constructor Summary
DigitalAssetImpl()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
          Returns true if this object equals to the given object.
 java.lang.String getEncryptedUidPk()
          Get the encrypted uidPk string.
 int getExpiryDays()
          Returns the expiry days.
 java.lang.String getFileName()
          Returns the file name.
 java.lang.String getFileNameWithoutPath()
          Returns the file name without the path information.
 int getMaxDownloadTimes()
          Returns the maximum download times.
 int hashCode()
          Generate the hash code.
 void setExpiryDays(int expiryDays)
          Sets the expiry days.
 void setFileName(java.lang.String fileName)
          Sets the file name.
 void setMaxDownloadTimes(int maxDownloadTimes)
          Sets the maximum download times.
 
Methods inherited from class com.elasticpath.domain.impl.AbstractPersistenceImpl
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from class com.elasticpath.domain.impl.AbstractEpDomainImpl
getElasticPath, setElasticPath
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.elasticpath.domain.Persistence
executeBeforePersistAction, getUidPk, isPersistent, setDefaultValues, setUidPk
 
Methods inherited from interface com.elasticpath.domain.EpDomain
getElasticPath, setElasticPath
 

Field Detail

serialVersionUID

public static final long serialVersionUID
Serial version id.

See Also:
Constant Field Values
Constructor Detail

DigitalAssetImpl

public DigitalAssetImpl()
Method Detail

equals

public boolean equals(java.lang.Object obj)
Returns true if this object equals to the given object.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the given object
Returns:
true if this object equals to the given object

getEncryptedUidPk

public java.lang.String getEncryptedUidPk()
Get the encrypted uidPk string.

Specified by:
getEncryptedUidPk in interface DigitalAsset
Returns:
the encrypted uidPk string

getExpiryDays

public int getExpiryDays()
Returns the expiry days.

Specified by:
getExpiryDays in interface DigitalAsset
Returns:
the expiry days

getFileName

public java.lang.String getFileName()
Returns the file name.

Specified by:
getFileName in interface DigitalAsset
Returns:
the file name

getFileNameWithoutPath

public java.lang.String getFileNameWithoutPath()
Returns the file name without the path information.

Specified by:
getFileNameWithoutPath in interface DigitalAsset
Returns:
the file name

getMaxDownloadTimes

public int getMaxDownloadTimes()
Returns the maximum download times.

Specified by:
getMaxDownloadTimes in interface DigitalAsset
Returns:
the maximum download times

hashCode

public int hashCode()
Generate the hash code.

Overrides:
hashCode in class java.lang.Object
Returns:
the hash code.

setExpiryDays

public void setExpiryDays(int expiryDays)
Sets the expiry days.

Specified by:
setExpiryDays in interface DigitalAsset
Parameters:
expiryDays - the expiry days

setFileName

public void setFileName(java.lang.String fileName)
Sets the file name.

Specified by:
setFileName in interface DigitalAsset
Parameters:
fileName - the file name

setMaxDownloadTimes

public void setMaxDownloadTimes(int maxDownloadTimes)
Sets the maximum download times.

Specified by:
setMaxDownloadTimes in interface DigitalAsset
Parameters:
maxDownloadTimes - the maximum download times