net.agmodel.resData
Interface ResourceSuper

All Superinterfaces:
Remote, ResourceEditor, ResourceUser, ServerRMI

public interface ResourceSuper
extends ResourceEditor

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


Field Summary
 
Fields inherited from interface net.agmodel.resData.ResourceUser
RMIHOSTPARAM, RMINAME
 
Fields inherited from interface net.agmodel.genericBroker.ServerRMI
EXISTINGUSER, NEWUSER, SUPERUSER
 
Method Summary
 void addItemDescription(String sessionID, String fileSetID, String itemKey, String itemDes)
          Adds iten_description for the ResItemKey.
 void addNewLanguage(String sessionID, String languageID, String languageName, String countryName, String encoding, String locale)
          Adds new language to the ResourceServer.
 void addResFileSet(String sessionID, String fileSet)
          Adds new ResFileSet to a perticular language of a ResourceServer.
 void addResItemKey(String sessionID, String fileSetID, String[] itemKey)
          Adds only ResItemKey to the ResFileSet and its equivalent value is added by the Translator.
 void addTranslator(String sessionID, String editLanguage, String[] viewLanguageID, String userID, String password, String email)
          Adds new translator to the translator list
 void deleteTranslator(String sessionID, String userID)
          Removes the translator from the transltor list.
 SupervisorFileSet getSupervisorFileSet(String sessionID, String fileSetID)
          Gets the SupervisorFileSet object for the sessionID for a perticular fileSetID.
 TranslatorDetailSet getTranslatorDetailSet(String sessionID, String editLanguageName)
          Gets the TranslatorDetailSet object for the sessionID for a perticular languageName.
 TranslatorFileSet getTranslatorFileSet(String sessionID, String fileSetID)
          Gets the TranslatorFileSet object for the sessionID which is created in the getConnection method which contains the languages and ResItems required for creating a ResourceTable.
 String[] getViewLanguage(String username)
          Gets the view languages for the translator.
 void removeLanguage(String sessionID, String languageID)
          Removes language from a ResourceServer.
 void removeResFileSet(String sessionID, String languageID, String fileSetID)
          Removes a ResFileSet of a perticular language from the ResourceServer.
 void removeResItem(String sessionID, String fileSetID, String itemKey)
          Removes ResItem from the ResFileSet.
 void updateItemDescription(String sessionID, String fileSetID, String newItemDes, String itemDes)
          Updates the description for the itemkey.
 void updateResItemKey(String sessionID, String fileSetID, String newItemKey, String itemkey)
          Updates the ResItemKey
 
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
 

Method Detail

addNewLanguage

public void addNewLanguage(String sessionID,
                           String languageID,
                           String languageName,
                           String countryName,
                           String encoding,
                           String locale)
                    throws RemoteException,
                           GeneralException
Adds new language to the ResourceServer.

Throws:
RemoteException.
RemoteException
GeneralException

addResFileSet

public void addResFileSet(String sessionID,
                          String fileSet)
                   throws RemoteException,
                          GeneralException
Adds new ResFileSet to a perticular language of a ResourceServer.

Parameters:
sessionID - the identifier provided by getConnection
fileSet - the name of the ResFileSet to be added to the language(eg "UtilityResource")
Throws:
RemoteException.
RemoteException
GeneralException

removeLanguage

public void removeLanguage(String sessionID,
                           String languageID)
                    throws RemoteException,
                           GeneralException
Removes language from a ResourceServer.

Parameters:
sessionID - the identifier provided by getConnection
Throws:
RemoteException.
RemoteException
GeneralException

removeResFileSet

public void removeResFileSet(String sessionID,
                             String languageID,
                             String fileSetID)
                      throws RemoteException,
                             GeneralException
Removes a ResFileSet of a perticular language from the ResourceServer.

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet to be removed.
Throws:
RemoteException.
RemoteException
GeneralException

addResItemKey

public void addResItemKey(String sessionID,
                          String fileSetID,
                          String[] itemKey)
                   throws RemoteException,
                          GeneralException
Adds only ResItemKey to the ResFileSet and its equivalent value is added by the Translator.

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet to which itemKey is to be added
itemKey - the name of the ResItemKey to be added.
RemoteException
GeneralException

removeResItem

public void removeResItem(String sessionID,
                          String fileSetID,
                          String itemKey)
                   throws RemoteException,
                          GeneralException
Removes ResItem from the ResFileSet.

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet from which ResItem is to be removed
itemKey - the name of the ResItemKey to be removed.
RemoteException
GeneralException

getTranslatorFileSet

public TranslatorFileSet getTranslatorFileSet(String sessionID,
                                              String fileSetID)
                                       throws RemoteException,
                                              GeneralException
Gets the TranslatorFileSet object for the sessionID which is created in the getConnection method which contains the languages and ResItems required for creating a ResourceTable.

Parameters:
sessionID - the identifier provided by getConnection
RemoteException
GeneralException

addTranslator

public void addTranslator(String sessionID,
                          String editLanguage,
                          String[] viewLanguageID,
                          String userID,
                          String password,
                          String email)
                   throws RemoteException,
                          GeneralException
Adds new translator to the translator list

Parameters:
sessionID - the identifier provided by getConnection
userID - the name of the translator
password - the password of the translator
RemoteException
GeneralException

deleteTranslator

public void deleteTranslator(String sessionID,
                             String userID)
                      throws RemoteException,
                             GeneralException
Removes the translator from the transltor list.

Parameters:
sessionID - the identifier provided by getConnection
userID - the name of the translator
RemoteException
GeneralException

getSupervisorFileSet

public SupervisorFileSet getSupervisorFileSet(String sessionID,
                                              String fileSetID)
                                       throws RemoteException,
                                              GeneralException
Gets the SupervisorFileSet object for the sessionID for a perticular fileSetID.

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet for which SupervisorFileSet object is needed
RemoteException
GeneralException

getTranslatorDetailSet

public TranslatorDetailSet getTranslatorDetailSet(String sessionID,
                                                  String editLanguageName)
                                           throws RemoteException,
                                                  GeneralException
Gets the TranslatorDetailSet object for the sessionID for a perticular languageName.

Parameters:
sessionID - the identifier provided by getConnection
editLanguageName - the name of the editLanguage for which TranslatorDetailSet object is needed
RemoteException
GeneralException

updateResItemKey

public void updateResItemKey(String sessionID,
                             String fileSetID,
                             String newItemKey,
                             String itemkey)
                      throws RemoteException,
                             GeneralException
Updates the ResItemKey

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet of which itemKey is to be updated
newItemKey - the new (item_id)ResItemKey for updating ResItemKey.
RemoteException
GeneralException

getViewLanguage

public String[] getViewLanguage(String username)
                         throws RemoteException,
                                GeneralException
Gets the view languages for the translator.

Parameters:
username - name of the translator
RemoteException
GeneralException

updateItemDescription

public void updateItemDescription(String sessionID,
                                  String fileSetID,
                                  String newItemDes,
                                  String itemDes)
                           throws RemoteException,
                                  GeneralException
Updates the description for the itemkey.

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet of which description is to be updated
RemoteException
GeneralException

addItemDescription

public void addItemDescription(String sessionID,
                               String fileSetID,
                               String itemKey,
                               String itemDes)
                        throws RemoteException,
                               GeneralException
Adds iten_description for the ResItemKey.

Parameters:
sessionID - the identifier provided by getConnection
fileSetID - the name of the ResFileSet to which item_description for item_id is to be added
itemKey - the name of the ResItemKey(item_id) for which item_description is to be added.
itemDes - the description for the ResItemKey(item_id) to be added.
RemoteException
GeneralException