Class NoteHelper

java.lang.Object
de.elo.mover.main.helper.NoteHelper

public class NoteHelper extends Object

Überschrift: NoteHelper.

Beschreibung: Hilfsklasse für die ELO-Notizen.

Copyright: Copyright (c) ELO Digital Office GmbH 2018 - 2020

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static int
    addBorderNote(IXconnect ixConnect, int objId, boolean personalNote, String noteDescr)
    Fügt eine neue Randnotiz für den angegebenen Eintrag ein.
    static int
    addHorizontalLine(IXconnect ixConnect, int objId, int pageNo, int startX, int startY, int length, int width, int color)
    Fügt eine horizontale Linie in der angegebenen Dokumentenseite ein.
    static de.elo.ix.client.Note[]
    addNote(de.elo.ix.client.Note[] notes, de.elo.ix.client.Note newNote)
    Fügt die Notiz in der angegebenen Liste mit Notizen ein und liefert die Liste zurück.
    static int
    addStamp(IXconnect ixConnect, int objId, String templId, int xPos, int yPos)
    Fügt einen Stempel auf das angegebene Dokument ein.
    static int
    addTextNote(IXconnect ixConnect, int objId, int pageNo, String text, int startX, int startY, int height, int width, int textSize, String textFont)
    Fügt eine Textnotiz im angegebenen Dokument ein.
    static boolean
    containsDocumentNote(de.elo.ix.client.Note[] notes)
    Meldet zurück, ob in der Liste mindestens eine Notiz auf das Dokument vorkommt.
    static boolean
    containsNormalNote(de.elo.ix.client.Note[] notes)
    Meldet zurück, ob in der Liste mindestens eine nicht gelöschte Anmerkung vorkommt.
    static de.elo.ix.client.Note
    createNote(IXconnect ixConnect, de.elo.ix.client.Sord sord)
    Die Methode erzeugt eine neue Randnotiz für den angegebenen Eintrag.
    static de.elo.ix.client.Note
    createNote(IXconnect ixConnect, String objId)
    Die Methode erzeugt eine neue Randnotiz für den angegebenen Eintrag.
    static de.elo.ix.client.NoteText
    Erzeugt ein "NoteText"-Objekt, das mit den Default-Werten initialisiert wird.
    static void
    deleteNotes(IXconnect ixConnect, int objId)
    Löscht alle Notizen des angegebenen Dokuments.
    static Color
    getColor(de.elo.ix.client.Note note)
    Die Methode liefert die Farbe für die Randnotiz.
    getDocumentNotes(IXconnect ixConnect, int objId)
    Liefert ein DocumentNotes Objekt mit den Notizen des angegebenen Eintrags zurück.
    static String[]
    getIds(de.elo.ix.client.Note[] notes)
    Liefert eine Liste mit den IDs der angegebenen Notizen zurück.
    static de.elo.ix.client.Note[]
    getNotes(IXconnect ixConnect, int objId)
    Liefert eine Liste mit den Notizen des angegebenen Eintrags zurück.
    static ArrayList<de.elo.ix.client.Note>
    getNotes(IXconnect ixConnect, int objId, int pageNo)
    Liefert die Notizen für die angegebene Dokumentenseite zurück.
    static String
    getTypeDescr(int noteType)
    Die Methode liefert einen beschreibenden String für den angegebenen Typ der Randnotiz.
    static boolean
    hasNotes(IXconnect ixConnect, int objId)
    Meldet zurück, ob der angegebene Eintrag Notizen hat.
    static boolean
    isBorderNote(de.elo.ix.client.Note note)
    Meldet zurück, ob die angegebene Notiz eine Randnotiz ist.
    static boolean
    isDocumentNote(de.elo.ix.client.Note note)
    Meldet zurück, ob die angegebene Notiz eine Notiz auf dem Dokument ist.
    static boolean
    isNormalNote(de.elo.ix.client.Note note)
    Meldet zurück, ob es sich um eine allgemeine Randnotiz handelt.
    static boolean
    isPersonalNote(de.elo.ix.client.Note note)
    Meldet zurück, ob es sich um eine persönliche Randnotiz handelt.
    static boolean
    isStamp(de.elo.ix.client.Note note)
    Meldet zurück, ob es sich um eine permanente Randnotiz handelt.
    static boolean
    stampExists(IXconnect ixConnect, String stampText)
    Meldet zurück, ob ein Stempel mit dem angegebenen Text bereits existiert.
    static String
    toHtml(de.elo.ix.client.Note note)
    Die Methode generiert einen beschreibenden HTML-String aus der angegebenen Notiz.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NoteHelper

      public NoteHelper()
  • Method Details

    • isDocumentNote

      public static boolean isDocumentNote(de.elo.ix.client.Note note) throws Exception
      Meldet zurück, ob die angegebene Notiz eine Notiz auf dem Dokument ist.
      Parameters:
      note - Notiz
      Returns:
      Notiz auf das Dokument
      Throws:
      Exception
    • isBorderNote

      public static boolean isBorderNote(de.elo.ix.client.Note note) throws Exception
      Meldet zurück, ob die angegebene Notiz eine Randnotiz ist.
      Parameters:
      note - Notiz
      Returns:
      Randnotiz
      Throws:
      Exception
    • isNormalNote

      public static boolean isNormalNote(de.elo.ix.client.Note note) throws Exception
      Meldet zurück, ob es sich um eine allgemeine Randnotiz handelt.
      Parameters:
      note - Randnotiz
      Returns:
      Allgemeine Randnotiz
      Throws:
      Exception
    • isPersonalNote

      public static boolean isPersonalNote(de.elo.ix.client.Note note) throws Exception
      Meldet zurück, ob es sich um eine persönliche Randnotiz handelt.
      Parameters:
      note - Randnotiz
      Returns:
      Persönliche Randnotiz
      Throws:
      Exception
    • isStamp

      public static boolean isStamp(de.elo.ix.client.Note note) throws Exception
      Meldet zurück, ob es sich um eine permanente Randnotiz handelt.
      Parameters:
      note - Randnotiz
      Returns:
      Permanente Randnotiz
      Throws:
      Exception
    • createNote

      public static de.elo.ix.client.Note createNote(IXconnect ixConnect, de.elo.ix.client.Sord sord) throws byps.RemoteException, Exception
      Die Methode erzeugt eine neue Randnotiz für den angegebenen Eintrag.
      Parameters:
      ixConnect - Indexserver-Verbindung
      sord - Dokument, für welches die Randnotiz erstellt werden soll
      Returns:
      Neue Randnotiz
      Throws:
      byps.RemoteException
      Exception
    • createNote

      public static de.elo.ix.client.Note createNote(IXconnect ixConnect, String objId) throws byps.RemoteException, Exception
      Die Methode erzeugt eine neue Randnotiz für den angegebenen Eintrag.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - Objekt-ID des Eintrags
      Returns:
      Neue Randnotiz
      Throws:
      byps.RemoteException
      Exception
    • addStamp

      public static int addStamp(IXconnect ixConnect, int objId, String templId, int xPos, int yPos) throws Exception
      Fügt einen Stempel auf das angegebene Dokument ein.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - Id des Dokuments
      templId - ID der Stempel-Vorlage
      xPos - Horizontale Position
      yPos - Vertikale Position
      Returns:
      ID des eingefügten Stempels
      Throws:
      Exception
    • addHorizontalLine

      public static int addHorizontalLine(IXconnect ixConnect, int objId, int pageNo, int startX, int startY, int length, int width, int color) throws Exception
      Fügt eine horizontale Linie in der angegebenen Dokumentenseite ein.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - ID des Dokuments
      pageNo - Seitennummer
      startX - Horizontale Anfangsposition
      startY - Vertikale Anfangsposition
      length - Länge der Linie
      width - Breite der Notiz
      color - Farbe der Notiz
      Returns:
      ID der neuen Notiz
      Throws:
      Exception
    • addTextNote

      public static int addTextNote(IXconnect ixConnect, int objId, int pageNo, String text, int startX, int startY, int height, int width, int textSize, String textFont) throws Exception
      Fügt eine Textnotiz im angegebenen Dokument ein.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - ID des Dokuments
      pageNo - Seitennummer
      text - Text der Notiz
      startX - X-Position
      startY - Y-Position
      height - Notizhöhe
      width - Notizbreite
      textSize - Textgröße
      textFont - Schriftart
      Returns:
      ID der neuen Notiz
      Throws:
      Exception
    • addBorderNote

      public static int addBorderNote(IXconnect ixConnect, int objId, boolean personalNote, String noteDescr) throws Exception
      Fügt eine neue Randnotiz für den angegebenen Eintrag ein.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - Id des Eintrags
      personalNote - Persönliche Randnotiz
      noteDescr - Inhalt der Notiz
      Returns:
      ID der Randnotiz
      Throws:
      Exception
    • containsNormalNote

      public static boolean containsNormalNote(de.elo.ix.client.Note[] notes) throws Exception
      Meldet zurück, ob in der Liste mindestens eine nicht gelöschte Anmerkung vorkommt.
      Parameters:
      notes - Liste mit Anmerkungen
      Returns:
      Mindestens eine nicht gelöschte Anmerkung vorhanden
      Throws:
      Exception
    • containsDocumentNote

      public static boolean containsDocumentNote(de.elo.ix.client.Note[] notes) throws Exception
      Meldet zurück, ob in der Liste mindestens eine Notiz auf das Dokument vorkommt.
      Parameters:
      notes - Liste mit Notizen
      Returns:
      Mindestens eine Notiz auf dem Dokument vorhanden
      Throws:
      Exception
    • stampExists

      public static boolean stampExists(IXconnect ixConnect, String stampText) throws Exception
      Meldet zurück, ob ein Stempel mit dem angegebenen Text bereits existiert.
      Parameters:
      ixConnect - Indexserver-Verbindung
      stampText - Stempeltext
      Returns:
      Stempel existiert
      Throws:
      Exception
    • getDocumentNotes

      public static DocumentNotes getDocumentNotes(IXconnect ixConnect, int objId) throws Exception
      Liefert ein DocumentNotes Objekt mit den Notizen des angegebenen Eintrags zurück.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - ID des Eintrags
      Returns:
      Throws:
      Exception
    • getNotes

      public static de.elo.ix.client.Note[] getNotes(IXconnect ixConnect, int objId) throws Exception
      Liefert eine Liste mit den Notizen des angegebenen Eintrags zurück.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - ID des Eintrags
      Returns:
      Liste mit Notizen
      Throws:
      Exception
    • getNotes

      public static ArrayList<de.elo.ix.client.Note> getNotes(IXconnect ixConnect, int objId, int pageNo) throws Exception
      Liefert die Notizen für die angegebene Dokumentenseite zurück. Sollen auf dem selben Dokument für mehr als eine Seite die Notizen ermittelt werden, kann in Zukunft getDocumentNotes verwendet werden.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - ID des Eintrags
      pageNo - Seitennummer
      Returns:
      Liste mit Notizen
      Throws:
      Exception
    • hasNotes

      public static boolean hasNotes(IXconnect ixConnect, int objId) throws Exception
      Meldet zurück, ob der angegebene Eintrag Notizen hat.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - ID des Eintrags
      Returns:
      Eintrag hat Notizen
      Throws:
      Exception
    • toHtml

      public static String toHtml(de.elo.ix.client.Note note) throws Exception
      Die Methode generiert einen beschreibenden HTML-String aus der angegebenen Notiz.
      Parameters:
      note - Randnotiz
      Returns:
      HTML-String
      Throws:
      Exception
    • getColor

      public static Color getColor(de.elo.ix.client.Note note) throws Exception
      Die Methode liefert die Farbe für die Randnotiz. Diese ist vom Typ der Randnotiz abhängig (NORMAL : allgemeine Randnotiz, PERSONAL : persönliche Randnotiz, STAMP : permanente Randnotiz).
      Parameters:
      note - Randnotiz
      Returns:
      Farbe für die Haftnotiz
      Throws:
      Exception
    • getTypeDescr

      public static String getTypeDescr(int noteType) throws Exception
      Die Methode liefert einen beschreibenden String für den angegebenen Typ der Randnotiz.
      Parameters:
      noteType - Typ der Randnotiz
      Returns:
      Beschreibung des Typs der Randnotiz
      Throws:
      Exception
    • getIds

      public static String[] getIds(de.elo.ix.client.Note[] notes) throws Exception
      Liefert eine Liste mit den IDs der angegebenen Notizen zurück.
      Parameters:
      notes - Liste mit Notizen
      Returns:
      Liste mit IDs
      Throws:
      Exception
    • deleteNotes

      public static void deleteNotes(IXconnect ixConnect, int objId) throws Exception
      Löscht alle Notizen des angegebenen Dokuments.
      Parameters:
      ixConnect - Indexserver-Verbindung
      objId - ID des Eintrags
      Throws:
      Exception
    • createNoteText

      public static de.elo.ix.client.NoteText createNoteText()
      Erzeugt ein "NoteText"-Objekt, das mit den Default-Werten initialisiert wird.
      Returns:
      "NoteText"-Objekt
    • addNote

      public static de.elo.ix.client.Note[] addNote(de.elo.ix.client.Note[] notes, de.elo.ix.client.Note newNote) throws Exception
      Fügt die Notiz in der angegebenen Liste mit Notizen ein und liefert die Liste zurück.
      Parameters:
      notes - Liste mit Notizen
      newNote - Neue Notiz
      Returns:
      Liste mit allen Notizen
      Throws:
      Exception