%SYS.Ensembleabstract class %SYS.Ensemble
Common method to ensure that the public methods of this class are correctly invoked.
Check whether the /csp/docbook web app is enabled (for use by EnsPortal.ProductionDocument)
Wrapper around the Ens.Util.Documentation::CreateDoc() API to ensure that users have sufficient privileges to add the resulting material to the documentation.
Correctly determine the expanded Interoperability manager username (used internallly and not for login) if the system is using multiple domains. If multiple domains are in use, then the Interoperability manager username should be present in the default domain.
Wrapper around the SYS.EnsMetrics::GetMainMetrics() API to ensure that all users with USE permissions on %Ens_Dashboard can get this information even if they aren't permitted to directly run code in the system database.
Method to get the status of productions in all known production-enabled namespaces on this system.
Note that data is NOT retrieved from remote databases.
This list will not include namespaces if the default global database for the namespace is not mounted.
The output status array is subscripted by namespace and with a value for each namespace that is a $List with 5 components:
- Production Name of last used Production if any
- Localized Status text
- 1 if the Production is Running, Stopped or Suspended, 0 otherwise, indicating 'not known to be OK'
- 'HS' if the namespace is HealthShare enabled, otherwise empty
- The numeric state value representing the production's status
This method is used by the portal page EnsPortal.ManagedAlertViewer
It returns a list of users who are members of the %EnsRole_AlertManager, %EnsRole_AlertOperator or %EnsRole_Alert roles.
If the role %EnsRole_Administrator has USE privilege on the %Ens_AlertAdministration resource then users of the role %EnsRole_Administrator will also be listed.
Users with %All role will not be listed unless they are explicitly members of one of the roles previously mentioned.
The default is to list all the users in the instance. Pass the namespace in the second parameter to limit the list to the user with write access to the Ens.Alerting.ManagedAlert data in a specific namespace.
A user must be permitted to edit alerts to call this API.
Helper method to ensure that we can log in as the _Ensemble user AND that this user has the %All role. Note that the calling code should escalate privileges to ensure the user may call $system.Security.Login(). We use "_Ensemble" as the login name instead of
EnsembleUsername() as the return value from the method is a fully qualified username.
Secure wrapper for deleting secondary data. Only support Password.
Wrapper for getting secondary data. User needs Read access to the DB for 'Password'. Only support Password.
Secure wrapper for writing secondary data. Only support Password.
Secure wrapper for the StartProduction API in
Secure wrapper for the StopProduction API in
Secure wrapper for the UpdateProduction API in
Internal helper method to identify if user has access to the global Error handling to be trapped by caller.
Find User and Role members for role pRole. Called by findUserMembers
Internal private method to find all users in ROLE hierarchy for array of roles given by pRoles
Perform the actual check for /csp/docbook web app enabled