Package org.vfny.geoserver.global.dto

Examples of org.vfny.geoserver.global.dto.ContactDTO


        dto.setAdminPassword(adminPassword);
        dto.setVerboseExceptions(verboseExceptions);
        dto.setLoggingToFile(loggingToFile);
        dto.setLogLocation(logLocation);
       
        ContactDTO cdto = new ContactDTO();
        dto.setContact(cdto);

        cdto.setAddress(address);
        cdto.setAddressCity(addressCity);
        cdto.setAddressCountry(addressCountry);
        cdto.setAddressPostalCode(addressPostalCode);
        cdto.setAddressState(addressState);
        cdto.setAddressType(addressType);
        cdto.setContactEmail(contactEmail);
        cdto.setContactFacsimile(contactFacsimile);
        cdto.setContactOrganization(contactOrganization);
        cdto.setContactPerson(contactPerson);
        cdto.setContactPosition(contactPosition);
        cdto.setContactVoice(contactVoice);

        return dto;
    }
View Full Code Here


        contactFacsimile = dto.getContactFacsimile();
        contactEmail = dto.getContactEmail();
    }

    public ContactDTO toDTO() {
        ContactDTO dto = new ContactDTO();
        dto.setContactPerson(contactPerson);
        dto.setContactOrganization(contactOrganization);
        dto.setContactPosition(contactPosition);
        dto.setAddressType(addressType);
        dto.setAddress(address);
        dto.setAddressCity(addressCity);
        dto.setAddressState(addressState);
        dto.setAddressPostalCode(addressPostalCode);
        dto.setAddressCountry(addressCountry);
        dto.setContactVoice(contactVoice);
        dto.setContactFacsimile(contactFacsimile);
        dto.setContactEmail(contactEmail);

        return dto;
    }
View Full Code Here

     */
    protected static void storeContact(ContactDTO c, WriterHelper cw)
        throws ConfigurationException {
        LOGGER.finer("In method storeContact");

        if ((c != null) && !c.equals(new ContactDTO())) {
            cw.openTag("ContactInformation");
            cw.openTag("ContactPersonPrimary");
            cw.textTag("ContactPerson", c.getContactPerson());
            cw.textTag("ContactOrganization", c.getContactOrganization());
            cw.closeTag("ContactPersonPrimary");
View Full Code Here

     *
     * @throws ConfigurationException When an error occurs.
     */
    protected ContactDTO loadContact(Element contactInfoElement)
        throws ConfigurationException {
        ContactDTO c = new ContactDTO();

        if (contactInfoElement == null) {
            return c;
        }

        Element elem;
        NodeList nodeList;
        elem = ReaderUtils.getChildElement(contactInfoElement,
                "ContactPersonPrimary");

        if (elem != null) {
            c.setContactPerson(ReaderUtils.getChildText(elem, "ContactPerson"));
            c.setContactOrganization(ReaderUtils.getChildText(elem,
                    "ContactOrganization"));
        }

        c.setContactPosition(ReaderUtils.getChildText(contactInfoElement,
                "ContactPosition"));
        elem = ReaderUtils.getChildElement(contactInfoElement, "ContactAddress");

        if (elem != null) {
            c.setAddressType(ReaderUtils.getChildText(elem, "AddressType"));
            c.setAddress(ReaderUtils.getChildText(elem, "Address"));
            c.setAddressCity(ReaderUtils.getChildText(elem, "City"));
            c.setAddressState(ReaderUtils.getChildText(elem, "StateOrProvince"));
            c.setAddressPostalCode(ReaderUtils.getChildText(elem, "PostCode"));
            c.setAddressCountry(ReaderUtils.getChildText(elem, "Country"));
        }

        c.setContactVoice(ReaderUtils.getChildText(contactInfoElement,
                "ContactVoiceTelephone"));
        c.setContactFacsimile(ReaderUtils.getChildText(contactInfoElement,
                "ContactFacsimileTelephone"));
        c.setContactEmail(ReaderUtils.getChildText(contactInfoElement,
                "ContactElectronicMailAddress"));

        return c;
    }
View Full Code Here

TOP

Related Classes of org.vfny.geoserver.global.dto.ContactDTO

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.