psdi.app.system

Class MaxPropValue

  • java.lang.Object
  • All Implemented Interfaces:
    java.rmi.Remote, MaxPropValueRemote, MboConstants, MboRemote, MaxRemoteProxy
    Direct Known Subclasses:
    MaxPropInstance


    public class MaxPropValue
    extends Mbo
    implements MaxPropValueRemote
    Mbo object to represent MaxPropValue, which stores values for Maximo system properties. Property values will be stored at a global level and may also have instance-level overrides.

    Global property values will have a row where ServerName equals COMMON and ServerHost is null.

    Instance-level property values will have a row where ServerName equals the Maximo server name. ServerHost will usually be null, but can be specified in environments where multiple servers may have the same name but different IP addresses.

    The master table defining properties is MaxProp. Some properties must be only at either a global or instance level, as defined in MaxProp.

    This is a system level object.

    The key attributes for this object are PropName, ServerName, ServerHost.

    The attributes in this object are as follows:

    Attribute NameDescription
    ChangeByThe UserID who last changed this row.
    ChangeDateThe timestamp of the last change applied to this row.
    DispPropValueNon-persistent attribute storing the decrypted value of the property, which on the database is stored in either PropValue or EncryptedValue. This attribute is used in the Properties application.
    EncryptedValueEncrypted property value (persistent). Will be populated on the database when MaxProp.Encrypted is true.
    PropNameProperty name. Foreign key to MaxProp.
    PropValueUnencrypted property value (persistent). Will be populated on the database when MaxProp.Encrypted is false.
    ServerHostThe IP address of this server instance. This will usually be null. When server host is null, any server with the specified server name will use this property. When server host is not null, this property will be used only by an instance having the same server name and IP address.

    If there are multiple instances in a cluster and it is desired that one instance use a different property value, then a user would add a row via the UI and specify both server name and server host for the different instance.

    ServerNameFor global values, this will equal COMMON. For instance-specific values, this will equal the server name. For dynamically assigned instance names within a cluster, global values will be used when starting the instance.
    See Also:
    MaxProp
    • Constructor Detail

      • MaxPropValue

        public MaxPropValue(MboSet ms)
                     throws java.rmi.RemoteException
        Constructor for the MaxPropValue object
        Parameters:
        ms -
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Set readonly flags for various attributes and set the encrypted flag.
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        PropNameOwner's value of PropName
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        Prepare to modify a mbo, defaulting the attributes shown below.
        Attribute NameAttribute Value
        ChangeByCurrent user
        ChangeDateCurrent date
        Overrides:
        modify in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • appValidate

        public void appValidate()
                         throws MXException,
                                java.rmi.RemoteException
        Description copied from class: Mbo
        Pre-save validation method. Programmer can override with specific rules.
        Overrides:
        appValidate in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • handleEncryption

        public void handleEncryption()
                              throws MXException,
                                     java.rmi.RemoteException
        Determine if the value is encrypted or not and set the appropriate attributes
        Specified by:
        handleEncryption in interface MaxPropValueRemote
        Throws:
        MXException
        java.rmi.RemoteException
      • setEncrypted

        public void setEncrypted(boolean flag)
        Set the encrypted flag
        Parameters:
        flag - Value for encrypted
      • setGlobalOnly

        public void setGlobalOnly(boolean flag)
        Set the global only flag
        Parameters:
        flag - Value for global only
      • setInstanceOnly

        public void setInstanceOnly(boolean flag)
        Set the Instance only flag
        Parameters:
        flag - Value for instance only
      • setMasked

        public void setMasked(boolean flag)
        Set the Masked flag, which indicates simulating inputmode=password on UI.
        Parameters:
        flag - Value of masked
      • isInstanceOnly

        public boolean isInstanceOnly()
        Returns the instanceOnly flag
        Returns:
        True if instance only
      • isGlobalOnly

        public boolean isGlobalOnly()
        Returns the global only flag
        Returns:
        True if global only
      • isEncrypted

        public boolean isEncrypted()
        Returns the encrypted flag
        Returns:
        Value of encrypted
      • isMasked

        public boolean isMasked()
        Returns the Masked flag
        Returns:
        true if masked