Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.remotebuild
Class RBSaveFile

java.lang.Object
  extended by com.ibm.etools.iseries.remotebuild.RBResource
      extended by com.ibm.etools.iseries.remotebuild.RBQSYSResource
          extended by com.ibm.etools.iseries.remotebuild.RBFile
              extended by com.ibm.etools.iseries.remotebuild.RBSaveFile

public class RBSaveFile
extends RBFile


Field Summary
static String Copyright
           
 
Fields inherited from class com.ibm.etools.iseries.remotebuild.RBResource
G_BINARYOBJECT, G_LIBRARY, G_MEMBER, G_PROJECT, G_SAVEFILE, G_SOURCEFILE, G_UNKNOWN, NS_LOCAL, NS_NETWORK, NS_QSYS, NS_UNKNOWN, RB_QUALIFIER
 
Constructor Summary
RBSaveFile(AbstractISeriesNativeObject resource)
          Constructs an RBResource from a model resource.
RBSaveFile(String name, long localStamp, long targetStamp)
          Constructs an RBSourceFile from its metadata.
 
Method Summary
 RBStatus checkContentsOn(RBSystem system)
          Checks the contents on the remote system for conflict with this member.
 RBStatus createOn(RBSystem system)
          Pushes a creation of a save file to the target system from a file resource.
 boolean existsOn(RBSystem system)
          Tests for existence of files on a target system.
 List getAllProperties()
          Returns a set of all the property names this resource.
 String getDescription()
           
 int getGender()
          Returns the gender of this resource.
 String getIFSName()
          Returns the IFS name of the object from the path.
 Collection<String> getModifiedProperties(com.ibm.etools.iseries.projects.internal.snapshots.SnapshotRecord sr)
           
 String getName()
          Need to remove the extension for operation on remote commands.
 String getSnapshotType()
          Returns the tag name for this resource.
 RBStatus pushContentsTo(RBSystem system)
          Pushes the contents of a save file to the target system.
 RBStatus pushPropertiesTo(RBSystem system, Collection properties)
          Pushes the attributes of a save file to the target system from a file resource.
 
Methods inherited from class com.ibm.etools.iseries.remotebuild.RBFile
checkName, getObjectName, getProjectRelativePath, getQSYSName, getQualifiedName, getSimpleObjectType
 
Methods inherited from class com.ibm.etools.iseries.remotebuild.RBQSYSResource
getLibraryName, getNameSpace, getObjectType, getShortKey
 
Methods inherited from class com.ibm.etools.iseries.remotebuild.RBResource
accept, addChild, attach, checkAuthorities, checkExistence, checkPropertiesOn, checkProperty, clearMark, clearMarks, copy, findResource, getAdapter, getAncestors, getBaseResource, getCCSID, getChild, getChildren, getCompanion, getContext, getDBCS, getDescendents, getHome, getHome, getKeyPath, getLocalStamp, getLocation, getLongKey, getModelChildren, getModelParent, getModelProject, getModelProperty, getModelResource, getNumberOfChildren, getParent, getPersistentProperty, getProject, getProjectProperty, getPropertiesModel, getRecordLength, getRemoteName, getResourcePath, getSessionProperty, getSourceType, getSystem, getSystemName, getTargetStamp, hasChildren, hasContents, hasContext, hashCode, hasMark, isEquivalentTo, isHome, isLocal, isMarked, isProject, isRemote, isSnapshot, makeFrom, makeFrom, makeFrom, pushPropertiesTo, pushSourceTypeTo, qualify, removeChild, saveModelProperties, setCompanion, setContext, setLocalStamp, setMark, setModelProperty, setName, setPersistentProperty, setProjectProperty, setSessionProperty, setSourceType, setTargetStamp, synchronize, toString, updateFrom, wasCreated, wasDeleted, wasModified
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

RBSaveFile

public RBSaveFile(AbstractISeriesNativeObject resource)
Constructs an RBResource from a model resource.


RBSaveFile

public RBSaveFile(String name,
                  long localStamp,
                  long targetStamp)
Constructs an RBSourceFile from its metadata.

Method Detail

getGender

public int getGender()
Returns the gender of this resource.

Specified by:
getGender in class RBResource

getSnapshotType

public String getSnapshotType()
Returns the tag name for this resource.

Specified by:
getSnapshotType in class RBResource

createOn

public RBStatus createOn(RBSystem system)
Pushes a creation of a save file to the target system from a file resource. Save files can only be created with their contents. An empty save file cannot be created.

Specified by:
createOn in class RBResource

pushContentsTo

public RBStatus pushContentsTo(RBSystem system)
Pushes the contents of a save file to the target system. Modification of a save file will normally destroy it. It can safely be modified only if the contents are binary copied from another save file.

Overrides:
pushContentsTo in class RBResource

pushPropertiesTo

public RBStatus pushPropertiesTo(RBSystem system,
                                 Collection properties)
Pushes the attributes of a save file to the target system from a file resource.

Overrides:
pushPropertiesTo in class RBResource

getModifiedProperties

public Collection<String> getModifiedProperties(com.ibm.etools.iseries.projects.internal.snapshots.SnapshotRecord sr)
Specified by:
getModifiedProperties in class RBResource

getAllProperties

public List getAllProperties()
Description copied from class: RBResource
Returns a set of all the property names this resource. If there are no properties this list will be empty.

Specified by:
getAllProperties in class RBResource

getDescription

public String getDescription()
Overrides:
getDescription in class RBResource
Returns:
the text description for this resource. This is null unless the resource supports descriptions. Should be overridden by subclasses that support descriptions.

getName

public String getName()
Need to remove the extension for operation on remote commands.

Overrides:
getName in class RBResource
See Also:
RBFile.getObjectName()

existsOn

public boolean existsOn(RBSystem system)
Description copied from class: RBFile
Tests for existence of files on a target system.

Overrides:
existsOn in class RBFile
See Also:
RBFile.existsOn(RBSystem)

checkContentsOn

public RBStatus checkContentsOn(RBSystem system)
Checks the contents on the remote system for conflict with this member.

Overrides:
checkContentsOn in class RBResource

getIFSName

public String getIFSName()
Description copied from class: RBFile
Returns the IFS name of the object from the path. Returns the empty string if the path is not in an IFS name space or if the name is not well-formed.

Overrides:
getIFSName in class RBFile

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.