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

Quick Search    Search Deep

Source code: com/flexstor/common/data/ejb/disguiserecord/ClientAssetRecordData.java


1   /*
2    * ClientAssetRecordData.java
3    *
4    * Copyright $Date: 2003/08/11 02:22:28 $ 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.common.data.ejb.disguiserecord;
12  
13  import java.util.Date;
14  
15  import com.flexstor.common.data.ejb.Data;
16  import com.flexstor.common.data.ejb.search.MultiValueData;
17  /**
18     AssetRecord receives its structure from AssetType.  It holds all records for a particluar asset.
19   */
20  public class ClientAssetRecordData
21     extends Data 
22  { 
23      static final long serialVersionUID = 6584550126300501087L;
24     /**
25      * The member data in a generic disguise order.
26      */
27     private MultiValueData[] mvData;
28  
29      private int nAssetId = -1;
30    private int nAssetRoleId = -1;
31  
32    /**
33       The ID of the parent of this asset.  Null if no parent exists (first genteration)
34     */
35    private int nHistoryId;
36  
37    /**
38     *  Currently checked out by user
39     */ 
40    private String sCheckedOut;
41    
42    private DisguiseAssetRecordData childAsset[];
43  
44  
45    /**
46       True if this is the initial  asset to be viewed by the client for the particular element.
47     */
48    private boolean bDefaultView;
49  
50    private AssetRoleData assetRole;
51  
52    /**
53       The vendor to create resource forks.  (Formerly OPI)
54     */
55    private int nAppleTalkVendor;
56    private long nFileSize;
57    private String sUserId;
58    private Date dReceived;
59    private Date dFileDate;
60    private String sFullTextSummary = null;
61    public AssetRoleData assetRoleData;
62    private String sVolumeName = null;
63      private boolean bPrimaryParent = false;  
64      private String sAssetNotes = null;
65      
66    public ClientAssetRecordData() 
67    {
68    }
69  
70      public MultiValueData[] getData()
71      {
72         return mvData;
73      }
74     
75     public void setData(MultiValueData[] data)
76     {
77        this.mvData = data;
78     }
79     
80     /**
81     * Set The identifier for this asset record
82     *
83     * @param int - identifier
84     */
85     public void setId( int id )
86     {
87        nAssetId = id;
88     }
89     
90     /**
91     * Set The identifier for this asset record
92     *
93     * @param int - identifier
94     */
95     public int getId()
96     {
97        return nAssetId;
98     }
99  
100   /**
101    * Get the role_id for this asset
102    *
103    * @return int - asset role id
104    */
105   public int getAssetRoleId() 
106   {
107      return nAssetRoleId;
108   }
109 
110   /**
111    * Set the role_id for this asset
112    *
113    * @param int - asset role id
114    */
115   public void setAssetRoleId(int assetRoleId) 
116   {
117       nAssetRoleId = assetRoleId;
118   }
119 
120   /**
121      @roseuid 37B4A97F0101
122    */
123   public int getHistoryId() 
124   {
125      return nHistoryId;
126   }
127 
128   /**
129      @roseuid 37B4A97F0102
130    */
131   public void setHistoryId(int historyId) 
132   {
133       nHistoryId = historyId;
134   }
135 
136   /**
137      @roseuid 37B4A97F0104
138    */
139   public boolean isCheckedOut() 
140   {
141      return ( sCheckedOut != null );
142   }
143 
144   /**
145      @roseuid 37B4A97F0105
146    */
147   public void setCheckedOut( String checkedOutStatus ) 
148   {
149       sCheckedOut = checkedOutStatus;
150   }
151 
152   /**
153      @roseuid 37B4A97F010A
154    */
155   public boolean isDefaultView() 
156   {
157      return bDefaultView;
158   }
159 
160   /**
161      @roseuid 37B4A97F010B
162    */
163   public void setDefaultView(boolean defaultView) 
164   {
165       bDefaultView = defaultView;
166   }
167 
168   /**
169      @roseuid 37B4A97F0113
170    */
171   public DisguiseAssetRecordData[] getChildAssets() 
172   {
173      return null;
174   }
175 
176   /**
177      @roseuid 37B4A97F0114
178    */
179   public void setChildAssets() {}
180 
181   /**
182      @roseuid 37B4A97F0115
183    */
184   public AssetRoleData getAssetRole() 
185   {
186      return null;
187   }
188 
189   /**
190      @roseuid 37B4A97F0116
191    */
192   public void setAssetRole(AssetRoleData assetRole) {}
193 
194   /**
195      Deletes the asset in index position
196      @roseuid 37B4A97F0118
197    */
198   public boolean deleteChildAsset(int index) 
199   {
200      return true;
201   }
202 
203   /**
204      @roseuid 37B4A97F011D
205    */
206   public int getAppleTalkVendor() 
207   {
208      return nAppleTalkVendor;
209   }
210 
211   /**
212      @roseuid 37B4A97F011E
213    */
214   public void setAppleTalkVendor(int nATVendor) 
215   {
216       nAppleTalkVendor = nATVendor;
217   }
218 
219   /**
220      @roseuid 37B4A97F0120
221    */
222   public long getFileSize()
223   {
224      return nFileSize;
225   }
226 
227   /**
228      @roseuid 37B4A97F0121
229    */
230   public void setFileSize(long nFileSize)
231   {
232       this.nFileSize = nFileSize;
233   }
234 
235   /**
236      @roseuid 37B4A97F0123
237    */
238   public String getUserId() 
239   {
240      return sUserId;
241   }
242 
243   /**
244      @roseuid 37B4A97F0124
245    */
246   public void setUserId(String sUserID) 
247   {
248       sUserId = sUserID;
249   }
250 
251   /**
252      @roseuid 37B4A97F0126
253    */
254   public Date getReceived() 
255   {
256      return dReceived;
257   }
258 
259   /**
260      @roseuid 37B4A97F0127
261    */
262   public void setReceived(Date dReceived) 
263   {
264       this.dReceived = dReceived;
265   }
266 
267   /**
268      @roseuid 37B4A97F0129
269    */
270   public Date getFileDate()
271   {
272      return dFileDate;
273   }
274   
275 
276   /**
277      @roseuid 37B4A97F012A
278    */
279   public void setFileDate(Date dFileDate) 
280   {
281         this.dFileDate = dFileDate;       
282   }
283 
284   /**
285      @roseuid 37B4A97F012C
286    */
287   public String getFullTextSummary() 
288   {
289      return sFullTextSummary;
290   }
291 
292   /**
293      @roseuid 37B4A97F012D
294    */
295   public void setFullTextSummary(String sSummary) 
296   {
297       sFullTextSummary = sSummary;
298   }
299   
300   /**
301   * Set the volume Name for this Asset
302   *
303   * @param String - Volume
304   */
305   public void setVolumeName( String sVolume )
306   {
307       sVolumeName = sVolume;
308   }
309 
310   /**
311   * Set the volume Name for this Asset
312   *
313   * @param String - Volume
314   */
315   public String getVolumeName()
316   {
317       return sVolumeName;
318   }
319 
320   /**
321   * Set the Asset Notes for this Asset
322   *
323   * @param String - Notes
324   */
325   public void setAssetNotes( String sNotes )
326   {
327       sAssetNotes = sNotes;
328   }
329 
330   /**
331   * Get the Asset Notes for this Asset
332   *
333   * @return String - Notes
334   */
335   public String getAssetNotes()
336   {
337       return sAssetNotes;
338   }
339 
340   /**
341   * Set the Primary Parent Boolean for this asset
342   *
343   * @param boolean - Is it a parent asset
344   */
345   public void setPrimaryParent( boolean bParent )
346   {
347       bPrimaryParent = bParent;
348   }
349 
350   /**
351   * Get the Primary Parent Boolean for this asset
352   *
353   * @return boolean - Is it a parent asset
354   */
355   public boolean isPrimaryParent()
356   {
357       return bPrimaryParent;
358   }
359 }