public class XDAT extends Object implements org.apache.stratum.lifecycle.Initializable, org.apache.stratum.lifecycle.Configurable
Modifier and Type | Field and Description |
---|---|
static String |
ADMIN_USERNAME_FOR_SUBSCRIPTION |
static String |
IP_WHITELIST_PATH |
static String |
IP_WHITELIST_TOOL |
Constructor and Description |
---|
XDAT() |
Modifier and Type | Method and Description |
---|---|
static void |
addScreenTemplatesFolder(String screenTemplatesFolder) |
void |
configure(org.apache.commons.configuration.Configuration configuration)
configure torque
|
static void |
GenerateCreateSQL(String file) |
static void |
GenerateUpdateSQL(String file) |
static boolean |
getBoolSiteConfigurationProperty(String property,
boolean _default) |
static org.hibernate.cache.RegionFactory |
getCacheRegionFactory()
Returns an instance of the currently supported site configuration service.
|
static org.nrg.config.services.ConfigService |
getConfigService()
Returns an instance of the currently supported configuration service.
|
static org.nrg.framework.services.ContextService |
getContextService()
Returns an instance of the Spring application context service.
|
static DataSource |
getDataSource()
Returns an instance of the currently supported data source.
|
static XftFieldExclusionService |
getExclusionService()
Returns an instance of the currently supported
exclusion service . |
static org.nrg.notify.entities.Channel |
getHtmlMailChannel()
Retrieves the HTML mail channel to be used for default subscription configuration.
|
static List<String> |
getLocalhostIPs() |
static org.nrg.mail.services.MailService |
getMailService()
Returns an instance of the currently supported mail service.
|
static org.nrg.framework.services.MarshallerCacheService |
getMarshallerCacheService()
Returns an instance of the currently supported
XML marshaler cache service . |
static org.nrg.notify.services.NotificationService |
getNotificationService()
Returns an instance of the currently supported
notification service . |
static org.nrg.framework.services.PropertiesService |
getPropertiesService()
Returns an instance of the currently supported
notification service . |
static List<File> |
getScreenTemplateFolders() |
static String |
getScreenTemplatesFolder()
Returns the folder containing screen templates.
|
static File |
getScreenTemplatesSubfolder(String subfolder) |
static Properties |
getSiteConfiguration() |
static String |
getSiteConfigurationProperty(String property) |
static String |
getSiteConfigurationProperty(String property,
String _default) |
static XDATUserDetails |
getUserDetails() |
static String |
getWhitelistConfiguration(XDATUser user) |
static List<String> |
getWhitelistedIPs(XDATUser user) |
static XdatUserAuthService |
getXdatUserAuthService() |
static void |
init(String location) |
static void |
init(String location,
boolean allowDBAccess) |
static void |
init(String location,
boolean allowDBAccess,
boolean initLog4j) |
void |
initialize()
initialize Torque
|
static boolean |
isAuthenticated() |
static boolean |
loginUser(org.apache.turbine.util.RunData data,
XDATUser user,
boolean forcePasswordChange) |
static void |
RefreshDisplay() |
static void |
sendJmsRequest(Object request) |
static void |
setNewUserDetails(XDATUserDetails userDetails,
org.apache.turbine.util.RunData data,
org.apache.velocity.context.Context context) |
static void |
setScreenTemplatesFolder(String screenTemplatesFolder) |
static void |
setSiteConfigurationProperty(String property,
String value) |
static void |
setUserDetails(XDATUserDetails userDetails) |
static boolean |
verificationOn() |
static void |
verifyNotificationType(org.nrg.mail.api.NotificationType event)
This verifies that a notification and subscriber exists for the indicated site-wide event.
|
public static final String IP_WHITELIST_TOOL
public static final String IP_WHITELIST_PATH
public static final String ADMIN_USERNAME_FOR_SUBSCRIPTION
public static List<String> getWhitelistedIPs(XDATUser user) throws org.nrg.config.exceptions.ConfigServiceException
org.nrg.config.exceptions.ConfigServiceException
public static String getWhitelistConfiguration(XDATUser user) throws org.nrg.config.exceptions.ConfigServiceException
org.nrg.config.exceptions.ConfigServiceException
public static String getSiteConfigurationProperty(String property, String _default) throws org.nrg.config.exceptions.ConfigServiceException
org.nrg.config.exceptions.ConfigServiceException
public static boolean getBoolSiteConfigurationProperty(String property, boolean _default)
public static boolean verificationOn()
public static boolean isAuthenticated()
public static XDATUserDetails getUserDetails()
public static void setUserDetails(XDATUserDetails userDetails)
public static void setNewUserDetails(XDATUserDetails userDetails, org.apache.turbine.util.RunData data, org.apache.velocity.context.Context context)
public void configure(org.apache.commons.configuration.Configuration configuration)
configure
in interface org.apache.stratum.lifecycle.Configurable
configuration
- ConfigurationConfigurable
public void initialize()
initialize
in interface org.apache.stratum.lifecycle.Initializable
Initializable
public static void RefreshDisplay()
public static void init(String location, boolean allowDBAccess) throws Exception
Exception
public static void init(String location, boolean allowDBAccess, boolean initLog4j) throws Exception
Exception
public static void GenerateUpdateSQL(String file) throws Exception
Exception
public static void GenerateCreateSQL(String file) throws Exception
Exception
public static org.nrg.framework.services.ContextService getContextService()
Spring application context service
.public static org.nrg.mail.services.MailService getMailService()
MailService
service.public static org.nrg.notify.services.NotificationService getNotificationService()
notification service
.notification service
.public static org.nrg.framework.services.PropertiesService getPropertiesService()
notification service
.notification service
.public static XftFieldExclusionService getExclusionService()
exclusion service
.exclusion service
.public static org.nrg.framework.services.MarshallerCacheService getMarshallerCacheService()
XML marshaler cache service
.XML marshaller cache service
.public static void addScreenTemplatesFolder(String screenTemplatesFolder)
public static String getScreenTemplatesFolder()
public static void setScreenTemplatesFolder(String screenTemplatesFolder)
public static org.nrg.config.services.ConfigService getConfigService()
ConfigService
service.public static String getSiteConfigurationProperty(String property) throws org.nrg.config.exceptions.ConfigServiceException
org.nrg.config.exceptions.ConfigServiceException
public static void setSiteConfigurationProperty(String property, String value) throws org.nrg.config.exceptions.ConfigServiceException
org.nrg.config.exceptions.ConfigServiceException
public static Properties getSiteConfiguration() throws org.nrg.config.exceptions.ConfigServiceException
org.nrg.config.exceptions.ConfigServiceException
public static org.hibernate.cache.RegionFactory getCacheRegionFactory()
SiteConfigurationService
service.public static DataSource getDataSource()
DataSource
bean.public static XdatUserAuthService getXdatUserAuthService()
public static void verifyNotificationType(org.nrg.mail.api.NotificationType event)
event
- The site-wide event to be verified.public static org.nrg.notify.entities.Channel getHtmlMailChannel()
public static boolean loginUser(org.apache.turbine.util.RunData data, XDATUser user, boolean forcePasswordChange) throws Exception
Exception
public static void sendJmsRequest(Object request)
Copyright © 2015 Neuroinformatics Research Group. All rights reserved.