CPD Ergebnisse

Dieses Dokument enthält die Ergebnisse von PMD's CPD 5.0.2.

Duplikationen

Datei Zeile
de/tivsource/page/admin/backup/BackupCompanionGroup.java 52
de/tivsource/page/admin/backup/BackupGallery.java 52
	private static String convertToCsvLine(CompanionGroup next) {

	    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		// uuid|
	    // uuid(de)|name(de)|description(de)|keywords(de)|
	    // uuid(en)|name(en)|description(en)|keywords(en)|
	    // visible|created|modified|modifiedBy|modifiedAddress|picture|
	    // pictureOnPage|technical|orderNumber|
	    
		StringBuffer nextString = new StringBuffer();
		
		nextString.append(next.getUuid());
		nextString.append("|");

		
        nextString.append(next.getDescriptionObject(Language.DE).getUuid());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getDescriptionObject(Language.EN).getUuid());
        nextString.append("|");
        
        nextString.append(next.getDescriptionObject(Language.EN).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getVisible().toString());
        nextString.append("|");
        
        nextString.append(simpleDateFormat.format(next.getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getModified()));
        nextString.append("|");

        nextString.append(next.getModifiedBy());
        nextString.append("|");

        nextString.append(next.getModifiedAddress());
        nextString.append("|");

        nextString.append(next.getPicture().getUuid());
        nextString.append("|");

        nextString.append(next.getPictureOnPage().toString());
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanionGroup.java 52
de/tivsource/page/admin/backup/BackupEvent.java 54
de/tivsource/page/admin/backup/BackupGallery.java 52
	private static String convertToCsvLine(CompanionGroup next) {

	    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

		// uuid|
	    // uuid(de)|name(de)|description(de)|keywords(de)|
	    // uuid(en)|name(en)|description(en)|keywords(en)|
	    // visible|created|modified|modifiedBy|modifiedAddress|picture|
	    // pictureOnPage|technical|orderNumber|
	    
		StringBuffer nextString = new StringBuffer();
		
		nextString.append(next.getUuid());
		nextString.append("|");

		
        nextString.append(next.getDescriptionObject(Language.DE).getUuid());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getDescriptionObject(Language.EN).getUuid());
        nextString.append("|");
        
        nextString.append(next.getDescriptionObject(Language.EN).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getVisible().toString());
        nextString.append("|");
        
        nextString.append(simpleDateFormat.format(next.getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getModified()));
        nextString.append("|");

        nextString.append(next.getModifiedBy());
        nextString.append("|");

        nextString.append(next.getModifiedAddress());
        nextString.append("|");

        nextString.append(next.getPicture().getUuid());
Datei Zeile
de/tivsource/page/admin/actions/locations/location/JsonAction.java 144
de/tivsource/page/admin/actions/others/contententry/JsonAction.java 165
de/tivsource/page/admin/actions/others/message/JsonAction.java 125
de/tivsource/page/admin/actions/others/page/JsonAction.java 133
de/tivsource/page/admin/actions/system/user/JsonAction.java 113
                pageList = this.locationDaoLocal.findAll(from, getRows());
            }
		}

		setTotal((int) Math.ceil((double) getRecord() / (double) getRows()));
		setGridModel(pageList);

		LOGGER.info("Rows:" + rows);
		LOGGER.info("Page:" + page);
		LOGGER.info("Total:" + total);
		LOGGER.info("Record:" + record);
		LOGGER.info("Sord:" + sord);
		LOGGER.info("Sidx:" + sidx);
		
		return execute();
	}

	/**
	 * @return how many rows we want to have into the grid
	 */
	public Integer getRows() {
		return rows;
	}

	/**
	 * @param rows
	 *            how many rows we want to have into the grid
	 */
	public void setRows(Integer rows) {
		this.rows = rows;
	}

	/**
	 * @return current page of the query
	 */
	public Integer getPage() {
		return page;
	}

	/**
	 * @param page
	 *            current page of the query
	 */
	public void setPage(Integer page) {
		this.page = page;
	}

	/**
	 * @return total pages for the query
	 */
	public Integer getTotal() {
		return total;
	}

	/**
	 * @param total
	 *            total pages for the query
	 */
	public void setTotal(Integer total) {
		this.total = total;
	}

	/**
	 * @return total number of records for the query. e.g. select count(*) from
	 *         table
	 */
	public Integer getRecord() {
		return record;
	}

	/**
	 * @param record
	 *            total number of records for the query. e.g. select count(*)
	 *            from table
	 */
	public void setRecord(Integer record) {

		this.record = record;

		if (this.record > 0 && this.rows > 0) {
			this.total = (int) Math.ceil((double) this.record
					/ (double) this.rows);
		} else {
			this.total = 0;
		}
	}

	/**
	 * @return an collection that contains the actual data
	 */
	public List<Location> getGridModel() {
Datei Zeile
de/tivsource/page/admin/actions/locations/event/JsonAction.java 131
de/tivsource/page/admin/actions/locations/reservation/QueueJsonAction.java 132
                eventList = this.eventDaoLocal.findAllActive(from, getRows());
            }
		}

		setTotal((int) Math.ceil((double) getRecord() / (double) getRows()));
		setGridModel(eventList);

		LOGGER.info("Rows:" + rows);
		LOGGER.info("Page:" + page);
		LOGGER.info("Total:" + total);
		LOGGER.info("Record:" + record);
		LOGGER.info("Sord:" + sord);
		LOGGER.info("Sidx:" + sidx);
		
		return execute();
	}

	/**
	 * @return how many rows we want to have into the grid
	 */
	public Integer getRows() {
		return rows;
	}

	/**
	 * @param rows
	 *            how many rows we want to have into the grid
	 */
	public void setRows(Integer rows) {
		this.rows = rows;
	}

	/**
	 * @return current page of the query
	 */
	public Integer getPage() {
		return page;
	}

	/**
	 * @param page
	 *            current page of the query
	 */
	public void setPage(Integer page) {
		this.page = page;
	}

	/**
	 * @return total pages for the query
	 */
	public Integer getTotal() {
		return total;
	}

	/**
	 * @param total
	 *            total pages for the query
	 */
	public void setTotal(Integer total) {
		this.total = total;
	}

	/**
	 * @return total number of records for the query. e.g. select count(*) from
	 *         table
	 */
	public Integer getRecord() {
		return record;
	}

	/**
	 * @param record
	 *            total number of records for the query. e.g. select count(*)
	 *            from table
	 */
	public void setRecord(Integer record) {

		this.record = record;

		if (this.record > 0 && this.rows > 0) {
			this.total = (int) Math.ceil((double) this.record
					/ (double) this.rows);
		} else {
			this.total = 0;
		}
	}

	/**
	 * @return an collection that contains the actual data
	 */
	public List<Event> getGridModel() {
Datei Zeile
de/tivsource/page/admin/actions/others/picture/AddAction.java 235
de/tivsource/page/admin/actions/others/picture/PictureEditAction.java 225
        Map<UrlType, PictureUrl> pictureUrls = new HashMap<UrlType, PictureUrl>();
        PictureUrl normalPictureUrl = new PictureUrl();
        normalPictureUrl.setUuid(UUID.randomUUID().toString());
        normalPictureUrl.setPicture(pictureObject);
        normalPictureUrl.setUrl(pictureName);
        normalPictureUrl.setUrlType(UrlType.NORMAL);

        PictureUrl largePictureUrl = new PictureUrl();
        largePictureUrl.setUuid(UUID.randomUUID().toString());
        largePictureUrl.setPicture(pictureObject);
        largePictureUrl.setUrl(pictureName);
        largePictureUrl.setUrlType(UrlType.LARGE);

        PictureUrl thumbnailPictureUrl = new PictureUrl();
        thumbnailPictureUrl.setUuid(UUID.randomUUID().toString());
        thumbnailPictureUrl.setPicture(pictureObject);
        thumbnailPictureUrl.setUrl(pictureName);
        thumbnailPictureUrl.setUrlType(UrlType.THUMBNAIL);

        PictureUrl fullPictureUrl = new PictureUrl();
        fullPictureUrl.setUuid(UUID.randomUUID().toString());
        fullPictureUrl.setPicture(pictureObject);
        fullPictureUrl.setUrl(pictureName);
        fullPictureUrl.setUrlType(UrlType.FULL);

        pictureUrls.put(UrlType.NORMAL, normalPictureUrl);
        pictureUrls.put(UrlType.LARGE, largePictureUrl);
        pictureUrls.put(UrlType.THUMBNAIL, thumbnailPictureUrl);
        pictureUrls.put(UrlType.FULL, fullPictureUrl);

        return pictureUrls;
    }
