Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.rse.ui.resources
Class TemporaryQSYSMember

java.lang.Object
  extended by com.ibm.etools.iseries.rse.ui.resources.TemporaryQSYSMember
All Implemented Interfaces:
IQSYSTemporaryStorage

public class TemporaryQSYSMember
extends Object
implements IQSYSTemporaryStorage


Field Summary
static String copyright
           
 
Fields inherited from interface com.ibm.etools.iseries.subsystems.qsys.resources.IQSYSTemporaryStorage
TEMP_STORAGE_PREFIX
 
Constructor Summary
TemporaryQSYSMember(QSYSEditableRemoteSourceFileMember edited)
          Constructor
 
Method Summary
 boolean copyToMember(String destMemberName)
          Copies the temporary storage object on top of the original source member, this method should be called only after create() method is executed successfully
 boolean create()
          Creates the temporary storage object on iSeries
 boolean delete()
          Deletes the temporary storage object from iSeries, this method should be called only after create() method is executed successfully
 String generateName()
          Generates a random name for this iSeries temporary storage object
 boolean uploadToISeries(IProgressMonitor monitor)
          Uploads the content from the local file to temporary storage object on iSeries, this method should be called only after create() method is executed successfully
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static String copyright
Constructor Detail

TemporaryQSYSMember

public TemporaryQSYSMember(QSYSEditableRemoteSourceFileMember edited)
Constructor

Parameters:
edited - iSeries source member we are about to save after it was edited
Method Detail

copyToMember

public boolean copyToMember(String destMemberName)
                     throws Exception
Description copied from interface: IQSYSTemporaryStorage
Copies the temporary storage object on top of the original source member, this method should be called only after create() method is executed successfully

Specified by:
copyToMember in interface IQSYSTemporaryStorage
Parameters:
destMemberName - Source member name
Returns:
Boolean depending on the outcome of the copy operation
Throws:
Exception

create

public boolean create()
               throws SystemMessageException,
                      QSYSEncapsulatedException
Description copied from interface: IQSYSTemporaryStorage
Creates the temporary storage object on iSeries

Specified by:
create in interface IQSYSTemporaryStorage
Returns:
Boolean depending on the outcome of the create operation
Throws:
SystemMessageException
QSYSEncapsulatedException

delete

public boolean delete()
               throws SystemMessageException,
                      QSYSEncapsulatedException
Description copied from interface: IQSYSTemporaryStorage
Deletes the temporary storage object from iSeries, this method should be called only after create() method is executed successfully

Specified by:
delete in interface IQSYSTemporaryStorage
Returns:
Boolean depending on the outcome of the delete operation
Throws:
SystemMessageException
QSYSEncapsulatedException

uploadToISeries

public boolean uploadToISeries(IProgressMonitor monitor)
                        throws Exception
Description copied from interface: IQSYSTemporaryStorage
Uploads the content from the local file to temporary storage object on iSeries, this method should be called only after create() method is executed successfully

Specified by:
uploadToISeries in interface IQSYSTemporaryStorage
Returns:
Boolean depending on the outcome of the upload operation
Throws:
Exception

generateName

public String generateName()
Description copied from interface: IQSYSTemporaryStorage
Generates a random name for this iSeries temporary storage object

Specified by:
generateName in interface IQSYSTemporaryStorage
Returns:
generated name String

Rational Developer for Power Systems Software
V7.6

Copyright 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.