Class Portal
java.lang.Object
de.uplanet.lucy.server.auxiliaries.Portal
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPortal(org.springframework.context.ApplicationContext p_appCtx) Standard constructor. -
Method Summary
Modifier 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.getApplicationVersionInformation(String p_strAppGuid) 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.Get the Intrexx version as a string (e.g.Get the portal's language.Get the languages that are supported by this portal.getLayoutVersionInformation(String p_strLayoutDirName) Get the semantic version information of a layout.Get a list of available login domains.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.getNow()Get a value holder for the current date and time.Get 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.Get the portal start time.Get the portal's default time zone.Get 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.getWorkflowVersionInformation(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.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.Get a distinct list of all non-anonymous users that are online.listNonAnonymousUsersOnline(IFilter<IUser> p_filter) Get a distinct filtered list of non-anonymous users that are online.Read 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
-
Portal
public Portal(org.springframework.context.ApplicationContext p_appCtx) Standard constructor.- Parameters:
p_appCtx- The Spring application context.
-
-
Method Details
-
getApplicationContext
public org.springframework.context.ApplicationContext getApplicationContext()Get the portal's Spring application context.- Returns:
- The Spring application context.
-
getProcessId
public int getProcessId()Get the process id (PID) of the running portal server.- Returns:
- The process id.
-
getNow
Get a value holder for the current date and time.- Returns:
- The value holder.
-
getUptimeMillis
public long getUptimeMillis()Get the portal uptime in milliseconds.- Returns:
- The uptime in milliseconds.
-
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.
-
getStartTime
Get the portal start time.- Returns:
- The portal start time.
-
getPortalName
Get the portal's display name.- Returns:
- The portal's display name.
-
getName
Get the portal name (server/). - Returns:
- The portal name.
-
isMobileDevicesSupported
public boolean isMobileDevicesSupported()Flag indicating if mobile devices are supported.- Returns:
trueif mobile devices are supported, orfalseotherwise.
-
isYellowFadeEnabled
public boolean isYellowFadeEnabled()Flag indicating if yellow fade is enabled.- Returns:
trueif yellow fade is enabled, orfalseotherwise.
-
isShowActionInfo
public boolean isShowActionInfo()Flag indicating if an info box is shown when saving or deleting a record.- Returns:
trueif an info box is shown, orfalseotherwise.
-
isSilentModeEnabled
public boolean isSilentModeEnabled()Flag indicating if silent mode is enabled.- Returns:
trueif silent mode is enabled, orfalseotherwise.
-
isSingleTenantMode
public boolean isSingleTenantMode()Flag indicating if single tenant mode is enabled.- Returns:
truesingle tenant mode is enabled, orfalseotherwise.
-
getDefaultMenuGuid
Get 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
-
isDemo
public boolean isDemo()- Returns:
trueif the portal runs in demo mode, orfalseotherwise.
-
isDeprecatedEditorDisabled
public boolean isDeprecatedEditorDisabled()- Returns:
trueif deprecated editors are disabled, orfalseotherwise.
-
isMediaSizeDebugEnabled
public boolean isMediaSizeDebugEnabled()- Returns:
trueif media size debugging is enabled, orfalseotherwise.
-
isPushState
public boolean isPushState()- Returns:
trueif the portal supports HTML push state, orfalseotherwise.
-
getLanguage
Get the portal's language.- Returns:
- The portal's language.
-
getLanguages
Get the languages that are supported by this portal.- Returns:
- A list of supported languages.
-
getLoginDomains
Get a list of available login domains.- Returns:
- An array containing the available login domains.
-
getTimeZone
Get the portal's default time zone.- Returns:
- The default time zone.
-
getAvailableTimeZoneIDs
Get a list of available time zone IDs.- Returns:
- The list of available time zone IDs.
-
getFirstDayOfWeek
Deprecated.UseVCLocales.getDefaultLocale()instead.Get the portal's default first-day-of-week.- Returns:
- The portal's default first-day-of-week.
-
getActiveSessionCount
public int getActiveSessionCount()Get the number of active sessions.- Returns:
- The number of active sessions.
-
getNonAnonymousActiveSessionCount
public int getNonAnonymousActiveSessionCount()Get the number of non-anonymous active sessions.- Returns:
- The number of active sessions.
-
getAnonymousUserGuid
Get 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.
-
isUserOnline
Test 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.
-
getUsersOnline
Get 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.
-
getAnonymousUserOnlineCount
public int getAnonymousUserOnlineCount()Get the number of sessions of the anonymous user.- Returns:
- The number of anonymous user sessions.
-
listNonAnonymousUsersOnline
Get a distinct list of all non-anonymous users that are online.- Returns:
- A list of all non-anonymous users that are online.
-
listNonAnonymousUsersOnline
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.
-
getPollingService
public de.uplanet.lucy.server.polling.IPollingService getPollingService()Get the polling service.- Returns:
- The polling service.
- Since:
- Intrexx version 6.0.
-
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:
-
readOrgStructure
Read 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:
-
isChatEnabled
public boolean isChatEnabled()Test if chat is enabled globally.- Returns:
trueif chat is globally enabled, orfalseotherwise.
-
isChatEnabled
Test 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, orfalseotherwise.
-
getMyBuddies
-
isJsCompressionEnabled
Deprecated.Since Intrexx 9.0. -
isCssCompressionEnabled
Deprecated.Since Intrexx 9.0. -
isTestOrDevelopmentSystem
public boolean isTestOrDevelopmentSystem()- Returns:
trueif the portal is licensed as a test or development system, orfalseotherwise.
-
isNfr
public boolean isNfr()- Returns:
trueif the portal is licensed as a NFR system, orfalseotherwise.
-
getIntrexxSemanticVersion
Get the Intrexx semantic version.See https://semver.org/.
- Returns:
- The Intrexx semantic version.
-
getIntrexxVersionInt
public int getIntrexxVersionInt()Get the Intrexx version as an integer (e.g. 5200).- Returns:
- The Intrexx version as an integer.
-
getIntrexxVersionStr
Get the Intrexx version as a string (e.g. 5.20).- Returns:
- The Intrexx version as a string.
-
isExternalAuthenticationSupported
public boolean isExternalAuthenticationSupported()Test if external authentication is supported in this portal.- Returns:
trueif external authentication is supported in this portal, orfalseotherwise.
-
isUserSynchronizationSupported
public boolean isUserSynchronizationSupported()Test if user synchronization is supported in this portal.- Returns:
trueif user synchronization is supported in this portal, orfalseotherwise.
-
isApplicationApiSupported
public boolean isApplicationApiSupported()Test if the Application API is supported in this portal.- Returns:
trueif the Application API is supported in this portal, orfalseotherwise.
-
isMultitenancySupported
public boolean isMultitenancySupported()Test if multitenancy is supported in this portal.- Returns:
trueif multitenancy is supported in this portal, orfalseotherwise.
-
isHorizontalScalabilitySupported
public boolean isHorizontalScalabilitySupported()Test if horizontal scaling is supported in this portal.- Returns:
trueif horizontal scaling is supported in this portal, orfalseotherwise.
-
isWebdavServicesSupported
public boolean isWebdavServicesSupported()Test if WebDAV services are supported in this portal.- Returns:
trueif WebDAV services are supported in this portal, orfalseotherwise.
-
getApplicationVersionInformation
Get the semantic version information of an application.- Parameters:
p_strAppGuid- The application GUID.- Returns:
- The semantic version information or
nullif no semantic version information exists. - Throws:
IllegalArgumentException- If no GUID is given or the application does not exist.
-
getWorkflowVersionInformation
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. - Throws:
IllegalArgumentException- If no GUID is given or the workflow does not exist.
-
getLayoutVersionInformation
Get the semantic version information of a layout.- Parameters:
p_strLayoutDirName- The layout directory name.- Returns:
- The semantic version information or
nullif no semantic version information exists. - Throws:
IllegalArgumentException- If no layout name is given or if the layout name is invalid or the layout does not exist.
-
getApiKey
Get 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.
-
getMultiFactorAppGuid
- Returns:
- Returns the GUID for the multi-factor authentication configuration application.
-
VCLocales.getDefaultLocale()instead.