Style Intelligence v12.0

inetsoft.uql.asset
Class ReportEntry

java.lang.Object
  extended by inetsoft.uql.asset.ReportEntry
All Implemented Interfaces:
AssetObject, inetsoft.util.XMLSerializable, Serializable, Cloneable
Direct Known Subclasses:
ServerReportEntry

public class ReportEntry
extends Object
implements AssetObject

Report entry locates a report sheet.

See Also:
Serialized Form

Field Summary
static int DATA_SPACE_REPORT
          Data space report.
static String EDITING
          Editing report.
static int FILE_REPORT
          File report.
static int RESOURCE_REPORT
          Resource report.
static int UNKNOWN_REPORT
          Unknown report.
static int URL_REPORT
          URL report.
 
Constructor Summary
ReportEntry()
          Constructor.
ReportEntry(String path, String user)
          Constructor.
ReportEntry(String path, String user, String alias)
          Constructor.
 
Method Summary
 Object clone()
          Clone this object.
 boolean containsAssetEntry(AssetEntry entry)
          Check if contains an asset entry pattern.
 boolean equals(Object obj)
          Check if equals another object.
 String getAlias()
          Get the alias.
 AssetEntry[] getContainedAssetEntries()
          Get the contained asset entries.
 String getDescription()
          Get the description.
 InputStream getInputStream()
          Get the input stream.
 long getLastModified()
          Get the last modification time of the entry.
 String getName()
          Get the name.
 String getOriginalPath()
          Get the original path.
 String getOriginalUser()
          Get the original user.
 String getPath()
          Get the path.
 byte[] getReport()
          Get the editing report.
 String getStoragePath()
          Get the storage path.
 String getTemplate()
          Get the template file name.
 int getType()
          Get the storage type.
 String getUser()
          Get the user.
 int hashCode()
          Get the hash code.
 boolean isEditable()
          Check if is editable.
 boolean isEditing()
          Check if is an editing report.
 void parseXML(Element elem)
          Method to parse an xml segment.
 void releaseInputStream(InputStream inp)
          Close the input stream opened with getInputStream.
 void setOriginalPath(String opath)
          Set the original path.
 void setOriginalUser(String ouser)
          Set the original user.
 void setReport(byte[] report)
          Set the editing report.
 void setTemplate(String template)
          Set the template of the entry.
 String toString()
          Get the string representation.
 void writeXML(PrintWriter writer)
          Write the xml segment to print writer.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN_REPORT

public static final int UNKNOWN_REPORT
Unknown report.

See Also:
Constant Field Values

DATA_SPACE_REPORT

public static final int DATA_SPACE_REPORT
Data space report.

See Also:
Constant Field Values

FILE_REPORT

public static final int FILE_REPORT
File report.

See Also:
Constant Field Values

URL_REPORT

public static final int URL_REPORT
URL report.

See Also:
Constant Field Values

RESOURCE_REPORT

public static final int RESOURCE_REPORT
Resource report.

See Also:
Constant Field Values

EDITING

public static final String EDITING
Editing report.

See Also:
Constant Field Values
Constructor Detail

ReportEntry

public ReportEntry()
Constructor.


ReportEntry

public ReportEntry(String path,
                   String user)
Constructor.


ReportEntry

public ReportEntry(String path,
                   String user,
                   String alias)
Constructor.

Method Detail

getReport

public byte[] getReport()
Get the editing report.

Returns:
the editing report.

setReport

public void setReport(byte[] report)
Set the editing report.

Parameters:
report - the specified editing report.

isEditing

public boolean isEditing()
Check if is an editing report.

Returns:
true if is an editing report, false otherwise.

getPath

public String getPath()
Get the path.

Returns:
the path of the report entry.

getOriginalPath

public String getOriginalPath()
Get the original path.

Returns:
the original path of the report entry.

setOriginalPath

public void setOriginalPath(String opath)
Set the original path.


getOriginalUser

public String getOriginalUser()
Get the original user. This is required for correct interpretation of the original path, since the original path may exist within a user scope.

Returns:
the original user of the report entry.

setOriginalUser

public void setOriginalUser(String ouser)
Set the original user.


getAlias

public String getAlias()
Get the alias.

Returns:
the alias of the report entry.

getType

public int getType()
Get the storage type.

Returns:
the storage type of the report entry.

getStoragePath

public String getStoragePath()
Get the storage path.

Returns:
the storage path of the report entry.

getUser

public String getUser()
Get the user.

Returns:
the user of the report entry.

isEditable

public boolean isEditable()
Check if is editable.

Returns:
true if editable, false otherwise.

getName

public String getName()
Get the name.

Returns:
the name of the report entry.

getTemplate

public String getTemplate()
Get the template file name.

Returns:
template resource name.

setTemplate

public void setTemplate(String template)
Set the template of the entry.

Parameters:
template - template resource name.

toString

public String toString()
Get the string representation.

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

getDescription

public String getDescription()
Get the description.

Returns:
the description.

equals

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

Overrides:
equals in class Object
Returns:
true if yes, false otherwise.

hashCode

public int hashCode()
Get the hash code.

Overrides:
hashCode in class Object
Returns:
the hash code of the report entry.

writeXML

public void writeXML(PrintWriter writer)
Write the xml segment to print writer.

Specified by:
writeXML in interface inetsoft.util.XMLSerializable
Parameters:
writer - the destination print writer.

parseXML

public void parseXML(Element elem)
              throws Exception
Method to parse an xml segment.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Parameters:
elem - the specified xml element.
Throws:
Exception

containsAssetEntry

public boolean containsAssetEntry(AssetEntry entry)
Check if contains an asset entry pattern.

Parameters:
entry - the specified asset entry.
Returns:
true if yes, false otherwise.

getContainedAssetEntries

public AssetEntry[] getContainedAssetEntries()
Get the contained asset entries.

Returns:
the contained asset entries.

getInputStream

public InputStream getInputStream()
Get the input stream.

Returns:
he input stream of the report entry.

releaseInputStream

public void releaseInputStream(InputStream inp)
Close the input stream opened with getInputStream.


getLastModified

public long getLastModified()
Get the last modification time of the entry.

Returns:
he input stream of the report entry.

clone

public Object clone()
Clone this object.

Specified by:
clone in interface AssetObject
Overrides:
clone in class Object
Returns:
the cloned object.

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