Style Intelligence v12.0

inetsoft.sree
Class CompositeArchiveEntry

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

public class CompositeArchiveEntry
extends ArchiveEntry
implements FolderEntry

Represents a composite archive entry in the replet repository, which contains multiple versioned archive entry, and it is a versioned archive entry as well.

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
CompositeArchiveEntry(String path)
          Create a composite archive entry.
CompositeArchiveEntry(String path, String owner)
          Create a composite archive entry.
 
Method Summary
 ArchiveEntry[] getArchiveEntries()
          Get sub archive entries of the composite archive entry.
 String getFileType()
          Get the file type of the archive entry.
 boolean isCompositeArchive()
          Check if is a composite archive.
 boolean isVersionedArchive()
          Check if is a versioned archive entry.
 void parseContents(Element tag)
          Method to parse contents.
 void setArchiveEntries(ArchiveEntry[] entries)
          Set sub archive entries of the composite archive 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.
 void writeContents(PrintWriter writer)
          Write contents.
 
Methods inherited from class inetsoft.sree.ArchiveEntry
equals, getComment, getDate, getParent, getPrefix, getSuffix, getVersion, hashCode, parseAttributes, setComment, setDate, setFileType, setVersion, toString, writeAttributes
 
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
 
Methods inherited from interface inetsoft.sree.FolderEntry
isRoot
 

Constructor Detail

CompositeArchiveEntry

public CompositeArchiveEntry(String path)
Create a composite archive entry.

Parameters:
path - the specified path.

CompositeArchiveEntry

public CompositeArchiveEntry(String path,
                             String owner)
Create a composite archive entry.

Parameters:
path - the specified path.
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 ArchiveEntry
Parameters:
operation - the specified operation.
Returns:
true if supports the operation, false otherwise.

setVersionedArchive

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

Overrides:
setVersionedArchive in class ArchiveEntry
Parameters:
versioned - true if is a versioned archive entry, false otherwise.

isVersionedArchive

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

Overrides:
isVersionedArchive in class ArchiveEntry
Returns:
true if is a versioned archive entry, false otherwise.

setArchiveEntries

public void setArchiveEntries(ArchiveEntry[] entries)
Set sub archive entries of the composite archive entry.

Parameters:
entries - the specified archive entries.

getArchiveEntries

public ArchiveEntry[] getArchiveEntries()
Get sub archive entries of the composite archive entry.

Returns:
sub achive entries.

isCompositeArchive

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

Overrides:
isCompositeArchive in class ArchiveEntry
Returns:
true if yes, false otherwise.

getFileType

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

Overrides:
getFileType in class ArchiveEntry
Returns:
the file type of the archive entry.

writeContents

public void writeContents(PrintWriter writer)
Write contents.

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

parseContents

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

Overrides:
parseContents in class ArchiveEntry
Throws:
Exception

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