Package org.cyclos.entities.marketplace
Class AdInterest
- java.lang.Object
-
- org.cyclos.entities.SimpleEntity
-
- org.cyclos.entities.NetworkedEntity
-
- org.cyclos.entities.BaseEntity
-
- org.cyclos.entities.NamedEntity
-
- org.cyclos.entities.marketplace.AdInterest
-
- All Implemented Interfaces:
Cloneable,Comparable<NamedEntity>,HasCurrency,HasNetwork,ProcessableForProxying,IEntity,INamedEntity
@Entity public class AdInterest extends NamedEntity implements HasCurrency
When an ad gets published on the system, users that may be interested on it are notified. That is done using the ad interests registered by the users.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.cyclos.entities.SimpleEntity
SimpleEntity.EntityLoadNotifier
-
-
Constructor Summary
Constructors Constructor Description AdInterest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdTypegetAdType()AdCategorygetCategory()CurrencygetCurrency()Set<String>getKeywords()NetworkgetNetwork()Returns the network this entity belongs toUsergetOwner()CurrencyAmountRangegetPriceRange()UsergetUser()voidsetAdType(AdType adType)voidsetCategory(AdCategory category)voidsetKeywords(Set<String> keywords)voidsetOwner(User owner)voidsetPriceRange(CurrencyAmountRange priceRange)voidsetUser(User user)-
Methods inherited from class org.cyclos.entities.NamedEntity
compareTo, getName, getNames, setName, toShortString, toString
-
Methods inherited from class org.cyclos.entities.BaseEntity
getDataTranslationType, getVersion
-
Methods inherited from class org.cyclos.entities.NetworkedEntity
isGlobal
-
Methods inherited from class org.cyclos.entities.SimpleEntity
equals, getId, hashCode, id, ids, isPersistent, isTransient, register, setId, uniqueIds, uniqueIds
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.entities.banking.HasCurrency
round, withCurrency
-
Methods inherited from interface org.cyclos.entities.ProcessableForProxying
getProxyClass
-
-
-
-
Method Detail
-
getAdType
public AdType getAdType()
-
getCategory
public AdCategory getCategory()
-
getCurrency
public Currency getCurrency()
- Specified by:
getCurrencyin interfaceHasCurrency
-
getNetwork
public Network getNetwork()
Description copied from interface:HasNetworkReturns the network this entity belongs to- Specified by:
getNetworkin interfaceHasNetwork
-
getOwner
public User getOwner()
-
getPriceRange
public CurrencyAmountRange getPriceRange()
-
getUser
public User getUser()
-
setAdType
public void setAdType(AdType adType)
-
setCategory
public void setCategory(AdCategory category)
-
setOwner
public void setOwner(User owner)
-
setPriceRange
public void setPriceRange(CurrencyAmountRange priceRange)
-
setUser
public void setUser(User user)
-
-