/*
 *  (c) 2012 University of Bolton
 *  
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing, software
 *  distributed under the License is distributed on an "AS IS" BASIS,
 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *  See the License for the specific language governing permissions and
 * limitations under the License.
 */
package uk.ac.bolton.spaws.model.impl;

import java.util.HashMap;
import java.util.Map;

import com.navnorth.learningregistry.LRActivity;

import uk.ac.bolton.spaws.model.IStats;

public class Stats extends Paradata implements IStats {
	
	private int downloads;
	private int embeds;
	private int likes;
	private int views;

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IParadata#getVerb()
	 */
	public String getVerb() {
		return VERB;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IParadata#addMeasure(com.navnorth.learningregistry.LRActivity)
	 */
	public void addMeasure(LRActivity activity) {
		Map<String, Object> values = new HashMap<String, Object>();
		values.put("downloads", this.getDownloads());
		values.put("embeds", this.getEmbeds());
		values.put("likes", this.getLikes());
		values.put("views", this.getViews());
		activity.addMeasureToVerb(values);
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IParadata#getContent()
	 */
	public String getContent() {
		return null;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IStats#getDownloads()
	 */
	public int getDownloads() {
		return downloads;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IStats#setDownloads(int)
	 */
	public void setDownloads(int downloads) {
		this.downloads = downloads;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IStats#getEmbeds()
	 */
	public int getEmbeds() {
		return embeds;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IStats#setEmbeds(int)
	 */
	public void setEmbeds(int embeds) {
		this.embeds = embeds;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IStats#getLikes()
	 */
	public int getLikes() {
		return likes;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IStats#setLikes(int)
	 */
	public void setLikes(int likes) {
		this.likes = likes;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IStats#getViews()
	 */
	public int getViews() {
		return views;
	}

	/* (non-Javadoc)
	 * @see uk.ac.bolton.spaws.model.IStats#setViews(int)
	 */
	public void setViews(int views) {
		 this.views = views;
	}

}

@@ -1493,137 +1493,8 @@
 %09%7D%0A%0A
-%09/* (non-Javadoc)%0A%09 * @see uk.ac.bolton.spaws.model.IParadata#getContent()%0A%09 */%0A%09public String getContent() %7B%0A%09%09return null;%0A%09%7D%0A%0A
 %09/* 

use superclass impl of getContent()