public interface LegacyModuleAgent
SpecialistsBroker.requireSpecialist(SpecialistType)
Modifier and Type | Field and Description |
---|---|
static SpecialistType<LegacyModuleAgent> |
TYPE
The agent's technical type to be used to request the agent from a
SpecialistsBroker . |
Modifier and Type | Method and Description |
---|---|
String |
getGlobalWebAppUrl(String webAppId)
Returns the absolute url to the specified global web-app.
|
String |
getGlobalWebAppUrl(String webAppId,
boolean createTicket)
Returns the absolute url to the specified global web-app (with or w/o a FS SSO ticket).
|
FileSystem<?> |
getProjectAppConfig(String moduleName,
String projectAppName,
long projectId)
Returns an access to the project-app configuration directory; read-write-access if the user is
project admin, read-only-access if the user is project user, otherwise a
SecurityException
will be thrown. |
Properties |
getProjectAppConfigProperties(String propertiesFileName,
String moduleName,
String projectAppName,
long projectId)
Helper method to obtain
properties from the project app configuration
specified by given modulename, projectAppName and project id. |
String |
getProjectWebAppUrl(WebEnvironment.WebScope scope,
long projectId,
boolean createTicket)
Returns the absolute url to the specified project-local web-app (with or w/o a FS SSO ticket).
|
static final SpecialistType<LegacyModuleAgent> TYPE
SpecialistsBroker
.@NotNull String getGlobalWebAppUrl(String webAppId) throws IllegalArgumentException
webAppId
- global web-app id.IllegalArgumentException
- if the web-app id is unknown.@NotNull String getGlobalWebAppUrl(String webAppId, boolean createTicket) throws IllegalArgumentException
webAppId
- global web-app id.createTicket
- true
to add a valid FS SSO ticket to the url.IllegalArgumentException
- if the web-app id is unknown.@NotNull String getProjectWebAppUrl(WebEnvironment.WebScope scope, long projectId, boolean createTicket)
scope
- web-scope (supported are: PREVIEW
, WEBEDIT
, STAGING
).projectId
- project id.createTicket
- true
to add a valid FS SSO ticket to the url.IllegalArgumentException
- if the web-scope is not supported.SecurityException
- if the user has no access to the project specified by given projectId@NotNull FileSystem<?> getProjectAppConfig(String moduleName, String projectAppName, long projectId)
SecurityException
will be thrown.moduleName
- module name.projectAppName
- name of the project-app component.projectId
- project id.SecurityException
- if the current user has no project access.@NotNull Properties getProjectAppConfigProperties(String propertiesFileName, String moduleName, String projectAppName, long projectId) throws IOException
properties
from the project app configuration
specified by given modulename, projectAppName and project id.
This method expects a properties file stored in the project app config with the given propertiesFileName.propertiesFileName
- properties file namemoduleName
- module name.projectAppName
- name of the project-app component.projectId
- project id.SecurityException
- if the current user has no project access.IOException
- if access to the config file failedCopyright © 2014 e-Spirit AG. All Rights Reserved. Build 5.0_BETA.500