|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.metadata.prompt.OMRPromptGroup
@SASScope(value="ALL") @BinaryCompatibilityOnly public final class OMRPromptGroup
This object represents an instance of com.sas.prompts.groups.PromptGroupInterface
as stored in metadata. The group info is a string of XML that can be deserialized into a
prompt group instance via the getPromptGroup() method.
| Field Summary | |
|---|---|
static com.sas.util.UsageVersion |
CURRENT_VERSION
|
protected java.lang.String |
LOG_CONTEXT
|
static com.sas.util.UsageVersion |
OLDEST_VERSION
|
protected static java.lang.String |
RB_KEY
|
| 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, SLASH |
| 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 |
| Constructor Summary | |
|---|---|
OMRPromptGroup()
|
|
OMRPromptGroup(java.lang.Object arg0,
java.lang.Class arg1)
|
|
OMRPromptGroup(com.sas.metadata.remote.PromptGroup arg0)
|
|
OMRPromptGroup(com.sas.metadata.remote.impl.PromptGroupImpl_Stub arg0)
|
|
OMRPromptGroup(com.sas.metadata.remote.impl.PromptGroupImpl arg0)
|
|
OMRPromptGroup(RepositoryInterface repos,
java.lang.String name,
FolderInterface parent)
Constructor for OMRPromptGroup. |
|
| Method Summary | |
|---|---|
void |
addPromptReference(BaseOMRPromptInterface prompt)
Add 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). |
void |
addReferencedPrompt(BaseOMRPromptInterface prompt)
Adds 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. |
void |
addValueSource(MetadataInterface metaObject)
Adds the metaObject as a value source. |
void |
beginLocalization()
|
MetadataInterface |
copyTo(FolderInterface folder,
java.lang.String name)
This override assures that the copy has the original's value sources set on it. |
void |
delete()
Removes all prompt references, all referenced prompts, all value sources, then calls super.delete(). |
void |
endLocalization()
|
java.lang.String |
getGroupInfo()
Returns the XML string of group info. |
int |
getGroupType()
Returns a value corresponding to the type of PromptGroupInterface. |
java.util.Collection |
getLocales()
|
com.sas.storage.editableproperties.PropertyList |
getLocalizableProperties()
|
com.sas.storage.editableproperties.PropertyList |
getLocalizableProperties(java.util.Locale locale)
|
MetadataInterface |
getPromptEnabledObject()
Gets the metadata object associated with this prompt. |
protected com.sas.util.xmlpersist.PersistenceInterface |
getPromptFromXML(com.sas.util.xmlpersist.PromptsReadingContext readingContext,
java.lang.String xml)
|
com.sas.prompts.groups.PromptGroupInterface |
getPromptGroup()
Returns the com.sas.prompts.groups.PromptGroupInterface object created by
the XML returned from getGroupInfo(). |
com.sas.prompts.groups.PromptGroupInterface |
getPromptGroup(com.sas.util.xmlpersist.PromptsReadingContext readingContext)
Returns the com.sas.prompts.groups.PromptGroupInterface object created by
the XML returned from getGroupInfo(). |
java.util.List |
getPromptReferences()
Returns a list of prompt references held by this prompt. |
java.util.List |
getReferencedPrompts()
Returns a list of all referenced prompts (shared prompts in a tree folder) held by this prompt. |
com.sas.storage.editableproperties.PropertyList |
getSubstitutionProperties()
Returns a non-null property list. |
java.lang.String |
getType()
Returns "PromptGroup", the smart object type. |
com.sas.util.UsageVersion |
getUsageVersion()
This method adds a micro version representing the major and minor version of the XML stored in this object. |
java.util.List |
getValueSources()
Returns a list of MetadataInterface items that are value sources for the prompt. |
boolean |
isPublic()
|
void |
removeAllPromptReferences()
Removes all prompt references such that this shared prompt is no longer linked to any other prompts. |
void |
removeAllReferencedPrompts()
Removes all referenced prompts such that this prompt is no longer linked to any shared prompts. |
void |
removeAllValueSources()
Removes all value sources associated with the prompt. |
void |
removePromptEnabledObject()
Removes the prompt-enabled object associated with this prompt. |
void |
removePromptReference(BaseOMRPromptInterface prompt)
Removes the supplied prompt from the list of prompt references held by this prompt. |
void |
removeReferencedPrompt(BaseOMRPromptInterface prompt)
Remove the supplied prompt (a shared prompt in a tree folder) from the list of referenced prompts held by this prompt. |
void |
setGroupInfo(java.lang.String groupInfo)
Set a string of XML that represents an instance of a PromptGroupInterface. |
void |
setGroupType(int type)
Sets a value corresponding to the type of PromptGroupInterface. |
void |
setLocalizableProperties(java.util.Locale locale,
com.sas.storage.editableproperties.PropertyMap map)
|
void |
setLocalizableProperties(com.sas.storage.editableproperties.PropertyMap map)
|
void |
setPromptEnabledObject(MetadataInterface metaObject)
Sets an association between the prompt and metaObject unless the prompt is public. |
void |
setSubstitutionProperties(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 interface com.sas.services.information.metadata.prompt.BaseOMRPromptInterface |
|---|
addPromptReference, addReferencedPrompt, addValueSource, getPromptEnabledObject, getPromptReferences, getReferencedPrompts, getValueSources, isPublic, removeAllPromptReferences, removeAllReferencedPrompts, removeAllValueSources, removePromptEnabledObject, removePromptReference, removeReferencedPrompt, setPromptEnabledObject |
| Methods inherited from interface com.sas.services.information.publicobject.PublicObjectInterface |
|---|
addProcessorInterface, getContainer, getIdentifier, getName, getObjectURI, getPathUrl, getProcessorInterface, getTypeDescriptor |
| Field Detail |
|---|
protected final java.lang.String LOG_CONTEXT
protected static final java.lang.String RB_KEY
public static final com.sas.util.UsageVersion OLDEST_VERSION
public static final com.sas.util.UsageVersion CURRENT_VERSION
| Constructor Detail |
|---|
public OMRPromptGroup(com.sas.metadata.remote.PromptGroup arg0)
throws java.rmi.RemoteException
arg0 -
java.rmi.RemoteException
public OMRPromptGroup()
throws java.rmi.RemoteException
java.rmi.RemoteException
public OMRPromptGroup(java.lang.Object arg0,
java.lang.Class arg1)
throws java.rmi.RemoteException
arg0 - arg1 -
java.rmi.RemoteException
public OMRPromptGroup(com.sas.metadata.remote.impl.PromptGroupImpl arg0)
throws java.rmi.RemoteException
arg0 -
java.rmi.RemoteException
public OMRPromptGroup(com.sas.metadata.remote.impl.PromptGroupImpl_Stub arg0)
throws java.rmi.RemoteException
java.rmi.RemoteException
public OMRPromptGroup(RepositoryInterface repos,
java.lang.String name,
FolderInterface parent)
throws java.rmi.RemoteException
repos parameter may not be null.
repos - RepositoryInterfacename - Stringparent - FolderInterface
java.rmi.RemoteException| Method Detail |
|---|
public java.lang.String getType()
getType in interface MetadataInterfacegetType in class MetadataMetadataInterface.getType()
public java.lang.String getGroupInfo()
throws java.rmi.RemoteException,
ServiceException
OMRPromptGroupInterface
getGroupInfo in interface OMRPromptGroupInterfacejava.rmi.RemoteException
ServiceException
public void setGroupInfo(java.lang.String groupInfo)
throws java.rmi.RemoteException,
ServiceException
OMRPromptGroupInterface
setGroupInfo in interface OMRPromptGroupInterfacegroupInfo - String
java.rmi.RemoteException
ServiceException
public void setGroupType(int type)
throws java.rmi.RemoteException,
ServiceException
OMRPromptGroupInterfacecom.sas.prompts.groups.PromptGroupEnum.getOrdinal().
setGroupType in interface OMRPromptGroupInterfacetype - int
java.rmi.RemoteException
ServiceException
public int getGroupType()
throws java.rmi.RemoteException,
ServiceException
OMRPromptGroupInterface
getGroupType in interface OMRPromptGroupInterfacejava.rmi.RemoteException
ServiceException
public com.sas.prompts.groups.PromptGroupInterface getPromptGroup()
throws java.rmi.RemoteException,
ServiceException
OMRPromptGroupInterfacecom.sas.prompts.groups.PromptGroupInterface object created by
the XML returned from getGroupInfo(). Null will be returned if there is
no XML available or it does not result in a valid instance of PromptGroupInterface.
* If any missing resources are detected, an unmodifiable copy of com.sas.util.xmlpersist.PromptsReadingContext.getMissingResources()
will be available from
sessionContext.getAttribute(com.sas.util.xmlpersist.PersistConstants.MISSING_RESOURCES).
This is contingent upon the available userContext containing a session context.
getPromptGroup in interface OMRPromptGroupInterfacejava.rmi.RemoteException
ServiceException - if exceptions occur parsing xml and creating objects
public com.sas.prompts.groups.PromptGroupInterface getPromptGroup(com.sas.util.xmlpersist.PromptsReadingContext readingContext)
throws java.rmi.RemoteException,
ServiceException
OMRPromptGroupInterfacecom.sas.prompts.groups.PromptGroupInterface object created by
the XML returned from getGroupInfo(). Null will be returned if there is
no XML available or it does not result in a valid instance of PromptGroupInterface.
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 on com.sas.services.information.metadata.prompts.PersistenceFactoryWithServices/
getPromptGroup in interface OMRPromptGroupInterfacejava.rmi.RemoteException
ServiceException - if exceptions occur parsing xml and creating objects
public com.sas.storage.editableproperties.PropertyList getLocalizableProperties()
throws com.sas.storage.editableproperties.UnexpectedLocalizationException
getLocalizableProperties in interface com.sas.storage.editableproperties.LocalizablePropertiescom.sas.storage.editableproperties.UnexpectedLocalizationException
public java.util.Collection getLocales()
throws com.sas.storage.editableproperties.UnexpectedLocalizationException
getLocales in interface com.sas.storage.editableproperties.MultiLocalePropertiescom.sas.storage.editableproperties.UnexpectedLocalizationException
public com.sas.storage.editableproperties.PropertyList getLocalizableProperties(java.util.Locale locale)
throws com.sas.storage.editableproperties.UnexpectedLocalizationException
getLocalizableProperties in interface com.sas.storage.editableproperties.MultiLocalePropertiescom.sas.storage.editableproperties.UnexpectedLocalizationException
public void beginLocalization()
throws com.sas.storage.editableproperties.UnexpectedLocalizationException
beginLocalization in interface com.sas.storage.editableproperties.MultiLocalePropertiescom.sas.storage.editableproperties.UnexpectedLocalizationException
public void setLocalizableProperties(com.sas.storage.editableproperties.PropertyMap map)
throws com.sas.storage.editableproperties.UnexpectedLocalizationException
setLocalizableProperties in interface com.sas.storage.editableproperties.LocalizablePropertiescom.sas.storage.editableproperties.UnexpectedLocalizationException
public void setLocalizableProperties(java.util.Locale locale,
com.sas.storage.editableproperties.PropertyMap map)
throws com.sas.storage.editableproperties.UnexpectedLocalizationException
setLocalizableProperties in interface com.sas.storage.editableproperties.MultiLocalePropertiescom.sas.storage.editableproperties.UnexpectedLocalizationException
public void endLocalization()
throws com.sas.storage.editableproperties.UnexpectedLocalizationException
endLocalization in interface com.sas.storage.editableproperties.MultiLocalePropertiescom.sas.storage.editableproperties.UnexpectedLocalizationException
public com.sas.storage.editableproperties.PropertyList getSubstitutionProperties()
throws com.sas.storage.editableproperties.UnexpectedSubstitutionException
getSubstitutionProperties in interface com.sas.storage.editableproperties.SubstitutionPropertiesdeclared - exception wrapping RemoteException or ServiceException
com.sas.storage.editableproperties.UnexpectedSubstitutionExceptionSubstitutionProperties.getSubstitutionProperties()
public void setSubstitutionProperties(@NotNull
com.sas.storage.editableproperties.PropertyMap map)
throws com.sas.storage.editableproperties.UnexpectedSubstitutionException
setSubstitutionProperties in interface com.sas.storage.editableproperties.SubstitutionPropertiesdeclared - exception wrapping RemoteException or ServiceException
com.sas.storage.editableproperties.UnexpectedSubstitutionExceptionSubstitutionProperties.setSubstitutionProperties(com.sas.storage.editableproperties.PropertyMap)
public void removePromptEnabledObject()
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
removePromptEnabledObject in interface BaseOMRPromptInterfacejava.rmi.RemoteException
ServiceException
public void setPromptEnabledObject(MetadataInterface metaObject)
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
setPromptEnabledObject in interface BaseOMRPromptInterfacejava.rmi.RemoteException
ServiceException
public MetadataInterface getPromptEnabledObject()
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
getPromptEnabledObject in interface BaseOMRPromptInterfacejava.rmi.RemoteException
ServiceException
public void addValueSource(MetadataInterface metaObject)
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
addValueSource in interface BaseOMRPromptInterfacemetaObject - MetadataInterface
java.rmi.RemoteException
ServiceException
public java.util.List getValueSources()
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
getValueSources in interface BaseOMRPromptInterfacejava.rmi.RemoteException - if network problems occur
ServiceException - if problems occur accessing metadata
public void removeAllValueSources()
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
removeAllValueSources in interface BaseOMRPromptInterfacejava.rmi.RemoteException
ServiceException
public void addPromptReference(BaseOMRPromptInterface prompt)
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterfacethis.isPublic() returns false, a ServiceException will be thrown.
If prompt.isPublic() returns true, a ServiceException will be thrown.
addPromptReference in interface BaseOMRPromptInterfaceprompt - the prompt to add as a reference
java.rmi.RemoteException
ServiceException
public void removePromptReference(BaseOMRPromptInterface prompt)
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
removePromptReference in interface BaseOMRPromptInterfaceprompt - to remove
java.rmi.RemoteException
ServiceException
public void removeAllPromptReferences()
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
removeAllPromptReferences in interface BaseOMRPromptInterfacejava.rmi.RemoteException
ServiceException
public java.util.List getPromptReferences()
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
getPromptReferences in interface BaseOMRPromptInterfacejava.rmi.RemoteException
ServiceException
public void addReferencedPrompt(BaseOMRPromptInterface prompt)
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterfacethis.isPublic() returns true, a ServiceException will be thrown.
If prompt.isPublic() returns false, a ServiceException will be thrown.
addReferencedPrompt in interface BaseOMRPromptInterfaceprompt - to add
java.rmi.RemoteException
ServiceException
public void removeReferencedPrompt(BaseOMRPromptInterface prompt)
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
removeReferencedPrompt in interface BaseOMRPromptInterfaceprompt - to remove
java.rmi.RemoteException
ServiceException
public void removeAllReferencedPrompts()
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
removeAllReferencedPrompts in interface BaseOMRPromptInterfacejava.rmi.RemoteException
ServiceException
public java.util.List getReferencedPrompts()
throws java.rmi.RemoteException,
ServiceException
BaseOMRPromptInterface
getReferencedPrompts in interface BaseOMRPromptInterfacejava.rmi.RemoteException
ServiceException
public void delete()
throws ServiceException,
java.rmi.RemoteException
delete in interface MetadataInterfacedelete in class MetadataServiceException - in the event of a repository failure.
java.rmi.RemoteException - in the event of a network failure.Metadata.delete()
public MetadataInterface copyTo(FolderInterface folder,
java.lang.String name)
throws ServiceException,
java.rmi.RemoteException
copyTo in interface MetadataInterfacecopyTo in class Metadatafolder - The folder to be the parent of the new object.name - The name of the new object.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of remote object failure.Metadata.copyTo(com.sas.services.information.metadata.FolderInterface, java.lang.String)
public boolean isPublic()
throws ServiceException,
java.rmi.RemoteException
isPublic in interface BaseOMRPromptInterfaceServiceException
java.rmi.RemoteException
protected com.sas.util.xmlpersist.PersistenceInterface getPromptFromXML(com.sas.util.xmlpersist.PromptsReadingContext readingContext,
java.lang.String xml)
throws java.rmi.RemoteException,
ServiceException
readingContext - xml -
java.rmi.RemoteException
ServiceException
public com.sas.util.UsageVersion getUsageVersion()
throws java.rmi.RemoteException
getUsageVersion in interface MetadataInterfacegetUsageVersion in class Metadatajava.rmi.RemoteException - In the event of remote object failure.Metadata.getUsageVersion()
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||