Class RequestObject


  • public class RequestObject
    extends java.lang.Object
    The Class RequestObject.
    • Constructor Detail

      • RequestObject

        public RequestObject()
        Instantiates a new request object.
    • Method Detail

      • getParameterList

        public DataFieldList getParameterList()
        Gets the parameter list.
        Returns:
        the parameter list
      • cleanOperationList

        public void cleanOperationList()
        Cleans the form list.
      • removeSetOperations

        public void removeSetOperations()
        Cleans the set operation form the form list. It only leaves the first select action found and remove any other item.
      • removeGetOperations

        public void removeGetOperations()
        Cleans the get operation form the form list. It only leaves insert, update, delete, and operation action, and removes any select action.
      • addOperationListItem

        public void addOperationListItem()
        Add a new DataValueList to operationList.
      • removeOperationListItem

        public void removeOperationListItem​(int index)
        Add a new DataValueList to operationList.
        Parameters:
        index - the element position to be removed
      • getOperationListSize

        public int getOperationListSize()
        Return the number of items in operationList.
        Returns:
        items in the operationList
      • getOperationListItem

        public DataFieldList getOperationListItem​(int index)
        Gets the parameter list.
        Parameters:
        index - the index
        Returns:
        the parameter list
      • getAuthorizationList

        public java.lang.String getAuthorizationList()
        Gets the authorization list.
        Returns:
        the authorization list
      • setAuthorizationList

        public void setAuthorizationList​(java.lang.String authorizationList)
        Sets the authorization list.
        Parameters:
        authorizationList - the new authorization list
      • getServiceURL

        public java.lang.String getServiceURL()
        Gets the serviceURL.
        Returns:
        the serviceURL
      • setServiceURL

        public void setServiceURL​(java.lang.String serviceURL)
        Sets the serviceURL.
        Parameters:
        serviceURL - the new serviceURL
      • getLangID

        public java.lang.String getLangID()
        Gets the langID.
        Returns:
        the langID
      • setLangID

        public void setLangID​(java.lang.String langID)
        Sets the langID.
        Parameters:
        langID - the new langID
      • getDebugLevel

        public int getDebugLevel()
        Gets the debug level.
        Returns:
        the debug level
      • setDebugLevel

        public void setDebugLevel​(int debugLevel)
        Sets the debug level.
        Parameters:
        debugLevel - the new debug level
      • rights

        public java.lang.String rights()
        Rights.
        Returns:
        the string
      • setRights

        public void setRights​(java.lang.String rights)
        Sets the rights.
        Parameters:
        rights - the new rights
      • getTranslatorIn

        public java.lang.String getTranslatorIn()
        Gets the translatorIn.
        Returns:
        translatorIn
      • setTranslatorIn

        public void setTranslatorIn​(java.lang.String translatorIn)
        Sets the translatorIn.
        Parameters:
        translatorIn - the translator input
      • getTranslatorOut

        public java.lang.String getTranslatorOut()
        Gets the translatorOut.
        Returns:
        translatorOut
      • setTranslatorOut

        public void setTranslatorOut​(java.lang.String translatorOut)
        Sets the translatorOut.
        Parameters:
        translatorOut - the translator extractor
      • setSilkUserID

        public void setSilkUserID​(java.lang.String silkUserID)
        Sets the silkUserID.
        Parameters:
        silkUserID - the silk user
      • getSilkUserID

        public java.lang.String getSilkUserID()
        Gets the silkUserID.
        Returns:
        silkUserID
      • setDatabaseName

        public void setDatabaseName​(java.lang.String databaseName)
        Sets the databaseName.
        Parameters:
        databaseName - the silk user
      • getDatabaseName

        public java.lang.String getDatabaseName()
        Gets the silkUserID.
        Returns:
        silkUserID
      • checkSessionValue

        public java.lang.String checkSessionValue​(java.lang.String value,
                                                  javax.servlet.http.HttpSession session)
        Search and replace for session values Expects the evaluate the value containing the structure: session(attributeName)
        Parameters:
        value - the value to search in session
        session - the target session
        Returns:
        value
      • setJSONString

        public void setJSONString​(java.lang.String jsonString)
                           throws SilkException
        Sets the requestObject from a JSON string.
        Parameters:
        jsonString - the JSON string to parse
        Throws:
        SilkException - throws a SilkException
      • setJSONString

        public void setJSONString​(java.lang.String jsonString,
                                  javax.servlet.http.HttpSession session)
                           throws SilkException
        Sets the requestObject from a JSON string.
        Parameters:
        jsonString - the JSON string to parse
        session - the HTTP session
        Throws:
        SilkException - throws a SilkException
      • toString

        public java.lang.String toString()
        Returns a string with the requestObject information.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String