com.openindex.openestate.tool.agency
Class AgencyEstate

java.lang.Object
  extended by com.openindex.openestate.impl.AbstractImplItem
      extended by com.openindex.openestate.impl.EstateImpl
          extended by com.openindex.openestate.tool.agency.AgencyEstate
All Implemented Interfaces:
SerializableXmlElement, SerializableXmlType

public class AgencyEstate
extends EstateImpl

Immobilien-Objekt, basierend auf EstateImpl.
$Id: AgencyEstate.java 1829 2012-10-14 14:24:52Z andy $

Author:
Andreas Rudolph

Nested Class Summary
static class AgencyEstate.Row
           
 
Field Summary
static String STATUS_ABLAGE
           
static String STATUS_ENTWURF
           
static String STATUS_NICHT_VERMITTELT
           
static String STATUS_PRUEFUNG
           
static String STATUS_VERMITTELT
           
static String STATUS_VERMITTLUNG
           
static String VALUE_EXPORT_ALWAYS
           
static String VALUE_EXPORT_ENABLED
           
static String VALUE_EXPORT_INTERFACE
           
static String VALUE_GEODB
           
static String VALUE_GROUP
           
static String VALUE_KEYWORDS
          Deprecated. 
static String VALUE_NOTES
           
static String VALUE_NR
          Deprecated. 
static String VALUE_NR_INTERN
           
static String VALUE_STATUS
           
 
Fields inherited from class com.openindex.openestate.impl.EstateImpl
XML_ATTRIB_CONTACT_ID, XML_ATTRIB_CURRENCY, XML_ATTRIB_HIDDEN_PRICES, XML_ATTRIB_ID, XML_ATTRIB_LANGUAGES, XML_ATTRIB_PUBLIC_ID, XML_ATTRIB_PUBLISH_BEGIN, XML_ATTRIB_PUBLISH_END, XML_ELEMENT, XML_ELEMENT_ACTION, XML_ELEMENT_ADRESS, XML_ELEMENT_ATTACHMENT, XML_ELEMENT_ATTRIBUTES, XML_ELEMENT_TITLE, XML_ELEMENT_TITLE_LANGUAGE, XML_ELEMENT_TITLE_TEXT, XML_ELEMENT_VALUES
 
Constructor Summary
AgencyEstate()
          Erzeugt eine Instanz der Klasse 'AgencyEstate'
AgencyEstate(org.dom4j.Document doc)
           
AgencyEstate(EstateImpl estate)
           
 
Method Summary
 Long[] getExportIntefaces()
           
 String getFallbackTitle()
           
 String getFallbackTitle(Locale l)
           
 String[] getGeoDbIds(String geoDbName)
           
 Long getGroupNr()
           
 long getIdNr()
           
 String getNotes()
           
 String getNr()
          Deprecated. 
 String getNrIntern()
           
 String getStatus()
           
static String[] getStatusList()
           
 boolean hasExportInteface(long id)
           
 boolean isExportAlways()
           
 boolean isExportEnabled()
           
static org.xmldb.api.modules.BinaryResource loadAttachment(long estateId, String name)
           
static org.xmldb.api.modules.BinaryResource loadAttachment(long estateId, String name, org.xmldb.api.base.Collection estateFileCollection)
           
static File loadAttachmentAsTempFile(long estateId, String name)
           
static File loadAttachmentAsTempFile(long estateId, String name, org.xmldb.api.base.Collection estateFileCollection)
           
static void loadAttachmentIntoFile(File destFile, long estateId, String name)
           
static void loadAttachmentIntoFile(File destFile, long estateId, String name, org.xmldb.api.base.Collection estateFileCollection)
           
static AgencyEstate loadEstate(long id)
           
static AgencyEstate loadEstate(long id, org.xmldb.api.base.Collection estateCollection)
           
static AgencyEstate loadEstateByCustomValue(String key, String value)
           
static AgencyEstate loadEstateByCustomValue(String key, String value, org.xmldb.api.base.Collection estateCollection)
           
static AgencyEstate loadEstateByNrIntern(String nr)
           
