***  This interface provides Binary Compatibility only, not Source Compatibility  ***

com.sas.services.publish.metadata
Interface PackageInterface

All Superinterfaces:
MetadataInterface, PublicObjectInterface, java.rmi.Remote
All Known Subinterfaces:
ArchiveInterface, DavBinaryPackageInterface
All Known Implementing Classes:
DavBinaryPackage

public interface PackageInterface
extends MetadataInterface

This is a generic interface to represent a published SAS package persisted to a file system.


Field Summary
 
Fields 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
 
Method Summary
 java.lang.String getAbstract()
          Get the package abstract.
 ChannelInterface getChannel()
          Get the Channel that this archive belongs to, if any.
 ContentDestination getContentDestination()
          Get the ContentDestination that represents the content data.
 long getCreationDate()
          Get the date the package was created.
 java.lang.String getCreationDateString()
          Get a formatted string representing the date and time the package was created.
 java.lang.String getDisplayDescription()
          Get the display description for this object.
 java.lang.String getDisplayName()
          Get the display name for this object.
 long getExpirationDate()
          Get the expiration date of the package.
 java.lang.String getExpirationDateString()
          Get the expiration date of the package.
 AttributeMapInterface getProperties()
          Get the name/value pairs for this package.
 PersonInterface getPublisher()
          Get a com.sas.services.information.metadata.Person object which represents the publisher of the package.
 java.lang.String getPublisherAlias()
          Get the alias information for the publisher.
 boolean isExpired()
          Determines if the package has expired.
 
Methods inherited from interface com.sas.services.information.metadata.MetadataInterface
add, addAccessControl, addAttribute, addAttributes, addDocument, addExtension, addGroup, addImplementor, addKeyword, addObjectProperty, addObjectProperty, addPermissions, addPrompt, addPropertySet, addRemark, addResponsibleParty, addTransactionListener, addUsedByPrototype, checkin, checkout, commit, copyTo, countAssociatedObjects, delete, deleteAttribute, deleteAttributes, destroy, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getCreateDate, getDescription, getDocuments, getEntityKey, getEntityURL, getExtensions, getGroups, getGUID, getIdentities, getImplementors, getKeywords, getLockedBy, getModifyDate, getObjectProperties, getParent, getParentPath, getParents, getPath, getPaths, getPermission, getPermissions, getPermissions, getPreviousVersionNames, getPrimaryPropertyGroup, getPrompt, getPrompts, getPropertyBag, getPropertySets, getRemarksList, getReposId, getRepository, getRepositoryEntity, getRepositoryName, getReposKey, getResponsibleParties, getState, getTrackingId, getType, getUsageVersion, getUsedByPrototypes, getUsingPrototype, getVersion, isAuthorized, isCompatible, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logMessage, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, setObjectProperties, setPermission, setPrimaryPropertyGroup, setPrompt, setPrompts, setRemarksList, setRepository, setUsingPrototype, startTransaction, toByteArray, transactionEvent, uncheckout, update, updateFromBag, version
 
Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor
 

Method Detail

getChannel

ChannelInterface getChannel()
                            throws ServiceException,
                                   java.rmi.RemoteException
Get the Channel that this archive belongs to, if any.

Returns:
The Channel that this package was published under.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getPublisher

PersonInterface getPublisher()
                             throws ServiceException,
                                    java.rmi.RemoteException
Get a com.sas.services.information.metadata.Person object which represents the publisher of the package.

Returns:
The Person who published the package.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getPublisherAlias

java.lang.String getPublisherAlias()
                                   throws ServiceException,
                                          java.rmi.RemoteException
Get the alias information 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.

Returns:
A String containing the publisher alias information.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getContentDestination

ContentDestination getContentDestination()
                                         throws ServiceException,
                                                java.rmi.RemoteException
Get the ContentDestination that represents the content data.

Returns:
A ContentDestination which has the file system or server information.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getCreationDate

long getCreationDate()
                     throws ServiceException,
                            java.rmi.RemoteException
Get the date the package was created.

Returns:
The package creation date and time.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getCreationDateString

java.lang.String getCreationDateString()
                                       throws ServiceException,
                                              java.rmi.RemoteException
Get a formatted string representing the date and time the package was created.

Returns:
A string representing the date the package was created.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getExpirationDate

long getExpirationDate()
                       throws ServiceException,
                              java.rmi.RemoteException
Get the expiration date of the package.

Returns:
The date and time the package expires and the data it contains should be considered obsolete.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getExpirationDateString

java.lang.String getExpirationDateString()
                                         throws ServiceException,
                                                java.rmi.RemoteException
Get the expiration date of the package. The date is returned as a formatted string.

Returns:
The date and time the package expires and the data it contains should be considered obsolete.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getAbstract

java.lang.String getAbstract()
                             throws ServiceException,
                                    java.rmi.RemoteException
Get the package abstract. The abstract is a more detailed description of the contents of the package.

Returns:
The package abstract.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getProperties

AttributeMapInterface getProperties()
                                    throws ServiceException,
                                           java.rmi.RemoteException
Get the name/value pairs for this package.

Returns:
A Map of name/value pairs that describe this package.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - In the event of remote object failure.

getDisplayName

java.lang.String getDisplayName()
                                throws ServiceException,
                                       java.rmi.RemoteException
Get the display name for this object.

Returns:
The object display name.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - if an error occurs

getDisplayDescription

java.lang.String getDisplayDescription()
                                       throws ServiceException,
                                              java.rmi.RemoteException
Get the display description for this object.

Returns:
The object display description.
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - if an error occurs

isExpired

boolean isExpired()
                  throws ServiceException,
                         java.rmi.RemoteException
Determines if the package has expired. The expiration datetime is compared with the current datetime when this method is invoked.

Returns:
true if the package has expired; otherwise false
Throws:
ServiceException - If a repository or service level error occurs.
java.rmi.RemoteException - if an error occurs

***  This interface provides Binary Compatibility only, not Source Compatibility  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.