001/** 002 * Copyright 2014 Tampere University of Technology, Pori Department 003 * 004 * Licensed under the Apache License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.apache.org/licenses/LICENSE-2.0 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package service.tut.pori.facebookjazz.reference; 017 018import javax.xml.bind.annotation.XmlAccessType; 019import javax.xml.bind.annotation.XmlAccessorType; 020import javax.xml.bind.annotation.XmlElement; 021import javax.xml.bind.annotation.XmlRootElement; 022 023import service.tut.pori.contentanalysis.AbstractTaskDetails; 024import service.tut.pori.contentanalysis.Definitions; 025import service.tut.pori.contentanalysis.PhotoList; 026import service.tut.pori.contentanalysis.MediaObjectList; 027import service.tut.pori.facebookjazz.FacebookProfile; 028 029/** 030 * A minimal implementation of FBTaskDetails used for testing. 031 */ 032@XmlRootElement(name=Definitions.ELEMENT_TASK_DETAILS) 033@XmlAccessorType(XmlAccessType.NONE) 034public final class FBTaskDetails extends AbstractTaskDetails { 035 @XmlElement(name=Definitions.ELEMENT_PHOTOLIST) 036 private PhotoList _photoList = null; 037 @XmlElement(name = service.tut.pori.facebookjazz.Definitions.ELEMENT_FACEBOOK_PROFILE) 038 private FacebookProfile _profile = null; 039 @XmlElement(name=Definitions.ELEMENT_MEDIA_OBJECTLIST) 040 private MediaObjectList _tags = null; 041 042 /** 043 * @return the profile 044 */ 045 public FacebookProfile getProfile() { 046 return _profile; 047 } 048 049 /** 050 * @param profile the profile to set 051 */ 052 public void setProfile(FacebookProfile profile) { 053 _profile = profile; 054 } 055 056 /** 057 * @return the tags 058 * @see #setTags(MediaObjectList) 059 */ 060 public MediaObjectList getTags() { 061 return _tags; 062 } 063 064 /** 065 * @param tags the tags to set 066 * @see #getTags() 067 */ 068 public void setTags(MediaObjectList tags) { 069 _tags = tags; 070 } 071 072 /** 073 * @return the photoList 074 */ 075 public PhotoList getPhotoList() { 076 return _photoList; 077 } 078 079 /** 080 * @param photoList the photoList to set 081 */ 082 public void setPhotoList(PhotoList photoList) { 083 _photoList = photoList; 084 } 085 086 @Override 087 public TaskParameters getTaskParameters() { 088 return null; 089 } 090 091 @Override 092 public void setTaskParameters(TaskParameters parameters) { 093 throw new UnsupportedOperationException("Method not supported."); 094 } 095}