org.olat.bookmark
Class BookmarkImpl

java.lang.Object
  extended by org.olat.core.commons.persistence.PersistentObject
      extended by org.olat.bookmark.BookmarkImpl
All Implemented Interfaces:
java.io.Serializable, Bookmark, CreateInfo, Persistable

public class BookmarkImpl
extends PersistentObject
implements Bookmark

Description:

Author:
Sabina Jeger
See Also:
Serialized Form

Method Summary
 java.lang.String getDescription()
          returns the description of the bookmark
 java.lang.String getDetaildata()
          returns the internal reference (url) of the bookmark
 java.lang.String getDisplayrestype()
           
 java.lang.Long getOlatreskey()
          returns the resource key of the bookmark
 java.lang.String getOlatrestype()
           
 Identity getOwner()
           
 java.lang.String getTitle()
           
 void setDescription(java.lang.String string)
           
 void setDetaildata(java.lang.String string)
          set the internal reference of the bookmark
 void setDisplayrestype(java.lang.String string)
          Set the res type to be displayed in the bookmark broperties.
 void setOlatreskey(java.lang.Long reskey)
          set the olat resource key of the bookmark
 void setOlatrestype(java.lang.String string)
          set the olat resource type of the bookmark
 void setOwner(Identity ident)
          set the owner of the bookmark
 void setTitle(java.lang.String string)
          set the title of the bookmark
 
Methods inherited from class org.olat.core.commons.persistence.PersistentObject
equalsByPersistableKey, getCreationDate, getKey, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.olat.core.id.CreateInfo
getCreationDate
 
Methods inherited from interface org.olat.core.id.Persistable
equalsByPersistableKey, getKey
 

Method Detail

getDescription

public java.lang.String getDescription()
Description copied from interface: Bookmark
returns the description of the bookmark

Specified by:
getDescription in interface Bookmark
Returns:
description
See Also:
Bookmark.getDescription()

getDetaildata

public java.lang.String getDetaildata()
Description copied from interface: Bookmark
returns the internal reference (url) of the bookmark

Specified by:
getDetaildata in interface Bookmark
Returns:
internal reference
See Also:
Bookmark.getDetaildata()

getOlatreskey

public java.lang.Long getOlatreskey()
Description copied from interface: Bookmark
returns the resource key of the bookmark

Specified by:
getOlatreskey in interface Bookmark
Returns:
resource key
See Also:
Bookmark.getOlatreskey()

getOlatrestype

public java.lang.String getOlatrestype()
Specified by:
getOlatrestype in interface Bookmark
Returns:
the resource type (course, forum etc.) of the bookmark
See Also:
Bookmark.getOlatrestype()

getDisplayrestype

public java.lang.String getDisplayrestype()
Specified by:
getDisplayrestype in interface Bookmark
Returns:
the resource type to display to the user
See Also:
Bookmark.getDisplayrestype()

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface Bookmark
Returns:
title of the bookmark
See Also:
Bookmark.getTitle()

setDescription

public void setDescription(java.lang.String string)
Specified by:
setDescription in interface Bookmark
Parameters:
string - the description of the bookmark
See Also:
Bookmark.setDescription(java.lang.String)

setDetaildata

public void setDetaildata(java.lang.String string)
Description copied from interface: Bookmark
set the internal reference of the bookmark

Specified by:
setDetaildata in interface Bookmark
See Also:
Bookmark.setDetaildata(java.lang.String)

setOlatreskey

public void setOlatreskey(java.lang.Long reskey)
Description copied from interface: Bookmark
set the olat resource key of the bookmark

Specified by:
setOlatreskey in interface Bookmark
Parameters:
reskey - resource key
See Also:
Bookmark.setOlatreskey(java.lang.Long)

setOlatrestype

public void setOlatrestype(java.lang.String string)
Description copied from interface: Bookmark
set the olat resource type of the bookmark

Specified by:
setOlatrestype in interface Bookmark
Parameters:
string - resource type
See Also:
Bookmark.setOlatrestype(java.lang.String)

setDisplayrestype

public void setDisplayrestype(java.lang.String string)
Set the res type to be displayed in the bookmark broperties.

Parameters:
string -

getOwner

public Identity getOwner()
Specified by:
getOwner in interface Bookmark
Returns:
the owner of the bookmark
See Also:
Bookmark.getOwner()

setOwner

public void setOwner(Identity ident)
Description copied from interface: Bookmark
set the owner of the bookmark

Specified by:
setOwner in interface Bookmark
See Also:
Bookmark.setOwner(org.olat.core.id.Identity)

setTitle

public void setTitle(java.lang.String string)
Description copied from interface: Bookmark
set the title of the bookmark

Specified by:
setTitle in interface Bookmark
See Also:
Bookmark.setTitle(java.lang.String)