Class AbstractAdData
- java.lang.Object
-
- org.cyclos.model.Bean
-
- org.cyclos.model.EntityData<BasicAdDTO>
-
- org.cyclos.model.marketplace.advertisements.AbstractAdData
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AdDetailsData,AdViewData
public abstract class AbstractAdData extends EntityData<BasicAdDTO>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static BasicProperty<Boolean,AbstractAdData>CAN_CREATE_NEWstatic BasicProperty<Boolean,AbstractAdData>CAN_SET_ADDRESSstatic BasicProperty<Boolean,AbstractAdData>CAN_SUBMIT_FOR_AUTHORIZATIONstatic StringCLASS_NAMEstatic ListProperty<CurrencyVO,AbstractAdData>CURRENCIESstatic ListProperty<AdCustomFieldActions,AbstractAdData>CUSTOM_FIELD_ACTIONSstatic BasicProperty<Boolean,AbstractAdData>HIDE_OWNERstatic BasicProperty<Boolean,AbstractAdData>HIDE_PRICEstatic ListProperty<ImageVO,AbstractAdData>IMAGESstatic BasicProperty<Integer,AbstractAdData>MAX_IMAGESstatic ListProperty<AdQuestionVO,AbstractAdData>QUESTIONSstatic BasicProperty<Boolean,AbstractAdData>QUESTIONS_ENABLED-
Fields inherited from class org.cyclos.model.EntityData
CAN_VIEW_HISTORY_LOG, CONFIRMATION_PASSWORD_INPUT, DTO, EDITABLE, LOG_TYPE, REMOVABLE, TRANSLATED_PROPERTY_TYPES, TRANSLATED_VALUES
-
-
Constructor Summary
Constructors Constructor Description AbstractAdData()AbstractAdData(Property<T,? super AbstractAdData> property, T value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<Property<?,?>>doGetProperties()List<CurrencyVO>getCurrencies()List<AdCustomFieldActions>getCustomFieldActions()List<ImageVO>getImages()intgetMaxImages()List<AdQuestionVO>getQuestions()booleanisCanCreateNew()booleanisCanSetAddress()booleanisCanSubmitForAuthorization()booleanisHideOwner()booleanisHidePrice()booleanisQuestionsEnabled()voidsetCanCreateNew(boolean canCreateNew)voidsetCanSetAddress(boolean canSetAddress)voidsetCanSubmitForAuthorization(boolean canSubmitForAuthorization)voidsetCurrencies(List<CurrencyVO> currencies)voidsetCustomFieldActions(List<AdCustomFieldActions> customFieldActions)voidsetHideOwner(boolean hideOwner)voidsetHidePrice(boolean hidePrice)voidsetImages(List<ImageVO> images)voidsetMaxImages(int maxImages)voidsetQuestions(List<AdQuestionVO> questions)voidsetQuestionsEnabled(boolean questionsEnabled)-
Methods inherited from class org.cyclos.model.EntityData
getConfirmationPasswordInput, getDto, getLogType, getTranslatedPropertyTypes, getTranslatedValues, isCanViewHistoryLog, isEditable, isRemovable, setCanViewHistoryLog, setConfirmationPasswordInput, setDto, setEditable, setLogType, setRemovable, setTranslatedPropertyTypes, setTranslatedValues
-
Methods inherited from class org.cyclos.model.Bean
addPropertyChangeListener, addPropertyChangeListener, attributeNames, backup, changes, className, clearAttributes, copyPropertiesTo, copyPropertiesTo, copyPropertiesTo, dataAccessor, firePropertyChange, get, getAttribute, initDataAccessor, properties, property, propertyMap, removeAttribute, removePropertyChangeListener, removePropertyChangeListener, restore, set, set, setAttribute, setWithPropagationId, values
-
-
-
-
Field Detail
-
CLASS_NAME
public static final String CLASS_NAME
-
CAN_CREATE_NEW
public static final BasicProperty<Boolean,AbstractAdData> CAN_CREATE_NEW
-
CAN_SET_ADDRESS
public static final BasicProperty<Boolean,AbstractAdData> CAN_SET_ADDRESS
-
CAN_SUBMIT_FOR_AUTHORIZATION
public static final BasicProperty<Boolean,AbstractAdData> CAN_SUBMIT_FOR_AUTHORIZATION
-
CURRENCIES
public static final ListProperty<CurrencyVO,AbstractAdData> CURRENCIES
-
CUSTOM_FIELD_ACTIONS
public static final ListProperty<AdCustomFieldActions,AbstractAdData> CUSTOM_FIELD_ACTIONS
-
HIDE_OWNER
public static final BasicProperty<Boolean,AbstractAdData> HIDE_OWNER
-
HIDE_PRICE
public static final BasicProperty<Boolean,AbstractAdData> HIDE_PRICE
-
IMAGES
public static final ListProperty<ImageVO,AbstractAdData> IMAGES
-
MAX_IMAGES
public static final BasicProperty<Integer,AbstractAdData> MAX_IMAGES
-
QUESTIONS
public static final ListProperty<AdQuestionVO,AbstractAdData> QUESTIONS
-
QUESTIONS_ENABLED
public static final BasicProperty<Boolean,AbstractAdData> QUESTIONS_ENABLED
-
-
Constructor Detail
-
AbstractAdData
public AbstractAdData()
-
AbstractAdData
public AbstractAdData(Property<T,? super AbstractAdData> property, T value)
-
-
Method Detail
-
doGetProperties
protected List<Property<?,?>> doGetProperties()
- Overrides:
doGetPropertiesin classEntityData<BasicAdDTO>
-
isCanCreateNew
public boolean isCanCreateNew()
-
setCanCreateNew
public void setCanCreateNew(boolean canCreateNew)
-
isCanSetAddress
public boolean isCanSetAddress()
-
setCanSetAddress
public void setCanSetAddress(boolean canSetAddress)
-
isCanSubmitForAuthorization
public boolean isCanSubmitForAuthorization()
-
setCanSubmitForAuthorization
public void setCanSubmitForAuthorization(boolean canSubmitForAuthorization)
-
getCurrencies
public List<CurrencyVO> getCurrencies()
-
setCurrencies
public void setCurrencies(List<CurrencyVO> currencies)
-
getCustomFieldActions
public List<AdCustomFieldActions> getCustomFieldActions()
-
setCustomFieldActions
public void setCustomFieldActions(List<AdCustomFieldActions> customFieldActions)
-
isHideOwner
public boolean isHideOwner()
-
setHideOwner
public void setHideOwner(boolean hideOwner)
-
isHidePrice
public boolean isHidePrice()
-
setHidePrice
public void setHidePrice(boolean hidePrice)
-
getMaxImages
public int getMaxImages()
-
setMaxImages
public void setMaxImages(int maxImages)
-
getQuestions
public List<AdQuestionVO> getQuestions()
-
setQuestions
public void setQuestions(List<AdQuestionVO> questions)
-
isQuestionsEnabled
public boolean isQuestionsEnabled()
-
setQuestionsEnabled
public void setQuestionsEnabled(boolean questionsEnabled)
-
-