Class Portal
java.lang.Object
de.uplanet.lucy.server.auxiliaries.Portal
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionPortal(org.springframework.context.ApplicationContext p_appCtx) Standard constructor.
- 
Method SummaryModifier and TypeMethodDescriptionintGet the number of active sessions.Get the anonymous user's unique identifier.intGet the number of sessions of the anonymous user.Get the API key with the given name.org.springframework.context.ApplicationContextGet the portal's Spring application context.de.uplanet.lucy.server.auxiliaries.versionmanager.VCVersionInfogetApplicationVersionInformation(String p_strApplicationGuid) Get the semantic version information of an application.Get a list of available time zone IDs.getDefaultMenuGuid(String p_strLayout) Get the GUID of the default menu of the given layout.intDeprecated.Get the Intrexx semantic version.intGet the Intrexx Share version.intGet the Intrexx version as an integer (e.g. 5200).Get the Intrexx version as a string (e.g. 5.20).Get the portal's language.Get the languages that are supported by this portal.de.uplanet.lucy.server.auxiliaries.versionmanager.VCVersionInfogetLayoutVersionInformation(String p_strLayoutDirectoryName) Get the semantic version information of a layout.Get a list of available login domains.List<de.uplanet.lucy.server.usermanager.IUser>getMyBuddies(de.uplanet.jdbc.JdbcConnection p_conn, String p_strName, String p_strUserGuid) getName()Get the portal name (server/). intGet the number of non-anonymous active sessions.de.uplanet.lucy.server.dataobjects.impl.NowValueHoldergetNow()Get a value holder for the current date and time.de.uplanet.lucy.server.usermanager.velocity.VelocityOrgStructureWrapperGet the portal's organizational structure.de.uplanet.lucy.server.polling.IPollingServiceGet the polling service.Get the portal's display name.intGet the process id (PID) of the running portal server.de.uplanet.lucy.server.scripting.ChimeraDateGet the portal start time.Get the portal's default time zone.de.uplanet.lucy.server.scripting.velocity.util.DurationGet the portal uptime as a string.longGet the portal uptime in milliseconds.getUsersOnline(boolean p_bIncudeAnonymousUsers) Get a list that contains the unique identifiers of users that are online.de.uplanet.lucy.server.auxiliaries.versionmanager.VCVersionInfogetWorkflowVersionInformation(String p_strWorkflowGuid) Get the semantic version information of a workflow.booleanTest if the Application API is supported in this portal.booleanTest if chat is enabled globally.booleanisChatEnabled(String p_strUserId) Test if chat is enabled for the given user.booleanDeprecated.Since Intrexx 9.0.booleanisDemo()booleanbooleanTest if external authentication is supported in this portal.booleanTest if horizontal scaling is supported in this portal.booleanCheck if Intrexx Share is available in the current portal.booleanDeprecated.Since Intrexx 9.0.booleanbooleanFlag indicating if mobile devices are supported.booleanTest if multitenancy is supported in this portal.booleanisNfr()booleanbooleanFlag indicating if an info box is shown when saving or deleting a record.booleanFlag indicating if silent mode is enabled.booleanFlag indicating if single tenant mode is enabled.booleanbooleanisUserOnline(String p_strUserId) Test if the specified user is online, i.e. if she has an associated session.booleanTest if user synchronization is supported in this portal.booleanTest if WebDAV services are supported in this portal.booleanFlag indicating if yellow fade is enabled.List<de.uplanet.lucy.server.usermanager.IUser>Get a distinct list of all non-anonymous users that are online.List<de.uplanet.lucy.server.usermanager.IUser>listNonAnonymousUsersOnline(de.uplanet.util.filter.IFilter<de.uplanet.lucy.server.usermanager.IUser> p_filter) Get a distinct filtered list of non-anonymous users that are online.de.uplanet.lucy.server.usermanager.velocity.VelocityOrgStructureWrapperRead the portal's organizational structure from database.doubleuserActivity(String p_strUserId) 
- 
Field Details- 
SYSPROP_DISABLE_DEPRECATED_EDITOR"de.uplanet.lucy.server.portal.disableDeprecatedEditor".- See Also:
 
- 
SYSPROP_MEDIASIZE_DEBUG"de.uplanet.lucy.server.mediaSize.debug".- See Also:
 
 
- 
- 
Constructor Details- 
Portalpublic Portal(org.springframework.context.ApplicationContext p_appCtx) Standard constructor.- Parameters:
- p_appCtx- The Spring application context.
 
 
- 
- 
Method Details- 
getApplicationContextpublic org.springframework.context.ApplicationContext getApplicationContext()Get the portal's Spring application context.- Returns:
- The Spring application context.
 
- 
getProcessIdpublic int getProcessId()Get the process id (PID) of the running portal server.- Returns:
- The process id.
 
- 
getNowpublic de.uplanet.lucy.server.dataobjects.impl.NowValueHolder getNow()Get a value holder for the current date and time.- Returns:
- The value holder.
 
- 
getUptimeMillispublic long getUptimeMillis()Get the portal uptime in milliseconds.- Returns:
- The uptime in milliseconds.
 
