Style Intelligence v12.0

inetsoft.sree
Class ArchiveEntry

java.lang.Object
  extended by inetsoft.sree.RepositoryEntry
      extended by inetsoft.sree.ArchiveEntry
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Comparable
Direct Known Subclasses:
CompositeArchiveEntry

public class ArchiveEntry
extends RepositoryEntry

Represents an archive entry in the replet repository.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.sree.RepositoryEntry
ALL, ARCHIVE, ARCHIVED_REPORTS, CHANGE_FOLDER_OPERATION, COMPOSITE_ARCHIVE, FILE, FOLDER, LIVE_REPORTS, PROTOTYPE_FOLDER, REMOVE_OPERATION, RENAME_OPERATION, REPLET, REPOSITORY_FOLDER, SNAPSHOTS, TRASHCAN, TRASHCAN_FOLDER, USER_FOLDERS, USERS_FOLDER, VIEWSHEET, VIEWSHEETS, WORKSHEET, WORKSHEET_FOLDER, WORKSHEETS
 
Constructor Summary
ArchiveEntry(String path)
          Create an archive entry.
ArchiveEntry(String path, int type, String owner)
          Create an archive entry.
ArchiveEntry(String path, String owner)
          Create an archive entry.
 
Method Summary
 boolean equals(Object obj)
          Check if equals another object.
 String getComment()
          Get the comment of the archive entry.
 Date getDate()
          Get the date of the archive entry.
 String getFileType()
          Get the file type of the archive entry.
 RepositoryEntry getParent()
          Get the parent entry of the repository entry.
 String getPrefix()
          Get the prefix of the archive entry.
 String getSuffix()
          Get the suffix of the archive entry.
 String getVersion()
          Get the version of the archive entry.
 int hashCode()
          Get the hash code value.
 boolean isCompositeArchive()
          Check if is a composite archive.
 boolean isVersionedArchive()
          Check if is a versioned archive entry.
 void parseAttributes(Element tag)
          Method to parse attributes.
 void parseContents(Element tag)
          Method to parse contents.
 void setComment(String comment)
          Set the comment of the archive entry.
 void setDate(Date date)
          Set the date of the archive entry.
 void setFileType(String ftype)
          Set the file type of the archive entry.
 void setVersion(String version)
          Set the version of the arcive entry.
 void setVersionedArchive(boolean versioned)
          Set versioned archive option.
 boolean supportsOperation(int operation)
          Check if supports an operation, which should be one of the predefined operation like RENAME_OPERATION, CHANGE_FOLDER_OPERATION, REMOVE_OPERATION, etc.
 String toString()
          Get the string representation.
 void writeAttributes(PrintWriter writer)
          Write attributes.
 void writeContents(PrintWriter writer)
          Write contents.
 
Methods inherited from class inetsoft.sree.RepositoryEntry
compareTo, getAssetEntry, getHtmlType, getLabel, getName, getOwner, getParentPath, getPath, getType, isArchive, isFolder, isMyReport, isReplet, isRoot, parseXML, setHtmlType, writeCDATA, writeXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ArchiveEntry

public ArchiveEntry(String path)
Create an archive entry.

Parameters:
path - the specified path.

ArchiveEntry

public ArchiveEntry(String path,
                    String owner)
Create an archive entry.

Parameters:
path - the specified path.
owner - the specified owner.

ArchiveEntry

public ArchiveEntry(String path,
                    int type,
                    String owner)
Create an archive entry.

Parameters:
path - the specified path.
type - the specified entry type.
owner - the specified owner.
Method Detail

supportsOperation

public boolean supportsOperation(int operation)
Check if supports an operation, which should be one of the predefined operation like RENAME_OPERATION, CHANGE_FOLDER_OPERATION, REMOVE_OPERATION, etc.

Overrides:
supportsOperation in class RepositoryEntry
Parameters:
operation - the specified operation.
Returns:
true if supports the operation, false otherwise.

setVersionedArchive

public void setVersionedArchive(boolean versioned)
Set versioned archive option.

Parameters:
versioned - true if is a versioned archive entry, false otherwise.

isVersionedArchive

public boolean isVersionedArchive()
Check if is a versioned archive entry.

Returns:
true if is a versioned archive entry, false otherwise.

setVersion

public void setVersion(String version)
Set the version of the arcive entry.

Parameters:
version - the specified version.

getVersion

public String getVersion()
Get the version of the archive entry.

Returns:
the version of the archive entry.

setDate

public void setDate(Date date)
Set the date of the archive entry.

Parameters:
date - the specified date.

getDate

public Date getDate()
Get the date of the archive entry.

Returns:
the date of the archive entry.

setComment

public void setComment(String comment)
Set the comment of the archive entry.

Parameters:
comment - the specified comment.

getComment

public String getComment()
Get the comment of the archive entry.

Returns:
the comment of the archive entry.

setFileType

public void setFileType(String ftype)
Set the file type of the archive entry.

Parameters:
ftype - the specified file type.

getFileType

public String getFileType()
Get the file type of the archive entry.

Returns:
the file type of the archive entry.

isCompositeArchive

public boolean isCompositeArchive()
Check if is a composite archive.

Returns:
true if yes, false otherwise.

getParent

public RepositoryEntry getParent()
Get the parent entry of the repository entry.

Overrides:
getParent in class RepositoryEntry
Returns:
the parent entry of the repository entry.

getPrefix

public String getPrefix()
Get the prefix of the archive entry.

Returns:
the prefix of the archive entry.

getSuffix

public String getSuffix()
Get the suffix of the archive entry.

Returns:
the suffix of the archive entry.

toString

public String toString()
Get the string representation.

Overrides:
toString in class RepositoryEntry
Returns:
the string representation.

equals

public boolean equals(Object obj)
Check if equals another object.

Overrides:
equals in class RepositoryEntry
Parameters:
obj - the specified object.
Returns:
true if equals another object, false otherwise.

hashCode

public int hashCode()
Get the hash code value.

Overrides:
hashCode in class RepositoryEntry
Returns:
the hash code value.

writeAttributes

public void writeAttributes(PrintWriter writer)
Write attributes.

Overrides:
writeAttributes in class RepositoryEntry
Parameters:
writer - the destination print writer.

parseAttributes

public void parseAttributes(Element tag)
                     throws Exception
Method to parse attributes.

Overrides:
parseAttributes in class RepositoryEntry
Throws:
Exception

writeContents

public void writeContents(PrintWriter writer)
Write contents.

Overrides:
writeContents in class RepositoryEntry
Parameters:
writer - the destination print writer.

parseContents

public void parseContents(Element tag)
                   throws Exception
Method to parse contents.

Overrides:
parseContents in class RepositoryEntry
Throws:
Exception

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