static AgencyEstate loadEstateByNrIntern(String nr, org.xmldb.api.base.Collection estateCollection)
           
static AgencyEstate loadEstateByPublicId(String nr)
           
static AgencyEstate loadEstateByPublicId(String nr, org.xmldb.api.base.Collection estateCollection)
           
static Long[] loadEstateIds()
           
static Long[] loadEstateIds(org.xmldb.api.base.Collection estateCollection)
           
static AgencyEstate.Row[] loadEstateRows(Long[] ids, String additionalCondition, String orderBy)
           
static AgencyEstate.Row[] loadEstateRows(Long[] ids, String additionalCondition, String orderBy, org.xmldb.api.base.Collection estateCollection)
           
static AgencyEstate[] loadEstates()
           
static AgencyEstate[] loadEstates(org.xmldb.api.base.Collection estateCollection)
           
 void readFromXml(org.dom4j.Element node)
           
static void removeEstate(long id)
           
static void removeEstate(long id, org.xmldb.api.base.Collection estateCollection)
           
static void removeUnusedAttachments(AgencyEstate estate)
           
static void removeUnusedAttachments(AgencyEstate estate, org.xmldb.api.base.Collection estateFileCollection)
           
 void setExportAlways(Boolean val)
           
 void setExportEnabled(Boolean val)
           
 void setExportInterfaces(List<Long> ids)
           
 void setExportInterfaces(Long[] ids)
           
 void setGeoDbIds(String geoDbName, String[] ids)
           
 void setGroupNr(Long val)
           
 void setNotes(String val)
           
 void setNr(String val)
          Deprecated. 
 void setNrIntern(String val)
           
 void setStatus(String val)
           
 Long store()
           
static String storeAttachment(long estateId, InputStream attachment, String name, String mimeType)
           
static String storeAttachment(long estateId, InputStream attachment, String name, String mimeType, org.xmldb.api.base.Collection estateFileCollection)
           
static Long storeEstate(AgencyEstate estate)
           
static Long storeEstate(AgencyEstate estate, org.xmldb.api.base.Collection estateCollection)
           
 String writeStatus()
           
static String writeStatus(String status)
           
 String writeValue(ValueImpl value, Locale locale)
           
 
Methods inherited from class com.openindex.openestate.impl.EstateImpl
getAction, getAdress, getAttachments, getAttribute, getAttribute, getAttributeKeys, getAttributes, getContactId, getCurrency, getCustomValues, getId, getLanguages, getPublicId, getPublishBegin, getPublishEnd, getTitle, getTitle, getTitle, getTitleLanguages, getType, hasAttribute, hasAttribute, hasAttribute, isAdressPublished, isHiddenPrices, merge, putAttribute, putAttribute, readFromXml, serializeToXml, serializeToXml, setAdressPublished, setContactId, setCurrency, setCustomValues, setHiddenPrices, setId, setPublicId, setPublishBegin, setPublishEnd, setTitle, setTitle, setTitle, setType, setType
 
Methods inherited from class com.openindex.openestate.impl.AbstractImplItem
getValue, getValue, getValues, putValue, selectAttribute, selectAttribute, selectAttributeAsBoolean, selectAttributeAsBoolean, selectAttributeAsCurrency, selectAttributeAsCurrency, selectAttributeAsDate, selectAttributeAsDate, selectAttributeAsDateTime, selectAttributeAsDateTime, selectAttributeAsDouble, selectAttributeAsDouble, selectAttributeAsFloat, selectAttributeAsFloat, selectAttributeAsURL, selectAttributeAsURL, selectChildElements
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALUE_NR

@Deprecated
public static final String VALUE_NR
Deprecated. 
See Also:
Constant Field Values

VALUE_KEYWORDS

@Deprecated
public static final String VALUE_KEYWORDS
Deprecated. 
See Also:
Constant Field Values

VALUE_GEODB

public static final String VALUE_GEODB
See Also:
Constant Field Values

VALUE_GROUP

public static final String VALUE_GROUP
See Also:
Constant Field Values

VALUE_NR_INTERN

public static final String VALUE_NR_INTERN
See Also:
Constant Field Values

VALUE_NOTES