- 
getUptimeDurationpublic de.uplanet.lucy.server.scripting.velocity.util.Duration getUptimeDuration()Get the portal uptime as a string.The returned duration object can be used to format the duration or to extract days, hours, minutes, seconds, and milliseconds. - Returns:
- The uptime as a Durationobject.
 
- 
getStartTimepublic de.uplanet.lucy.server.scripting.ChimeraDate getStartTime()Get the portal start time.- Returns:
- The portal start time.
 
- 
getPortalNameGet the portal's display name.- Returns:
- The portal's display name.
 
- 
getNameGet the portal name (server/). - Returns:
- The portal name.
 
- 
isMobileDevicesSupportedpublic boolean isMobileDevicesSupported()Flag indicating if mobile devices are supported.- Returns:
- trueif mobile devices are supported, or- falseotherwise.
 
- 
isYellowFadeEnabledpublic boolean isYellowFadeEnabled()Flag indicating if yellow fade is enabled.- Returns:
- trueif yellow fade is enabled, or- falseotherwise.
 
- 
isShowActionInfopublic boolean isShowActionInfo()Flag indicating if an info box is shown when saving or deleting a record.- Returns:
- trueif an info box is shown, or- falseotherwise.
 
- 
isSilentModeEnabledpublic boolean isSilentModeEnabled()Flag indicating if silent mode is enabled.- Returns:
- trueif silent mode is enabled, or- falseotherwise.
 
- 
isSingleTenantModepublic boolean isSingleTenantMode()Flag indicating if single tenant mode is enabled.- Returns:
- truesingle tenant mode is enabled, or- falseotherwise.
 
- 
getDefaultMenuGuidGet the GUID of the default menu of the given layout.- Parameters:
- p_strLayout- The directory name of the layout.
- Returns:
- The GUID of the default menu top-level group.
- Throws:
- Exception
 
- 
isDemopublic boolean isDemo()- Returns:
- trueif the portal runs in demo mode, or- falseotherwise.
 
- 
isDeprecatedEditorDisabledpublic boolean isDeprecatedEditorDisabled()- Returns:
- trueif deprecated editors are disabled, or- falseotherwise.
 
- 
isMediaSizeDebugEnabledpublic boolean isMediaSizeDebugEnabled()- Returns:
- trueif media size debugging is enabled, or- falseotherwise.
 
- 
isPushStatepublic boolean isPushState()- Returns:
- trueif the portal supports HTML push state, or- falseotherwise.
 
- 
getLanguageGet the portal's language.- Returns:
- The portal's language.
 
- 
getLanguagesGet the languages that are supported by this portal.- Returns:
- A list of supported languages.
 
- 
getLoginDomainsGet a list of available login domains.- Returns:
- An array containing the available login domains.
 
- 
getTimeZoneGet the portal's default time zone.- Returns:
- The default time zone.
 
- 
getAvailableTimeZoneIDsGet a list of available time zone IDs.- Returns:
- The list of available time zone IDs.
 
- 
getFirstDayOfWeekDeprecated.UseVCLocales.getDefaultLocale()instead.Get the portal's default first-day-of-week.- Returns:
- The portal's default first-day-of-week.
 
- 
getActiveSessionCountpublic int getActiveSessionCount()Get the number of active sessions.- Returns:
- The number of active sessions.
 
- 
getNonAnonymousActiveSessionCountpublic int getNonAnonymousActiveSessionCount()Get the number of non-anonymous active sessions.- Returns:
- The number of active sessions.
 
- 
getAnonymousUserGuidGet the anonymous user's unique identifier.- Returns:
- The anonymous user's unique identifier, or nullif it could not be determined.
 
- 
userActivity- Parameters:
- p_strUserId- The user's unique identifier.
- Returns:
- A value that indicates the user's activity.
 
- 
isUserOnlineTest if the specified user is online, i.e. if she has an associated session.- Parameters:
- p_strUserId- The user's unique identifier.
- Returns:
- trueif the user is online,- falseotherwise.
 
- 
getUsersOnlineGet a list that contains the unique identifiers of users that are online.- Parameters:
- p_bIncudeAnonymousUsers-- trueif anonymous sessions should be included in the resulting array,- falseotherwise.
- Returns:
- A list that contains the unique identifiers of users that are online.
 
- 
getAnonymousUserOnlineCountpublic int getAnonymousUserOnlineCount()Get the number of sessions of the anonymous user.- Returns:
- The number of anonymous user sessions.
 
- 
listNonAnonymousUsersOnlineGet a distinct list of all non-anonymous users that are online.- Returns:
- A list of all non-anonymous users that are online.
 
- 
listNonAnonymousUsersOnlinepublic List<de.uplanet.lucy.server.usermanager.IUser> listNonAnonymousUsersOnline(de.uplanet.util.filter.IFilter<de.uplanet.lucy.server.usermanager.IUser> p_filter) Get a distinct filtered list of non-anonymous users that are online.Note: filters can be created e.g. using the ObjectFactory.- Parameters:
- p_filter- A filter to be applied.
- Returns:
- A list of all non-anonymous users that are online.
 
