org.filteredpush.client.jsf
Class AnnotationsBean
java.lang.Object
org.filteredpush.client.jsf.ViewBean
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
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationsBean
public AnnotationsBean()
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()