Datei Zeile
de/tivsource/page/admin/actions/locations/reservation/JsonAction.java 184
de/tivsource/page/admin/actions/locations/reservation/QueueJsonAction.java 147
    }

	/**
	 * @return how many rows we want to have into the grid
	 */
	public Integer getRows() {
		return rows;
	}

	/**
	 * @param rows
	 *            how many rows we want to have into the grid
	 */
	public void setRows(Integer rows) {
		this.rows = rows;
	}

	/**
	 * @return current page of the query
	 */
	public Integer getPage() {
		return page;
	}

	/**
	 * @param page
	 *            current page of the query
	 */
	public void setPage(Integer page) {
		this.page = page;
	}

	/**
	 * @return total pages for the query
	 */
	public Integer getTotal() {
		return total;
	}

	/**
	 * @param total
	 *            total pages for the query
	 */
	public void setTotal(Integer total) {
		this.total = total;
	}

	/**
	 * @return total number of records for the query. e.g. select count(*) from
	 *         table
	 */
	public Integer getRecord() {
		return record;
	}

	/**
	 * @param record
	 *            total number of records for the query. e.g. select count(*)
	 *            from table
	 */
	public void setRecord(Integer record) {

		this.record = record;

		if (this.record > 0 && this.rows > 0) {
			this.total = (int) Math.ceil((double) this.record
					/ (double) this.rows);
		} else {
			this.total = 0;
		}
	}

	/**
	 * @return an collection that contains the actual data
	 */
	public List<Reservation> getGridModel() {
		return gridModel;
	}

	/**
	 * @param gridModel
	 *            an collection that contains the actual data
	 */
	public void setGridModel(List<Reservation> gridModel) {
		this.gridModel = gridModel;
	}

	/**
	 * @return sorting order
	 */
	public String getSord() {
		return sord;
	}

	/**
	 * @param sord
	 *            sorting order
	 */
	public void setSord(String sord) {
		this.sord = sord;
	}

	/**
	 * @return get index row - i.e. user click to sort.
	 */
	public String getSidx() {
		return sidx;
	}

	/**
	 * @param sidx
	 *            get index row - i.e. user click to sort.
	 */
	public void setSidx(String sidx) {
		this.sidx = sidx;
	}
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 115
de/tivsource/page/admin/backup/BackupManual.java 114
        nextString.append("appointment_" + next.getUuid() + "_EN.txt");
        nextString.append("|");


        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");

        nextString.append(next.getPicture().getUuid());
        nextString.append("|");

        nextString.append(next.getPictureOnPage().toString());
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getPointInTime()));
Datei Zeile
de/tivsource/page/admin/actions/locations/event/JsonAction.java 136
de/tivsource/page/admin/actions/locations/feedbackoption/JsonAction.java 138
de/tivsource/page/admin/actions/locations/location/JsonAction.java 149
de/tivsource/page/admin/actions/locations/reason/JsonAction.java 138
de/tivsource/page/admin/actions/locations/request/JsonAction.java 156
de/tivsource/page/admin/actions/locations/reservation/QueueJsonAction.java 137
de/tivsource/page/admin/actions/maintenance/cssfile/JsonAction.java 118
de/tivsource/page/admin/actions/maintenance/cssgroup/JsonAction.java 118
de/tivsource/page/admin/actions/others/appointment/JsonAction.java 130
de/tivsource/page/admin/actions/others/companion/JsonAction.java 134
de/tivsource/page/admin/actions/others/companiongroup/JsonAction.java 126
de/tivsource/page/admin/actions/others/contententry/JsonAction.java 170
de/tivsource/page/admin/actions/others/gallery/JsonAction.java 136
de/tivsource/page/admin/actions/others/linkentry/JsonAction.java 170
de/tivsource/page/admin/actions/others/manual/JsonAction.java 138
de/tivsource/page/admin/actions/others/message/JsonAction.java 130
de/tivsource/page/admin/actions/others/news/JsonAction.java 142
de/tivsource/page/admin/actions/others/page/JsonAction.java 138
de/tivsource/page/admin/actions/others/picture/JsonAction.java 136
de/tivsource/page/admin/actions/others/slider/JsonAction.java 142
de/tivsource/page/admin/actions/others/subsumption/JsonAction.java 134
de/tivsource/page/admin/actions/others/vacancy/JsonAction.java 136
de/tivsource/page/admin/actions/system/captcha/JsonAction.java 122
de/tivsource/page/admin/actions/system/property/JsonAction.java 105
de/tivsource/page/admin/actions/system/role/JsonAction.java 106
de/tivsource/page/admin/actions/system/user/JsonAction.java 118
		setGridModel(eventList);

		LOGGER.info("Rows:" + rows);
		LOGGER.info("Page:" + page);
		LOGGER.info("Total:" + total);
		LOGGER.info("Record:" + record);
		LOGGER.info("Sord:" + sord);
		LOGGER.info("Sidx:" + sidx);
		
		return execute();
	}

	/**
	 * @return how many rows we want to have into the grid
	 */
	public Integer getRows() {
		return rows;
	}

	/**
	 * @param rows
	 *            how many rows we want to have into the grid
	 */
	public void setRows(Integer rows) {
		this.rows = rows;
	}

	/**
	 * @return current page of the query
	 */
	public Integer getPage() {
		return page;
	}

	/**
	 * @param page
	 *            current page of the query
	 */
	public void setPage(Integer page) {
		this.page = page;
	}

	/**
	 * @return total pages for the query
	 */
	public Integer getTotal() {
		return total;
	}

	/**
	 * @param total
	 *            total pages for the query
	 */
	public void setTotal(Integer total) {
		this.total = total;
	}

	/**
	 * @return total number of records for the query. e.g. select count(*) from
	 *         table
	 */
	public Integer getRecord() {
		return record;
	}

	/**
	 * @param record
	 *            total number of records for the query. e.g. select count(*)
	 *            from table
	 */
	public void setRecord(Integer record) {

		this.record = record;

		if (this.record > 0 && this.rows > 0) {
			this.total = (int) Math.ceil((double) this.record
					/ (double) this.rows);
		} else {
			this.total = 0;
		}
	}

	/**
	 * @return an collection that contains the actual data
	 */
	public List<Event> getGridModel() {
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanionGroup.java 64
de/tivsource/page/admin/backup/BackupEvent.java 68
de/tivsource/page/admin/backup/BackupGallery.java 64
de/tivsource/page/admin/backup/BackupLocation.java 98
		nextString.append(next.getUuid());
		nextString.append("|");

		
        nextString.append(next.getDescriptionObject(Language.DE).getUuid());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getDescriptionObject(Language.EN).getUuid());
        nextString.append("|");
        
        nextString.append(next.getDescriptionObject(Language.EN).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getVisible().toString());
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanion.java 67
de/tivsource/page/admin/backup/BackupLocation.java 69
        nextString.append(next.getAppendix());
        nextString.append("|");

        nextString.append(next.getAddress().getStreet());
        nextString.append("|");

        nextString.append(next.getAddress().getZip());
        nextString.append("|");

        nextString.append(next.getAddress().getCity());
        nextString.append("|");

        nextString.append(next.getAddress().getCountry());
        nextString.append("|");

        nextString.append(next.getContactDetails().getMobile());
        nextString.append("|");

        nextString.append(next.getContactDetails().getTelephone());
        nextString.append("|");

        nextString.append(next.getContactDetails().getFax());
        nextString.append("|");

        nextString.append(next.getContactDetails().getEmail());
        nextString.append("|");

        nextString.append(next.getContactDetails().getHomepage());
        nextString.append("|");

        nextString.append(next.getGroup().getUuid());
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 91
de/tivsource/page/admin/backup/BackupManual.java 90
de/tivsource/page/admin/backup/BackupNews.java 90
de/tivsource/page/admin/backup/BackupPage.java 92
de/tivsource/page/admin/backup/BackupVacancy.java 92
		nextString.append("appointment_" + next.getUuid() + "_DE.txt");
		nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getContentObject(Language.DE).getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getContentObject(Language.DE).getModified()));
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getUuid());
        nextString.append("|");
        
        nextString.append(next.getDescriptionObject(Language.EN).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        nextString.append(next.getContentObject(Language.EN).getUuid());
        nextString.append("|");

        nextString.append("appointment_" + next.getUuid() + "_EN.txt");
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 115
de/tivsource/page/admin/backup/BackupManual.java 114
de/tivsource/page/admin/backup/BackupNews.java 114
        nextString.append("appointment_" + next.getUuid() + "_EN.txt");
        nextString.append("|");


        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");

        nextString.append(next.getPicture().getUuid());
        nextString.append("|");

        nextString.append(next.getPictureOnPage().toString());
Datei Zeile
de/tivsource/page/admin/actions/locations/reservation/AddAction.java 91
de/tivsource/page/admin/actions/locations/reservation/EditAction.java 92
    	    reservationDaoLocal.merge(reservation);
            return SUCCESS;
    	}
    	else {
    		return ERROR;
    	}
    	
    	
    }// Ende execute()

    public List<Date> getTimes() {
        LOGGER.info("getTimes() aufgerufen.");

        List<Date> times = new ArrayList<Date>();

        // Anfangs Punkt der Zeitreihe
        Calendar calendarStart = Calendar.getInstance();
        calendarStart.setTime(reservation.getEvent().getBeginning());
        times.add(calendarStart.getTime());
                
        // Endpunkt der Zeitreihe 
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(reservation.getEvent().getEnding());
        calendar.add(Calendar.MINUTE, -30);
        Date end = calendar.getTime();

        // Datum mit dem gerechnet wird
        Date time = reservation.getEvent().getBeginning();
        while (time.before(end)) {
            Calendar calendarTime = Calendar.getInstance();
            calendarTime.setTime(time);
            calendarTime.add(Calendar.MINUTE, 15);
            time = calendarTime.getTime();
            times.add(time);
        }

        LOGGER.info("Inhalt der Liste: " + times.size());

        return times;
    }

}// Ende class
Datei Zeile
de/tivsource/page/admin/actions/locations/reservation/AddAction.java 91
de/tivsource/page/admin/actions/locations/reservation/ConfirmAction.java 151
de/tivsource/page/admin/actions/locations/reservation/EditAction.java 92
    	    reservationDaoLocal.merge(reservation);
            return SUCCESS;
    	}
    	else {
    		return ERROR;
    	}
    	
    	
    }// Ende execute()

    public List<Date> getTimes() {
        LOGGER.info("getTimes() aufgerufen.");

        List<Date> times = new ArrayList<Date>();

        // Anfangs Punkt der Zeitreihe
        Calendar calendarStart = Calendar.getInstance();
        calendarStart.setTime(reservation.getEvent().getBeginning());
        times.add(calendarStart.getTime());
                
        // Endpunkt der Zeitreihe 
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(reservation.getEvent().getEnding());
        calendar.add(Calendar.MINUTE, -30);
        Date end = calendar.getTime();

        // Datum mit dem gerechnet wird
        Date time = reservation.getEvent().getBeginning();
        while (time.before(end)) {
            Calendar calendarTime = Calendar.getInstance();
            calendarTime.setTime(time);
            calendarTime.add(Calendar.MINUTE, 15);
            time = calendarTime.getTime();
            times.add(time);
        }

        LOGGER.info("Inhalt der Liste: " + times.size());

        return times;
    }
