net.agmodel.resData
Interface ResourceTranslator

All Superinterfaces:
Remote, ResourceEditor, ResourceUser, ServerRMI

public interface ResourceTranslator
extends ResourceEditor

Title: Description: Copyright: Copyright (c) 2002 Company:


Field Summary
static int TRANSLATORUSER
          Use with getConnection to request a translator connection
 
Fields inherited from interface net.agmodel.resData.ResourceUser
RMIHOSTPARAM, RMINAME
 
Fields inherited from interface net.agmodel.genericBroker.ServerRMI
EXISTINGUSER, NEWUSER, SUPERUSER
 
Method Summary
 void addViewLanguage(String sessionID, String[] viewLanguage)
          Adds the new language to the viewLanguage list for translator .
 void changePassword(String sessionID, String password)
          Replaces old password with new password for the translator.
 String getEditLanguage(String sessionID)
          Gets the editLanguageID of a perticular Translator specified by the userID.
 TranslatorDetail getTranslatorDetail(String sessionID)
          Gets the Translator detail fot the current session, i.e, name, editlanguage, viewLanguages etc.
 TranslatorFileSet getTranslatorFileSet(String sessionID, String fileSetID)
          Gets an instance of a TranslatorFileSet which holds the ResItems for a perticular fileSetID in viewlanguages preferred by the translator
 String[] getViewLanguage(String sessionID)
          Gets the viewLangugaes of a perticular Translator for that sessionID.
 void removeViewLanguage(String sessionID, String viewLanguage)
          Removes the language from the viewLanguage list of the translator .
 void updateResItemValue(String sessionID, String fileSetID, String itemKey, String newItemValue, String oldItemVal)
          Adds new Value for a ItemKey
 
Methods inherited from interface net.agmodel.resData.ResourceEditor
getResItemKeys
 
Methods inherited from interface net.agmodel.resData.ResourceUser
getAllItemDescription, getItemDescription, getLanguageName, getResItem, getResItems, getUserFileSet, listFileSet, listLanguageID, listLanguages
 
Methods inherited from interface net.agmodel.genericBroker.ServerRMI
disconnect, getConnection, getConnection
 

Field Detail

TRANSLATORUSER

public static final int TRANSLATORUSER
Use with getConnection to request a translator connection

See Also:
Constant Field Values
Method Detail

updateResItemValue

public void updateResItemValue(String sessionID,
                               String fileSetID,
                               String itemKey,
                               String newItemValue,
                               String oldItemVal)
                        throws RemoteException,
                               GeneralException
Adds new Value for a ItemKey

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet to which value is to be added
itemKey - the name of the ResItemKey to which Value in a language selected by the client added.
RemoteException
GeneralException

getTranslatorFileSet

public TranslatorFileSet getTranslatorFileSet(String sessionID,
                                              String fileSetID)
                                       throws RemoteException,
                                              GeneralException
Gets an instance of a TranslatorFileSet which holds the ResItems for a perticular fileSetID in viewlanguages preferred by the translator

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet for that ResItems are needed
RemoteException
GeneralException

getEditLanguage

public String getEditLanguage(String sessionID)
                       throws RemoteException,
                              GeneralException
Gets the editLanguageID of a perticular Translator specified by the userID.

Parameters:
sessionID - the identifier provided by getConnection
RemoteException
GeneralException

getViewLanguage

public String[] getViewLanguage(String sessionID)
                         throws RemoteException,
                                GeneralException
Gets the viewLangugaes of a perticular Translator for that sessionID.

Parameters:
sessionID - the identifier provided by getConnection
RemoteException
GeneralException

addViewLanguage

public void addViewLanguage(String sessionID,
                            String[] viewLanguage)
                     throws RemoteException,
                            GeneralException
Adds the new language to the viewLanguage list for translator .

Parameters:
sessionID - the identifier provided by getConnection viewLanguage the new set of languages preferred by the translator
RemoteException
GeneralException

removeViewLanguage

public void removeViewLanguage(String sessionID,
                               String viewLanguage)
                        throws RemoteException,
                               GeneralException
Removes the language from the viewLanguage list of the translator .

Parameters:
sessionID - the identifier provided by getConnection viewLanguage the languages to be removed by the translator
RemoteException
GeneralException

changePassword

public void changePassword(String sessionID,
                           String password)
                    throws RemoteException,
                           GeneralException
Replaces old password with new password for the translator.

Parameters:
sessionID - the identifier provided by getConnection password the new password given by the translator
RemoteException
GeneralException

getTranslatorDetail

public TranslatorDetail getTranslatorDetail(String sessionID)
                                     throws RemoteException,
                                            GeneralException
Gets the Translator detail fot the current session, i.e, name, editlanguage, viewLanguages etc.

Parameters:
sessionID - the identifier provided by getConnection
RemoteException
GeneralException