*** This class provides Binary Compatibility only, not Source Compatibility ***
Package com.sas.services.publish
Class AbstractEntry
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.sas.services.publish.AbstractEntry
- All Implemented Interfaces:
com.sas.entities.EntityKeyInterface,EntryInterface,Serializable,Remote
- Direct Known Subclasses:
BinaryFileEntry,HTMLEntry,ReferenceEntry,ResultPackage,TextFileEntry,ViewerEntry
@SASScope("ALL")
@BinaryCompatibilityOnly
public abstract class AbstractEntry
extends UnicastRemoteObject
implements EntryInterface
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.
- Since:
- 1.0
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intBinary entry compatibility version to be used internally onlystatic final intSAS catalog entry compatibility version to be used internally onlystatic final intSAS dataset entry compatibility version to be used internally only 9.1 noTranscoding option compatability version is 33. 9.4 extended attribute compatability version is 34.static final intDefault entry version.static final intHTML entry compatibility version to be used internally onlystatic final intSAS MDDB entry compatibility version to be used internally onlystatic final intNested package compatibility version to be used internally onlystatic final intreference entry compatibility version to be used internally onlystatic final intSAS SQL view entry compatibility version to be used internally onlystatic final inttext entry compatibility version to be used internally onlystatic final intExtended data set attribute compatibility version to be used internally only for data set entriesstatic final intViewer entry compatibility version to be used internally onlyFields inherited from class java.rmi.server.RemoteObject
ref -
Constructor Summary
ConstructorsModifierConstructorDescriptionConstructs a default instance using RMI socket factories appropriate for AbstractEntry.class.protectedAbstractEntry(Class theClass) Constructs an instance using RMI socket factories appropriate for the specified class. -
Method Summary
Modifier and TypeMethodDescriptionStringReturns the description.StringGet the unique identifier of this result package or entry.Returns the name/value pairs.StringgetURL()Returns the URL that identifies the entry.protected booleanisClosed()Determines if the entry or package has already been closed.booleanReturns true when the entry or package is read only.booleansameEntity(com.sas.entities.EntityKeyInterface entity) protected voidsetClosed(boolean closed) Sets the close state of the entry or package.voidsetDescription(String description) Set the description.voidsetEntityKey(String entityKey) Set the unique entity key.voidsetNameValuePairs(AttributeMapInterface namevalues) Sets the name/value pairs.protected voidsetRead(boolean readOnly) Sets the readOnly state of the entry or package.protected voidThrows an illegalStateException if the entry has already been closed.Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLogMethods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStubMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
DEFAULT_ENTRY_VERSION
public static final int DEFAULT_ENTRY_VERSIONDefault entry version.- See Also:
-
REFERENCE_COMPAT_VERSION
public static final int REFERENCE_COMPAT_VERSIONreference entry compatibility version to be used internally only- See Also:
-
TEXT_COMPAT_VERSION
public static final int TEXT_COMPAT_VERSIONtext entry compatibility version to be used internally only- See Also:
-
BINARY_COMPAT_VERSION
public static final int BINARY_COMPAT_VERSIONBinary entry compatibility version to be used internally only- See Also:
-
HTML_COMPAT_VERSION
public static final int HTML_COMPAT_VERSIONHTML entry compatibility version to be used internally only- See Also:
-
VIEWER_COMPAT_VERSION
public static final int VIEWER_COMPAT_VERSIONViewer entry compatibility version to be used internally only- See Also:
-
DATASET_COMPAT_VERSION
public static final int DATASET_COMPAT_VERSIONSAS dataset entry compatibility version to be used internally only 9.1 noTranscoding option compatability version is 33. 9.4 extended attribute compatability version is 34.- See Also:
-
VERSION_94_EXTENDED_ATTRIBUTES
public static final int VERSION_94_EXTENDED_ATTRIBUTESExtended data set attribute compatibility version to be used internally only for data set entries- See Also:
-
CATALOG_COMPAT_VERSION
public static final int CATALOG_COMPAT_VERSIONSAS catalog entry compatibility version to be used internally only- See Also:
-
MDDB_COMPAT_VERSION
public static final int MDDB_COMPAT_VERSIONSAS MDDB entry compatibility version to be used internally only- See Also:
-
SQLVIEW_COMPAT_VERSION
public static final int SQLVIEW_COMPAT_VERSIONSAS SQL view entry compatibility version to be used internally only- See Also:
-
NESTEDPACKAGE_COMPAT_VERSION
public static final int NESTEDPACKAGE_COMPAT_VERSIONNested package compatibility version to be used internally only- See Also:
-
-
Constructor Details
-
AbstractEntry
public AbstractEntry() throws RemoteExceptionConstructs a default instance using RMI socket factories appropriate for AbstractEntry.class.- Throws:
RemoteException- if unable to export the remote object.
-
AbstractEntry
protected AbstractEntry(Class theClass) throws RemoteException Constructs an instance using RMI socket factories appropriate for the specified class.- Parameters:
theClass- The class that will be used to determine the appropriate RMI socket factories.- Throws:
RemoteException- if unable to export the remote object.
-
-
Method Details
-
throwExceptionIfClosed
protected void throwExceptionIfClosed() throws IllegalStateExceptionThrows an illegalStateException if the entry has already been closed.- Throws:
IllegalStateException- If the package or entry has already been closed.
-
isClosed
protected boolean isClosed()Determines if the entry or package has already been closed.- Returns:
booleanTrue if the package or entry is already closed; otherwise false is returned.
-
setClosed
protected void setClosed(boolean closed) Sets the close state of the entry or package.- Parameters:
closed- The close flag. The closed state should betruewhen the result package is closed.
-
isReadOnly
public boolean isReadOnly() throws RemoteExceptionReturns true when the entry or package is read only. This occurs when the result package is an existing package that has been retrieved. Entries are read only if they belong to a package that is being retrieved.- Specified by:
isReadOnlyin interfaceEntryInterface- Returns:
booleanTrue if read only; otherwise if this is a new entry/package under construction, false is returned.- Throws:
IllegalStateException- If the result package has already been closed.RemoteException- If a network anomaly is encountered.
-
setRead
protected void setRead(boolean readOnly) Sets the readOnly state of the entry or package.- Parameters:
readOnly- The readOnly flag. The read only should betruewhen the result package is read only.
-
getDescription
public String getDescription() throws RemoteException, IllegalStateExceptionReturns the description.- Specified by:
getDescriptionin interfaceEntryInterface- Returns:
StringThe description.- Throws:
RemoteException- If a network anomaly is encountered.IllegalStateException- If the package has already been closed.
-
setDescription
public void setDescription(String description) throws IllegalStateException, RemoteException Set the description.- Specified by:
setDescriptionin interfaceEntryInterface- Parameters:
description- The description.- Throws:
IllegalStateException- If the entry or package is read only or if the result package has already been closed.RemoteException- If a network anomaly is encountered.
-
getNameValuePairs
public AttributeMapInterface getNameValuePairs() throws TransportException, RemoteException, IllegalStateExceptionReturns the name/value pairs. At publish time, user-specified name/value pairs may be associated with a result package or its entries.- Specified by:
getNameValuePairsin interfaceEntryInterface- Returns:
AttributeMapInterfaceThe name values.- Throws:
TransportException- If the transport encounters an error getting name value pairs.RemoteException- If a network anomaly is encountered.IllegalStateException- If the package has already been closed.
-
setNameValuePairs
public void setNameValuePairs(AttributeMapInterface namevalues) throws IllegalStateException, RemoteException Sets the name/value pairs. These name/value pairs provide user or application control information describing the package or entry.- Specified by:
setNameValuePairsin interfaceEntryInterface- Parameters:
namevalues- The name/value pairs.- Throws:
IllegalStateException- If the entry or package is being retrieved or if the result package has already been closed.RemoteException- If a network anomaly is encountered.
-
getEntityKey
public String getEntityKey() throws IllegalStateException, RemoteExceptionGet the unique identifier of this result package or entry.- Specified by:
getEntityKeyin interfacecom.sas.entities.EntityKeyInterface- Returns:
StringThe unique identifier.- Throws:
RemoteException- If a network anomaly is encountered.IllegalStateException- If the package has already been closed.
-
sameEntity
public boolean sameEntity(com.sas.entities.EntityKeyInterface entity) throws RemoteException - Specified by:
sameEntityin interfacecom.sas.entities.EntityKeyInterface- Throws:
RemoteException
-
setEntityKey
public void setEntityKey(String entityKey) throws RemoteException, IllegalStateException Set the unique entity key. The entity key for the result package or entry cannot be changed. This method will throw an IllegalStateException.- Specified by:
setEntityKeyin interfacecom.sas.entities.EntityKeyInterface- Parameters:
entityKey- Unique entity key.- Throws:
RemoteException- If a network anomaly is encountered.IllegalStateException- The unique entity key for a result package or entry cannot be changed.
-
getURL
Returns the URL that identifies the entry.- Specified by:
getURLin interfaceEntryInterface- Returns:
StringThe URL string; may benull.- Throws:
IllegalStateException- If the result package has already been closed.TransportException- If the transport encounters an error obtaining the URL.RemoteException- If a network anomaly is encountered.
-