Style Intelligence v12.0

inetsoft.sree
Class TrashcanEntry

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

public class TrashcanEntry
extends RepositoryEntry

Represents an trshcan 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
TrashcanEntry(String path)
          Create an trashcan entry.
TrashcanEntry(String path, String owner)
          Create an trashcan entry.
 
Method Summary
 ArchiveEntry getArchiveEntry()
          Get archive entry.
 String getName()
          Get the name of the trashcan entry.
 RepositoryEntry getParent()
          Get the parent entry of the trashcan entry.
 String getParentPath()
          Get the parent path of the trashcan entry.
 boolean isFolder()
          Check if is a folder.
 void parseAttributes(Element tag)
          Method to parse attributes.
 void parseContents(Element tag)
          Method to parse contents.
 void setArchiveEntry(ArchiveEntry archiveEntry)
          Set archive entry.
 void setFolder(boolean folder)
          Set folder.
 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 writeAttributes(PrintWriter writer)
          Write attributes.
 void writeContents(PrintWriter writer)
          Write contents.
 
Methods inherited from class inetsoft.sree.RepositoryEntry
compareTo, equals, getAssetEntry, getHtmlType, getLabel, getOwner, getPath, getType, hashCode, isArchive, isMyReport, isReplet, isRoot, parseXML, setHtmlType, toString, writeCDATA, writeXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TrashcanEntry

public TrashcanEntry(String path)
Create an trashcan entry.

Parameters:
path - the specified path.

TrashcanEntry

public TrashcanEntry(String path,
                     String owner)
Create an trashcan 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 RepositoryEntry
Parameters:
operation - the specified operation.
Returns:
true if supports the operation, false otherwise.

getName

public String getName()
Get the name of the trashcan entry.

Overrides:
getName in class RepositoryEntry
Returns:
the name of the trashcan entry.

getParent

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

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

getParentPath

public String getParentPath()
Get the parent path of the trashcan entry.

Overrides:
getParentPath in class RepositoryEntry
Returns:
the parent path of the trashcan entry.

getArchiveEntry

public ArchiveEntry getArchiveEntry()
Get archive entry.

Returns:
archive entry.

setArchiveEntry

public void setArchiveEntry(ArchiveEntry archiveEntry)
Set archive entry.

Parameters:
archiveEntry - the specified archive entry.

isFolder

public boolean isFolder()
Check if is a folder.

Overrides:
isFolder in class RepositoryEntry
Returns:
true if yes, false otherwise.

setFolder

public void setFolder(boolean folder)
Set folder.


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.