Datei Zeile
de/tivsource/page/admin/backup/BackupPage.java 116
de/tivsource/page/admin/backup/BackupVacancy.java 116
        nextString.append("page_" + next.getUuid() + "_EN.txt");
        nextString.append("|");


        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");
		
		
		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");

        nextString.append(next.getTechnical());
        nextString.append("|");

        nextString.append(next.getSpecial().toString());
Datei Zeile
de/tivsource/page/admin/actions/system/captcha/AddAction.java 101
de/tivsource/page/admin/actions/system/captcha/EditAction.java 97
            captchaDaoLocal.merge(captcha);
            setLastModified();
            return SUCCESS;
        } else {
            return ERROR;
        }

    }// Ende execute()

    private void setLastModified() {
        // Lese Daten des Remote Benutzers
        String remoteUser    = ServletActionContext.getRequest().getRemoteUser();
        String remoteAddress = ServletActionContext.getRequest().getRemoteAddr();

        // Erstelle neues Aktualisierungsdatum
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH);
        simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
        String newDate = simpleDateFormat.format(new Date());

        // Hole Schlüssel mit Aktualisierungsdatum aus der Datenbank oder erstelle neues Objekt
        Property lastModified = propertyDaoLocal.findByKey("captcha.image.lastModified");

        if(lastModified != null) {
            lastModified.setModified(new Date());
            lastModified.setModifiedAddress(remoteAddress);
            lastModified.setModifiedBy(remoteUser);
            lastModified.setValue(newDate);
        } else {
            lastModified = new Property();
            lastModified.setCreated(new Date());
            lastModified.setKey("captcha.image.lastModified");
            lastModified.setModified(new Date());
            lastModified.setModifiedAddress(remoteAddress);
            lastModified.setModifiedBy(remoteUser);
            lastModified.setValue(newDate);
        }
        propertyDaoLocal.merge(lastModified);
    }// Ende setLastModified()

}// Ende class
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 115
de/tivsource/page/admin/backup/BackupManual.java 114
de/tivsource/page/admin/backup/BackupNews.java 114
de/tivsource/page/admin/backup/BackupPage.java 116
de/tivsource/page/admin/backup/BackupVacancy.java 116
        nextString.append("appointment_" + next.getUuid() + "_EN.txt");
        nextString.append("|");


        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");

        nextString.append(next.getPicture().getUuid());
Datei Zeile
de/tivsource/page/admin/actions/others/picture/DeleteAction.java 101
de/tivsource/page/admin/actions/others/picture/PictureEditAction.java 259
    	String pathFULL = picturePath + "FULL/" + pictureUrls.get(UrlType.FULL).getUrl();
    	deleteFile(pathFULL);
    	String pathLARGE = picturePath + "LARGE/" + pictureUrls.get(UrlType.LARGE).getUrl();
    	deleteFile(pathLARGE);
    	String pathNORMAL = picturePath + "NORMAL/" + pictureUrls.get(UrlType.NORMAL).getUrl();
    	deleteFile(pathNORMAL);
    	String pathTHUMBNAIL = picturePath + "THUMBNAIL/" + pictureUrls.get(UrlType.THUMBNAIL).getUrl();
    	deleteFile(pathTHUMBNAIL);
    }

    private static void deleteFile(String source) throws IOException {
    	Path filePath = Paths.get(source);
		if (Files.exists(filePath) && !Files.isDirectory(filePath)
				&& Files.isRegularFile(filePath)) {
			// Lösche die Datei
        	Files.delete(filePath);
        	LOGGER.info("Datei: "+ source +" erfolgreich gelöscht");
        } else {
        	LOGGER.info("Konnte die Datei: "+ source +" nicht löschen.");
        }
    }// Ende deleteFile(String source)

}// Ende class
Datei Zeile
de/tivsource/page/admin/backup/BackupCss.java 45
de/tivsource/page/admin/backup/BackupFiles.java 36
        File folder = new File(pathToCss);
        File[] listOfFiles = folder.listFiles();
        LOGGER.debug("Anzahl der Dateien: " + listOfFiles.length);
        for (int i = 0; i < listOfFiles.length; i++) {
            if (listOfFiles[i].isFile()) {
                LOGGER.debug("Füge die Datei " + listOfFiles[i].getName() + " zur Zip-Datei hinzu.");
                addData(listOfFiles[i], outZipFile, listOfFiles[i].getName());
            } 
        }

        // Schließe die Zip-Datei.
        outZipFile.close();

        return zipFile;
    }

    private static void addData(File file, ZipOutputStream zipOutputStream,
            String filename) throws IOException {

        FileInputStream fileInputStream = new FileInputStream(file);

        // Ab hier beginnt der Exhibition Teil
        zipOutputStream.putNextEntry(new ZipEntry(filename));

        // Transfer bytes from the file to the ZIP file
        int len;
        while ((len = fileInputStream.read(buffer)) > 0) {
            zipOutputStream.write(buffer, 0, len);
        }

        zipOutputStream.closeEntry();
        fileInputStream.close();
    }

    
    
}// Ende class
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 61
de/tivsource/page/admin/backup/BackupManual.java 61
de/tivsource/page/admin/backup/BackupNews.java 61
de/tivsource/page/admin/backup/BackupPage.java 63
de/tivsource/page/admin/backup/BackupVacancy.java 63
	private String convertToCsvLine(Appointment next) {
	    LOGGER.info("convertToCsvLine(Page next) aufgerufen.");

	    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		// uuid|
	    // uuid(de)|name(de)|description(de)|keywords(de)|content_uuid(de)|content(de)|content_created(de)|content_modified(de)|
	    // uuid(en)|name(en)|description(en)|keywords(en)|content_uuid(en)|content(en)|content_created(en)|content_modified(en)|
	    // visible|created|modified|modifiedBy|modifiedAddress|picture|pictureOnPage|pointInTime|booking|bookingUrl|
	    // hasVenue|venue|visibleFrom|

		StringBuffer nextString = new StringBuffer();

		nextString.append(next.getUuid());
		nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getUuid());
        nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getName());
		nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getDescription());
		nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getKeywords());
		nextString.append("|");

        nextString.append(next.getContentObject(Language.DE).getUuid());
        nextString.append("|");

		nextString.append("appointment_" + next.getUuid() + "_DE.txt");
