|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.publish.ResultPackage
public class ResultPackage
Represents a result package that can then be published using one of the supported delivery transports. See Constructing a Result Package to Publish for an example of how this class is used. A result package is a collection of information, such as a collection of reports, tables and documents. A package can contain text files, binary files (such as GIF or JPG), HTML files, references, and viewer files.
Package metadata can be defined to provide more information about the result package:
TransportFactory,
Serialized Form| Field Summary |
|---|
| Fields inherited from class com.sas.services.publish.AbstractEntry |
|---|
BINARY_COMPAT_VERSION, CATALOG_COMPAT_VERSION, DATASET_COMPAT_VERSION, DEFAULT_ENTRY_VERSION, HTML_COMPAT_VERSION, MDDB_COMPAT_VERSION, NESTEDPACKAGE_COMPAT_VERSION, REFERENCE_COMPAT_VERSION, SQLVIEW_COMPAT_VERSION, TEXT_COMPAT_VERSION, VERSION_94_EXTENDED_ATTRIBUTES, VIEWER_COMPAT_VERSION |
| Constructor Summary | |
|---|---|
ResultPackage()
Creates a result package. |
|
| Method Summary | |
|---|---|
void |
addEntry(EntryInterface entry)
Adds a new entry to the result package. |
void |
close()
Close the result package. |
void |
delete()
Delete the result package. |
java.lang.String |
getAbstract()
Returns the abstract of the result package. |
long |
getCreationDateTime()
Returns the creation datetime stamp. |
EntryInterface[] |
getEntries()
Returns an array of all entries in this package. |
EntryInterface |
getEntry(int index)
Returns a particular result package entry as indicated by the specified index. |
EntryInterface |
getEntry(java.lang.String uniqueId)
Returns the result package entry identified by the entity key. |
EventDataInterface |
getEventData()
Returns the event data. |
long |
getExpirationDateTime()
Returns the expiration datetime stamp. |
java.io.InputStream |
getInputStream()
Gets the input stream for this result package. |
java.io.InputStream |
getInputStream(java.lang.Object streamID)
Deprecated. Use getInputStream() which now supports remote input streams. |
java.lang.String |
getName()
Returns the name for this result package. |
com.sas.io.RemoteInputStreamInterface |
getRemoteInputStream(java.lang.Object streamID)
Deprecated. Use getInputStream() which now supports remote input streams. |
java.lang.Object |
hasInputStream()
Deprecated. this method no longer needed as getInputStream() will return an input stream that can be used in a remote environment |
boolean |
isNested()
Returns true when the result package is a nested package. |
void |
setAbstract(java.lang.String pkgAbstract)
Set the abstract for the result package. |
void |
setExpirationDateTime(long expiration)
Set the expiration datetime stamp for the package |
void |
setName(java.lang.String name)
Set the name for the result package. |
| Methods inherited from class com.sas.services.publish.AbstractEntry |
|---|
getDescription, getEntityKey, getNameValuePairs, getURL, isClosed, isReadOnly, sameEntity, setClosed, setDescription, setEntityKey, setNameValuePairs, setRead, throwExceptionIfClosed |
| Methods inherited from interface com.sas.services.publish.EntryInterface |
|---|
getDescription, getNameValuePairs, getURL, isReadOnly, setDescription, setNameValuePairs |
| Constructor Detail |
|---|
public ResultPackage()
throws java.rmi.RemoteException
java.rmi.RemoteException - If a network anomaly is encountered.| Method Detail |
|---|
public java.lang.Object hasInputStream()
throws java.lang.IllegalStateException
getInputStream(java.lang.Object) will succeed. This method will
always return null.
hasInputStream in interface com.sas.io.InputStreamProviderInterfacehasInputStream in interface ResultPackageInterfaceObject null
java.lang.IllegalStateException - if this result package has already been closed.
public java.io.InputStream getInputStream(java.lang.Object streamID)
throws java.lang.IllegalStateException
getInputStream() which now supports remote input streams.
null and is only present becuase this class implements
ResultPackageInterface which extends
RemoteInputStreamInterface which defines it.
getInputStream in interface com.sas.io.InputStreamProviderInterfacegetInputStream in interface ResultPackageInterfacestreamID - The stream description should be null; it will be ignored.
null
java.lang.IllegalStateException - if this result package has already been closed.
public java.io.InputStream getInputStream()
throws java.lang.IllegalStateException
null and is only present because this class implements
ResultPackageInterface which extends
RemoteInputStreamInterface which defines it.
getInputStream in interface ResultPackageInterfacenull
java.lang.IllegalStateException - if this result package has already been closed.
public com.sas.io.RemoteInputStreamInterface getRemoteInputStream(java.lang.Object streamID)
throws java.io.IOException,
java.rmi.RemoteException,
java.lang.IllegalStateException
getInputStream() which now supports remote input streams.
null and is only present becuase this class implements
ResultPackageInterface which extends
RemoteInputStreamInterface which defines it.
getRemoteInputStream in interface com.sas.io.InputStreamProviderInterfacegetRemoteInputStream in interface ResultPackageInterfacestreamID - The stream description should be null; it will be ignored.
null
java.lang.IllegalStateException - if this result package has already been closed.
java.io.IOException - If an error occurs constructing the remote input stream.
java.rmi.RemoteException - If a network anomaly is encountered.
public java.lang.String getAbstract()
throws java.rmi.RemoteException,
java.lang.IllegalStateException
getAbstract in interface ResultPackageInterfaceObject The abstract of the result package; can be null.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - if this result package has already been closed.
public void setAbstract(java.lang.String pkgAbstract)
throws java.rmi.RemoteException,
java.lang.IllegalStateException
setAbstract in interface ResultPackageInterfacepkgAbstract - Plain text that is the abstract for this result package.
java.lang.IllegalStateException - If the result package is read only or if
the result package is already closed.
java.rmi.RemoteException - If a network anomaly is encountered.
public long getExpirationDateTime()
throws java.rmi.RemoteException,
java.lang.IllegalStateException
getExpirationDateTime in interface ResultPackageInterfacelong The expiration datetime stamp for this result package.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - if this result package has already been closed.
public void setExpirationDateTime(long expiration)
throws java.rmi.RemoteException,
java.lang.IllegalStateException
setExpirationDateTime in interface ResultPackageInterfaceexpiration - The expiration datetime.
java.lang.IllegalStateException - If the result package is read only or
if the result package is already closed.
java.rmi.RemoteException - If a network anomaly is encountered.
public long getCreationDateTime()
throws java.lang.IllegalStateException,
java.rmi.RemoteException
getCreationDateTime in interface ResultPackageInterfacelong The creation datetime stamp for this result package.
java.lang.IllegalStateException - if this result package has already been closed.
java.rmi.RemoteException - If a network anomaly is encountered.
public java.lang.String getName()
throws java.lang.IllegalStateException,
TransportException,
java.rmi.RemoteException
getName in interface ResultPackageInterfaceString The name of the result package; can be null.
java.lang.IllegalStateException - if this result package has already been closed.
TransportException - If the transport encounters an error
getting the nested name.
java.rmi.RemoteException - If a network anomaly is encountered.
public void setName(java.lang.String name)
throws java.lang.IllegalStateException,
java.rmi.RemoteException
setName in interface ResultPackageInterfacename - The name for this result package; can be null.
java.lang.IllegalStateException - If the result package is read only or
the result package is already closed.
java.rmi.RemoteException - If a network anomaly is encountered.
public EntryInterface getEntry(int index)
throws java.rmi.RemoteException,
java.lang.IllegalStateException
getEntry in interface ResultPackageInterfaceindex - The zero-based index of the desired result package entry.
ResultPackageEntryInterface The result package entry.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - if this result package has already been closed.
public EntryInterface[] getEntries()
throws java.rmi.RemoteException,
java.lang.IllegalStateException
getEntries in interface ResultPackageInterfaceList An array of EntryInterface objects.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - if this result package has already been closed.
public void addEntry(EntryInterface entry)
throws java.rmi.RemoteException,
java.lang.IllegalStateException,
java.lang.IllegalArgumentException
addEntry in interface ResultPackageInterfaceentry - The entry to add to the result package.
java.lang.IllegalStateException - If the result package is read only or if the
result package has already been closed.
java.lang.IllegalArgumentException - If a library member entry is added to the package.
Library member entries cannot be published.
java.rmi.RemoteException - If a network anomaly is encountered.
public boolean isNested()
throws java.rmi.RemoteException,
java.lang.IllegalStateException
isNested in interface ResultPackageInterfaceboolean True if the result package is a
nested package;
otherwise if this is the main package,
false is returned.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - if this result package has already been closed.
public void close()
throws java.rmi.RemoteException,
java.lang.IllegalStateException,
TransportException
close in interface ResultPackageInterfacejava.lang.IllegalStateException - If the result package has already been
closed or if this is a nested package.
TransportException - If the transport encounters an error
getting the entry.
java.rmi.RemoteException - If a network anomaly is encountered.
public void delete()
throws TransportException,
java.rmi.RemoteException,
java.lang.IllegalStateException
delete in interface ResultPackageInterfacejava.lang.UnsupportedOperationException - If the operation is not supported by
the trasnport.
java.lang.IllegalStateException - If the result package is read only,
if this is a nested package, or if this result package has already been closed.
TransportException - If the transport encounters an error
deleting the package.
java.rmi.RemoteException - If a network anomaly is encountered.
public EventDataInterface getEventData()
throws TransportException,
java.rmi.RemoteException,
java.lang.IllegalStateException
getEventData in interface ResultPackageInterfaceEventDataInterface The event data which includes
the SASPackage event body, and the event persistence information.
TransportException - If the transport encounters an error
getting the nested name.
java.rmi.RemoteException - If a network anomaly is encountered.
java.lang.IllegalStateException - if this result package has already been closed.
public EntryInterface getEntry(java.lang.String uniqueId)
throws java.lang.IllegalStateException,
java.rmi.RemoteException,
TransportException
getEntry in interface ResultPackageInterfaceuniqueId - The unique identifier of the desired result package entry.
EntryInterface The result package entry. This may be null
if no entry is found with the specified identifier.
java.lang.IllegalStateException - if this result package has already been closed.
TransportException - If the transport encounters an error
getting the entry.
java.rmi.RemoteException - If a network anomaly is encountered.
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||