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

Quick Search    Search Deep

com.flexstor.common.data
Class ActionData  view ActionData download ActionData.java

java.lang.Object
  extended bycom.flexstor.common.data.ejb.Data
      extended bycom.flexstor.common.data.KeyedCollectionData
          extended bycom.flexstor.common.data.ActionData
All Implemented Interfaces:
com.flexstor.common.constants.ActionPropertiesI, java.io.Serializable

public class ActionData
extends KeyedCollectionData
implements com.flexstor.common.constants.ActionPropertiesI

A common data object used to send information among the client, the appserver and ejb server. ActionData contains a list of RecordData; which is the object containing all the values and properties for performing an operation in a bucket, element, asset or asset_role.


Field Summary
private  java.util.Date dServiceDate
           
private  boolean hold
           
private  com.flexstor.common.services.ServiceListenerI listener
           
private  int nSubTransId
           
private  int nTransId
           
private  java.util.Vector records
           
private  java.lang.String sServiceName
           
private  java.lang.String sUserId
           
 
Fields inherited from class com.flexstor.common.data.KeyedCollectionData
serialVersionUID
 
Fields inherited from class com.flexstor.common.data.ejb.Data
DELETE, DELETED, derived, htModifiedStates, htOptions, MODIFY, modTime, NEW_ENTRY, presentState, prevState, UNCHANGED, UPDATED, WARN_BEFORE_DELETE
 
Fields inherited from interface com.flexstor.common.constants.ActionPropertiesI
ACTION, ADD_TO_ASSETS_INPROCESS, APPLETALK_VENDOR, ARCHIVE_ID, BADFILES_HASHTABLE, BADRECORDS_VECTOR, CALLBACK_OBJECT, CHECKEDOUT_PATH, CHECKIN_DATETIME, CLASSIFIED, CONFIRM_TEXT, CONFIRMATION_DATA, CONVERSION_MODE, CONVERSION_TARGET, CONVERT_CONFIG_FILE, CUST_ID, CUSTOMIZED_PROCESS, DEFAULT_VIEW_ASSET, DEFAULT_VIEW_ASSET_ID, DELETE_DIRECTORY, DELETE_EMPTY_BUCKETS, DELETE_ORIGINAL, DESCRIPTION, DESTINATION_FILENAME, DESTINATION_LOCATION, DESTINATION_SERVER, DISK_SPACE_REQUIRED, DO_LOGIN, DUP_ARCHIVE_ID, EMAIL_ADDRESS, EMAIL_CC, EMAIL_MESSAGE, EMAIL_RETRY_COUNT, EMAIL_SENDER, EMAIL_SUBJECT, ERROR_HASHTABLE, FILE_GROUPID, FILE_LIST, FILE_PERMISSIONS, FILE_USERID, FILENAME, FILES_INPROGRESS, FILESIZE, FLEX_ARCH_ERROR, FTP_CREATE_DIRS, FTP_HOST_NAME, FTP_PASSWORD, FTP_REMOTE_DIR, FTP_TRANSFER_MODE, FTP_USER_NAME, GOODFILES_HASHTABLE, HELD_RECORDS, HOT_DIRECTORY, IS_FLAT_MODE, IS_LOCATION_IN_SERVER, IS_OVERWRITE, KEEP_LOWRES, KEEP_MACBINARIES, KEEP_RESOURCEFORK, LOCATION, LOWRESEXTRACT_TARGET, MACBINARY_FORMAT, MANUAL_DATA, MESSAGE_STRING, MODIFICATION_DATE, ORIGINAL_FILENAME, ORIGINAL_LOCATION, ORIGINAL_SERVER, PRESERVE_NAME, REGENERATE_THUMBNAIL, RESOLVE_LOOKUPS, RESOLVED_LOCATION, RESOURCEFORK_ACTION, RESTORE_LOCATION, RESTORE_ORIGINAL, RESTORE_SESSIONS, RESULT_STATUS, ROLE_ID, RSRC_ARCHIVE_ID, RSRC_DUP_ARCHIVE_ID, RSRC_FILE_LIST, SEND_ORIGINAL, SEND_SERVICE_TYPE, SERVER, SERVICE_DATE, SOURCE_FILENAME, SOURCE_FILESIZE, SOURCE_LOCATION, SOURCE_RECORD, SOURCE_SERVER, STEP_NUMBER, SYSTEM_USER_ID, SYSTEM_USER_PASSWORD, THREAD_GROUP_NAME, TPI_ERROR, UPDATE_STATUS, URL_STRING, USE_CONVERT_SERVICE, USE_EXTRACT_SERVICE, USE_ZIP_SERVICE, USER_ID, VECTOR_HOLDER, VERSION_FILENAME, VERSION_FILESIZE, VERSION_LOCATION, VERSION_NUMBER, VERSION_NUMBER_PREVIOUS, VERSION_SERVER, VOLUME_PATH, ZIP_FILENAME, ZIP_FILEPATH, ZIP_LOCATION
 