Datei Zeile
de/tivsource/page/admin/actions/locations/reservation/AddAction.java 104
de/tivsource/page/admin/actions/locations/reservation/ConfirmAction.java 165
de/tivsource/page/admin/actions/locations/reservation/EditAction.java 104
de/tivsource/page/admin/actions/locations/reservation/FormAction.java 124
        List<Date> times = new ArrayList<Date>();

        // Anfangs Punkt der Zeitreihe
        Calendar calendarStart = Calendar.getInstance();
        calendarStart.setTime(reservation.getEvent().getBeginning());
        times.add(calendarStart.getTime());
                
        // Endpunkt der Zeitreihe 
        Calendar calendar = Calendar.getInstance();
        calendar.setTime(reservation.getEvent().getEnding());
        calendar.add(Calendar.MINUTE, -30);
        Date end = calendar.getTime();

        // Datum mit dem gerechnet wird
        Date time = reservation.getEvent().getBeginning();
        while (time.before(end)) {
            Calendar calendarTime = Calendar.getInstance();
            calendarTime.setTime(time);
            calendarTime.add(Calendar.MINUTE, 15);
            time = calendarTime.getTime();
            times.add(time);
        }

        LOGGER.info("Inhalt der Liste: " + times.size());
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanionGroup.java 90
de/tivsource/page/admin/backup/BackupManual.java 121
        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getVisible().toString());
        nextString.append("|");
        
        nextString.append(simpleDateFormat.format(next.getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getModified()));
        nextString.append("|");

        nextString.append(next.getModifiedBy());
        nextString.append("|");

        nextString.append(next.getModifiedAddress());
        nextString.append("|");

        nextString.append(next.getPicture().getUuid());
        nextString.append("|");

        nextString.append(next.getPictureOnPage().toString());
        nextString.append("|");

        nextString.append(next.getTechnical());
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 122
de/tivsource/page/admin/backup/BackupCompanionGroup.java 90
        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");

        nextString.append(next.getPicture().getUuid());
        nextString.append("|");

        nextString.append(next.getPictureOnPage().toString());
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getPointInTime()));
Datei Zeile
de/tivsource/page/admin/actions/locations/event/JsonAction.java 136
de/tivsource/page/admin/actions/locations/feedbackoption/JsonAction.java 138
de/tivsource/page/admin/actions/locations/location/JsonAction.java 149
de/tivsource/page/admin/actions/locations/reason/JsonAction.java 138
de/tivsource/page/admin/actions/locations/request/JsonAction.java 156
de/tivsource/page/admin/actions/locations/reservation/QueueJsonAction.java 137
de/tivsource/page/admin/actions/maintenance/cssfile/JsonAction.java 118
de/tivsource/page/admin/actions/maintenance/cssgroup/JsonAction.java 118
de/tivsource/page/admin/actions/maintenance/files/JsonAction.java 85
de/tivsource/page/admin/actions/others/appointment/JsonAction.java 130
de/tivsource/page/admin/actions/others/companion/JsonAction.java 134
de/tivsource/page/admin/actions/others/companiongroup/JsonAction.java 126
de/tivsource/page/admin/actions/others/contententry/JsonAction.java 170
de/tivsource/page/admin/actions/others/gallery/JsonAction.java 136
de/tivsource/page/admin/actions/others/linkentry/JsonAction.java 170
de/tivsource/page/admin/actions/others/manual/JsonAction.java 138
de/tivsource/page/admin/actions/others/message/JsonAction.java 130
de/tivsource/page/admin/actions/others/news/JsonAction.java 142
de/tivsource/page/admin/actions/others/page/JsonAction.java 138
de/tivsource/page/admin/actions/others/picture/JsonAction.java 136
de/tivsource/page/admin/actions/others/slider/JsonAction.java 142
de/tivsource/page/admin/actions/others/subsumption/JsonAction.java 134
de/tivsource/page/admin/actions/others/vacancy/JsonAction.java 136
de/tivsource/page/admin/actions/system/captcha/JsonAction.java 122
de/tivsource/page/admin/actions/system/property/JsonAction.java 105
de/tivsource/page/admin/actions/system/role/JsonAction.java 106
de/tivsource/page/admin/actions/system/user/JsonAction.java 118
		setGridModel(eventList);

		LOGGER.info("Rows:" + rows);
		LOGGER.info("Page:" + page);
		LOGGER.info("Total:" + total);
		LOGGER.info("Record:" + record);
		LOGGER.info("Sord:" + sord);
		LOGGER.info("Sidx:" + sidx);
		
		return execute();
	}

	/**
	 * @return how many rows we want to have into the grid
	 */
	public Integer getRows() {
		return rows;
	}

	/**
	 * @param rows
	 *            how many rows we want to have into the grid
	 */
	public void setRows(Integer rows) {
		this.rows = rows;
	}

	/**
	 * @return current page of the query
	 */
	public Integer getPage() {
		return page;
	}

	/**
	 * @param page
	 *            current page of the query
	 */
	public void setPage(Integer page) {
		this.page = page;
	}

	/**
	 * @return total pages for the query
	 */
	public Integer getTotal() {
		return total;
	}

	/**
	 * @param total
	 *            total pages for the query
	 */
	public void setTotal(Integer total) {
		this.total = total;
	}

	/**
	 * @return total number of records for the query. e.g. select count(*) from
	 *         table
	 */
	public Integer getRecord() {
		return record;
	}

	/**
	 * @param record
	 *            total number of records for the query. e.g. select count(*)
	 *            from table
	 */
	public void setRecord(Integer record) {

		this.record = record;
Datei Zeile
de/tivsource/page/admin/actions/locations/event/JsonAction.java 146
de/tivsource/page/admin/actions/locations/feedbackoption/JsonAction.java 148
de/tivsource/page/admin/actions/locations/location/JsonAction.java 159
de/tivsource/page/admin/actions/locations/reason/JsonAction.java 148
de/tivsource/page/admin/actions/locations/request/JsonAction.java 166
de/tivsource/page/admin/actions/locations/reservation/JsonAction.java 184
de/tivsource/page/admin/actions/maintenance/cssfile/JsonAction.java 128
de/tivsource/page/admin/actions/maintenance/cssgroup/JsonAction.java 128
de/tivsource/page/admin/actions/others/appointment/JsonAction.java 140
de/tivsource/page/admin/actions/others/companion/JsonAction.java 144
de/tivsource/page/admin/actions/others/companiongroup/JsonAction.java 136
de/tivsource/page/admin/actions/others/contententry/JsonAction.java 180
de/tivsource/page/admin/actions/others/gallery/JsonAction.java 146
de/tivsource/page/admin/actions/others/linkentry/JsonAction.java 180
de/tivsource/page/admin/actions/others/manual/JsonAction.java 148
de/tivsource/page/admin/actions/others/message/JsonAction.java 140
de/tivsource/page/admin/actions/others/news/JsonAction.java 152
de/tivsource/page/admin/actions/others/page/JsonAction.java 148
de/tivsource/page/admin/actions/others/picture/JsonAction.java 146
de/tivsource/page/admin/actions/others/slider/JsonAction.java 152
de/tivsource/page/admin/actions/others/subsumption/JsonAction.java 144
de/tivsource/page/admin/actions/others/vacancy/JsonAction.java 146
de/tivsource/page/admin/actions/system/captcha/JsonAction.java 132
de/tivsource/page/admin/actions/system/property/JsonAction.java 115
de/tivsource/page/admin/actions/system/role/JsonAction.java 116
de/tivsource/page/admin/actions/system/user/JsonAction.java 128
	}

	/**
	 * @return how many rows we want to have into the grid
	 */
	public Integer getRows() {
		return rows;
	}

	/**
	 * @param rows
	 *            how many rows we want to have into the grid
	 */
	public void setRows(Integer rows) {
		this.rows = rows;
	}

	/**
	 * @return current page of the query
	 */
	public Integer getPage() {
		return page;
	}

	/**
	 * @param page
	 *            current page of the query
	 */
	public void setPage(Integer page) {
		this.page = page;
	}

	/**
	 * @return total pages for the query
	 */
	public Integer getTotal() {
		return total;
	}

	/**
	 * @param total
	 *            total pages for the query
	 */
	public void setTotal(Integer total) {
		this.total = total;
	}

	/**
	 * @return total number of records for the query. e.g. select count(*) from
	 *         table
	 */
	public Integer getRecord() {
		return record;
	}

	/**
	 * @param record
	 *            total number of records for the query. e.g. select count(*)
	 *            from table
	 */
	public void setRecord(Integer record) {

		this.record = record;

		if (this.record > 0 && this.rows > 0) {
			this.total = (int) Math.ceil((double) this.record
					/ (double) this.rows);
		} else {
			this.total = 0;
		}
	}

	/**
	 * @return an collection that contains the actual data
	 */
	public List<Event> getGridModel() {
Datei Zeile
de/tivsource/page/admin/actions/others/news/JsonAction.java 54
de/tivsource/page/admin/actions/others/slider/JsonAction.java 54
        		results = { @Result(name = "success", type="json", params={"excludeProperties", "gridModel.*.gallery, gridModel.*.pictureItems"}) }
        )
    })
	public String execute() {
		return SUCCESS;
	}

	public String getJSON() {

	    LOGGER.info("Page " + getPage() + " Rows " + getRows()
				+ " Sorting Order " + getSord() + " Index Row :" + getSidx());
	    LOGGER.info("Build new List");

		/*
		 * Setze die Anzahl aller Objekte in der Datenbank.
		 */
		setRecord(this.newsDaoLocal.countAll());

		int to = (getRows() * getPage());
		int from = to - getRows();

		/*
		 * Setze die Maximalgrenze auf die Maximale Anzahl
		 */
		if (to > getRecord()) {
			to = getRecord();
		}
		
		/*
		 * Sortieren aufsteigen
		 */
		if (getSord() != null && getSord().equalsIgnoreCase("asc")) {
		    LOGGER.info("Sortieren nach asc");
			if (getSidx() != null && getSidx().equalsIgnoreCase("uuid")) {
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 64
de/tivsource/page/admin/backup/BackupCompanionGroup.java 54
de/tivsource/page/admin/backup/BackupEvent.java 56
de/tivsource/page/admin/backup/BackupGallery.java 54
de/tivsource/page/admin/backup/BackupManual.java 64
de/tivsource/page/admin/backup/BackupNews.java 64
de/tivsource/page/admin/backup/BackupPage.java 66
de/tivsource/page/admin/backup/BackupVacancy.java 66
	    SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		// uuid|
	    // uuid(de)|name(de)|description(de)|keywords(de)|content_uuid(de)|content(de)|content_created(de)|content_modified(de)|
	    // uuid(en)|name(en)|description(en)|keywords(en)|content_uuid(en)|content(en)|content_created(en)|content_modified(en)|
	    // visible|created|modified|modifiedBy|modifiedAddress|picture|pictureOnPage|pointInTime|booking|bookingUrl|
	    // hasVenue|venue|visibleFrom|

		StringBuffer nextString = new StringBuffer();

		nextString.append(next.getUuid());
		nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getUuid());
        nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getName());
		nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getDescription());
		nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getKeywords());
		nextString.append("|");

        nextString.append(next.getContentObject(Language.DE).getUuid());
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 122
de/tivsource/page/admin/backup/BackupGallery.java 90
de/tivsource/page/admin/backup/BackupManual.java 121
        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");

        nextString.append(next.getPicture().getUuid());
        nextString.append("|");

        nextString.append(next.getPictureOnPage().toString());
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanionGroup.java 90
de/tivsource/page/admin/backup/BackupGallery.java 90
de/tivsource/page/admin/backup/BackupNews.java 121
        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getVisible().toString());
        nextString.append("|");
        
        nextString.append(simpleDateFormat.format(next.getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getModified()));
        nextString.append("|");

        nextString.append(next.getModifiedBy());
        nextString.append("|");

        nextString.append(next.getModifiedAddress());
        nextString.append("|");

        nextString.append(next.getPicture().getUuid());
        nextString.append("|");

        nextString.append(next.getPictureOnPage().toString());
