org.olat.search.service
Class SearchResourceContext

java.lang.Object
  extended by org.olat.search.service.SearchResourceContext

public class SearchResourceContext
extends java.lang.Object

Search internal class to build resourceUrl in indexer.

Author:
Christian Guretzki

Field Summary
static java.lang.String MESSAGE_RESOURCE_TYPE
          Workaround for forum message.
 
Constructor Summary
SearchResourceContext()
          Constructor for root-object without any parent.
SearchResourceContext(SearchResourceContext parentResourceContext)
          Constructor for child-object with a parent.
 
Method Summary
 java.util.Date getCreatedDate()
          Pass lastModified parameter from parent to child.
 java.lang.String getDescription()
          Pass description parameter from parent to child.
 java.lang.String getDocumentContext()
           
 java.lang.String getDocumentType()
          Pass documentType parameter from parent to child.
 java.lang.String getFilePath()
           
 java.util.Date getLastModified()
          Pass lastModified parameter from parent to child.
 java.lang.String getParentContextName()
           
 java.lang.String getParentContextType()
           
 java.lang.String getResourceUrl()
           
 java.lang.String getTitle()
          Pass title parameter from parent to child.
 void setBusinessControlFor(CourseNode courseNode)
          Set BusinessControl for certain CourseNode.
 void setBusinessControlFor(Message message)
          Workaround for forum message.
 void setBusinessControlFor(OLATResourceable olatResource)
           
 void setCreatedDate(java.util.Date creationDate)
          Pass createdDate parameter from parent to child.
 void setDescription(java.lang.String description)
          Pass description parameter from parent to child.
 void setDocumentContext(java.lang.String documentContext)
           
 void setDocumentType(java.lang.String documentType)
          Pass documentType parameter from parent to child.
 void setFilePath(java.lang.String myFilePath)
          Pass filePath parameter from parent to child.
 void setLastModified(java.util.Date lastModified)
          Pass lastModified parameter from parent to child.
 void setParentContextName(java.lang.String parentContextName)
           
 void setParentContextType(java.lang.String parentContextType)
           
 void setTitle(java.lang.String title)
          Pass title parameter from parent to child.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MESSAGE_RESOURCE_TYPE

public static final java.lang.String MESSAGE_RESOURCE_TYPE
Workaround for forum message. Forum-Message is currently no OLATResourcable.

See Also:
Constant Field Values
Constructor Detail

SearchResourceContext

public SearchResourceContext()
Constructor for root-object without any parent.


SearchResourceContext

public SearchResourceContext(SearchResourceContext parentResourceContext)
Constructor for child-object with a parent.

Method Detail

getFilePath

public java.lang.String getFilePath()

getResourceUrl

public java.lang.String getResourceUrl()
Returns:
Returns the resourcePath.

setBusinessControlFor

public void setBusinessControlFor(OLATResourceable olatResource)
Parameters:
olatResource -

setBusinessControlFor

public void setBusinessControlFor(Message message)
Workaround for forum message. Forum-Message is currently no OLATResourcable.
ResourceUrl-Format for Forum-Message :
forum::message:

Parameters:
message -

setBusinessControlFor

public void setBusinessControlFor(CourseNode courseNode)
Set BusinessControl for certain CourseNode.

Parameters:
courseNode -

setLastModified

public void setLastModified(java.util.Date lastModified)
Pass lastModified parameter from parent to child.


setCreatedDate

public void setCreatedDate(java.util.Date creationDate)
Pass createdDate parameter from parent to child.


getCreatedDate

public java.util.Date getCreatedDate()
Pass lastModified parameter from parent to child.

Returns:
Returns the creationDate.

getLastModified

public java.util.Date getLastModified()
Pass lastModified parameter from parent to child.

Returns:
Returns the lastModified.

setFilePath

public void setFilePath(java.lang.String myFilePath)
Pass filePath parameter from parent to child.


setDocumentType

public void setDocumentType(java.lang.String documentType)
Pass documentType parameter from parent to child.


getDocumentType

public java.lang.String getDocumentType()
Pass documentType parameter from parent to child.

Returns:

getDocumentContext

public java.lang.String getDocumentContext()

setDocumentContext

public void setDocumentContext(java.lang.String documentContext)

setTitle

public void setTitle(java.lang.String title)
Pass title parameter from parent to child.


setDescription

public void setDescription(java.lang.String description)
Pass description parameter from parent to child.


getTitle

public java.lang.String getTitle()
Pass title parameter from parent to child.

Returns:

getDescription

public java.lang.String getDescription()
Pass description parameter from parent to child.

Returns:

setParentContextType

public void setParentContextType(java.lang.String parentContextType)

setParentContextName

public void setParentContextName(java.lang.String parentContextName)

getParentContextType

public java.lang.String getParentContextType()

getParentContextName

public java.lang.String getParentContextName()