com.logicaldoc.web.search
Class DocumentResult

java.lang.Object
  extended by com.logicaldoc.web.navigation.MenuBarBean
      extended by com.logicaldoc.web.document.DocumentRecord
          extended by com.logicaldoc.web.search.DocumentResult
All Implemented Interfaces:
com.logicaldoc.core.searchengine.Hit

public class DocumentResult
extends DocumentRecord
implements com.logicaldoc.core.searchengine.Hit

A result entry usable by the GUI.

Since:
3.0
Author:
Marco Meschieri - Logical Objects

Field Summary
protected static org.apache.commons.logging.Log log
           
 
Fields inherited from class com.logicaldoc.web.document.DocumentRecord
CHILD_ROW_STYLE_CLASS, docId, document, GROUP_ROW_STYLE_CLASS, shortcut
 
Fields inherited from class com.logicaldoc.web.navigation.MenuBarBean
accessibleMenues, breadcrumb, itemCache, logger, model
 
Constructor Summary
DocumentResult(com.logicaldoc.core.searchengine.Hit result)
           
 
Method Summary
protected  void createMenuItems()
          Creates the context menu associated with this record
 java.lang.String discussions()
          Shows the discussions for this document
 java.util.Date getCreation()
           
 java.lang.String getCustomId()
           
 java.util.Date getDate()
           
 long getDocId()
           
 java.lang.Long getDocRef()
           
 int getDocType()
           
 long getFolderId()
           
 java.lang.String getIcon()
           
 java.lang.String getPath()
           
 int getScore()
           
 long getSize()
           
 java.lang.String getSource()
           
 java.util.Date getSourceDate()
           
 java.lang.String getSummary()
          Teturns the the summary properly escaped for the results page.
 java.lang.String getTitle()
          Gets the description of the record
 java.lang.String getType()
           
 java.lang.String history()
          Shows the history of this document
 java.lang.String info()
           
 boolean isShowPath()
           
 java.lang.String sendAsEmail()
           
 java.lang.String sendAsTicket()
           
 void setCreation(java.util.Date creation)
           
 void setCustomId(java.lang.String customId)
           
 void setDate(java.util.Date date)
           
 void setDocId(long docId)
           
 void setDocRef(java.lang.Long docRef)
           
 void setFolderId(long folderId)
           
 void setPath(java.lang.String path)
           
 void setScore(java.lang.Double score)
           
 void setScore(int score)
           
 void setSize(long sze)
           
 void setSource(java.lang.String source)
           
 void setSourceDate(java.util.Date date)
           
 void setSummary(java.lang.String summary)
           
 void setTitle(java.lang.String name)
           
 void setType(java.lang.String typ)
           
 void showDocumentPath()
           
 java.lang.String versions()
          Shows all versions of this document
 
Methods inherited from class com.logicaldoc.web.document.DocumentRecord
checkin, checkout, edit, equals, getCreationDate, getDisplayFilename, getDisplayTitle, getDocument, getDocumentPath, getDownloadTextLink, getExportName, getExportStatus, getLastModified, getRowStyleClass, getRssLink, getShortcut, initCollections, isCheckedOut, isDocumentFound, isLinked, isLocked, isSelected, links, loadDocument, lock, noaction, pasteAsLink, setSelected, unlock
 
Methods inherited from class com.logicaldoc.web.navigation.MenuBarBean
createMenuItem, createMenuItem, getActionFired, getBreadcrumb, getModel, getNavigation, getOrientation, getParam, primaryListener, selectItem, selectItem, setModel, setNavigation, setOrientation, setParam
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static org.apache.commons.logging.Log log
Constructor Detail

DocumentResult

public DocumentResult(com.logicaldoc.core.searchengine.Hit result)
Method Detail

getDate

public java.util.Date getDate()
Specified by:
getDate in interface com.logicaldoc.core.searchengine.Hit
Overrides:
getDate in class DocumentRecord

getDocId

public long getDocId()
Specified by:
getDocId in interface com.logicaldoc.core.searchengine.Hit
Overrides:
getDocId in class DocumentRecord

getDocType

public int getDocType()
Specified by:
getDocType in interface com.logicaldoc.core.searchengine.Hit

getScore

public int getScore()
Specified by:
getScore in interface com.logicaldoc.core.searchengine.Hit

getIcon

public java.lang.String getIcon()
Specified by:
getIcon in interface com.logicaldoc.core.searchengine.Hit
Overrides:
getIcon in class DocumentRecord

getTitle

public java.lang.String getTitle()
Description copied from class: DocumentRecord
Gets the description of the record

Specified by:
getTitle in interface com.logicaldoc.core.searchengine.Hit
Overrides:
getTitle in class DocumentRecord
Returns:
description of the record

