|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.publish.AbstractEntry
public abstract class AbstractEntry
Abstract implementation of a result package entry. Specific entries may extend this implementation. It enables the retrieval of attributes associated with the result package entry. This class is intended to be used internally by the Publish Service.
Field Summary | |
---|---|
static int |
BINARY_COMPAT_VERSION
Binary entry compatibility version to be used internally only |
static int |
CATALOG_COMPAT_VERSION
SAS catalog entry compatibility version to be used internally only |
static int |
DATASET_COMPAT_VERSION
SAS dataset entry compatibility version to be used internally only 9.1 noTranscoding option compatability version is 33. |
static int |
DEFAULT_ENTRY_VERSION
Default entry version. |
static int |
HTML_COMPAT_VERSION
HTML entry compatibility version to be used internally only |
static int |
MDDB_COMPAT_VERSION
SAS MDDB entry compatibility version to be used internally only |
static int |
NESTEDPACKAGE_COMPAT_VERSION
Nested package compatibility version to be used internally only |
static int |
REFERENCE_COMPAT_VERSION
reference entry compatibility version to be used internally only |
static int |
SQLVIEW_COMPAT_VERSION
SAS SQL view entry compatibility version to be used internally only |
static int |
TEXT_COMPAT_VERSION
text entry compatibility version to be used internally only |
static int |
VIEWER_COMPAT_VERSION
Viewer entry compatibility version to be used internally only |
Constructor Summary | |
---|---|
|
AbstractEntry()
Constructs a default instance using RMI socket factories appropriate for AbstractEntry.class. |
protected |
AbstractEntry(java.lang.Class theClass)
Constructs an instance using RMI socket factories appropriate for the specified class. |
Method Summary | |
---|---|
java.lang.String |
getDescription()
Returns the description. |
java.lang.String |
getEntityKey()
Get the unique identifier of this result package or entry. |
AttributeMapInterface |
getNameValuePairs()
Returns the name/value pairs. |
java.lang.String |
getURL()
Returns the URL that identifies the entry. |
protected boolean |
isClosed()
Determines if the entry or package has already been closed. |
boolean |
isReadOnly()
Returns true when the entry or package is read only. |
boolean |
sameEntity(com.sas.entities.EntityKeyInterface entity)
|
protected void |
setClosed(boolean closed)
Sets the close state of the entry or package. |
void |
setDescription(java.lang.String description)
Set the description. |
void |
setEntityKey(java.lang.String entityKey)
Set the unique entity key. |
void |
setNameValuePairs(AttributeMapInterface namevalues)
Sets the name/value pairs. |
protected void |
setRead(boolean readOnly)
Sets the readOnly state of the entry or package. |
protected void |
throwExceptionIfClosed()
Throws an illegalStateException if the entry has already been closed. |
Field Detail |
---|
public static final int DEFAULT_ENTRY_VERSION
public static final int REFERENCE_COMPAT_VERSION
public static final int TEXT_COMPAT_VERSION
public static final int BINARY_COMPAT_VERSION
public static final int HTML_COMPAT_VERSION
public static final int VIEWER_COMPAT_VERSION
public static final int DATASET_COMPAT_VERSION
public static final int CATALOG_COMPAT_VERSION
public static final int MDDB_COMPAT_VERSION
public static final int SQLVIEW_COMPAT_VERSION
public static final int NESTEDPACKAGE_COMPAT_VERSION
Constructor Detail |
---|
public AbstractEntry() throws java.rmi.RemoteException
java.rmi.RemoteException
- if unable to export the remote object.protected AbstractEntry(java.lang.Class theClass) throws java.rmi.RemoteException
theClass
- The class that will be used to determine the appropriate
RMI socket factories.
java.rmi.RemoteException
- if unable to export the remote object.Method Detail |
---|
protected void throwExceptionIfClosed() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- If the package or entry has already been closed.protected boolean isClosed()
boolean
True if the package or entry is
already closed; otherwise false is returned.protected void setClosed(boolean closed)
closed
- The close flag. The closed state should be true
public boolean isReadOnly() throws java.rmi.RemoteException
isReadOnly
in interface EntryInterface
boolean
True if read only;
otherwise if this is a new entry/package under
construction, false is returned.
java.lang.IllegalStateException
- If the result package has already been closed.
java.rmi.RemoteException
- If a network anomaly is encountered.protected void setRead(boolean readOnly)
readOnly
- The readOnly flag. The read only should be true
public java.lang.String getDescription() throws java.rmi.RemoteException, java.lang.IllegalStateException
getDescription
in interface EntryInterface
String
The description.
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalStateException
- If the package has already been closed.public void setDescription(java.lang.String description) throws java.lang.IllegalStateException, java.rmi.RemoteException
setDescription
in interface EntryInterface
description
- The description.
java.lang.IllegalStateException
- If the entry or package is read
only or if the result package has already been closed.
java.rmi.RemoteException
- If a network anomaly is encountered.public AttributeMapInterface getNameValuePairs() throws TransportException, java.rmi.RemoteException, java.lang.IllegalStateException
getNameValuePairs
in interface EntryInterface
AttributeMapInterface
The name values.
TransportException
- If the transport encounters an error
getting name value pairs.
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalStateException
- If the package has already been closed.public void setNameValuePairs(AttributeMapInterface namevalues) throws java.lang.IllegalStateException, java.rmi.RemoteException
setNameValuePairs
in interface EntryInterface
namevalues
- The name/value pairs.
java.lang.IllegalStateException
- If the entry or package is being retrieved
or if the result package has already been closed.
java.rmi.RemoteException
- If a network anomaly is encountered.public java.lang.String getEntityKey() throws java.lang.IllegalStateException, java.rmi.RemoteException
getEntityKey
in interface com.sas.entities.EntityKeyInterface
String
Throws:
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalStateException
- If the package has already been closed.public boolean sameEntity(com.sas.entities.EntityKeyInterface entity) throws java.rmi.RemoteException
sameEntity
in interface com.sas.entities.EntityKeyInterface
java.rmi.RemoteException
public void setEntityKey(java.lang.String entityKey) throws java.rmi.RemoteException, java.lang.IllegalStateException
setEntityKey
in interface com.sas.entities.EntityKeyInterface
entityKey
- Unique entity key.
java.rmi.RemoteException
- If a network anomaly is encountered.
java.lang.IllegalStateException
- The unique entity key for
a result package or entry cannot be changed.public java.lang.String getURL() throws java.lang.IllegalStateException, TransportException, java.rmi.RemoteException
getURL
in interface EntryInterface
String
The URL string; may be null
.
java.lang.IllegalStateException
- If the result package has already been closed.
TransportException
- If the transport encounters an error
obtaining the URL.
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 |