- 
getPollingServicepublic de.uplanet.lucy.server.polling.IPollingService getPollingService()Get the polling service.- Returns:
- The polling service.
- Since:
- Intrexx version 6.0.
 
- 
getOrgStructurepublic de.uplanet.lucy.server.usermanager.velocity.VelocityOrgStructureWrapper getOrgStructure()Get the portal's organizational structure.This method utilizes the org structure cache and thus generally offers better performance than readOrgStructure().- Returns:
- The portal's organizational structure.
- See Also:
 
- 
readOrgStructurepublic de.uplanet.lucy.server.usermanager.velocity.VelocityOrgStructureWrapper readOrgStructure() throws SQLExceptionRead the portal's organizational structure from database.This method reads the organizational structure directly from the database. So it reflects the most recent changes, but at the expense of performance. - Returns:
- The portal's organizational structure.
- Throws:
- SQLException- If a database error occurred.
- See Also:
 
- 
isChatEnabledpublic boolean isChatEnabled()Test if chat is enabled globally.- Returns:
- trueif chat is globally enabled, or- falseotherwise.
 
- 
isChatEnabledTest if chat is enabled for the given user.- Parameters:
- p_strUserId- The user's unique identifier.
- Returns:
- trueif chat is enabled for the given user, or- falseotherwise.
 
- 
getMyBuddies
- 
isJsCompressionEnabledDeprecated.Since Intrexx 9.0.
- 
isCssCompressionEnabledDeprecated.Since Intrexx 9.0.
- 
isTestOrDevelopmentSystempublic boolean isTestOrDevelopmentSystem()- Returns:
- trueif the portal is licensed as a test or development system, or- falseotherwise.
 
- 
isNfrpublic boolean isNfr()- Returns:
- trueif the portal is licensed as a NFR system, or- falseotherwise.
 
- 
getIntrexxSemanticVersionGet the Intrexx semantic version.See https://semver.org/. - Returns:
- The Intrexx semantic version.
 
- 
getIntrexxVersionIntpublic int getIntrexxVersionInt()Get the Intrexx version as an integer (e.g. 5200).- Returns:
- The Intrexx version as an integer.
 
- 
getIntrexxVersionStrGet the Intrexx version as a string (e.g. 5.20).- Returns:
- The Intrexx version as a string.
 
- 
isExternalAuthenticationSupportedpublic boolean isExternalAuthenticationSupported()Test if external authentication is supported in this portal.- Returns:
- trueif external authentication is supported in this portal, or- falseotherwise.
 
- 
isUserSynchronizationSupportedpublic boolean isUserSynchronizationSupported()Test if user synchronization is supported in this portal.- Returns:
- trueif user synchronization is supported in this portal, or- falseotherwise.
 
- 
isApplicationApiSupportedpublic boolean isApplicationApiSupported()Test if the Application API is supported in this portal.- Returns:
- trueif the Application API is supported in this portal, or- falseotherwise.
 
- 
isMultitenancySupportedpublic boolean isMultitenancySupported()Test if multitenancy is supported in this portal.- Returns:
- trueif multitenancy is supported in this portal, or- falseotherwise.
 
- 
isHorizontalScalabilitySupportedpublic boolean isHorizontalScalabilitySupported()Test if horizontal scaling is supported in this portal.- Returns:
- trueif horizontal scaling is supported in this portal, or- falseotherwise.
 
- 
isWebdavServicesSupportedpublic boolean isWebdavServicesSupported()Test if WebDAV services are supported in this portal.- Returns:
- trueif WebDAV services are supported in this portal, or- falseotherwise.
 
- 
getApplicationVersionInformationpublic de.uplanet.lucy.server.auxiliaries.versionmanager.VCVersionInfo getApplicationVersionInformation(String p_strApplicationGuid) Get the semantic version information of an application.- Parameters:
- p_strApplicationGuid- The application GUID.
- Returns:
- The semantic version information or nullif no semantic version information exists.
 
- 
getWorkflowVersionInformationpublic de.uplanet.lucy.server.auxiliaries.versionmanager.VCVersionInfo getWorkflowVersionInformation(String p_strWorkflowGuid) Get the semantic version information of a workflow.- Parameters:
- p_strWorkflowGuid- The workflow GUID.
- Returns:
- The semantic version information or nullif no semantic version information exists.
 
- 
getLayoutVersionInformationpublic de.uplanet.lucy.server.auxiliaries.versionmanager.VCVersionInfo getLayoutVersionInformation(String p_strLayoutDirectoryName) Get the semantic version information of a layout.- Parameters:
- p_strLayoutDirectoryName- The layout directory name.
- Returns:
- The semantic version information or nullif no semantic version information exists.
 
- 
getApiKeyGet the API key with the given name.- Parameters:
- p_strApiKeyName- The name of the API key.
- Returns:
- The API key, or nullif no key with the given name exist.
 
 
- 
VCLocales.getDefaultLocale()instead.