getPath

public java.lang.String getPath()
Specified by:
getPath in interface com.logicaldoc.core.searchengine.Hit

getSource

public java.lang.String getSource()
Specified by:
getSource in interface com.logicaldoc.core.searchengine.Hit
Overrides:
getSource in class DocumentRecord

getSize

public long getSize()
Specified by:
getSize in interface com.logicaldoc.core.searchengine.Hit

getSourceDate

public java.util.Date getSourceDate()
Specified by:
getSourceDate in interface com.logicaldoc.core.searchengine.Hit
Overrides:
getSourceDate in class DocumentRecord

getSummary

public java.lang.String getSummary()
Teturns the the summary properly escaped for the results page. The Lucene Hilights are preserved.

Specified by:
getSummary in interface com.logicaldoc.core.searchengine.Hit
See Also:
Hit.getSummary()

getType

public java.lang.String getType()
Specified by:
getType in interface com.logicaldoc.core.searchengine.Hit

getDocRef

public java.lang.Long getDocRef()
Specified by:
getDocRef in interface com.logicaldoc.core.searchengine.Hit

createMenuItems

protected void createMenuItems()
Creates the context menu associated with this record

Overrides:
createMenuItems in class DocumentRecord
See Also:
MenuBarBean.createMenuItems()

showDocumentPath

public void showDocumentPath()

isShowPath

public boolean isShowPath()

info

public java.lang.String info()
Overrides:
info in class DocumentRecord

history

public java.lang.String history()
Description copied from class: DocumentRecord
Shows the history of this document

Overrides:
history in class DocumentRecord

sendAsEmail

public java.lang.String sendAsEmail()
Overrides:
sendAsEmail in class DocumentRecord

sendAsTicket

public java.lang.String sendAsTicket()
Overrides:
sendAsTicket in class DocumentRecord

versions

public java.lang.String versions()
Description copied from class: DocumentRecord
Shows all versions of this document

Overrides:
versions in class DocumentRecord

discussions

public java.lang.String discussions()
Description copied from class: DocumentRecord
Shows the discussions for this document

Overrides:
discussions in class DocumentRecord

setScore

public void setScore(java.lang.Double score)

getCustomId

public java.lang.String getCustomId()
Specified by:
getCustomId in interface com.logicaldoc.core.searchengine.Hit
Overrides:
getCustomId in class DocumentRecord

getFolderId

public long getFolderId()
Specified by:
getFolderId in interface com.logicaldoc.core.searchengine.Hit

setTitle

public void setTitle(java.lang.String name)
Specified by:
setTitle in interface com.logicaldoc.core.searchengine.Hit

setDate

public void setDate(java.util.Date date)
Specified by:
setDate in interface com.logicaldoc.core.searchengine.Hit

setSize

public void setSize(long sze)
Specified by:
setSize in interface com.logicaldoc.core.searchengine.Hit

setSummary

public void setSummary(java.lang.String summary)
Specified by:
setSummary in interface com.logicaldoc.core.searchengine.Hit

setType

public void setType(java.lang.String typ)
Specified by:
setType in interface com.logicaldoc.core.searchengine.Hit

setSourceDate

public void setSourceDate(java.util.Date date)
Specified by:
setSourceDate in interface com.logicaldoc.core.searchengine.Hit

getCreation

public java.util.Date getCreation()
Specified by:
getCreation in interface com.logicaldoc.core.searchengine.Hit
Overrides:
getCreation in class DocumentRecord

setCreation

public void setCreation(java.util.Date creation)
Specified by:
setCreation in interface com.logicaldoc.core.searchengine.Hit

setCustomId

public void setCustomId(java.lang.String customId)
Specified by:
setCustomId in interface com.logicaldoc.core.searchengine.Hit

setDocId

public void setDocId(long docId)
Specified by:
setDocId in interface com.logicaldoc.core.searchengine.Hit

setPath

public void setPath(java.lang.String path)
Specified by:
setPath in interface com.logicaldoc.core.searchengine.Hit

setSource

public void setSource(java.lang.String source)
Specified by:
setSource in interface com.logicaldoc.core.searchengine.Hit

setScore

public void setScore(int score)
Specified by:
setScore in interface com.logicaldoc.core.searchengine.Hit

setFolderId

public void setFolderId(long folderId)
Specified by:
setFolderId in interface com.logicaldoc.core.searchengine.Hit

setDocRef

public void setDocRef(java.lang.Long docRef)
Specified by:
setDocRef in interface com.logicaldoc.core.searchengine.Hit


Copyright © 2008-2010 Logical Objects. All Rights Reserved.