synapsi.data
Class DataVersion


java.lang.Object

  |

  +--synapsi.data.DataInfo

        |

        +--synapsi.data.DataVersion


public class DataVersion
extends DataInfo

Class for storing the version. Version is a software package that contains one update packege for RoamMate Clients

See Also:
Serialized Form

Constructor Summary
protected DataVersion()
           
protected DataVersion(java.lang.String ID, java.lang.String fileName, java.lang.String version, java.lang.String os, byte[] MD5)
          Construct the version object with specified ID and path to update package
 
Method Summary
protected  void addClient(DataClient client)
          Add's the client to vector that tell's which clients are currently useing this version
protected  void addGroup(DataGroup group)
          Add's a new group for this dataversion The given group is currently useing this DataVersion object
 java.lang.String getId()
          Get the versions's Unique idstring
 byte[] getMD5()
          Retrieves the MD5 checksum for this version object
 java.lang.String getOs()
          Retrieves the target operating system for this version
 java.lang.String getPackage()
          Get's the location of the update package
 java.lang.String getVersion()
          Get the version number as string object
 boolean hasClients()
          Does this object still have clients that are useing this version
 boolean hasGroups()
          Does this object still have clients that are useing this version
 void printData()
          Print method for test purposes mainly.
protected  boolean removeClient(DataClient client)
          Client is no longer useing this version.
protected  boolean removeGroup(DataGroup group)
          Group is no longer useing this version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataVersion


protected DataVersion()

DataVersion


protected DataVersion(java.lang.String ID,
                      java.lang.String fileName,
                      java.lang.String version,
                      java.lang.String os,
                      byte[] MD5)
Construct the version object with specified ID and path to update package
Parameters:
ID - Unique ID string for this version
fileName - Location of the update package
version - The version number
os - The OS this version is inteded
MD5 - Package check sum
Method Detail

addClient


protected void addClient(DataClient client)
Add's the client to vector that tell's which clients are currently useing this version
Parameters:
client - client that is useing this version

removeClient


protected boolean removeClient(DataClient client)
Client is no longer useing this version. So it removed
Parameters:
client - to be removed
Returns:
status specifying wheather removing was successful

addGroup


protected void addGroup(DataGroup group)
Add's a new group for this dataversion The given group is currently useing this DataVersion object
Parameters:
group - that is this dataVersion

removeGroup


protected boolean removeGroup(DataGroup group)
Group is no longer useing this version. So it removed
Parameters:
group - to be removed
Returns:
status specifying wheather removing was successful

hasClients


public boolean hasClients()
Does this object still have clients that are useing this version
Returns:
is there any clients with this version

hasGroups


public boolean hasGroups()
Does this object still have clients that are useing this version
Returns:
is there any clients with this version

getId


public java.lang.String getId()
Get the versions's Unique idstring
Returns:
the unique id string

getPackage


public java.lang.String getPackage()
Get's the location of the update package
Returns:
location where the update package resides in this machine

getOs


public java.lang.String getOs()
Retrieves the target operating system for this version
Returns:
OS as a string

getVersion


public java.lang.String getVersion()
Get the version number as string object
Returns:
the String object

getMD5


public byte[] getMD5()
Retrieves the MD5 checksum for this version object
Returns:
Message digest in byte array

printData


public void printData()
Print method for test purposes mainly.