|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compiere.esb.GwtServer
public class GwtServer
GWT Server Implementation. You maintain one instance per User
| Constructor Summary | |
|---|---|
GwtServer()
Gwt Server |
|
| Method Summary | |
|---|---|
void |
copyQueryResults(int sourceID,
int destID)
|
ChangeVO |
deleteRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int relRowNo)
Delete existing Row |
Boolean |
deleteSavedSearch(int tab_ID,
String savedSearchName)
|
void |
disposeWindow(ArrayList<Integer> resultIDs)
Release Results |
int |
executeQuery(int AD_Tab_ID,
QueryVO queryVO,
HashMap<String,String> context,
int queryResultID)
Execute Query for Tab |
ChangeVO |
fieldChanged(int windowNo,
int AD_Field_ID,
int AD_Tab_ID,
String oldValue,
String newValue,
Map<String,String> context)
Field Changed |
CContext |
getContext()
Returns the context associated with this GwtServer |
UIField |
getField(int AD_Field_ID,
int windowNo)
Get Field |
Locale |
getLocale()
Get Locale |
Login |
getLogin()
Get Login |
ArrayList<NamePair> |
getLookupData(int windowNo,
int AD_Field_ID,
Map<String,String> context,
boolean refresh)
Get Lookup Data for Field in context |
ArrayList<NamePair> |
getLookupValueDirect(int AD_Field_ID,
ArrayList<String> keyValues,
boolean cache)
Get Field Lookup Value Direct |
ArrayList<String> |
getLookupValueOnlyDirect(int AD_Field_ID,
ArrayList<String> keyValues,
boolean cache)
Get Field Lookup Value Direct |
ArrayList<CTreeNode> |
getMenuCreateNew()
Get Menu tree that directly enter "create new" mode |
ArrayList<CTreeNode> |
getMenuFavorites()
Get Menu favorites for a user |
ArrayList<CTreeNode> |
getMenuTree()
Get Menu |
int |
getNotes()
Get number of open Notes |
int |
getRequests()
Get Number of open Requests |
String[][] |
getResults(int queryResultID,
int fromRow,
int noRows)
Retrieve results for Tab. |
UITab |
getTab(int AD_Tab_ID)
Get Tab with ID |
String[][] |
getTabSearchResults(int searchResultID,
int rowCount)
|
UIWindow |
getWindow(int windowNo,
int AD_Window_ID,
int AD_Menu_ID)
Get Window in default context based on Role |
int |
getZoomWindowNO()
|
ChangeVO |
insertRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int curRow,
Map<String,String> context)
Save (Insert new) Row of Tab |
void |
logout(boolean expired)
Logout |
ChangeVO |
newRow(int windowNo,
int AD_Tab_ID,
Map<String,String> context)
Create new Row with Default values. |
ChangeVO |
refreshRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int relRowNo,
Map<String,String> context)
Refresh current row of Tab |
void |
releaseResults()
Release All Results |
String[] |
requery(int queryResultID,
int row)
Execute Query for Tab. |
static void |
resetWinDefCache()
|
Boolean |
savePreferences(Map<String,String> ctx)
|
int |
searchTabResults(int WindowNo,
int AD_Tab_ID,
int queryResultID,
int searchResultID,
String query,
int rowCount)
|
void |
setLocale(Locale loc)
Set Locale |
void |
sortResults(int WindowNo,
int AD_Tab_ID,
int AD_Field_ID,
int queryResultID,
boolean ascending)
|
boolean |
updateCreateNew(boolean add,
int Node_ID)
Make create new add/remove persistent ("bar" in swing client) |
boolean |
updateCreateNew(List<Integer> menuIDs)
|
boolean |
updateFavorites(boolean add,
int Node_ID)
Make Favorites add/remove persistent ("bar" in swing client) |
boolean |
updateFavorites(List<Integer> menuIDs)
Update of user favorites for a user with specified ordering for favorites |
ChangeVO |
updateRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int relRowNo,
Map<String,String> context)
Save (Update existing) Row of Tab |
ChangeVO |
updateRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int relRowNo,
Map<String,String> context,
boolean force)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GwtServer()
| Method Detail |
|---|
public static void resetWinDefCache()
public Login getLogin()
public CContext getContext()
public void setLocale(Locale loc)
loc - locale (from login)public void logout(boolean expired)
expired - expirepublic Locale getLocale()
public ArrayList<CTreeNode> getMenuTree()
public ArrayList<CTreeNode> getMenuFavorites()
public ArrayList<CTreeNode> getMenuCreateNew()
public boolean updateFavorites(boolean add,
int Node_ID)
add - true if add - otherwise removeNode_ID - Node ID
public boolean updateFavorites(List<Integer> menuIDs)
menuIDs - List
public boolean updateCreateNew(boolean add,
int Node_ID)
add - true if add - otherwise removeNode_ID - Node ID
public boolean updateCreateNew(List<Integer> menuIDs)
public int getRequests()
public int getNotes()
public UIWindow getWindow(int windowNo,
int AD_Window_ID,
int AD_Menu_ID)
windowNo - relative windowAD_Window_ID - windowAD_Menu_ID - menu
public UITab getTab(int AD_Tab_ID)
AD_Tab_ID -
public UIField getField(int AD_Field_ID,
int windowNo)
AD_Field_ID - idwindowNo - relative windowNo
public int executeQuery(int AD_Tab_ID,
QueryVO queryVO,
HashMap<String,String> context,
int queryResultID)
AD_Tab_ID - tabqueryVO - optional querycontext - record context for link columns and other variablesqueryResultID - stored query identifier provided by client
public String[][] getResults(int queryResultID,
int fromRow,
int noRows)
queryResultID - stored query identifier provided by clientfromRow - from row first is 0toRow - to row including
public void sortResults(int WindowNo,
int AD_Tab_ID,
int AD_Field_ID,
int queryResultID,
boolean ascending)
public int searchTabResults(int WindowNo,
int AD_Tab_ID,
int queryResultID,
int searchResultID,
String query,
int rowCount)
public void copyQueryResults(int sourceID,
int destID)
public String[][] getTabSearchResults(int searchResultID,
int rowCount)
public String[] requery(int queryResultID,
int row)
queryResultID - stored query identifier provided by clientrow - row number first is 0
public void releaseResults()
public void disposeWindow(ArrayList<Integer> resultIDs)
queryResultID - stored query identifier provided by client
public ChangeVO newRow(int windowNo,
int AD_Tab_ID,
Map<String,String> context)
windowNo - relative windowAD_Tab_ID - tabcontext - record context for parent columns and other variables
public ChangeVO refreshRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int relRowNo,
Map<String,String> context)
windowNo - relative windowAD_Tab_ID - tabrelRowNo - relative row number in resultscontext - current (relevant) context of new row
public ChangeVO updateRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int relRowNo,
Map<String,String> context,
boolean force)
public ChangeVO updateRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int relRowNo,
Map<String,String> context)
windowNo - relative windowAD_Tab_ID - tabrelRowNo - relative row number in resultscontext - current (relevant) context of new row
public ChangeVO insertRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int curRow,
Map<String,String> context)
windowNo - relative windowAD_Tab_ID - tabcurRow - insert after relative row number in resultscontext - current (relevant) context of new row
public ChangeVO deleteRow(int windowNo,
int AD_Tab_ID,
int queryResultID,
int relRowNo)
windowNo - relative windowAD_Tab_ID - tabrelRowNo - relative row number in results
public ChangeVO fieldChanged(int windowNo,
int AD_Field_ID,
int AD_Tab_ID,
String oldValue,
String newValue,
Map<String,String> context)
windowNo - relative windowAD_Field_ID - fieldAD_Tab_ID - taboldValue - old field valuenewValue - new field valuecontext - record context
public ArrayList<NamePair> getLookupValueDirect(int AD_Field_ID,
ArrayList<String> keyValues,
boolean cache)
windowNo - WindowAD_Field_ID - keyValues - array of id valuescache -
public ArrayList<String> getLookupValueOnlyDirect(int AD_Field_ID,
ArrayList<String> keyValues,
boolean cache)
windowNo - WindowAD_Field_ID - keyValues - array of id valuescache -
public ArrayList<NamePair> getLookupData(int windowNo,
int AD_Field_ID,
Map<String,String> context,
boolean refresh)
AD_Field_ID - fieldcontext - contextrefresh - requery
public int getZoomWindowNO()
public Boolean savePreferences(Map<String,String> ctx)
public Boolean deleteSavedSearch(int tab_ID,
String savedSearchName)
|
Compiere 3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||