de.fh_mannheim.mm.dms.framework
Class Bookmark

java.lang.Object
  extended byde.fh_mannheim.mm.dms.framework.Upload
      extended byde.fh_mannheim.mm.dms.framework.Bookmark
All Implemented Interfaces:
IElement

public class Bookmark
extends Upload
implements IElement

Discribes a bookmark corresponding to a found upload.

Version:
$Revision: 1.5 $
Author:
Jan Löffler, mail@jlsoft.de

Field Summary
static int ADDED_BY_USER
          Bookmarktypes
static int BOOKMARKTYPE_COUNT
           
static int LAST_SEEN
           
static int MOST_SEEN
           
static int PREFERED_BY_OTHER_USERS
           
static int UNKNOWN
          UKNOWN is set as initial value for bookmarktype of bookmark
 
Fields inherited from class de.fh_mannheim.mm.dms.framework.Upload
FILESTATE_COUNT, FILESTATE_EXTERNAL, FILESTATE_MISSING, FILESTATE_OK, FILETYPE_ALL, FILETYPE_CHM, FILETYPE_COUNT, FILETYPE_DOC, FILETYPE_HTML, FILETYPE_PDF, FILETYPE_PPT, FILETYPE_PS, FILETYPE_RAR, FILETYPE_RTF, FILETYPE_TXT, FILETYPE_XLS, FILETYPE_XML, FILETYPE_ZIP, LANGUAGE_COUNT, LANGUAGE_ENGLISH, LANGUAGE_FRENCH, LANGUAGE_GERMAN, LANGUAGE_MULTILINGUAL, NEW_DAYRANGE, PRIORITY_COUNT, PRIORITY_HIGH, PRIORITY_LOW, PRIORITY_NORMAL, PRIORITY_REALTIME, strEXTENSION_ALL, strEXTENSION_BMP, strEXTENSION_CHM, strEXTENSION_CLASS, strEXTENSION_CSS, strEXTENSION_DOC, strEXTENSION_GIF, strEXTENSION_HTM, strEXTENSION_HTML, strEXTENSION_JPG, strEXTENSION_JS, strEXTENSION_PDF, strEXTENSION_PNG, strEXTENSION_PPS, strEXTENSION_PPT, strEXTENSION_PS, strEXTENSION_RAR, strEXTENSION_RTF, strEXTENSION_TXT, strEXTENSION_XLS, strEXTENSION_XML, strEXTENSION_ZIP
 
Constructor Summary
Bookmark()
          Constructor.
Bookmark(Upload upload, int nType)
          Constructor.
 
Method Summary
 int getBookmarkType()
          Get type of bookmark.
 java.lang.String getBookmarkTypeText()
          Get type of bookmark.
static java.lang.String getBookmarkTypeText(int nBookmarktype)
          Get type of bookmark.
 void setBookmarkType(int nType)
          Set type of bookmark.
 org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
          Write information of upload in a xml element.
 java.lang.String toString()
          Write information of uploadorder in a string.
 
Methods inherited from class de.fh_mannheim.mm.dms.framework.Upload
equals, getAuthorID, getAuthorname, getAvailableLanguages, getCategory, getDescription, getExtension, getFilename, getFiletype, getFiletype, getFiletypeByName, getFiletypeShortText, getFiletypeShortText, getFiletypeText, getFiletypeText, getID, getLanguage, getLanguage, getLanguageText, getLanguageText, getPath, getPriority, getPriority, getPriorityText, getPriorityText, getSize, getSize, getState, getState, getStateText, getStateText, getStateText, getTitle, getUploadDate, isKnownLanguage, isKnownLanguage, isNew, isOptionalFiletype, isOptionalFiletype, isURL, isValidFiletype, isValidFiletype, setAuthor, setAuthorname, setCategory, setDescription, setFilename, setID, setLanguage, setPriority, setSize, setSize, setState, setState, setTitle, setUploadDate, setUploadDate, toElement
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.fh_mannheim.mm.dms.framework.IElement
toElement
 

Field Detail

UNKNOWN

public static final int UNKNOWN
UKNOWN is set as initial value for bookmarktype of bookmark

See Also:
Constant Field Values

ADDED_BY_USER

public static final int ADDED_BY_USER
Bookmarktypes

See Also:
Constant Field Values

MOST_SEEN

public static final int MOST_SEEN
See Also:
Constant Field Values

LAST_SEEN

public static final int LAST_SEEN
See Also:
Constant Field Values

PREFERED_BY_OTHER_USERS

public static final int PREFERED_BY_OTHER_USERS
See Also:
Constant Field Values

BOOKMARKTYPE_COUNT

public static final int BOOKMARKTYPE_COUNT
See Also:
Constant Field Values
Constructor Detail

Bookmark

public Bookmark()
Constructor.


Bookmark

public Bookmark(Upload upload,
                int nType)
Constructor.

Parameters:
upload - Upload data
nType - Type of bookmark
Method Detail

getBookmarkTypeText

public static java.lang.String getBookmarkTypeText(int nBookmarktype)
Get type of bookmark.

Parameters:
nBookmarktype -
Returns:
Type of bookmark

getBookmarkType

public int getBookmarkType()
Get type of bookmark.

Returns:
Type of bookmark

getBookmarkTypeText

public java.lang.String getBookmarkTypeText()
Get type of bookmark.

Returns:
Type of bookmark

setBookmarkType

public void setBookmarkType(int nType)
Set type of bookmark.

Parameters:
nType - Type of bookmark

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
Write information of upload in a xml element.

Specified by:
toElement in interface IElement
Overrides:
toElement in class Upload
Parameters:
doc - XML Document
Returns:
element

toString

public java.lang.String toString()
Write information of uploadorder in a string.

Specified by:
toString in interface IElement
Overrides:
toString in class Upload
Returns:
information