org.gnomekr.potron.service
Class TranslationManager
java.lang.Object
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.gnomekr.potron.service.BasePotronService
org.gnomekr.potron.service.TranslationManager
- All Implemented Interfaces:
- ITranslationManager, InitializingBean
public class TranslationManager
- extends BasePotronService
- implements ITranslationManager
TranslationManager.java
- Version:
- $Revision: 1.19 $ $Date: 2005/09/11 05:49:44 $
- Author:
- iolo
Method Summary |
void |
abandonCheckedOutEntry(long entryId)
|
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)
|
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, releaseSession, setHibernateTemplate, setSessionFactory |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslationManager
public TranslationManager()
addTranslation
public long addTranslation(Translation translation)
- Specified by:
addTranslation
in interface ITranslationManager
- Returns:
- See Also:
ITranslationManager.addTranslation(org.gnomekr.potron.data.Translation)
addTranslation
public long addTranslation(Translation translation,
Reader reader)
throws ParseException,
IOException
- Specified by:
addTranslation
in interface ITranslationManager
- Returns:
-
- Throws:
ParseException
IOException
- See Also:
ITranslationManager.addTranslation(org.gnomekr.potron.data.Translation, java.io.Reader)
exportTranslation
public void exportTranslation(long id,
Writer writer)
throws IOException
- Description copied from interface:
ITranslationManager
- Generate a "po" from all translated entries for the given translation.
- Specified by:
exportTranslation
in interface ITranslationManager
- Parameters:
id
- the translation to exportwriter
- the writer object export to
- Throws:
IOException
- See Also:
ITranslationManager.exportTranslation(long, java.io.Writer)
getTranslation
public Translation getTranslation(long id)
- Specified by:
getTranslation
in interface ITranslationManager
- Returns:
- See Also:
ITranslationManager.getTranslation(long)
updateTranslation
public void updateTranslation(Translation translation)
- Specified by:
updateTranslation
in interface ITranslationManager
- See Also:
ITranslationManager.updateTranslation(org.gnomekr.potron.data.Translation)
updateTranslation
public void updateTranslation(Translation translation,
Reader reader)
throws ParseException,
IOException
- Specified by:
updateTranslation
in interface ITranslationManager
- Throws:
ParseException
IOException
- See Also:
ITranslationManager.updateTranslation(org.gnomekr.potron.data.Translation, java.io.Reader)
removeTranslation
public void removeTranslation(long id)
- Specified by:
removeTranslation
in interface ITranslationManager
getTranslatedEntries
public List<TranslatedEntry> getTranslatedEntries(long translationId)
- Specified by:
getTranslatedEntries
in interface ITranslationManager
- Returns:
- See Also:
ITranslationManager.getTranslatedEntries(long)
getUntranslatedEntries
public List<TranslatedEntry> getUntranslatedEntries(long translationId,
boolean includeCheckedOutEntries)
- Specified by:
getUntranslatedEntries
in interface ITranslationManager
- Returns:
- See Also:
ITranslationManager.getUntranslatedEntries(long, boolean)
getFuzzyEntries
public List<TranslatedEntry> getFuzzyEntries(long translationId,
boolean includeCheckedOutEntries)
- Specified by:
getFuzzyEntries
in interface ITranslationManager
- Returns:
- See Also:
ITranslationManager.getFuzzyEntries(long, boolean)
getEntry
public TranslatedEntry getEntry(long id)
- Specified by:
getEntry
in interface ITranslationManager
- Returns:
- See Also:
ITranslationManager.getEntry(long)
getCheckedOutEntries
public List<TranslatedEntry> getCheckedOutEntries(long translationId)
- Specified by:
getCheckedOutEntries
in interface ITranslationManager
- Returns:
- See Also:
ITranslationManager.getCheckedOutEntries(long)
getCheckedOutEntries
public List<TranslatedEntry> getCheckedOutEntries(String userName)
- Specified by:
getCheckedOutEntries
in interface ITranslationManager
- Returns:
- See Also:
ITranslationManager.getCheckedOutEntries(java.lang.String)
checkOutEntry
public TranslatedEntry checkOutEntry(long entryId)
throws AlreadyCheckedOutException
- Specified by:
checkOutEntry
in interface ITranslationManager
- Returns:
-
- Throws:
AlreadyCheckedOutException
- See Also:
ITranslationManager.checkOutEntry(long)
abandonCheckedOutEntry
public void abandonCheckedOutEntry(long entryId)
- Specified by:
abandonCheckedOutEntry
in interface ITranslationManager
- See Also:
ITranslationManager.abandonCheckedOutEntry(long)
checkInEntry
public void checkInEntry(long entryId,
String translatedString,
boolean fuzzy)
- Specified by:
checkInEntry
in interface ITranslationManager
- See Also:
ITranslationManager.checkInEntry(long, java.lang.String, boolean)
checkInEntry
public void checkInEntry(long entryId,
String translatedString,
List<String> pluralStrings,
boolean fuzzy)
- Specified by:
checkInEntry
in interface ITranslationManager
- See Also:
ITranslationManager.checkInEntry(long, java.lang.String, java.util.List, boolean)
Copyright © 2000-2005 Gnome Korea. All Rights Reserved.