Assetize

Maximo Java API · psdi.security

UserInfo psdi.security.UserInfo

UserInfo is a Maximo class. It is in every release from 8.5 to 9.3, with 81 public and protected methods and 0 fields.

Using this class in Jython

Obtain the current user context

The user context attached to record operations: identity, language and interactive-session state. Re-use the launch point user when opening related work. isInteractive describes the session; it is not an authorization check.

user = mbo.getUserInfo()

Signature and hierarchy

public class UserInfo implements Cloneable, Serializable

Extends: java.lang.Object.

Implements: java.lang.Cloneable, java.io.Serializable.

Where Maximo uses it

No object, attribute, screen, service or cron task names UserInfo directly. No internal method callers can be inferred from these registrations.

Upgrading

Nothing on UserInfo was removed or moved between 8.5 and 9.3. No recorded removal is not a runtime compatibility guarantee; compare the exact source and target signatures.

Method context

getUserName
Read the Maximo login name. Different from the person identifier. mbo.getUserInfo().getUserName()
getPersonId
Read the person identifier attached to the user. Use person IDs where an attribute references PERSON. mbo.getUserInfo().getPersonId()
isInteractive
Check whether this user context is interactive. This does not grant permission or guarantee a particular web-client bean. mbo.getUserInfo().isInteractive()
getLangCode
Read the user language code. Useful for locale-aware presentation. mbo.getUserInfo().getLangCode()

Methods

Signatures across captured releases. Use Browse to filter to one version.

SignatureReleases
public Object clone()8.5–9.3
public Object clone(boolean)8.5–9.3
public String getBaseCaltype()8.5–9.3
public String getBaseCurrency()8.5–9.3
public String getCaltype()8.5–9.3
public String getClientAddr()8.5–9.3
public String getClientHost()8.5–9.3
public ConnectionKey getConnectionKey()8.5–9.3
public Object getCredential()8.5–9.3
public String getCrewId()9.1–9.3
public String getDefaultLang()8.5–9.3
public String getDefaultLocaleStr()8.5–9.3
public String getDefaultTZStr()8.5–9.3
public String getDefaultUserNotfType()8.5–9.3
public String getDisplayName()8.5–9.3
public String getEmail()8.5–9.3
public String getIBMID()8.5–9.3
public String getIBMPass()8.5–9.3
public ULocale getICULocale()8.5–9.3
public boolean getInactiveSites()8.5–9.3
public String getInsertCompanySet()9.1–9.3
public String getInsertItemSet()9.1–9.3
public String getInsertOrg()9.0–9.3
public String getInsertSite()8.5–9.3
public String getLaborCode()9.1–9.3
public String getLaborWorkLocation()9.1–9.3
public String getLangCode()8.5–9.3
public int getLeftNav()8.5–9.3
public Locale getLocale()8.5–9.3
public String getLoginID()8.5–9.3
public String getLoginUserName()8.5–9.3
public int getMasUserSyncStatus()9.1–9.3
public long getMaxSessionID()8.5–9.3
public String getPersonId()8.5–9.3
public String getPhone()8.5–9.3
public String getSchemaOwner()8.5–9.3
public boolean getScreenReader()8.5–9.3
public String getSeatid()8.5–9.3
public UUID getServerGuid()8.5–9.3
public String getStartApp()8.5–9.3
public long getSubscriberid()8.5–9.3
public long getSubscriptionId()8.5–9.3
public String getSubscriptionPartNumber()8.5–9.3
public int getTenantID()8.5–9.3
public TimeZone getTimeZone()8.5–9.3
public String getTitle()8.5–9.3
public UserLoginDetails getUserLoginDetails()8.5–9.3
public String getUserName()8.5–9.3
public boolean isAPIKeyAdmin()9.1–9.3
public boolean isClonedFrom(UserInfo)8.5–9.3
public boolean isIDPAdmin()9.1–9.3
public boolean isInteractive()8.5–9.3
public boolean isLandlord()8.5–9.3
public boolean isLocalSession()8.5–9.3
public boolean isPreview()8.5–9.3
public boolean isRestUser()8.5–9.3
public boolean isSuperUserContext()9.1–9.3
public boolean isSystemAdmin()9.1–9.3
public void refreshLoginDetails(UserLoginDetails)8.5–9.3
public void setCalType(String)8.5–9.3
public void setCredential(Object)8.5–9.3
public void setEmail(String)8.5–9.3
public void setInsertSite(String)8.5–9.3
public void setInteractive(boolean)8.5–9.3
public void setLangCode(String, MXServerRemote)8.5–9.3
public void setLangCode(String)8.5–9.3
public void setLeftNav(int)8.5–9.3
public void setLocale(Locale)8.5–9.3
public void setLocale(String)8.5–9.3
public void setLocalSession(boolean)8.5–9.3
public void setMaxSessionID(long)8.5–9.3
public void setMXServer(MXServerRemote)8.5–9.3
public void setPhone(String)8.5–9.3
public boolean setPreview(boolean)8.5–9.3
public void setRestUser(boolean)8.5–9.3
public void setStartApp(String)8.5–9.3
public void setSuperUserContext()9.1–9.3
public void setTimeZone(String)8.5–9.3
public void setTimeZone(TimeZone)8.5–9.3
public void setUserName(String)8.5–9.3
public void toJSON(JSONObject, boolean)8.5–9.3

From automation scripts

The user context attached to record operations: identity, language and interactive-session state.

Query an independent set with typed values

Action launch point · WORKORDER with ASSETNUM and SITEID · Jython

from psdi.server import MXServer
from psdi.mbo import SqlFormat

where = SqlFormat("assetnum = :1 and siteid = :2")
where.setObject(1, "ASSET", "ASSETNUM", mbo.getString("ASSETNUM"))
where.setObject(2, "ASSET", "SITEID", mbo.getString("SITEID"))
assets = MXServer.getMXServer().getMboSet("ASSET", mbo.getUserInfo())
try:
    assets.setWhere(where.format())
    assets.reset()
    asset = assets.getMbo(0)
    if asset is not None:
        service.log(asset.getString("DESCRIPTION"))
finally:
    try:
        assets.cleanup()
    finally:
        assets.close()

Understand the executing user

Object or action launch point with mbo · Jython

user = mbo.getUserInfo()
service.log("Login: %s; person: %s; interactive: %s" % (
    user.getUserName(), user.getPersonId(), user.isInteractive()))

For IBM's description of each method, see IBM's Javadoc for Maximo and Manage.