Untitled

mail@pastecode.io avatar
unknown
java
2 months ago
8.7 kB
2
Indexable
Never
/*---------------------------------------------------------------------------
   $Id:$
  ---------------------------------------------------------------------------
  (c) 2011
  ---------------------------------------------------------------------------*/

objmodel SKEVENTAUDIT@103.510 
{
  import COOATTREDIT@1.1;


 /**
  * Konkrétne nastvenie LOG-ovania
  * not implemented..
  */
  struct TypeAggrCfgTraceLine 
  {
    boolean AttrBoolCFGEnableLine  { init = true; }
    //string AttrStrCfgTraceClassPath ;
    
    TypeEnumComp AttrEnumCFGKomponenta;
    TypeEnumCat AttrEnumCFGCategory;
    TypeEnumCat2 AttrEnumCFGCategory2;
    TypeEnumCat3 AttrEnumCFGCategory3;
    
    boolean  AttrBoolCfgTraceFncInOut  { init = true; }
    boolean  AttrBoolCfgTraceDataIn  { init = true; }
    boolean  AttrBoolCfgTraceDataOut  { init = true; }
    boolean  AttrBoolCfgTraceProgress  { init = true; }
    boolean  AttrBoolCfgTraceDetail  { init = true; }
    boolean  AttrBoolCfgTraceStep  { init = true; }
    boolean  AttrBoolCfgTraceException  { init = true; }
  }

  extend class COOSYSTEM@1.1:CurrentDomain  
  {
    ObjClassEventAuditConfig AttrPtrEventAuditConfig  { 
      allow 
      {
        ObjClassEventAuditConfig create;
      }
    }
  }

  /**
   * Konfigurácia auditu udalostí
   */
  class<COOSYSTEM@1.1:CompoundObjectClass> ObjClassEventAuditConfig : COOSYSTEM@1.1:CompoundObject 
  {
    compound = false;

    TypeEnumEventAuditLevel AttrEnumEventAuditLevel  not null { init = EnumEventAuditLevelBasic; }
        
    boolean AttrBoolXMLLogEnable;
    string AttrStrEventAuditTempPath;
    boolean AttrBoolDateSubdirectory { init = true; }

    boolean AttrBoolLogViewerEnable;
    string AttrStrDBHost;
    string(50) AttrStrDBUserName ;
    string AttrStrDBPassword ;
    string AttrStrLogViewPortalURL;

    TypeEnumDestLogStorage AttrEnumDestLogStorage not null { init = EnumDestLogStorageNonPersistent; }    
    
    integer AttrIntMQTimeout;
    boolean AttrBoolUseFailover;
    
    integer AttrIntInitialReconectDelay;
    integer AttrIntStartupReconectAttempts;
    
    integer AttrIntMaxReconectDelay;
    integer AttrIntMaxReconectAttempts;    
    
    boolean AttrBoolBackupConnection;
    boolean AttrBoolRandomReconnect;
    
    string AttrStrLogBrowserBackupPath;
    string[] AttrStrRecoveryPaths;
    
    boolean AttrBoolElasticEnable;		//Elastic
    
           
    TypeAggrCfgTraceLine[] AttrAggrCfgTraceLine
    {
      set = ActReloadCfgTraceLines;    
    }
    
    string AttrStrHTMLOddelovacFiles readonly(ui) 
    {
      COOATTREDIT@1.1:attrrepresentation<COOATTREDIT@1.1:uiaction,COOATTREDIT@1.1:controlargument,COOATTREDIT@1.1:uienviron> = {{CTRLText, "HTMLStringDef=true", UIENV_XML}}
      value = expression
       {
         string @ret="<table width='100%' bgcolor=#7092BE><tr><td><FONT color=white><CENTER><B>Logovanie do XML na disk</B></CENTER></font></td></tr></table>";
         @ret
       }
       get = AttrValueExprGet;
    }

    string AttrStrHTMLOddelovacAMQConnect readonly(ui) 
    {
      COOATTREDIT@1.1:attrrepresentation<COOATTREDIT@1.1:uiaction,COOATTREDIT@1.1:controlargument,COOATTREDIT@1.1:uienviron> = {{CTRLText, "HTMLStringDef=true", UIENV_XML}}
      value = expression
       {
         string @ret="<table width='100%' bgcolor=#7092BE><tr><td><FONT color=white><CENTER><B>ActiveMQ pripojenie</B></CENTER></font></td></tr></table>";
         @ret
       }
       get = AttrValueExprGet;
    }    
    
    string AttrStrHTMLOddelovacAMQConfig readonly(ui) 
    {
      COOATTREDIT@1.1:attrrepresentation<COOATTREDIT@1.1:uiaction,COOATTREDIT@1.1:controlargument,COOATTREDIT@1.1:uienviron> = {{CTRLText, "HTMLStringDef=true", UIENV_XML}}
      value = expression
       {
         string @ret="<table width='100%' bgcolor=#7092BE><tr><td><FONT color=white><CENTER><B>ActiveMQ konfigurácia</B></CENTER></font></td></tr></table>";
         @ret
       }
       get = AttrValueExprGet;
    }
       
    string AttrStrHTMLOddelovacAMQBackup readonly(ui) 
    {
      COOATTREDIT@1.1:attrrepresentation<COOATTREDIT@1.1:uiaction,COOATTREDIT@1.1:controlargument,COOATTREDIT@1.1:uienviron> = {{CTRLText, "HTMLStringDef=true", UIENV_XML}}
      value = expression
       {
         string @ret="<table width='100%' bgcolor=#7092BE><tr><td><FONT color=white><CENTER><B>ActiveMQ lokálna záloha</B></CENTER></font></td></tr></table>";
         @ret
       }
       get = AttrValueExprGet;
    }
    
    // Elastic
    string AttrStrHTMLOddelovacElasticsearch readonly(ui) 
    {
      COOATTREDIT@1.1:attrrepresentation<COOATTREDIT@1.1:uiaction,COOATTREDIT@1.1:controlargument,COOATTREDIT@1.1:uienviron> = {{CTRLText, "HTMLStringDef=true", UIENV_XML}}
      value = expression
       {
         string @ret="<table width='100%' bgcolor=#7092BE><tr><td><FONT color=white><CENTER><B>Elasticsearch</B></CENTER></font></td></tr></table>";
         @ret
       }
       get = AttrValueExprGet;
    }
    
  }
  
  /**
   * ObjClassCategoryGroup
   */
  class<COOSYSTEM@1.1:ObjectClass> ObjClassCategoryGroup : COOSYSTEM@1.1:Object 
  {
    compound = true;

    integer AttrIntCategoryCode;
    unique ObjClassCategoryGroup[] AttrPtrCatSubGroups; 

  }
  
     instance COOSYSTEM@1.1:Prototype TracePrototype {
    protoparameters<actparname, actpartype, actparmod, actparoptional, actparmultiple> = {
      {
        "category",    // COOSYSTEM@1.1:actparname
        INTEGER,    // COOSYSTEM@1.1:actpartype
        PARMOD_IN,    // COOSYSTEM@1.1:actparmod
        false,    // COOSYSTEM@1.1:actparoptional
        false    // COOSYSTEM@1.1:actparmultiple
      },
      {
        "granularity",    // COOSYSTEM@1.1:actparname
        INTEGER,    // COOSYSTEM@1.1:actpartype
        PARMOD_IN,    // COOSYSTEM@1.1:actparmod
        false,    // COOSYSTEM@1.1:actparoptional
        false    // COOSYSTEM@1.1:actparmultiple
      },
      {
        "caption",    // COOSYSTEM@1.1:actparname
        STRING,    // COOSYSTEM@1.1:actpartype
        PARMOD_IN,    // COOSYSTEM@1.1:actparmod
        false,    // COOSYSTEM@1.1:actparoptional
        false    // COOSYSTEM@1.1:actparmultiple
      }
    }
  }
  
     instance COOSYSTEM@1.1:Prototype TraceValuePrototype {
    protoparameters<actparname, actpartype, actparmod, actparoptional, actparmultiple> = {
      {
        "category",    // COOSYSTEM@1.1:actparname
        INTEGER,    // COOSYSTEM@1.1:actpartype
        PARMOD_IN,    // COOSYSTEM@1.1:actparmod
        false,    // COOSYSTEM@1.1:actparoptional
        false    // COOSYSTEM@1.1:actparmultiple
      },
      {
        "granularity",    // COOSYSTEM@1.1:actparname
        INTEGER,    // COOSYSTEM@1.1:actpartype
        PARMOD_IN,    // COOSYSTEM@1.1:actparmod
        false,    // COOSYSTEM@1.1:actparoptional
        false    // COOSYSTEM@1.1:actparmultiple
      },
      {
        "caption",    // COOSYSTEM@1.1:actparname
        STRING,    // COOSYSTEM@1.1:actpartype
        PARMOD_IN,    // COOSYSTEM@1.1:actparmod
        false,    // COOSYSTEM@1.1:actparoptional
        false    // COOSYSTEM@1.1:actparmultiple
      },
      {
        "value",    // COOSYSTEM@1.1:actparname
        null,    // COOSYSTEM@1.1:actpartype
        PARMOD_IN,    // COOSYSTEM@1.1:actparmod
        true,    // COOSYSTEM@1.1:actparoptional
        false    // COOSYSTEM@1.1:actparmultiple
      }
    }
  }
  
  // widget aggr
  struct TypeAggrWidget {
    string[] AttrStrSourceData;
    string[] AttrStrResultData;

    string AttrStrAuditLogID;
    string AttrStrMessageID;
    string AttrStrReferenceID;
    string AttrStrCorrelationID;
    TypeEnumEventLogLevel AttrEnumLogLevel;
    string AttrStrModulName;
    string AttrStrMethodName;
    string AttrStrUseCase;
    string AttrStrSourceSystem;
    string AttrStrExternalUser;
    string AttrStrCallTime;
    string AttrStrProgress;
    string AttrStrResultCode;
    string AttrStrResultDescription;
    string AttrStrDescription;
  }
  
  // Class for aggregate
  extend class Object {
    
    string AttrStrSearchText {
       weight = expression {
          return COOATTREDIT@1.1:HighlightType(HIGHLIGHTTYPE_SEARCH_TEXT);
        }
    }
    
    TypeAggrWidget[] AttrAggrSearchLines;  //vyhladane riadky agregatu
    TypeAggrWidget[] AttrAggrResultLines readonly(ui) { COODESK@1.1:attrmenu = MenuRootSearchResult; } // zobrazovane riadky agregatu 
    //string SearchDataName;
  }
  
}
Leave a Comment