Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/flexstor/remote/script/ScriptServiceRecord.java


1   /*
2    * ScriptServiceRecord.java
3    *
4    * Copyright $Date: 2003/08/11 02:22:36 $ FLEXSTOR.net Inc.
5    *
6    * This work is licensed for use and distribution under license terms found at
7    * http://www.flexstor.org/license.html
8    *
9    */
10  
11  package com.flexstor.remote.script;
12  
13  import java.util.Hashtable;
14  
15  import com.flexstor.common.data.ejb.disguiserecord.DisguiseAssetRecordData;
16  
17  /**
18   * ScriptServiceRecord
19   * Holds an instance of an Asset and a Hashtable
20   * This class is used two ways:
21   * 1) When an importData object arrives in the run method a Hashtable of ScriptServiceRecords
22   *    is created, so when a specific asset is needed, it can be obtained by it's filename.
23   *    As this hashtable is created, each asset has it's own set of data (filename, roleid etc...)
24   *    This data is stored in a hashtable as key value pairs (as would be written to RemoteScript.in)
25   *    The hashtable is stored in this object along with an instance of it's associated Asset.
26   *
27   * 2) While RemoteScript.out is being read and processed, the key value pairs are stored in a Hashtable
28   *    In the event that an Asset has embedded assets in this file, a reference to the Parent asset, 
29   *    and it's data need to be temporarily stored.  This is done by creating one of these objects
30   *    and adding it to a Vector (FIFO)
31   */
32  
33  
34  public class ScriptServiceRecord 
35  {
36      DisguiseAssetRecordData anAsset = null;
37      Hashtable assetData = null;
38      String sSectionHeader;
39  //    Vector vChildren = null;
40      
41      ScriptServiceRecord(Hashtable data, DisguiseAssetRecordData asset)
42      { 
43           anAsset = asset;
44           assetData = data;
45      }
46      
47      public Hashtable getData()
48      {
49           return assetData;
50      }
51         
52      public DisguiseAssetRecordData getAsset()
53      {
54           return anAsset;
55      }
56      
57      public String getSectionHeader()
58      {
59        return sSectionHeader; 
60      }
61      
62      public void setSectionHeader(String header)
63      {
64        sSectionHeader = header;
65      }
66      
67  //    public void addChild(DisguiseAssetRecordData
68  }