com.tivoli.twg.SoftwarePackageEditor
Class TWGSwPackage

java.lang.Object
  extended bycom.tivoli.twg.SoftwarePackageEditor.TWGSwPackage

Deprecated. As of Director 3.1, replaced by the package com.tivoli.twg.SoftwarePackageEditor.pkg

public class TWGSwPackage
extends java.lang.Object

Class to serve as a generic representation of a custom package


Field Summary
protected  FileSource _fileSource
          Deprecated.  
static int NO_REBOOT
          Deprecated.  
static int REBOOT
          Deprecated.  
static int RESTART
          Deprecated.  
static int WIN9X_PLATFORM
          Deprecated.  
static int WINNT_PLATFORM
          Deprecated.  
 
Constructor Summary
TWGSwPackage()
          Deprecated. Constructs a empty software package
TWGSwPackage(FileSource fs)
          Deprecated. Constructs an empty package thats file come from the given file source
 
Method Summary
 void addFile(java.lang.String source, java.lang.String dest)
          Deprecated. Adds a file to the package.
 void addFiles(java.lang.String[] source, java.lang.String[] dest)
          Deprecated. Adds a list of files to the package
 boolean addOSAsTarget(int os)
          Deprecated. Adds the OS as a target
 PkgFileEntry[] getFiles()
          Deprecated. Returns an array of the file entries in this package
 FileSource getFileSource()
          Deprecated. Get file source.
 int getMinimumDiskSpace()
          Deprecated. Get minimum required disk space
 int getMinimumMemory()
          Deprecated. Get the minimum memory needed for this package
 java.lang.String getName()
          Deprecated. Get the name of the package for display
 int getOSRebootOption(int os)
          Deprecated. Gets the reboot option for the given os
 java.lang.String getOSRoot(int os)
          Deprecated. Gets the root path for the specified os
 int getOSTargets()
          Deprecated. Gets the bitmask of the target operating systems
 java.lang.String getPostExecutable(int os)
          Deprecated. Gets the executable to run after installing the package
 java.lang.String getPreExecutable(int os)
          Deprecated. Gets the executable to run before installing the package
protected  TWGPackageDefinition getUnderlyingDefinition()
          Deprecated.  
 boolean isPreExecutableOnTarget(int os)
          Deprecated. Is the pre executable supposed to be on the source system
 boolean isStreamingForced()
          Deprecated. Get whether or not we force streaming
 boolean isWebRequestable()
          Deprecated. Is this package web requestable??
 boolean removeOSAsTarget(int os)
          Deprecated. Removes an os as a target for this package
 boolean setFileSource(FileSource fs)
          Deprecated. Set file source.
 void setForcedStreaming(boolean stream)
          Deprecated. Set if we should force streaming on this package
 void setMinimumDiskSpace(int size)
          Deprecated. Set the minimum disk space required.
 void setMinimumMemory(int mem)
          Deprecated. Set minimum memory requirement
 void setName(java.lang.String name)
          Deprecated. Sets the name of the package for display on the console
 boolean setOSRebootOption(int rbOpt, int os)
          Deprecated. Sets the reboot option for the given OS
 boolean setOSRoot(java.lang.String rootPath, int os)
          Deprecated. Sets the root path for files on the given OS
 boolean setPostExecutable(java.lang.String ex, int os)
          Deprecated. Sets the executable to run after installing the package
 boolean setPreExecutable(java.lang.String ex, boolean onTarget, int os)
          Deprecated. Sets the executable to run before installing the package
 void setWebRequestable(boolean requestable)
          Deprecated. Sets if the package is web requestable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WIN9X_PLATFORM

public static final int WIN9X_PLATFORM
Deprecated. 

WINNT_PLATFORM

public static final int WINNT_PLATFORM
Deprecated. 

NO_REBOOT

public static final int NO_REBOOT
Deprecated. 
See Also:
Constant Field Values

REBOOT

public static final int REBOOT
Deprecated. 

RESTART

public static final int RESTART
Deprecated. 

_fileSource

protected FileSource _fileSource
Deprecated. 
Constructor Detail

TWGSwPackage

public TWGSwPackage()
Deprecated. 
Constructs a empty software package


TWGSwPackage

public TWGSwPackage(FileSource fs)
Deprecated. 
Constructs an empty package thats file come from the given file source

Parameters:
fs - The file source to get the packages files from.
Method Detail

getFileSource

public FileSource getFileSource()
Deprecated. 
Get file source.

Returns:
The source of the files to be put in this package

setFileSource

public boolean setFileSource(FileSource fs)
Deprecated. 
Set file source.

Parameters:
fs - The source of the files to be put in this package
Returns:
false if the file source has already been set or this one is invalid.

addFile

public void addFile(java.lang.String source,
                    java.lang.String dest)
             throws java.io.IOException
Deprecated. 
Adds a file to the package.

Parameters:
source - The source files path. Should be absolute.
dest - The path of this file on the target file system. Should be a relative path (relative to the diectore specified as the OS Root)
Throws:
java.io.IOException - thrown if the file source is inaccessible or has not been set

