Class SharedScript

  • All Implemented Interfaces:
    java.io.Serializable

    public class SharedScript
    extends java.lang.Object
    implements java.io.Serializable
    Shared code definition
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String TYPE_CODE
      Rhino Javascript / Java
      static java.lang.String TYPE_LIB
      Java lib
      static java.lang.String TYPE_OTHER
      Other, not interpreted
      static java.lang.String TYPE_SCRIPT
      Deprecated.
      Use TYPE_CODE
      static java.lang.String TYPE_SQL
      Script SQL
    • Constructor Summary

      Constructors 
      Constructor Description
      SharedScript​(java.lang.String docId)
      Object script
      SharedScript​(java.lang.String id, java.lang.String code, java.lang.String moduleId, java.lang.String moduleName, java.lang.String docId)
      Shared code
    • Method Summary

      Modifier and Type Method Description
      DocumentDB getDoc​(Grant g)
      Get shared code document
      java.lang.String getDocId()
      Get shared code document ID
      java.lang.String getId()
      Get shared code ID
      java.lang.String getModuleId()
      Get shared script module ID
      java.lang.String getModuleName()
      Get shared script module name
      java.lang.String getName()
      Get shared script name
      java.lang.String getSource​(Grant g)
      Script source code
      java.lang.String getType()
      Get script type: TYPE_JS, TYPE_SQL, TYPE_OTHER
      void setDocId​(java.lang.String id)
      Set shared code document ID
      void setId​(java.lang.String id)
      Set shared code ID
      void setModuleId​(java.lang.String id)
      Set shared script module ID
      void setModuleName​(java.lang.String n)
      Set shared script module name
      void setName​(java.lang.String n)
      Set shared script name
      void setSource​(java.lang.String s)  
      void setType​(java.lang.String type)
      Set script type: TYPE_JS, TYPE_SQL, TYPE_OTHER
      java.lang.String toString()
      Display as string
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • TYPE_CODE

        public static final java.lang.String TYPE_CODE
        Rhino Javascript / Java
        See Also:
        Constant Field Values
      • TYPE_SCRIPT

        @Deprecated
        public static final java.lang.String TYPE_SCRIPT
        Deprecated.
        Use TYPE_CODE
        See Also:
        Constant Field Values
      • TYPE_OTHER

        public static final java.lang.String TYPE_OTHER
        Other, not interpreted
        See Also:
        Constant Field Values
    • Constructor Detail

      • SharedScript

        public SharedScript​(java.lang.String id,
                            java.lang.String code,
                            java.lang.String moduleId,
                            java.lang.String moduleName,
                            java.lang.String docId)
        Shared code
      • SharedScript

        public SharedScript​(java.lang.String docId)
        Object script
    • Method Detail

      • setId

        public void setId​(java.lang.String id)
        Set shared code ID
      • getId

        public java.lang.String getId()
        Get shared code ID
      • setDocId

        public void setDocId​(java.lang.String id)
        Set shared code document ID
      • getDocId

        public java.lang.String getDocId()
        Get shared code document ID
      • setName

        public void setName​(java.lang.String n)
        Set shared script name
      • getName

        public java.lang.String getName()
        Get shared script name
      • setModuleId

        public void setModuleId​(java.lang.String id)
        Set shared script module ID
      • getModuleId

        public java.lang.String getModuleId()
        Get shared script module ID
      • setModuleName

        public void setModuleName​(java.lang.String n)
        Set shared script module name
      • getModuleName

        public java.lang.String getModuleName()
        Get shared script module name
      • setType

        public void setType​(java.lang.String type)
        Set script type: TYPE_JS, TYPE_SQL, TYPE_OTHER
      • getType

        public java.lang.String getType()
        Get script type: TYPE_JS, TYPE_SQL, TYPE_OTHER
      • setSource

        public void setSource​(java.lang.String s)
      • getSource

        public java.lang.String getSource​(Grant g)
        Script source code
      • toString

        public java.lang.String toString()
        Display as string
        Overrides:
        toString in class java.lang.Object