Datei Zeile
de/tivsource/page/admin/actions/others/message/JsonAction.java 42
de/tivsource/page/admin/actions/system/user/JsonAction.java 42
	private List<Message> pageList;
	private Integer rows = 0;
	private Integer page = 1;
	private Integer total = 0;
	private Integer record = 0;
	private String sord;
	private String sidx;

	@Override
    @Actions({
        @Action(
        		value = "table", 
        		results = { @Result(name = "success", type="json", params={"excludeProperties", "gridModel.*.roles"}) }
        )
    })
	public String execute() {
		return SUCCESS;
	}

	public String getJSON() {

	    LOGGER.info("Page " + getPage() + " Rows " + getRows()
				+ " Sorting Order " + getSord() + " Index Row :" + getSidx());
	    LOGGER.info("Build new List");

		/*
		 * Setze die Anzahl aller Objekte in der Datenbank.
		 */
		setRecord(this.messageDaoLocal.countAll());
Datei Zeile
de/tivsource/page/admin/actions/others/appointment/JsonAction.java 43
de/tivsource/page/admin/actions/others/companion/JsonAction.java 43
de/tivsource/page/admin/actions/others/companiongroup/JsonAction.java 43
	private Integer rows = 0;
	private Integer page = 1;
	private Integer total = 0;
	private Integer record = 0;
	private String sord;
	private String sidx;

	@Override
    @Actions({
        @Action(
        		value = "table", 
        		results = { @Result(name = "success", type="json", params={"excludeProperties", "gridModel.*.companions, gridModel.*.gallery, gridModel.*.pictureItems"}) }
        )
    })
	public String execute() {
		return SUCCESS;
	}

	public String getJSON() {

	    LOGGER.info("Page " + getPage() + " Rows " + getRows()
				+ " Sorting Order " + getSord() + " Index Row :" + getSidx());
	    LOGGER.info("Build new List");

		/*
		 * Setze die Anzahl aller Objekte in der Datenbank.
		 */
		setRecord(this.appointmentDaoLocal.countAll());
Datei Zeile
de/tivsource/page/admin/actions/others/contententry/JsonAction.java 43
de/tivsource/page/admin/actions/others/linkentry/JsonAction.java 43
	private Integer rows = 0;
	private Integer page = 1;
	private Integer total = 0;
	private Integer record = 0;
	private String sord;
	private String sidx;

	@Override
    @Actions({
        @Action(
        		value = "table", 
        		results = { @Result(name = "success", type="json", params={"excludeProperties", "gridModel.*.contentItem"}) }
        )
    })
	public String execute() {
		return SUCCESS;
	}

	public String getJSON() {

	    LOGGER.info("Page " + getPage() + " Rows " + getRows()
				+ " Sorting Order " + getSord() + " Index Row :" + getSidx());
	    LOGGER.info("Build new List");

		/*
		 * Setze die Anzahl aller Objekte in der Datenbank.
		 */
		setRecord(this.contentEntryDaoLocal.countAll());
Datei Zeile
de/tivsource/page/admin/actions/others/manual/JsonAction.java 43
de/tivsource/page/admin/actions/others/news/JsonAction.java 43
	private Integer rows = 0;
	private Integer page = 1;
	private Integer total = 0;
	private Integer record = 0;
	private String sord;
	private String sidx;

	@Override
    @Actions({
        @Action(
        		value = "table", 
        		results = { @Result(name = "success", type="json", params={"excludeProperties", "gridModel.*.gallery, gridModel.*.pictureItems"}) }
        )
    })
	public String execute() {
		return SUCCESS;
	}

	public String getJSON() {

	    LOGGER.info("Page " + getPage() + " Rows " + getRows()
				+ " Sorting Order " + getSord() + " Index Row :" + getSidx());
	    LOGGER.info("Build new List");

		/*
		 * Setze die Anzahl aller Objekte in der Datenbank.
		 */
		setRecord(this.manualDaoLocal.countAll());
Datei Zeile
de/tivsource/page/admin/actions/system/captcha/JsonAction.java 42
de/tivsource/page/admin/actions/system/property/JsonAction.java 42
de/tivsource/page/admin/actions/system/role/JsonAction.java 43
    private Integer rows = 0;
    private Integer page = 1;
    private Integer total = 0;
    private Integer record = 0;
    private String sord;
    private String sidx;

    @Override
    @Actions({
        @Action(
                value = "table",
                results = { @Result(name = "success", type="json", params={"excludeProperties", "gridModel.*.users"}) }
        )
    })
    public String execute() {
        return SUCCESS;
    }

    public String getJSON() {
        LOGGER.info("Page " + getPage() + 
                " Rows " + getRows() + 
                " Sorting Order " + getSord() + 
                " Index Row :" + getSidx());
        LOGGER.info("Build new List");

        /*
         * Setze die Anzahl aller Objekte in der Datenbank.
         */
        setRecord(this.captchaDaoLocal.countAll());
Datei Zeile
de/tivsource/page/admin/actions/others/picture/AddAction.java 182
de/tivsource/page/admin/actions/others/picture/PictureEditAction.java 170
                + destination);
        BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
        BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));

        while ((s = stdInput.readLine()) != null) {
            System.out.println(s);
        }

        while ((s = stdError.readLine()) != null) {
            System.out.println(s);
        }
    }

    private static void createLarge(String source, String destination) throws IOException {
        String s = null;

        Process p = Runtime.getRuntime().exec(
                "/usr/bin/convert " + source
                + " -resize 1000x1000 -quality 85 -compress JPEG "
Datei Zeile
de/tivsource/page/admin/actions/others/picture/AddAction.java 201
de/tivsource/page/admin/actions/others/picture/PictureEditAction.java 189
                + destination);
        BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
        BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));

        while ((s = stdInput.readLine()) != null) {
            System.out.println(s);
        }

        while ((s = stdError.readLine()) != null) {
            System.out.println(s);
        }
    }

    private static void createThumbnail(String source, String destination) throws IOException {
        String s = null;

        Process p = Runtime.getRuntime().exec(
                "/usr/bin/convert " + source
                + " -resize 200x143 -quality 85 -compress JPEG "
Datei Zeile
de/tivsource/page/admin/actions/others/page/EditAction.java 77
de/tivsource/page/admin/actions/others/subsumption/EditAction.java 84
    }
	
    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    @Override
    public void prepare() {
        super.prepare();
        pictureList = pictureDaoLocal.findAll(propertyDaoLocal.findByKey("gallery.uuid.for.page.picture").getValue());
        cssGroupList = cssGroupDaoLocal.findAll(0, cssGroupDaoLocal.countAll());
    }

    @Override
    @Actions({
        @Action(
        		value = "edit", 
        		results = { 
        				@Result(name = "success", type = "redirectAction", location = "index.html"),
        				@Result(name = "input",   type = "tiles", location = "pageEditForm"),
Datei Zeile
de/tivsource/page/admin/actions/others/contententry/AddAction.java 55
de/tivsource/page/admin/actions/others/contententry/EditAction.java 54
    private static final Logger LOGGER = LogManager.getLogger(AddAction.class);

    @InjectEJB(name="ContentEntryDao")
    private ContentEntryDaoLocal contentEntryDaoLocal;

	@InjectEJB(name="ContentItemDao")
    private ContentItemDaoLocal contentItemDaoLocal;

    @InjectEJB(name="PropertyDao")
    private PropertyDaoLocal propertyDaoLocal;
    
    private ContentEntry contentEntry;

    private List<ContentItem> contentItems;

    public ContentEntry getContentEntry() {
        return contentEntry;
    }

    public void setContentEntry(ContentEntry contentEntry) {
        this.contentEntry = contentEntry;
    }

    public List<ContentItem> getContentItems() {
    	return contentItems;
    }

    @Override
    public void prepare() {
    	contentItems = contentItemDaoLocal.findAllUnassigned(0, contentItemDaoLocal.countAllUnassigned());
    }
    
	@Override
    @Actions({
        @Action(
        		value = "add", 
Datei Zeile
de/tivsource/page/admin/actions/others/picture/AddAction.java 163
de/tivsource/page/admin/actions/others/picture/PictureEditAction.java 151
	}

    private static void savePictureFile(File source, File destination) throws Exception {
        byte[] buffer = new byte[(int) source.length()];
        InputStream in = new FileInputStream(source);
        in.read(buffer);
        FileOutputStream fileOutStream = new FileOutputStream(destination);
        fileOutStream.write(buffer);
        fileOutStream.flush();
        fileOutStream.close();
        in.close();
    }

    private static void createNormal(String source, String destination) throws IOException {
        String s = null;

        Process p = Runtime.getRuntime().exec(
                "/usr/bin/convert " + source
                + " -resize 600x500 -quality 85 -compress JPEG "
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanion.java 97
de/tivsource/page/admin/backup/BackupSlider.java 117
        nextString.append(next.getGroup().getUuid());
        nextString.append("|");

        nextString.append(next.getVisible().toString());
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getModified()));
        nextString.append("|");

        nextString.append(next.getModifiedBy());
        nextString.append("|");

        nextString.append(next.getModifiedAddress());
        nextString.append("|");


		return nextString.toString();
	}

}// Ende class
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanionGroup.java 90
de/tivsource/page/admin/backup/BackupEvent.java 93
de/tivsource/page/admin/backup/BackupGallery.java 90
de/tivsource/page/admin/backup/BackupLocation.java 136
        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getVisible().toString());
        nextString.append("|");
        
        nextString.append(simpleDateFormat.format(next.getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getModified()));
        nextString.append("|");

        nextString.append(next.getModifiedBy());
        nextString.append("|");

        nextString.append(next.getModifiedAddress());
        nextString.append("|");

        nextString.append(next.getPicture().getUuid());
Datei Zeile
de/tivsource/page/admin/actions/locations/feedbackoption/AddAction.java 48
de/tivsource/page/admin/actions/others/manual/AddAction.java 73
    }

	@Override
    @Actions({
        @Action(
        		value = "add", 
        		results = { 
        				@Result(name = "success", type = "redirectAction", location = "index.html"),
        				@Result(name = "input", type="tiles", location = "manualAddForm"),
        				@Result(name = "error", type="tiles", location = "manualAddError")
        				}
        )
    })
    public String execute() throws Exception {
    	LOGGER.info("execute() aufgerufen.");

        String remoteUser    = ServletActionContext.getRequest().getRemoteUser();
        String remoteAddress = ServletActionContext.getRequest().getRemoteAddr();

    	if(feedbackOption != null) {
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 122
de/tivsource/page/admin/backup/BackupEvent.java 93
de/tivsource/page/admin/backup/BackupLocation.java 136
de/tivsource/page/admin/backup/BackupManual.java 121
de/tivsource/page/admin/backup/BackupNews.java 121
        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");

        nextString.append(next.getPicture().getUuid());
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanionGroup.java 90
de/tivsource/page/admin/backup/BackupGallery.java 90
de/tivsource/page/admin/backup/BackupPage.java 123
de/tivsource/page/admin/backup/BackupVacancy.java 123
        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        
        nextString.append(next.getVisible().toString());
        nextString.append("|");
        
        nextString.append(simpleDateFormat.format(next.getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getModified()));
        nextString.append("|");

        nextString.append(next.getModifiedBy());
        nextString.append("|");

        nextString.append(next.getModifiedAddress());
        nextString.append("|");

        nextString.append(next.getPicture().getUuid());
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 73
de/tivsource/page/admin/backup/BackupLocation.java 98
de/tivsource/page/admin/backup/BackupManual.java 72
de/tivsource/page/admin/backup/BackupNews.java 72
de/tivsource/page/admin/backup/BackupPage.java 74
de/tivsource/page/admin/backup/BackupVacancy.java 74
		nextString.append(next.getUuid());
		nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.DE).getUuid());
        nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getName());
		nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getDescription());
		nextString.append("|");

		nextString.append(next.getDescriptionObject(Language.DE).getKeywords());
		nextString.append("|");

        nextString.append(next.getContentObject(Language.DE).getUuid());
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 97
de/tivsource/page/admin/backup/BackupCompanionGroup.java 77
de/tivsource/page/admin/backup/BackupEvent.java 81
de/tivsource/page/admin/backup/BackupGallery.java 77
de/tivsource/page/admin/backup/BackupManual.java 96
de/tivsource/page/admin/backup/BackupNews.java 96
de/tivsource/page/admin/backup/BackupPage.java 98
de/tivsource/page/admin/backup/BackupVacancy.java 98
        nextString.append(simpleDateFormat.format(next.getContentObject(Language.DE).getModified()));
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getUuid());
        nextString.append("|");
        
        nextString.append(next.getDescriptionObject(Language.EN).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        nextString.append(next.getContentObject(Language.EN).getUuid());
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 97
de/tivsource/page/admin/backup/BackupLocation.java 112
de/tivsource/page/admin/backup/BackupManual.java 96
de/tivsource/page/admin/backup/BackupNews.java 96
de/tivsource/page/admin/backup/BackupPage.java 98
de/tivsource/page/admin/backup/BackupVacancy.java 98
        nextString.append(simpleDateFormat.format(next.getContentObject(Language.DE).getModified()));
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getUuid());
        nextString.append("|");
        
        nextString.append(next.getDescriptionObject(Language.EN).getName());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getDescription());
        nextString.append("|");

        nextString.append(next.getDescriptionObject(Language.EN).getKeywords());
        nextString.append("|");

        nextString.append(next.getContentObject(Language.EN).getUuid());
Datei Zeile
de/tivsource/page/admin/backup/BackupCompanion.java 97
de/tivsource/page/admin/backup/BackupCompanionGroup.java 90
de/tivsource/page/admin/backup/BackupEvent.java 93
de/tivsource/page/admin/backup/BackupGallery.java 90
de/tivsource/page/admin/backup/BackupLocation.java 136
        nextString.append(next.getGroup().getUuid());
        nextString.append("|");

        nextString.append(next.getVisible().toString());
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getCreated()));
        nextString.append("|");

        nextString.append(simpleDateFormat.format(next.getModified()));
        nextString.append("|");

        nextString.append(next.getModifiedBy());
        nextString.append("|");

        nextString.append(next.getModifiedAddress());
        nextString.append("|");
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 122
de/tivsource/page/admin/backup/BackupCompanion.java 97
de/tivsource/page/admin/backup/BackupManual.java 121
de/tivsource/page/admin/backup/BackupNews.java 121
de/tivsource/page/admin/backup/BackupPage.java 123
de/tivsource/page/admin/backup/BackupVacancy.java 123
        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");
Datei Zeile
de/tivsource/page/admin/actions/others/picture/AddAction.java 220
de/tivsource/page/admin/actions/others/picture/PictureEditAction.java 208
                + destination);
        BufferedReader stdInput = new BufferedReader(new InputStreamReader(p.getInputStream()));
        BufferedReader stdError = new BufferedReader(new InputStreamReader(p.getErrorStream()));

        while ((s = stdInput.readLine()) != null) {
            System.out.println(s);
        }

        while ((s = stdError.readLine()) != null) {
            System.out.println(s);
        }
    }

    private static Map<UrlType, PictureUrl> generatePictureUrls(String pictureName, Picture pictureObject) {
Datei Zeile
de/tivsource/page/admin/backup/BackupAppointment.java 122
de/tivsource/page/admin/backup/BackupCompanionGroup.java 90
de/tivsource/page/admin/backup/BackupEvent.java 93
de/tivsource/page/admin/backup/BackupGallery.java 90
de/tivsource/page/admin/backup/BackupLocation.java 136
de/tivsource/page/admin/backup/BackupManual.java 121
de/tivsource/page/admin/backup/BackupNews.java 121
de/tivsource/page/admin/backup/BackupPage.java 123
de/tivsource/page/admin/backup/BackupSlider.java 117
de/tivsource/page/admin/backup/BackupVacancy.java 123
        nextString.append(simpleDateFormat.format(next.getContentObject(Language.EN).getModified()));
        nextString.append("|");

		nextString.append(next.getVisible().toString());
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getCreated()));
		nextString.append("|");

		nextString.append(simpleDateFormat.format(next.getModified()));
		nextString.append("|");

		nextString.append(next.getModifiedBy());
		nextString.append("|");

		nextString.append(next.getModifiedAddress());
		nextString.append("|");