Package de.xima.fc.gui.model
Interface ServerSelectionModel.Server
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ServerSelectionModel.FrontendServer
,ServerSelectionModel.MasterServer
- Enclosing class:
- ServerSelectionModel
-
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
getIncludeUrlFor
(String resourceName) getProvideLink
(boolean useId)
-
Method Details
-
getDisplayName
String getDisplayName()- Returns:
- Name of this server, shown to the user.
-
getId
long getId()- Returns:
- Unique ID for this server.
-
getProvideLink
- Parameters:
useId
- Iffalse
, uses the form and client alias for the link. Otherwise, uses the client and project ID.- Returns:
- Link for opening the form with this server. (/form/provide)
-
getPreAliasLink
String getPreAliasLink()- Returns:
String
form request link part before alias
-
getBaseUrl
String getBaseUrl()- Returns:
- Formcycle base URL. (eg. localhost:8080/xima-formcycle/)
-
getFormIncludeUrl
String getFormIncludeUrl()- Returns:
- Link for the include script. (/form/include.js?form_base=...)
-
getBaseFormIncludeUrl
String getBaseFormIncludeUrl()- Returns:
- Link for the include script. (/form/include.js)
-
getBaseFormProvideUrl
String getBaseFormProvideUrl()- Returns:
String
base of the form provide url
-
getIncludeUrlFor
- Parameters:
resourceName
- Name of a resource to include.- Returns:
- URL for the given resource (eg. jQuery)
-