public static final String VALUE_NOTES
See Also:
Constant Field Values

VALUE_STATUS

public static final String VALUE_STATUS
See Also:
Constant Field Values

VALUE_EXPORT_ALWAYS

public static final String VALUE_EXPORT_ALWAYS
See Also:
Constant Field Values

VALUE_EXPORT_ENABLED

public static final String VALUE_EXPORT_ENABLED
See Also:
Constant Field Values

VALUE_EXPORT_INTERFACE

public static final String VALUE_EXPORT_INTERFACE
See Also:
Constant Field Values

STATUS_ENTWURF

public static final String STATUS_ENTWURF
See Also:
Constant Field Values

STATUS_NICHT_VERMITTELT

public static final String STATUS_NICHT_VERMITTELT
See Also:
Constant Field Values

STATUS_PRUEFUNG

public static final String STATUS_PRUEFUNG
See Also:
Constant Field Values

STATUS_VERMITTELT

public static final String STATUS_VERMITTELT
See Also:
Constant Field Values

STATUS_VERMITTLUNG

public static final String STATUS_VERMITTLUNG
See Also:
Constant Field Values

STATUS_ABLAGE

public static final String STATUS_ABLAGE
See Also:
Constant Field Values
Constructor Detail

AgencyEstate

public AgencyEstate()
Erzeugt eine Instanz der Klasse 'AgencyEstate'


AgencyEstate

public AgencyEstate(EstateImpl estate)

AgencyEstate

public AgencyEstate(org.dom4j.Document doc)
             throws org.dom4j.DocumentException
Throws:
org.dom4j.DocumentException
Method Detail

getExportIntefaces

public Long[] getExportIntefaces()

getFallbackTitle

public String getFallbackTitle()

getFallbackTitle

public String getFallbackTitle(Locale l)

getGeoDbIds

public String[] getGeoDbIds(String geoDbName)

getGroupNr

public Long getGroupNr()

getIdNr

public long getIdNr()

getNotes

public String getNotes()

getNr

@Deprecated
public String getNr()
Deprecated. 


getNrIntern

public String getNrIntern()

getStatus

public String getStatus()

getStatusList

public static String[] getStatusList()

hasExportInteface

public boolean hasExportInteface(long id)

isExportAlways

public boolean isExportAlways()

isExportEnabled

public boolean isExportEnabled()

loadAttachment

public static org.xmldb.api.modules.BinaryResource loadAttachment(long estateId,
                                                                  String name)
                                                           throws ImmoToolDbException
Throws:
ImmoToolDbException

loadAttachment

public static org.xmldb.api.modules.BinaryResource loadAttachment(long estateId,
                                                                  String name,
                                                                  org.xmldb.api.base.Collection estateFileCollection)
                                                           throws ImmoToolDbException
Throws:
ImmoToolDbException

loadAttachmentAsTempFile

public static File loadAttachmentAsTempFile(long estateId,
                                            String name)
                                     throws ImmoToolDbException
Throws:
ImmoToolDbException

loadAttachmentAsTempFile

public static File loadAttachmentAsTempFile(long estateId,
                                            String name,
                                            org.xmldb.api.base.Collection estateFileCollection)
                                     throws ImmoToolDbException
Throws:
ImmoToolDbException

loadAttachmentIntoFile

public static void loadAttachmentIntoFile(File destFile,
                                          long estateId,
                                          String name)
                                   throws ImmoToolDbException
Throws:
ImmoToolDbException

loadAttachmentIntoFile

public static void loadAttachmentIntoFile(File destFile,
                                          long estateId,
                                          String name,
                                          org.xmldb.api.base.Collection estateFileCollection)
                                   throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstate

public static AgencyEstate loadEstate(long id)
                               throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstate

public static AgencyEstate loadEstate(long id,
                                      org.xmldb.api.base.Collection estateCollection)
                               throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateByCustomValue

public static AgencyEstate loadEstateByCustomValue(String key,
                                                   String value)
                                            throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateByCustomValue

public static AgencyEstate loadEstateByCustomValue(String key,
                                                   String value,
                                                   org.xmldb.api.base.Collection estateCollection)
                                            throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateByNrIntern

