Style Intelligence v12.0

inetsoft.sree.store
Class VersionArchiveRule

java.lang.Object
  extended by inetsoft.sree.store.ArchiveRule
      extended by inetsoft.sree.store.VersionArchiveRule
All Implemented Interfaces:
Serializable

public class VersionArchiveRule
extends ArchiveRule

This class defines the archive rule:: delete report more than specified version.

See Also:
Serialized Form

Constructor Summary
VersionArchiveRule(int version)
          Constructor.
 
Method Summary
 String getArchiveRuleString()
          Get the formatted string representation.
 int getVersions()
          Get the version.
 void process(ReportArchive archive, String path)
          Process this archive rule.
 void processFile(ReportArchive archive, String path)
          Process an archive file.
 String toString()
          Get the string representation.
 void writeXML(PrintWriter writer)
          Write itself as XML stream.
 
Methods inherited from class inetsoft.sree.store.ArchiveRule
createArchiveRule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionArchiveRule

public VersionArchiveRule(int version)
Constructor.

Parameters:
version - the version number.
Method Detail

getVersions

public int getVersions()
Get the version.

Returns:
the version of the rule.

process

public void process(ReportArchive archive,
                    String path)
             throws ArchiveException
Process this archive rule.

Specified by:
process in class ArchiveRule
Parameters:
archive - report archive.
path - report path.
Throws:
ArchiveException

processFile

public void processFile(ReportArchive archive,
                        String path)
Process an archive file.


writeXML

public void writeXML(PrintWriter writer)
Write itself as XML stream.

Specified by:
writeXML in class ArchiveRule

getArchiveRuleString

public String getArchiveRuleString()
Get the formatted string representation.

Specified by:
getArchiveRuleString in class ArchiveRule
Returns:
the formatted string representation.

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.