Package com.captechconsulting.core.domain

Examples of com.captechconsulting.core.domain.LocationScan


        address.setZip(zip);
        return address;
    }

    private LocationScan createLocationScan(Location location, Date date) {
        LocationScan locationScan = new LocationScan();
        locationScan.setLocation(location);
        locationScan.setTimestamp(date);
        return locationScan;
    }
View Full Code Here


        Location location = locationDao.findOne(locationId);
        if (location == null) {
            throw new ObjectRetrievalFailureException(Ticket.class, locationId);
        }

        LocationScan locationScan = new LocationScan();
        locationScan.setLocation(location);
        locationScan.setTimestamp(new Date());
        ticket.getLocationScans().add(locationScan);
        store(ticket);

        return location;
    }
View Full Code Here

    }

    public void deleteLocationScan(Ticket ticket, Long locationId) {

        for (Iterator<LocationScan> locationIterator = ticket.getLocationScans().iterator() ; locationIterator.hasNext(); ) {
            LocationScan location = locationIterator.next();
            if (locationId.equals(location.getId())) {
                locationIterator.remove();
                return;
            }
        }
View Full Code Here

TOP

Related Classes of com.captechconsulting.core.domain.LocationScan

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.