psdi.app.solution

Class Solution

  • All Implemented Interfaces:
    java.rmi.Remote, SolutionRemote, MboConstants, MboRemote, StatefulMboRemote, MaxRemoteProxy


    public class Solution
    extends StatefulMbo
    implements SolutionRemote
    MBO representing a Solution Allows a user to create a Solution record that provides detailed information that will enable a user to solve a problem. See the Solution package description for details.

    This is a system level object.

    The key attribute for this object is Solution.

    The attributes in this object are as follows:

    Attribute Name Description
    ChangebyThe user who last modified the Solution.
    ChangedateThis is the date the Solution was last modified.
    ClassstructureidDefines the classification of the Solution.
    DescriptionThe main description of the Solution.
    Description_LongdescriptionThe Long Description of the Solution.
    Fr1codeDefines the cause of the symptom.
    Fr1code_LongdescriptionThe Long Description of the cause.
    Fr2codeDefines the resolution of the symptom/cause.
    Fr2code_LongdescriptionThe Long Description of the resolution.
    ProblemcodeDefines the symptom someone may encounter.
    Problemcode_LongdescriptionThe Long Description of the symptom.
    SelfserviceaccessDefines whether or not the Solution is accessible to the Self Service User.
    SolutionThis is the unique identifier of the Solution record.
    StatusThe status of the solution. The valid states are Active,Inactive and Draft.
    StatusdateThe date that the status was changed last.
    • Constructor Detail

      • Solution

        public Solution(MboSet ms)
                 throws java.rmi.RemoteException
        Construct the Solution object
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Add a new Solution Field defaults are set.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long accessModifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete the SOLUTION record and delete records associated with this Solution Record.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        accessModifier - The bitwise flag specified to determine if certain normal security checks are to be bypassed for this delete request. For example: if the accessModifer is NOACCESSCHECK, then the check for the object's NODELETE flag and the call to the object's canDelete() method will not be performed. If the accessModifer is NONE, then all the access checks are performed before this object is marked delete.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • skipCopyField

        protected boolean skipCopyField(MboValueInfo mvi)
                                 throws MXException,
                                        java.rmi.RemoteException
        Overrides the skipCopyField() in the Mbo. Since this method takes the MboValueInfo as its parameter just check to see if this field needs to be copied or skipped by using the data from the static HashSet. If this field does not need to be copied return true. The following are the Solution fields will be skipped without being copied to the newly duplicated Solution:
        1. solution
        2. status
        3. statusdate
        Overrides:
        skipCopyField in class Mbo
        Parameters:
        mvi - The MboValueInfo object of the MboValue that needs to be copied.
        Returns:
        true If the field does not need to be copied return true, in all other cases return false.
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Ticket.loadSkipFieldCopyHashSet()
      • getStatusListName

        public java.lang.String getStatusListName()
        Gets the name of the value list that contains all the status's. For Solutions this is SOLUTIONSTATUS.
        Specified by:
        getStatusListName in interface StatefulMboRemote
        Specified by:
        getStatusListName in class StatefulMbo
        Returns:
        "SOLUTIONSTATUS"
      • changeStatus

        public void changeStatus(java.lang.String status,
                                 java.util.Date date,
                                 java.lang.String memo,
                                 long accessModifier)
                          throws MXException,
                                 java.rmi.RemoteException
        Change Status A string briefly describing the circumstances of the change. The memo can be null.
        Specified by:
        changeStatus in interface StatefulMboRemote
        Overrides:
        changeStatus in class StatefulMbo
        Parameters:
        status - The new desired status. This is the translated status (that is, the status code as it would have been entered by a user, or valuelist.value), not the internal status value (valuelist.maxvalue).
        date - The effective date of the new status (java.util.Date). If null the current date/time is used.
        memo - A string briefly describing the circumstances of the change. The memo can be null.
        accessModifier -
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        StatefulMbo.canChangeStatus(String)
      • modify

        public void modify()
                    throws MXException,
                           java.rmi.RemoteException
        The first time a field of a solution object is modified, the ChangeBy & ChangeDate attributes are updated.
        Overrides:
        modify in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException