org.gnomekr.potron.service
Interface ITranslationManager

All Known Implementing Classes:
TranslationManager

public interface ITranslationManager

ITranslationManager.java

Version:
$Revision 1.1 $ $Date: 2005/09/11 05:49:44 $
Author:
Xavier Cho

Method Summary
 void abandonCheckedOutEntry(long translatedEntryId)
           
 long addTranslation(Translation translation)
           
 long addTranslation(Translation translation, Reader reader)
           
 void checkInEntry(long entryId, String translatedString, boolean fuzzy)
           
 void checkInEntry(long entryId, String translatedString, List<String> pluralStrings, boolean fuzzy)
           
 TranslatedEntry checkOutEntry(long entryId)
           
 void exportTranslation(long id, Writer writer)
          Generate a "po" from all translated entries for the given translation.
 List<TranslatedEntry> getCheckedOutEntries(long translationId)
           
 List<TranslatedEntry> getCheckedOutEntries(String userName)
           
 TranslatedEntry getEntry(long id)
           
 List<TranslatedEntry> getFuzzyEntries(long translationId, boolean includeCheckedOutEntries)
           
 List<TranslatedEntry> getTranslatedEntries(long translationId)
           
 Translation getTranslation(long id)
           
 List<TranslatedEntry> getUntranslatedEntries(long translationId, boolean includeCheckedOutEntries)
           
 void removeTranslation(long id)
           
 void updateTranslation(Translation translation)
           
 void updateTranslation(Translation translation, Reader reader)
           
 

Method Detail

addTranslation

long addTranslation(Translation translation)
Parameters:
translation -
Returns:

addTranslation

long addTranslation(Translation translation,
                    Reader reader)
                    throws ParseException,
                           IOException
Parameters:
translation -
reader -
Returns:
Throws:
ParseException
IOException

exportTranslation

void exportTranslation(long id,
                       Writer writer)
                       throws IOException
Generate a "po" from all translated entries for the given translation.

Parameters:
id - the translation to export
writer - the writer object export to
Throws:
IOException

getTranslation

Translation getTranslation(long id)
Parameters:
id -
Returns:

updateTranslation

void updateTranslation(Translation translation)
Parameters:
translation -

updateTranslation

void updateTranslation(Translation translation,
                       Reader reader)
                       throws ParseException,
                              IOException
Parameters:
translation -
reader -
Throws:
ParseException
IOException

removeTranslation

void removeTranslation(long id)
Parameters:
id -

getTranslatedEntries

List<TranslatedEntry> getTranslatedEntries(long translationId)
Parameters:
translationId -
Returns:

getUntranslatedEntries

List<TranslatedEntry> getUntranslatedEntries(long translationId,
                                             boolean includeCheckedOutEntries)
Parameters:
translationId -
includeCheckedOutEntries -
Returns:

getFuzzyEntries

List<TranslatedEntry> getFuzzyEntries(long translationId,
                                      boolean includeCheckedOutEntries)
Parameters:
translationId -
includeCheckedOutEntries -
Returns:

getEntry

TranslatedEntry getEntry(long id)
Parameters:
id -
Returns:

getCheckedOutEntries

List<TranslatedEntry> getCheckedOutEntries(long translationId)
Parameters:
translationId -
Returns:

getCheckedOutEntries

List<TranslatedEntry> getCheckedOutEntries(String userName)
Parameters:
userName -
Returns:

checkOutEntry

TranslatedEntry checkOutEntry(long entryId)
                              throws AlreadyCheckedOutException
Parameters:
entryId -
Returns:
Throws:
AlreadyCheckedOutException

abandonCheckedOutEntry

void abandonCheckedOutEntry(long translatedEntryId)
Parameters:
translatedEntryId -

checkInEntry

void checkInEntry(long entryId,
                  String translatedString,
                  boolean fuzzy)
Parameters:
entryId -
translatedString -
fuzzy -

checkInEntry

void checkInEntry(long entryId,
                  String translatedString,
                  List<String> pluralStrings,
                  boolean fuzzy)
Parameters:
entryId -
translatedString -
pluralStrings -
fuzzy -


Copyright © 2000-2005 Gnome Korea. All Rights Reserved.