public static AgencyEstate loadEstateByNrIntern(String nr)
                                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateByNrIntern

public static AgencyEstate loadEstateByNrIntern(String nr,
                                                org.xmldb.api.base.Collection estateCollection)
                                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateByPublicId

public static AgencyEstate loadEstateByPublicId(String nr)
                                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateByPublicId

public static AgencyEstate loadEstateByPublicId(String nr,
                                                org.xmldb.api.base.Collection estateCollection)
                                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateRows

public static AgencyEstate.Row[] loadEstateRows(Long[] ids,
                                                String additionalCondition,
                                                String orderBy)
                                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateRows

public static AgencyEstate.Row[] loadEstateRows(Long[] ids,
                                                String additionalCondition,
                                                String orderBy,
                                                org.xmldb.api.base.Collection estateCollection)
                                         throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstates

public static AgencyEstate[] loadEstates()
                                  throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstates

public static AgencyEstate[] loadEstates(org.xmldb.api.base.Collection estateCollection)
                                  throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateIds

public static Long[] loadEstateIds()
                            throws ImmoToolDbException
Throws:
ImmoToolDbException

loadEstateIds

public static Long[] loadEstateIds(org.xmldb.api.base.Collection estateCollection)
                            throws ImmoToolDbException
Throws:
ImmoToolDbException

readFromXml

public void readFromXml(org.dom4j.Element node)
                 throws org.dom4j.DocumentException
Specified by:
readFromXml in interface SerializableXmlType
Overrides:
readFromXml in class EstateImpl
Throws:
org.dom4j.DocumentException

removeEstate

public static void removeEstate(long id)
                         throws ImmoToolDbException
Throws:
ImmoToolDbException

removeEstate

public static void removeEstate(long id,
                                org.xmldb.api.base.Collection estateCollection)
                         throws ImmoToolDbException
Throws:
ImmoToolDbException

removeUnusedAttachments

public static void removeUnusedAttachments(AgencyEstate estate)
                                    throws ImmoToolDbException
Throws:
ImmoToolDbException

removeUnusedAttachments

public static void removeUnusedAttachments(AgencyEstate estate,
                                           org.xmldb.api.base.Collection estateFileCollection)
                                    throws ImmoToolDbException
Throws:
ImmoToolDbException

setExportAlways

public void setExportAlways(Boolean val)

setExportEnabled

public void setExportEnabled(Boolean val)

setExportInterfaces

public void setExportInterfaces(List<Long> ids)

setExportInterfaces

public void setExportInterfaces(Long[] ids)

setGeoDbIds

public void setGeoDbIds(String geoDbName,
                        String[] ids)

setGroupNr

public void setGroupNr(Long val)

setNotes

public void setNotes(String val)

setNr

@Deprecated
public void setNr(String val)
Deprecated. 


setNrIntern

public void setNrIntern(String val)

setStatus

public void setStatus(String val)

store

public Long store()
           throws ImmoToolDbException
Throws:
ImmoToolDbException

storeAttachment

public static String storeAttachment(long estateId,
                                     InputStream attachment,
                                     String name,
                                     String mimeType)
                              throws ImmoToolDbException
Throws:
ImmoToolDbException

storeAttachment

public static String storeAttachment(long estateId,
                                     InputStream attachment,
                                     String name,
                                     String mimeType,
                                     org.xmldb.api.base.Collection estateFileCollection)
                              throws ImmoToolDbException
Throws:
ImmoToolDbException

storeEstate

public static Long storeEstate(AgencyEstate estate)
                        throws ImmoToolDbException
Throws:
ImmoToolDbException

storeEstate

public static Long storeEstate(AgencyEstate estate,
                               org.xmldb.api.base.Collection estateCollection)
                        throws ImmoToolDbException
Throws:
ImmoToolDbException

writeStatus

public String writeStatus()

writeStatus

public static String writeStatus(String status)

writeValue

public String writeValue(ValueImpl value,
                         Locale locale)


Copyright © 2012 OpenEstate. All Rights Reserved.