*** This class provides Binary Compatibility only, not Source Compatibility ***
Class OMRPromptDefinition
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.prompt.OMRPromptDefinition
- All Implemented Interfaces:
MetadataInterface,BaseOMRPromptInterface, com.sas.services.information.metadata.prompt.OMRPromptDefinitionInterface,PublicObjectInterface,com.sas.storage.editableproperties.LocalizableProperties,com.sas.storage.editableproperties.MultiLocaleProperties,com.sas.storage.editableproperties.SubstitutionProperties,Serializable,Remote
@SASScope("ALL")
@BinaryCompatibilityOnly
public final class OMRPromptDefinition
extends Metadata
implements OMRPromptDefinitionInterface, com.sas.storage.editableproperties.MultiLocaleProperties, com.sas.storage.editableproperties.SubstitutionProperties
This smart object stores a
com.sas.prompts.definition.PromptDefintionInterface in metadata
as a string of XML passed to setPromptInfo(). The prompt definition can be reconstructed
via getPromptDefinition().- Since:
- 9.2
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.sas.util.UsageVersionprotected final Stringstatic final com.sas.util.UsageVersionprotected static final StringFields 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.storage.editableproperties.LocalizableProperties
PROPERTY_DESCRIPTION, PROPERTY_NAMEFields inherited from interface com.sas.services.information.metadata.MetadataInterface
METADATA_STATE_DELETED, METADATA_STATE_DESTROYED, METADATA_STATE_NEW, METADATA_STATE_NORMAL, PERMISSION_READMETADATA, PERMISSION_WRITEMETADATAFields inherited from interface com.sas.storage.editableproperties.SubstitutionProperties
PROPERTY_SUFFIX_DIRPATH, PROPERTY_SUFFIX_FILEPATH, PROPERTY_SUFFIX_HOST, PROPERTY_SUFFIX_PORT, PROPERTY_SUFFIX_URI -
Constructor Summary
ConstructorsConstructorDescriptionOMRPromptDefinition(com.sas.metadata.remote.impl.PromptImpl arg0) OMRPromptDefinition(com.sas.metadata.remote.impl.PromptImpl_Stub arg0) OMRPromptDefinition(com.sas.metadata.remote.Prompt arg0) OMRPromptDefinition(RepositoryInterface repos, String name, FolderInterface parent) Constructor for OMRPromptDefinition.OMRPromptDefinition(Object arg0, Class arg1) -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd the supplied prompt as a reference to this prompt, where this prompt is a shared prompt definition or group in a tree folder (therefore a public prompt).voidAdds a referenced prompt (a shared prompt definition or prompt group that is in a tree folder) to the list of referenced prompts kept by this prompt object.voidaddValueSource(MetadataInterface metaObject) Adds the metaObject as a value source.voidcopyTo(FolderInterface folder, String name) This override assures that the copy has the original's value sources set on it.voiddelete()Removes all prompt references, all referenced prompts, all value sources, then calls super.delete().voidCollectioncom.sas.storage.editableproperties.PropertyListcom.sas.storage.editableproperties.PropertyListgetLocalizableProperties(Locale locale) com.sas.prompts.definitions.PromptDefinitionInterfaceReturns thecom.sas.prompts.definitions.PromptDefinitionInterfaceobject created by the XML returned fromgetDefinitionInfo().com.sas.prompts.definitions.PromptDefinitionInterfacegetPromptDefinition(com.sas.util.xmlpersist.PromptsReadingContext readingContext) Returns thecom.sas.prompts.definitions.PromptDefinitionInterfaceobject created by the XML returned fromgetDefinitionInfo().Gets the metadata object associated with this prompt.protected com.sas.util.xmlpersist.PersistenceInterfacegetPromptFromXML(com.sas.util.xmlpersist.PromptsReadingContext readingContext, String xml) StringReturns the XML string of prompt info.ListReturns a list of prompt references held by this prompt.intReturns a value corresponding to the type of PromptDefinitionInterface.ListReturns a list of all referenced prompts (shared prompts in a tree folder) held by this prompt.com.sas.storage.editableproperties.PropertyListReturns a non-null property list.StringgetType()Returns SmartTypes.TYPE_PROMPT, i.e.com.sas.util.UsageVersionThis method adds a micro version representing the major and minor version of the XML stored in this object.ListReturns a list of MetadataInterface items that are value sources for the prompt.booleanisPublic()voidRemoves all prompt references such that this shared prompt is no longer linked to any other prompts.voidRemoves all referenced prompts such that this prompt is no longer linked to any shared prompts.voidRemoves all value sources associated with the prompt.voidRemoves the prompt-enabled object associated with this prompt.voidRemoves the supplied prompt from the list of prompt references held by this prompt.voidRemove the supplied prompt (a shared prompt in a tree folder) from the list of referenced prompts held by this prompt.voidsetLocalizableProperties(com.sas.storage.editableproperties.PropertyMap map) voidsetLocalizableProperties(Locale locale, com.sas.storage.editableproperties.PropertyMap map) voidsetPromptEnabledObject(MetadataInterface metaObject) Sets an association between the prompt and metaObject unless the prompt is public.voidsetPromptInfo(String promptInfo) Set a string of XML that represents an instance of a PromptDefinitionInterface.voidsetPromptType(int type) Sets a value corresponding to the type of PromptDefinitionInterface.voidsetSubstitutionProperties(com.sas.storage.editableproperties.PropertyMap map) If the map contains a nested property whose key equals the name of this smart object, it will be passed to the wrapped prompt for processing.Methods 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, countAssociatedObjects, deleteAttribute, deleteAttributes, deleteRootObject, destroy, fromByteArray, getAccessControls, getAttribute, getAttributes, getAuthorizationUtil, getContainer, getCreateDate, getCreatedBy, getDefaultLocalizableProperties, getDescription, 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, getUsedByPrototypes, getUsingPrototype, getVersion, hashCode, isAuthorized, isCompatible, isConnectionException, isDeleted, isDestroyed, isLoggingEnabled, isObjectAlive, isReadCompatible, logFormat, logFormat, logFormat, logFormat, logMessage, logMessage, logThrowable, mapNameToFilesystem, mapUrlToFilesystem, moveTo, newServiceObject, notifyTransactionListeners, refresh, removeAccessControl, removeDocument, removeExtension, removeFromList, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, reset, rollback, setAttribute, setAttributes, setCompatibility, setDefaultLocalizableProperties, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, 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.prompt.BaseOMRPromptInterface
addPromptReference, addReferencedPrompt, addValueSource, getPromptEnabledObject, getPromptReferences, getReferencedPrompts, getValueSources, isPublic, removeAllPromptReferences, removeAllReferencedPrompts, removeAllValueSources, removePromptEnabledObject, removePromptReference, removeReferencedPrompt, setPromptEnabledObjectMethods 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, getDescription, 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, newServiceObject, refresh, removeAccessControl, removeDocument, removeExtension, removeGroup, removeImplementor, removeKeyword, removeNoteTextStore, removeObjectProperty, removePermissions, removePrompt, removePropertySet, removeResponsibleParty, removeResponsiblePartyByIdentity, removeUsedByPrototype, rollback, setAttribute, setAttributes, setDeleted, setDescription, setDocuments, setExtensions, setGroups, setGUID, setKeywords, setName, 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
-
Field Details
-
LOG_CONTEXT
protected final String LOG_CONTEXT -
RB_KEY
protected static final String RB_KEY- See Also:
-
OLDEST_VERSION
public static final com.sas.util.UsageVersion OLDEST_VERSION -
CURRENT_VERSION
public static final com.sas.util.UsageVersion CURRENT_VERSION
-
-
Constructor Details
-
OMRPromptDefinition
public OMRPromptDefinition(com.sas.metadata.remote.Prompt arg0) throws RemoteException - Parameters:
arg0-- Throws:
RemoteException
-
OMRPromptDefinition
public OMRPromptDefinition() throws RemoteException- Throws:
RemoteException
-
OMRPromptDefinition
public OMRPromptDefinition(Object arg0, Class arg1) throws RemoteException - Parameters:
arg0-arg1-- Throws:
RemoteException
-
OMRPromptDefinition
public OMRPromptDefinition(com.sas.metadata.remote.impl.PromptImpl arg0) throws RemoteException - Parameters:
arg0-- Throws:
RemoteException
-
OMRPromptDefinition
public OMRPromptDefinition(com.sas.metadata.remote.impl.PromptImpl_Stub arg0) throws RemoteException - Throws:
RemoteException
-
OMRPromptDefinition
public OMRPromptDefinition(RepositoryInterface repos, String name, FolderInterface parent) throws RemoteException Constructor for OMRPromptDefinition.- Parameters:
repos- RepositoryInterfacename- Stringparent- FolderInterface- Throws:
RemoteException
-
-
Method Details
-
getType
public String getType()Returns SmartTypes.TYPE_PROMPT, i.e. "Prompt", the smart object type.- Specified by:
getTypein interfaceMetadataInterface- Overrides:
getTypein classMetadata- Returns:
- String
- See Also:
-
getPromptInfo
Description copied from interface:OMRPromptDefinitionInterfaceReturns the XML string of prompt info. The XML can be parsed into a PromptDefinitionInterface instance.- Specified by:
getPromptInfoin interfaceOMRPromptDefinitionInterface- Returns:
- String of XML
- Throws:
RemoteExceptionServiceException
-
setPromptInfo
Description copied from interface:OMRPromptDefinitionInterfaceSet a string of XML that represents an instance of a PromptDefinitionInterface.- Specified by:
setPromptInfoin interfaceOMRPromptDefinitionInterface- Parameters:
promptInfo- String of XML- Throws:
RemoteExceptionServiceException
-
setPromptType
Description copied from interface:OMRPromptDefinitionInterfaceSets a value corresponding to the type of PromptDefinitionInterface. The valid values can be obtained fromcom.sas.prompts.definitions.PromptDefinitionEnum.getOrdinal().- Specified by:
setPromptTypein interfaceOMRPromptDefinitionInterface- Parameters:
type- int- Throws:
RemoteExceptionServiceException
-
getPromptType
Description copied from interface:OMRPromptDefinitionInterfaceReturns a value corresponding to the type of PromptDefinitionInterface.- Specified by:
getPromptTypein interfaceOMRPromptDefinitionInterface- Returns:
- int
- Throws:
RemoteExceptionServiceException
-
getPromptDefinition
public com.sas.prompts.definitions.PromptDefinitionInterface getPromptDefinition() throws RemoteException, ServiceExceptionDescription copied from interface:OMRPromptDefinitionInterfaceReturns thecom.sas.prompts.definitions.PromptDefinitionInterfaceobject created by the XML returned fromgetDefinitionInfo(). Null will be returned if there is no XML available or it does not result in a valid instance of PromptDefinitionInterface.If any missing resources are detected, an unmodifiable copy of
com.sas.util.xmlpersist.PromptsReadingContext.getMissingResources()will be available fromsessionContext.getAttribute(com.sas.util.xmlpersist.PersistConstants.MISSING_RESOURCES). This is contingent upon the available userContext containing a session context.- Specified by:
getPromptDefinitionin interfaceOMRPromptDefinitionInterface- Returns:
- the prompt definition
- Throws:
RemoteExceptionServiceException- if exceptions occur parsing xml and creating objects
-
getPromptDefinition
public com.sas.prompts.definitions.PromptDefinitionInterface getPromptDefinition(com.sas.util.xmlpersist.PromptsReadingContext readingContext) throws RemoteException, ServiceException Description copied from interface:OMRPromptDefinitionInterfaceReturns thecom.sas.prompts.definitions.PromptDefinitionInterfaceobject created by the XML returned fromgetDefinitionInfo(). Null will be returned if there is no XML available or it does not result in a valid instance of PromptDefinitionInterface. The reading context will be used, if supplied. Otherwise a "placeholder" PromptsReadingContext will be created and passed to the XML parsing routine. A reading context may be obtained via methods oncom.sas.services.information.metadata.prompts.PersistenceFactoryWithServices/- Specified by:
getPromptDefinitionin interfaceOMRPromptDefinitionInterface- Parameters:
readingContext-- Returns:
- the prompt definition
- Throws:
RemoteExceptionServiceException- if exceptions occur parsing xml and creating objects
-
getLocalizableProperties
public com.sas.storage.editableproperties.PropertyList getLocalizableProperties() throws com.sas.storage.editableproperties.UnexpectedLocalizationException- Specified by:
getLocalizablePropertiesin interfacecom.sas.storage.editableproperties.LocalizableProperties- Throws:
com.sas.storage.editableproperties.UnexpectedLocalizationException
-
getLocales
public Collection getLocales() throws com.sas.storage.editableproperties.UnexpectedLocalizationException- Specified by:
getLocalesin interfacecom.sas.storage.editableproperties.MultiLocaleProperties- Throws:
com.sas.storage.editableproperties.UnexpectedLocalizationException
-
getLocalizableProperties
public com.sas.storage.editableproperties.PropertyList getLocalizableProperties(Locale locale) throws com.sas.storage.editableproperties.UnexpectedLocalizationException - Specified by:
getLocalizablePropertiesin interfacecom.sas.storage.editableproperties.MultiLocaleProperties- Throws:
com.sas.storage.editableproperties.UnexpectedLocalizationException
-
beginLocalization
public void beginLocalization() throws com.sas.storage.editableproperties.UnexpectedLocalizationException- Specified by:
beginLocalizationin interfacecom.sas.storage.editableproperties.MultiLocaleProperties- Throws:
com.sas.storage.editableproperties.UnexpectedLocalizationException
-
setLocalizableProperties
public void setLocalizableProperties(com.sas.storage.editableproperties.PropertyMap map) throws com.sas.storage.editableproperties.UnexpectedLocalizationException - Specified by:
setLocalizablePropertiesin interfacecom.sas.storage.editableproperties.LocalizableProperties- Throws:
com.sas.storage.editableproperties.UnexpectedLocalizationException
-
setLocalizableProperties
public void setLocalizableProperties(Locale locale, com.sas.storage.editableproperties.PropertyMap map) throws com.sas.storage.editableproperties.UnexpectedLocalizationException - Specified by:
setLocalizablePropertiesin interfacecom.sas.storage.editableproperties.MultiLocaleProperties- Throws:
com.sas.storage.editableproperties.UnexpectedLocalizationException
-
endLocalization
public void endLocalization() throws com.sas.storage.editableproperties.UnexpectedLocalizationException- Specified by:
endLocalizationin interfacecom.sas.storage.editableproperties.MultiLocaleProperties- Throws:
com.sas.storage.editableproperties.UnexpectedLocalizationException
-
getSubstitutionProperties
public com.sas.storage.editableproperties.PropertyList getSubstitutionProperties() throws com.sas.storage.editableproperties.UnexpectedSubstitutionExceptionReturns a non-null property list. If this holds a prompt that implements SubstitutionProperties, this method will return the prompt's list as a nested list with this smart object's name as the key.- Specified by:
getSubstitutionPropertiesin interfacecom.sas.storage.editableproperties.SubstitutionProperties- See Also:
-
setSubstitutionProperties
public void setSubstitutionProperties(@NotNull com.sas.storage.editableproperties.PropertyMap map) throws com.sas.storage.editableproperties.UnexpectedSubstitutionException If the map contains a nested property whose key equals the name of this smart object, it will be passed to the wrapped prompt for processing.- Specified by:
setSubstitutionPropertiesin interfacecom.sas.storage.editableproperties.SubstitutionProperties- See Also:
-
removePromptEnabledObject
Description copied from interface:BaseOMRPromptInterfaceRemoves the prompt-enabled object associated with this prompt. Removal effectively orphans this prompt, so this prompt should either be deleted or associated with a different prompt-enabled object.- Specified by:
removePromptEnabledObjectin interfaceBaseOMRPromptInterface- Throws:
RemoteExceptionServiceException
-
setPromptEnabledObject
public void setPromptEnabledObject(MetadataInterface metaObject) throws RemoteException, ServiceException Description copied from interface:BaseOMRPromptInterfaceSets an association between the prompt and metaObject unless the prompt is public. In that case a ServiceException is thrown.- Specified by:
setPromptEnabledObjectin interfaceBaseOMRPromptInterface- Parameters:
metaObject-- Throws:
RemoteExceptionServiceException
-
getPromptEnabledObject
Description copied from interface:BaseOMRPromptInterfaceGets the metadata object associated with this prompt.- Specified by:
getPromptEnabledObjectin interfaceBaseOMRPromptInterface- Returns:
- MetadataInterface
- Throws:
RemoteExceptionServiceException
-
addValueSource
Description copied from interface:BaseOMRPromptInterfaceAdds the metaObject as a value source. The value sources are used for metadata impact analysis. Impact analysis provides warnings when linked metadata objects are threatened by changes to a metadata object.- Specified by:
addValueSourcein interfaceBaseOMRPromptInterface- Parameters:
metaObject- MetadataInterface- Throws:
RemoteExceptionServiceException
-
getValueSources
Description copied from interface:BaseOMRPromptInterfaceReturns a list of MetadataInterface items that are value sources for the prompt. If none exist, an empty list is returned.- Specified by:
getValueSourcesin interfaceBaseOMRPromptInterface- Returns:
- List with MetadataInterface items
- Throws:
RemoteException- if network problems occurServiceException- if problems occur accessing metadata
-
removeAllValueSources
Description copied from interface:BaseOMRPromptInterfaceRemoves all value sources associated with the prompt.- Specified by:
removeAllValueSourcesin interfaceBaseOMRPromptInterface- Throws:
RemoteExceptionServiceException
-
addPromptReference
public void addPromptReference(BaseOMRPromptInterface prompt) throws RemoteException, ServiceException Description copied from interface:BaseOMRPromptInterfaceAdd the supplied prompt as a reference to this prompt, where this prompt is a shared prompt definition or group in a tree folder (therefore a public prompt). The supplied prompt may not itself be a shared prompt. References may only exist between shared and unshared prompt objects. Ifthis.isPublic()returns false, a ServiceException will be thrown. Ifprompt.isPublic()returns true, a ServiceException will be thrown.- Specified by:
addPromptReferencein interfaceBaseOMRPromptInterface- Parameters:
prompt- the prompt to add as a reference- Throws:
RemoteExceptionServiceException
-
removePromptReference
public void removePromptReference(BaseOMRPromptInterface prompt) throws RemoteException, ServiceException Description copied from interface:BaseOMRPromptInterfaceRemoves the supplied prompt from the list of prompt references held by this prompt.- Specified by:
removePromptReferencein interfaceBaseOMRPromptInterface- Parameters:
prompt- to remove- Throws:
RemoteExceptionServiceException
-
removeAllPromptReferences
Description copied from interface:BaseOMRPromptInterfaceRemoves all prompt references such that this shared prompt is no longer linked to any other prompts.- Specified by:
removeAllPromptReferencesin interfaceBaseOMRPromptInterface- Throws:
RemoteExceptionServiceException
-
getPromptReferences
Description copied from interface:BaseOMRPromptInterfaceReturns a list of prompt references held by this prompt. The references are to the prompt objects that link to this shared prompt.- Specified by:
getPromptReferencesin interfaceBaseOMRPromptInterface- Returns:
- the list of BaseOMRPromptInterface objects
- Throws:
RemoteExceptionServiceException
-
addReferencedPrompt
public void addReferencedPrompt(BaseOMRPromptInterface prompt) throws RemoteException, ServiceException Description copied from interface:BaseOMRPromptInterfaceAdds a referenced prompt (a shared prompt definition or prompt group that is in a tree folder) to the list of referenced prompts kept by this prompt object. This prompt may not be a shared, public prompt. References may only exist between shared and unshared prompt objects. Ifthis.isPublic()returns true, a ServiceException will be thrown. Ifprompt.isPublic()returns false, a ServiceException will be thrown.- Specified by:
addReferencedPromptin interfaceBaseOMRPromptInterface- Parameters:
prompt- to add- Throws:
RemoteExceptionServiceException
-
removeReferencedPrompt
public void removeReferencedPrompt(BaseOMRPromptInterface prompt) throws RemoteException, ServiceException Description copied from interface:BaseOMRPromptInterfaceRemove the supplied prompt (a shared prompt in a tree folder) from the list of referenced prompts held by this prompt.- Specified by:
removeReferencedPromptin interfaceBaseOMRPromptInterface- Parameters:
prompt- to remove- Throws:
RemoteExceptionServiceException
-
removeAllReferencedPrompts
Description copied from interface:BaseOMRPromptInterfaceRemoves all referenced prompts such that this prompt is no longer linked to any shared prompts.- Specified by:
removeAllReferencedPromptsin interfaceBaseOMRPromptInterface- Throws:
RemoteExceptionServiceException
-
getReferencedPrompts
Description copied from interface:BaseOMRPromptInterfaceReturns a list of all referenced prompts (shared prompts in a tree folder) held by this prompt.- Specified by:
getReferencedPromptsin interfaceBaseOMRPromptInterface- Returns:
- the list of BaseOMRPromptInterface objects
- Throws:
RemoteExceptionServiceException
-
delete
Removes all prompt references, all referenced prompts, all value sources, then calls super.delete().- Specified by:
deletein interfaceMetadataInterface- Overrides:
deletein classMetadata- Throws:
ServiceException- in the event of a repository failure.RemoteException- in the event of a network failure.- See Also:
-
copyTo
public MetadataInterface copyTo(FolderInterface folder, String name) throws ServiceException, RemoteException This override assures that the copy has the original's value sources set on it.- Specified by:
copyToin interfaceMetadataInterface- Overrides:
copyToin classMetadata- Parameters:
folder- The folder to be the parent of the new object.name- The name of the new object.- Returns:
- The new copy of this object.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of remote object failure.- See Also:
-
isPublic
- Specified by:
isPublicin interfaceBaseOMRPromptInterface- Throws:
ServiceExceptionRemoteException
-
getPromptFromXML
protected com.sas.util.xmlpersist.PersistenceInterface getPromptFromXML(com.sas.util.xmlpersist.PromptsReadingContext readingContext, String xml) throws RemoteException, ServiceException - Parameters:
readingContext-xml-- Returns:
- a PersistenceInterface object
- Throws:
RemoteExceptionServiceException
-
getUsageVersion
public com.sas.util.UsageVersion getUsageVersion() throws RemoteExceptionThis method adds a micro version representing the major and minor version of the XML stored in this object. For example, XML of version 1.5 adds a micro version of 15.- Specified by:
getUsageVersionin interfaceMetadataInterface- Overrides:
getUsageVersionin classMetadata- Returns:
- The metadata usage version.
- Throws:
RemoteException- In the event of remote object failure.- See Also:
-