Style Intelligence v12.0

inetsoft.sree.store
Class AgeArchiveRule

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

public class AgeArchiveRule
extends ArchiveRule

This class defines the archive rule:: delete report older than specified age.

See Also:
Serialized Form

Constructor Summary
AgeArchiveRule(int year, int month, int day)
          Constructor.
 
Method Summary
 String getArchiveRuleString()
          Get the formatted string representation.
 int getDays()
          Get the days.
 int getMonths()
          Get the months.
 int getYears()
          Get the years.
 void process(ReportArchive archive, String path)
          Process this archive rule.
 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

AgeArchiveRule

public AgeArchiveRule(int year,
                      int month,
                      int day)
Constructor.

Parameters:
year - the number of year.
month - the number of month.
day - the number of day.
Method Detail

getYears

public int getYears()
Get the years.

Returns:
the years.

getMonths

public int getMonths()
Get the months.

Returns:
the months.

getDays

public int getDays()
Get the days.

Returns:
the days.

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

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.