Constructor Summary
ActionData()
           
 
Method Summary
 void addRecord(RecordData record)
           
 void addRecords(java.util.Vector records)
           
 java.lang.Object clone()
          This method may be called to create a new copy of the Object.
 boolean deleteRecord(RecordData record)
           
protected  void fillCloneInfo(ActionData clone)
           
 java.util.Date getDate()
           
 com.flexstor.common.util.FlexHashtable getGlobalProperties()
           
 int getNumberOfRecords()
           
 RecordData getRecordPerId(long id)
           
 java.util.Vector getRecords()
           
 com.flexstor.common.services.ServiceListenerI getServiceListener()
           
 java.lang.String getServiceName()
           
 java.lang.String getServiceThreadName()
           
 int getSubTransId()
           
 long getTime()
           
 int getTransId()
           
 java.lang.String getUserId()
           
 boolean isHeld()
           
 void setDate(java.util.Date dServiceDate)
           
 void setGlobalProperties(com.flexstor.common.util.FlexHashtable properties)
           
 void setRecords(java.util.Vector records)
           
 void setServiceListener(com.flexstor.common.services.ServiceListenerI listener)
           
 void setServiceName(java.lang.String sServiceName)
           
 void setSubTransId(int nSubTransId)
           
 void setTime(long time)
           
 void setTransId(int nTransId)
           
 void setUserId(java.lang.String sUserId)
           
 
Methods inherited from class com.flexstor.common.data.KeyedCollectionData
getBoolean, getDate, getInteger, getKeyedCollection, getLong, getObject, getString, removeObject, setBoolean, setDate, setInteger, setKeyedCollection, setLong, setObject, setString
 
Methods inherited from class com.flexstor.common.data.ejb.Data
assertEquals, changed, fillCloneInfo, getDateModTime, getModTime, getPresentState, getPreviousState, initializeState, isDeleted, isDerived, isModified, isModified, isObjectPersist, isOptionAllowed, resetModifiedStates, rollBackState, setDeleted, setDerived, setModifiedState, setModTime, setModTime, setNewEntry, setOption, setPerisistState, setPreviousState, setState, setUpdated
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sUserId

private java.lang.String sUserId

nTransId

private int nTransId

nSubTransId

private int nSubTransId

sServiceName

private java.lang.String sServiceName

dServiceDate

private java.util.Date dServiceDate

hold

private boolean hold

listener

private com.flexstor.common.services.ServiceListenerI listener

records

private java.util.Vector records
Constructor Detail

ActionData

public ActionData()
Method Detail

setUserId

public void setUserId(java.lang.String sUserId)

getUserId

public java.lang.String getUserId()

setTransId

public void setTransId(int nTransId)

getTransId

public int getTransId()

setSubTransId

public void setSubTransId(int nSubTransId)

getSubTransId

public int getSubTransId()

getServiceName

public java.lang.String getServiceName()

setServiceName

public void setServiceName(java.lang.String sServiceName)

getServiceThreadName

public java.lang.String getServiceThreadName()

setDate

public void setDate(java.util.Date dServiceDate)

getDate

public java.util.Date getDate()

getTime

public long getTime()

setTime

public void setTime(long time)

isHeld

public boolean isHeld()

setServiceListener

public void setServiceListener(com.flexstor.common.services.ServiceListenerI listener)

getServiceListener

public com.flexstor.common.services.ServiceListenerI getServiceListener()

setRecords

public void setRecords(java.util.Vector records)

getRecords

public java.util.Vector getRecords()

getNumberOfRecords

public int getNumberOfRecords()

addRecord

public void addRecord(RecordData record)

addRecords

public void addRecords(java.util.Vector records)

deleteRecord

public boolean deleteRecord(RecordData record)

getRecordPerId

public RecordData getRecordPerId(long id)

setGlobalProperties

public void setGlobalProperties(com.flexstor.common.util.FlexHashtable properties)

getGlobalProperties

public com.flexstor.common.util.FlexHashtable getGlobalProperties()

clone

public java.lang.Object clone()
Description copied from class: java.lang.Object
This method may be called to create a new copy of the Object. The typical behavior is as follows:
  • o == o.clone() is false
  • o.getClass() == o.clone().getClass() is true
  • o.equals(o) is true

However, these are not strict requirements, and may be violated if necessary. Of the three requirements, the last is the most commonly violated, particularly if the subclass does not override Object.equals(Object)>Object.equals(Object) 55 .

If the Object you call clone() on does not implement java.lang.Cloneable (which is a placeholder interface), then a CloneNotSupportedException is thrown. Notice that Object does not implement Cloneable; this method exists as a convenience for subclasses that do.

Object's implementation of clone allocates space for the new Object using the correct class, without calling any constructors, and then fills in all of the new field values with the old field values. Thus, it is a shallow copy. However, subclasses are permitted to make a deep copy.

All array types implement Cloneable, and override this method as follows (it should never fail):

 public Object clone()
 {
   try
     {
       super.clone();
     }
   catch (CloneNotSupportedException e)
     {
       throw new InternalError(e.getMessage());
     }
 }
 


fillCloneInfo

protected void fillCloneInfo(ActionData clone)