org.filteredpush.client.jsf
Class AnnotationsBean

java.lang.Object
  extended by org.filteredpush.client.jsf.ViewBean
      extended by org.filteredpush.client.jsf.AnnotationsBean
All Implemented Interfaces:
java.io.Serializable

public class AnnotationsBean
extends ViewBean
implements java.io.Serializable

A class responsible for all the annotations related functions except mapping, including retrieve annotations through the MessengerBean, parsing the annotations through annotation parser, organize the folders, delete/search the annotations etc. Author: Lei Dou $Id:$

See Also:
Serialized Form

Constructor Summary
AnnotationsBean()
           
 
Method Summary
 java.lang.String checkDetail(java.lang.String uri)
           
 void delete()
           
 void fetchResponseHistory(org.richfaces.event.PanelToggleEvent event)
           
 void finishRespondAndMapping()
           
 FPAnnotationDigest getAnnotationDigest(java.lang.String uri)
           
 java.util.List<java.lang.String> getAnnotationList()
           
 java.lang.String getAnnotationType()
           
 java.lang.String getCatalogNumber()
           
 java.lang.String getCollectionCode()
           
 java.util.Date getCurationEndDate()
           
 java.util.Date getCurationStartDate()
           
 java.lang.String getCuratorName()
           
 java.util.List<java.util.Map.Entry<java.lang.String,Folder>> getFolderList()
           
 java.lang.String getGenus()
           
 java.lang.String getIdentifiedBy()
           
 java.lang.String getInstitutionCode()
           
 boolean getIsMapping()
           
 boolean getIsResponding()
           
 boolean getIsSearch()
           
 java.util.List<java.lang.String> getMatchedInterest(java.lang.String uri)
           
 java.lang.String getOptTime(java.lang.String uri, java.lang.String optStatus)
           
 java.util.List<AnnotationReponseNode> getResponseRootNodes()
           
 java.lang.String getScientificName()
           
 java.lang.String getSearchStatus()
           
 FPAnnotation getSelectedAnnotation()
           
 FPAnnotation getSelectedAnnotationResponse()
           
 java.lang.String getSelectedAnnotationURI()
           
 java.lang.String[] getSelectedAnnotationURIs()
           
 java.lang.String getSelectedFolder()
           
 java.util.TimeZone getTimeZone()
           
 UserAccessService getUserAccessService()
           
 boolean isAnnotationUnread(java.lang.String uri)
           
 boolean isSelectedResponse(java.lang.String uri)
           
 void removeFolder(java.lang.String name)
           
 void restore()
           
 java.lang.String retrieveAnnotations(java.lang.String folderName)
          get user's interest retrieve messages pertaining interest from the network, and de-duplicate the messages parse the annotation, initialize the annotation object, and get the annotation list
 void search()
           
 void setAnnotationType(java.lang.String annotationType)
           
 void setCatalogNumber(java.lang.String catalogNumber)
           
 void setCollectionCode(java.lang.String collectionCode)
           
 void setCurationEndDate(java.util.Date curationEndDate)
           
 void setCurationStartDate(java.util.Date curationStartDate)
           
 void setCuratorName(java.lang.String curatorName)
           
 void setGenus(java.lang.String genus)
           
 void setIdentifiedBy(java.lang.String identifiedBy)
           
 void setInstitutionCode(java.lang.String institutionCode)
           
 void setMapperBean(MapperBean mapperBean)
           
 void setMessenger(MessengerBean messenger)
           
 void setScientificName(java.lang.String scientificName)
           
 void setSearchStatus(java.lang.String searchStatus)
           
 void setSelectedAnnotationURIs(java.lang.String[] selectedURIs)
           
 void setSelectedResponseAnnotationURI(java.lang.String uri)
           
 void setUser(FPUser user)
           
 void setUserAccessService(UserAccessService userAccessService)
           
 void startRespond(boolean withMapping)
           
 void submitResponse()
           
 
Methods inherited from class org.filteredpush.client.jsf.ViewBean
setMessageLocalizer
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationsBean

public AnnotationsBean()
Method Detail

getUserAccessService

public UserAccessService getUserAccessService()

