public class Commands extends Object
Constructor and Description |
---|
Commands() |
Modifier and Type | Method and Description |
---|---|
static void |
buildAddToScopeReport(org.gcube.resourcemanagement.support.shared.types.Tuple<String> result) |
static void |
buildRemoveFromScopeReport(org.gcube.resourcemanagement.support.shared.types.Tuple<String> result) |
static void |
clearResourceGridPanel() |
static void |
clearResourceTreePanel() |
static void |
doFilterResourceDetailsGrid(Object caller,
String scope,
String resourceType,
String resourceSubType)
Filters the result of resource detail grid by using its subtye.
|
static void |
doGetAvailableScopes(Object caller) |
static void |
doGetRelatedResources(String type,
String id,
String scope) |
static void |
doGetResourceProfile(Object caller,
String scope,
String resourceType,
String resourceID) |
static void |
doGetResourceProfileByID(Object caller,
String scope,
String resourceID) |
static void |
doLoadResourceDetailsGrid(Object caller,
String scope,
String resourceType) |
static void |
doLoadResourceTree(Object caller,
String scope)
Creates a new Navigation Tree for the resources in a given scope.
|
static void |
doLoadWSResourceDetailsGrid(Object caller,
String scope) |
static void |
doSetSuperUser(boolean state) |
static void |
evaluateCredentials(com.extjs.gxt.ui.client.widget.Component w,
org.gcube.resourcemanagement.support.shared.types.UserGroup... args)
Checks that a component is enabled for the current credentials.
|
static com.extjs.gxt.ui.client.widget.grid.Grid<com.extjs.gxt.ui.client.data.ModelData> |
getResourceDetailGrid() |
static ResourceDetailsPanel |
getResourceDetailPanel() |
static MainContainer |
getViewport() |
static void |
mask(String message,
com.extjs.gxt.ui.client.widget.Component component)
When masking the component show the rotating gear.
|
static void |
mask(String message,
String... componentIDs) |
static void |
refreshConsole() |
static void |
refreshProgressBar()
COMMANDS FOR RPC REQUESTS TO THE SERVLET
|
static void |
refreshResourceDetails() |
static void |
refreshResourceGrid() |
static void |
refreshResourceTree()
GENERAL PURPOSE UTILITY COMMANDS
|
static void |
refreshViewport() |
static void |
setLoadedResources(int number) |
static void |
setStatusScope(String scope)
In the status bar sets the currently selected scope.
|
static void |
showHideConsole() |
static void |
showPopup(String title,
String text) |
static void |
showPopup(String title,
String text,
int delayMills) |
static void |
unmask(com.extjs.gxt.ui.client.widget.Component component) |
static void |
unmask(String... componentIDs) |
public static final void refreshProgressBar()
public static final void doLoadResourceTree(Object caller, String scope)
caller
- for logging reasons the caller must be passed as parameterscope
- the scope for resources to retrievepublic static final void doLoadResourceDetailsGrid(Object caller, String scope, String resourceType)
public static final void doGetRelatedResources(String type, String id, String scope)
public static final void doLoadWSResourceDetailsGrid(Object caller, String scope)
public static final void doFilterResourceDetailsGrid(Object caller, String scope, String resourceType, String resourceSubType)
caller
- resourceSubType
- public static final void doGetResourceProfileByID(Object caller, String scope, String resourceID)
public static final void doGetResourceProfile(Object caller, String scope, String resourceType, String resourceID)
public static final void doGetAvailableScopes(Object caller)
public static final void buildAddToScopeReport(org.gcube.resourcemanagement.support.shared.types.Tuple<String> result)
public static final void buildRemoveFromScopeReport(org.gcube.resourcemanagement.support.shared.types.Tuple<String> result)
public static final void doSetSuperUser(boolean state)
public static final void refreshResourceTree()
public static final void refreshResourceGrid()
public static void clearResourceTreePanel()
public static void clearResourceGridPanel()
public static void showHideConsole()
public static MainContainer getViewport()
public static void refreshViewport()
public static void refreshConsole()
public static void refreshResourceDetails()
public static com.extjs.gxt.ui.client.widget.grid.Grid<com.extjs.gxt.ui.client.data.ModelData> getResourceDetailGrid()
public static ResourceDetailsPanel getResourceDetailPanel()
public static void setStatusScope(String scope)
scope
- public static void setLoadedResources(int number)
public static void mask(String message, com.extjs.gxt.ui.client.widget.Component component)
component
- the element to maskmessage
- the message to show during loadingpublic static void unmask(com.extjs.gxt.ui.client.widget.Component component)
public static void unmask(String... componentIDs)
public static final void evaluateCredentials(com.extjs.gxt.ui.client.widget.Component w, org.gcube.resourcemanagement.support.shared.types.UserGroup... args)
w
- args
- a list of enabled groups.Copyright © 2018. All Rights Reserved.