addFiles

public void addFiles(java.lang.String[] source,
                     java.lang.String[] dest)
              throws java.io.IOException,
                     java.lang.IllegalArgumentException
Deprecated. 
Adds a list of files to the package

Parameters:
source - the source paths of the files to be added. This should be an absolute path.
dest - The paths the files should be placed in on the target system. This should be a path relative to the OS root.
Throws:
java.io.IOException - thrown if the file source is inaccessible or has not been set
java.lang.IllegalArgumentException - thrown if the arrays are of different sizes

getFiles

public PkgFileEntry[] getFiles()
Deprecated. 
Returns an array of the file entries in this package

Returns:
an array of file entries

setName

public void setName(java.lang.String name)
Deprecated. 
Sets the name of the package for display on the console

Parameters:
name - the name of the package

getName

public java.lang.String getName()
Deprecated. 
Get the name of the package for display

Returns:
the name of the package

setWebRequestable

public void setWebRequestable(boolean requestable)
Deprecated. 
Sets if the package is web requestable


isWebRequestable

public boolean isWebRequestable()
Deprecated. 
Is this package web requestable??


setForcedStreaming

public void setForcedStreaming(boolean stream)
Deprecated. 
Set if we should force streaming on this package


isStreamingForced

public boolean isStreamingForced()
Deprecated. 
Get whether or not we force streaming


setMinimumMemory

public void setMinimumMemory(int mem)
Deprecated. 
Set minimum memory requirement

Parameters:
mem - the minimum memory in megabytes

getMinimumMemory

public int getMinimumMemory()
Deprecated. 
Get the minimum memory needed for this package

Returns:
the minimum required memory in megabytes

setMinimumDiskSpace

public void setMinimumDiskSpace(int size)
Deprecated. 
Set the minimum disk space required.

Parameters:
size - The minimum required free disk space in megabytes.

getMinimumDiskSpace

public int getMinimumDiskSpace()
Deprecated. 
Get minimum required disk space

Returns:
the minimum required disk space in megabytes.

addOSAsTarget

public boolean addOSAsTarget(int os)
Deprecated. 
Adds the OS as a target

Parameters:
os - the OS id
Returns:
false if this is an unknown OS id

removeOSAsTarget

public boolean removeOSAsTarget(int os)
Deprecated. 
Removes an os as a target for this package

Parameters:
os - the OS id
Returns:
false if this is an unknown OS id

getOSTargets

public int getOSTargets()
Deprecated. 
Gets the bitmask of the target operating systems

Returns:
a bitmask representing the target os

setOSRoot

public boolean setOSRoot(java.lang.String rootPath,
                         int os)
Deprecated. 
Sets the root path for files on the given OS

Parameters:
rootPath - the directory to place all files under on this OS
os - the ID of this OS
Returns:
false if this is an unrecognized os ID

getOSRoot

public java.lang.String getOSRoot(int os)
Deprecated. 
Gets the root path for the specified os

Parameters:
os - the os to get the root target for
Returns:
the target path, or null if this is not set or this is an invalid os

setOSRebootOption

public boolean setOSRebootOption(int rbOpt,
                                 int os)
Deprecated. 
Sets the reboot option for the given OS

Parameters:
rbOpt - reboot option
os - the OS id
Returns:
false if this is an unknown os id or this option is not supported on this os

getOSRebootOption

public int getOSRebootOption(int os)
Deprecated. 
Gets the reboot option for the given os

Parameters:
os - the os to get the reboot option for
Returns:
the reboot option for the specified os or -1 if it is an ivalid os or a unsupported option

setPreExecutable

public boolean setPreExecutable(java.lang.String ex,
                                boolean onTarget,
                                int os)
Deprecated. 
Sets the executable to run before installing the package

Parameters:
ex - the name of the executable to run
onTarget - does this file exist on the target system
os - the id of the target os
Returns:
false if this is an invalid os id, or this option is not supported for this os

getPreExecutable

public java.lang.String getPreExecutable(int os)
Deprecated. 
Gets the executable to run before installing the package

Parameters:
os - the id of the os to get this for
Returns:
the name of the executable, or null if it is unspecified, this is an invalid os, or this option is not supported on the given os

isPreExecutableOnTarget

public boolean isPreExecutableOnTarget(int os)
Deprecated. 
Is the pre executable supposed to be on the source system

Parameters:
os - the os to check this for
Returns:
true if it is, otherwise, false

setPostExecutable

public boolean setPostExecutable(java.lang.String ex,
                                 int os)
Deprecated. 
Sets the executable to run after installing the package

Parameters:
ex - the name of the executable to run
os - the id of the target os
Returns:
false if this is an invalid os id, or this option is not supported for this os

getPostExecutable

public java.lang.String getPostExecutable(int os)
Deprecated. 
Gets the executable to run after installing the package

Parameters:
os - the id of the os to get this for
Returns:
the name of the executable, or null if it is unspecified, this is an invalid os, or this option is not supported on the given os

getUnderlyingDefinition

protected TWGPackageDefinition getUnderlyingDefinition()
Deprecated.