*** This class provides Binary Compatibility only, not Source Compatibility ***
Class DavBinaryPackage
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.sas.services.information.metadata.Metadata
com.sas.services.information.metadata.Content
com.sas.services.publish.metadata.DavBinaryPackage
- All Implemented Interfaces:
ContentInterface,MetadataInterface,PublicObjectInterface,DavBinaryPackageInterface,PackageInterface,Serializable,Remote
@SASScope("ALL")
@BinaryCompatibilityOnly
public class DavBinaryPackage
extends Content
implements DavBinaryPackageInterface
DAV implementation of a PackageInterface (DAVBinaryPackageInterface) for a binary package.
- Since:
- 1.0
- See Also:
-
Field Summary
Fields inherited from class com.sas.services.information.metadata.Metadata
_actionInterfaces, _children, _isCompatible, _isDestroyPending, _isReadCompatible, _myRefreshInterval, _myState, _omrCreateDate, _omrModifyDate, _repository, _repositoryFlag, _repositoryObject, _treeRefreshTime, formats, gmtZone, OMSOBJ_STRING, REPOSITORY_DAV, REPOSITORY_LOMR, REPOSITORY_NONE, REPOSITORY_OMR, SLASHFields inherited from class java.rmi.server.RemoteObject
refFields inherited from interface com.sas.services.information.metadata.MetadataInterface
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATA -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DAVBinarypackageCreates a new DAVBinarypackage that incorporates the DAV binary package object passed to the constructor -
Method Summary
Modifier and TypeMethodDescriptionStringReturn the abstract.Get the Channel that this archive belongs to, if any.Get the ContentDestination that represents the archive path information.longGet the date the package was created.StringGet a formatted string representing the date and time the package was created.StringReturn the description.StringGet the display description for this object.StringGet the display name for this object.longGet the expiration date of the package.StringGet the expiration date of the package.Get the name/value pairs for this package.Get a com.sas.services.information.metadata.Person object which represents the publisher of the package.StringGet the alias for the publisher.StringgetType()Get the smartobject type - this is a "content" providerbooleanDetermines if the package has expired.ObjectFor objects that support it, get an "active" interface for the metadata object.publish(ResultPackageInterface rPkg, InputStream inputStream) Publishes the result package to the DAV binarypackage entity.voidsetDescription(String description) Set the object description.voidsetName(String name) Set the name of the object.Methods inherited from class com.sas.services.information.metadata.Content
getContentAsBytes, getContentAsStream, getContentAsString, getContentType, getProperty, setContent, setContentFromBytes, setContentFromStream, setContentType, setPropertyMethods inherited from class com.sas.services.information.metadata.Metadata
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addNoteTextStore, addNoteTextStore, addObjectProperty, addObjectProperty, addPermissions, addProcessorInterface, addPrompt, addPropertySet, addRemark, addResponsibleParty, addToList, addTransactionListener, addUsedByPrototype, checkin, checkout, checkPulse, clearInformationService, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, deleteRootObject, destroy, fromByteArray, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getContainer, getCreateDate, getCreatedBy, getDefaultLocalizableProperties, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentifier, getIdentities, getImplementors, getInformationService, getKeywords, getLockedBy, getModifiedBy, getModifyDate, getName, getNoteTextStore, getNoteTextStores, getNoteTextStoresByRole, getObjectProperties, getObjectURI, getParent, getParentPath, getParents, getPath, getPaths, getPathUrl, getPathUrl, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getProcessorInterface, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getTreeRefresh, getTypeDescriptor, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, hashCode, isAuthorized, isCompatible, isConnectionException, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logFormat, logFormat, logFormat, logFormat, logMessage, logMessage, logThrowable, mapNameToFilesystem, mapUrlToFilesystem, moveTo, notifyTransactionListeners, refresh, removeAccessControl, removeDocument, removeExtension, removeFromList, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, reset, rollback, setAttribute, setAttributes, setCompatibility, setDefaultLocalizableProperties, setDeleted, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setNoteTextStores, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setTreeRefresh, setUsingPrototype, startTransaction, toByteArray, toString, transactionEvent, uncheckout, update, updateFromBag, validateNameAndFolder, validateNameAndFolder, versionMethods 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, toStubMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.services.information.metadata.MetadataInterface
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addNoteTextStore, addNoteTextStore, addObjectProperty, addObjectProperty, addPermissions, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getCreatedBy, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentities, getImplementors, getKeywords, getLockedBy, getModifiedBy, getModifyDate, getNoteTextStore, getNoteTextStores, getNoteTextStoresByRole, getObjectProperties, getParent, getParentPath, getParents, getPath, getPaths, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isObjectAlive, isReadCompatible, mapNameToFilesystem, mapUrlToFilesystem, moveTo, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setNoteTextStores, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, versionMethods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
-
Constructor Details
-
DavBinaryPackage
public DavBinaryPackage() throws RemoteExceptionCreates a new DAVBinarypackage- Throws:
RemoteException- if unable to export the remote object to the RMI system.
-
DavBinaryPackage
Creates a new DAVBinarypackage that incorporates the DAV binary package object passed to the constructor- Throws:
RemoteException- if unable to export the remote object to the RMI system.
-
-
Method Details
-
getType
public String getType() throws RemoteExceptionDescription copied from class:ContentGet the smartobject type - this is a "content" provider- Specified by:
getTypein interfaceMetadataInterface- Overrides:
getTypein classContent- Returns:
- A type string for the object.
- Throws:
RemoteException- in the case of network failures
-
setName
public void setName(String name) throws RemoteException Description copied from class:MetadataSet the name of the object.- Specified by:
setNamein interfaceMetadataInterface- Overrides:
setNamein classMetadata- Parameters:
name- The name of the object in the repository.- Throws:
RemoteException- in the event of remote object failure.
-
setDescription
public void setDescription(String description) throws RemoteException Description copied from class:MetadataSet the object description.- Specified by:
setDescriptionin interfaceMetadataInterface- Overrides:
setDescriptionin classMetadata- Parameters:
description- The description String for the object.- Throws:
RemoteException- in the event of remote object failure.
-
getCreationDate
public long getCreationDate() throws RemoteExceptionDescription copied from interface:PackageInterfaceGet the date the package was created.- Specified by:
getCreationDatein interfacePackageInterface- Returns:
- The package creation date and time.
- Throws:
RemoteException- In the event of remote object failure.
-
getCreationDateString
public String getCreationDateString() throws RemoteExceptionDescription copied from interface:PackageInterfaceGet a formatted string representing the date and time the package was created.- Specified by:
getCreationDateStringin interfacePackageInterface- Returns:
- A string representing the date the package was created.
- Throws:
RemoteException- In the event of remote object failure.
-
getExpirationDate
public long getExpirationDate() throws RemoteExceptionDescription copied from interface:PackageInterfaceGet the expiration date of the package.- Specified by:
getExpirationDatein interfacePackageInterface- Returns:
- The date and time the package expires and the data it contains should be considered obsolete.
- Throws:
RemoteException- In the event of remote object failure.
-
getExpirationDateString
public String getExpirationDateString() throws RemoteExceptionDescription copied from interface:PackageInterfaceGet the expiration date of the package. The date is returned as a formatted string.- Specified by:
getExpirationDateStringin interfacePackageInterface- Returns:
- The date and time the package expires and the data it contains should be considered obsolete.
- Throws:
RemoteException- In the event of remote object failure.
-
getAbstract
public String getAbstract() throws RemoteExceptionReturn the abstract. This routine strips off any quotes. Quotes are added by the publish framework at publish time and so should be stripped.- Specified by:
getAbstractin interfacePackageInterface- Returns:
- String The package abstract
- Throws:
RemoteException- in the event of remote object failure.
-
getProperties
Description copied from interface:PackageInterfaceGet the name/value pairs for this package.- Specified by:
getPropertiesin interfacePackageInterface- Returns:
- A Map of name/value pairs that describe this package.
- Throws:
RemoteException- In the event of remote object failure.
-
getChannel
Description copied from interface:PackageInterfaceGet the Channel that this archive belongs to, if any.- Specified by:
getChannelin interfacePackageInterface- Returns:
- The Channel that this package was published under.
- Throws:
ServiceException- If a repository or service level error occurs.RemoteException- In the event of remote object failure.
-
getPublisher
Get a com.sas.services.information.metadata.Person object which represents the publisher of the package.- Specified by:
getPublisherin interfacePackageInterface- Returns:
- The Person who published the package.
- Throws:
RemoteException- in the event of remote object failure.
-
getPublisherAlias
public String getPublisherAlias() throws RemoteExceptionGet the alias for the publisher. This String is in the form of "userAccountName" "personName". The first quoted value is the proccess id (name) of the publisher. This is followed by a space, and then another quoted value which is the name of the person that published the package. If the name of the person was not available, this second quoted value will be the user name used to publish the package.- Specified by:
getPublisherAliasin interfacePackageInterface- Returns:
- A String containing the publisher alias information.
- Throws:
RemoteException- in the event of remote object failure.
-
newServiceObject
Description copied from class:MetadataFor objects that support it, get an "active" interface for the metadata object. For instance, com.sas.services.information.metadata.StoredProcess returns a com.sas.services.storedProcess.StoredProcess object.- Specified by:
newServiceObjectin interfaceMetadataInterface- Overrides:
newServiceObjectin classMetadata- Returns:
- The "active" object for this metadata.
- Throws:
ServiceException- if an error occursRemoteException- in the event of remote object failure
-
getContentDestination
Get the ContentDestination that represents the archive path information.- Specified by:
getContentDestinationin interfacePackageInterface- Returns:
- A ContentDestination which has the file system or server information.
- Throws:
RemoteException- in the event of a remote object failure.
-
publish
public EventDataInterface publish(ResultPackageInterface rPkg, InputStream inputStream) throws ServiceException, RemoteException Publishes the result package to the DAV binarypackage entity.- Specified by:
publishin interfaceDavBinaryPackageInterface- Parameters:
rPkg- The result package to be publishedinputStream- The stream representing the archive binary- Returns:
- EventDataInterface Containg the SAS package event data
- Throws:
RemoteException- in the event of remote object failure.ServiceException- in the event of a publish failure.
-
getDescription
public String getDescription()Return the description. This overrides getDescription() in com.sas.services.information.metadata.dav.DAVPackage. When a package is published, the publish transports quote the description value as specified by the user. Because of this, we need to strip off any quotes before returning to the user.- Specified by:
getDescriptionin interfaceMetadataInterface- Overrides:
getDescriptionin classMetadata- Returns:
- String The package description
-
getDisplayName
Get the display name for this object.- Specified by:
getDisplayNamein interfacePackageInterface- Returns:
- The object display name.
- Throws:
ServiceException- If a repository or service level error occurs.RemoteException- if an error occurs
-
getDisplayDescription
Get the display description for this object.- Specified by:
getDisplayDescriptionin interfacePackageInterface- Returns:
- The object display description.
- Throws:
ServiceException- If a repository or service level error occurs.RemoteException- if an error occurs
-
isExpired
Determines if the package has expired. The expiration datetime is compared with the current datetime when this method is invoked.- Specified by:
isExpiredin interfacePackageInterface- Returns:
trueif the package has expired; otherwisefalse- Throws:
ServiceException- If a repository or service level error occurs.RemoteException- if an error occurs
-