Style Intelligence v12.0

inetsoft.sree.store
Class DateArchiveRule

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

public class DateArchiveRule
extends ArchiveRule

This class defines the archive rule:: delete report after specified date.

See Also:
Serialized Form

Constructor Summary
DateArchiveRule(Date date)
          Constructor.
DateArchiveRule(int year, int month, int day)
          Constructor.
 
Method Summary
 String getArchiveRuleString()
          Get the formatted string representation.
 Date getDate()
          Get the date.
 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

DateArchiveRule

public DateArchiveRule(Date date)
Constructor.

Parameters:
date - the date this archive rule will wrap.

DateArchiveRule

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

Parameters:
year - the specific year.
month - the specific month.
day - the specific day.
Method Detail

getDate

public Date getDate()
Get the date.


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.