setUserAccessService

public void setUserAccessService(UserAccessService userAccessService)

retrieveAnnotations

public java.lang.String retrieveAnnotations(java.lang.String folderName)
get user's interest retrieve messages pertaining interest from the network, and de-duplicate the messages parse the annotation, initialize the annotation object, and get the annotation list

Returns:

setUser

public void setUser(FPUser user)

setMapperBean

public void setMapperBean(MapperBean mapperBean)

setMessenger

public void setMessenger(MessengerBean messenger)

getFolderList

public java.util.List<java.util.Map.Entry<java.lang.String,Folder>> getFolderList()

removeFolder

public void removeFolder(java.lang.String name)

getSelectedFolder

public java.lang.String getSelectedFolder()

getAnnotationList

public java.util.List<java.lang.String> getAnnotationList()

getAnnotationDigest

public FPAnnotationDigest getAnnotationDigest(java.lang.String uri)

getSelectedAnnotationURIs

public java.lang.String[] getSelectedAnnotationURIs()

setSelectedAnnotationURIs

public void setSelectedAnnotationURIs(java.lang.String[] selectedURIs)

delete

public void delete()

restore

public void restore()

getCurationEndDate

public java.util.Date getCurationEndDate()

setCurationEndDate

public void setCurationEndDate(java.util.Date curationEndDate)

getSearchStatus

public java.lang.String getSearchStatus()

setSearchStatus

public void setSearchStatus(java.lang.String searchStatus)

getCurationStartDate

public java.util.Date getCurationStartDate()

setCurationStartDate

public void setCurationStartDate(java.util.Date curationStartDate)

getTimeZone

public java.util.TimeZone getTimeZone()

getCuratorName

public java.lang.String getCuratorName()

setCuratorName

public void setCuratorName(java.lang.String curatorName)

getAnnotationType

public java.lang.String getAnnotationType()

setAnnotationType

public void setAnnotationType(java.lang.String annotationType)

getCollectionCode

public java.lang.String getCollectionCode()

setCollectionCode

public void setCollectionCode(java.lang.String collectionCode)

getCatalogNumber

public java.lang.String getCatalogNumber()

setCatalogNumber

public void setCatalogNumber(java.lang.String catalogNumber)

getInstitutionCode

public java.lang.String getInstitutionCode()

setInstitutionCode

public void setInstitutionCode(java.lang.String institutionCode)

getScientificName

public java.lang.String getScientificName()

setScientificName

public void setScientificName(java.lang.String scientificName)

getGenus

public java.lang.String getGenus()

setGenus

public void setGenus(java.lang.String genus)

getIdentifiedBy

public java.lang.String getIdentifiedBy()

setIdentifiedBy

public void setIdentifiedBy(java.lang.String identifiedBy)

getIsSearch

public boolean getIsSearch()

search

public void search()

checkDetail

public java.lang.String checkDetail(java.lang.String uri)

getSelectedAnnotationURI

public java.lang.String getSelectedAnnotationURI()

getSelectedAnnotation

public FPAnnotation getSelectedAnnotation()

getMatchedInterest

public java.util.List<java.lang.String> getMatchedInterest(java.lang.String uri)

isAnnotationUnread

public boolean isAnnotationUnread(java.lang.String uri)

getOptTime

public java.lang.String getOptTime(java.lang.String uri,
                                   java.lang.String optStatus)

fetchResponseHistory

public void fetchResponseHistory(org.richfaces.event.PanelToggleEvent event)

getResponseRootNodes

public java.util.List<AnnotationReponseNode> getResponseRootNodes()

setSelectedResponseAnnotationURI

public void setSelectedResponseAnnotationURI(java.lang.String uri)

isSelectedResponse

public boolean isSelectedResponse(java.lang.String uri)

getSelectedAnnotationResponse

public FPAnnotation getSelectedAnnotationResponse()

getIsResponding

public boolean getIsResponding()

getIsMapping

public boolean getIsMapping()

startRespond

public void startRespond(boolean withMapping)

finishRespondAndMapping

public void finishRespondAndMapping()

submitResponse

public void submitResponse()