|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
com.sapportals.wcm.rendering.uicommand.UICommandFactory
| Inner classes inherited from class com.sapportals.wcm.rendering.base.IFactoryInfoProvider |
IFactoryInfoProvider.MappingInformation |
| Field Summary | |
static java.lang.String |
KEY_ALIAS
|
static java.lang.String |
KEY_CLASS
|
static java.lang.String |
KEY_DESCRIPTION
|
static java.lang.String |
KEY_EMB_LABEL
|
static java.lang.String |
KEY_EMB_MASS_LABEL
|
static java.lang.String |
KEY_EMB_MASS_TOOLTIP
|
static java.lang.String |
KEY_EMB_TOOLTIP
|
static java.lang.String |
KEY_GROUP_BUNDLE_FILE
|
static java.lang.String |
KEY_GROUP_BUNDLE_LABEL
|
static java.lang.String |
KEY_GROUP_BUNDLE_TOOPTIP
|
static java.lang.String |
KEY_GROUP_COMMANDS_LIST
|
static java.lang.String |
KEY_GROUP_LABEL
|
static java.lang.String |
KEY_GROUP_TOOPTIP
|
static java.lang.String |
KEY_ICON_PATH
|
static java.lang.String |
KEY_INPUT_CONTROL_TEXT_1
|
static java.lang.String |
KEY_INPUT_CONTROL_TEXT_2
|
static java.lang.String |
KEY_LAYOUT_SET
|
static java.lang.String |
KEY_MASSCOMMAND
|
static java.lang.String |
KEY_PARAMETERS
|
static java.lang.String |
KEY_PROPERTIES
|
static java.lang.String |
KEY_ROLE_MAPPING
|
static java.lang.String |
LINE_BREAK
constant used to separate debugging information |
static ResourceBundles |
resBundleDefault
|
| Method Summary | |
java.lang.Boolean |
checkSecurity(IExecCommand command,
IResourceContext context)
|
void |
configEvent(com.sapportals.config.event.ConfigEvent parm1)
is called by the configuration, if configuration for the factory was changed. |
java.util.ArrayList |
createTargetValues(IExecCommand command)
returns the arraylist with all the information needed by the given IUICommand
to do its work. |
java.util.ArrayList |
createTargetValues(IMassExecCommand command)
returns the arraylist with all the information needed by the given IUIMassCommand
to do its work. |
IMassExecCommand |
decodeMassTarget(java.util.ArrayList values,
IResourceContext context,
IProxy proxy)
returns a properly created instance of an IUIMassCommand as it
was encoded in the given array list by the factories createTarget
. |
IExecCommand |
decodeTarget(java.util.ArrayList values,
IResourceContext context,
IProxy proxy)
returns a properly created instance of an IUICommand as it was
encoded in the given array list by the factories createTarget.
|
IUIBaseCommand |
decodeTargetCommand(java.util.ArrayList values,
IResourceContext context,
IProxy proxy)
returns a properly created instance of an IUICommand as it was
encoded in the given array list by the factories createTarget.
|
IUIBaseCommand |
getCommandByAlias(java.lang.String alias,
IResourceContext context)
returns a command that is mapped to the given alias. |
java.lang.String |
getConfigListenerId()
Gets the configListenerId attribute of the UICommandFactory object This stays the same regardless of the instance of the factory! |
java.lang.String |
getFactoryName()
|
IUIGroupCommand |
getGroupCommand(IResource resource,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName group,
com.sapportals.wcm.repository.service.layout.customizing.flavor.IFlavor flavor,
java.util.Hashtable table)
returns the configured group command for the given resource. |
IUIBaseCommand |
getGroupCommandByID(java.lang.String groupID,
IResourceContext context)
returns a new instance - ready to use - for the groupcommand that is mapped to the given parameter. |
static UICommandFactory |
getInstance()
Gets the instance attribute of the UICommandFactory class. |
long |
getLastReloadTime()
|
java.util.List |
getMappings(java.util.Locale locale)
|
java.util.List |
getPresentConfiguration(IResourceContext context)
returns a list of setting information of the groupcommands. |
java.lang.String |
getPresentConfiguration(IResourceContext context,
java.lang.String style,
boolean showJavaClassNames)
returns a string representation of the structure of all defined groupcommands with their children. |
IPropertyNameList |
getRequiredProperties(java.lang.String groupID)
|
java.lang.String |
getScreenflowAlias(java.lang.String commandalias)
is a convinience method to allow the easier use of the InitialScreenflowProvider
technology. |
IExecCommand |
getSingleCommandByAlias(java.lang.String commandalias,
IResource res)
|
Status |
getStatus()
|
| Field Detail |
public static final java.lang.String LINE_BREAK
public static final java.lang.String KEY_ALIAS
public static final java.lang.String KEY_CLASS
public static final java.lang.String KEY_DESCRIPTION
public static final java.lang.String KEY_ICON_PATH
public static final java.lang.String KEY_MASSCOMMAND
public static final java.lang.String KEY_ROLE_MAPPING
public static final java.lang.String KEY_GROUP_COMMANDS_LIST
public static final java.lang.String KEY_LAYOUT_SET
public static final java.lang.String KEY_PROPERTIES
public static final java.lang.String KEY_PARAMETERS
public static final java.lang.String KEY_GROUP_LABEL
public static final java.lang.String KEY_GROUP_TOOPTIP
public static final java.lang.String KEY_GROUP_BUNDLE_LABEL
public static final java.lang.String KEY_GROUP_BUNDLE_TOOPTIP
public static final java.lang.String KEY_GROUP_BUNDLE_FILE
public static final java.lang.String KEY_EMB_TOOLTIP
public static final java.lang.String KEY_EMB_MASS_LABEL
public static final java.lang.String KEY_EMB_MASS_TOOLTIP
public static final java.lang.String KEY_EMB_LABEL
public static final java.lang.String KEY_INPUT_CONTROL_TEXT_1
public static final java.lang.String KEY_INPUT_CONTROL_TEXT_2
public static ResourceBundles resBundleDefault
| Method Detail |
public static UICommandFactory getInstance()
public java.lang.String getScreenflowAlias(java.lang.String commandalias)
InitialScreenflowProvider
technology. If an IExecCommand implements the ISneakProvider
interface, this factory will retrieve the ScreenflowInformation provided by
that class.commandalias - the command to retrieve screenflow information for, must not be
null.null
public IExecCommand getSingleCommandByAlias(java.lang.String commandalias,
IResource res)
commandalias - the alias of the command to retrieve, must not be nullres - the resource the command should use, must not be nullnull will be returned.
public IUIBaseCommand getCommandByAlias(java.lang.String alias,
IResourceContext context)
IUIGroupCommand with this alias exists, then if an IExecCommand
exists and finally, an IMassExecCommand. If nothing can be found,
null is returned and an error is added to the log file, stating
the alias searched for.alias - the alias of the command requestedcontext - the context of the current requestnull
public java.util.ArrayList createTargetValues(IExecCommand command)
throws WcmException
IUICommand
to do its work. The ArrayList is used by the WdfEventDispatcher
to create the Component that will trigger the execution of the
given command.command - The command that has to rendered.ArrayList a new ArrayList, with following
order position 0..n-1: The n-elements that are retrieved from the command
through its getTargetParameters method position n: a UUID
to make sure that the created html-link will have a unique ID position
n+1: the alias of the IUICommand, so the factory can recreate
an instance of this command when the decodeTarget method is
called.WcmException - Exception raised in failure situation
public java.util.ArrayList createTargetValues(IMassExecCommand command)
throws WcmException
IUIMassCommand
to do its work. The ArrayList is used by the WdfEventDispatcher
to create the Component that will trigger the execution of the
given command.command - The command that has to rendered.ArrayList a new ArrayList, with following
order position 0..n-1: The n-elements that are retrieved from the command
through its getTargetParameters method position n: a UUID
to make sure that the created html-link will have a unique ID position
n+1: the alias of the IUIMassCommand, so the factory can recreate
an instance of this command when the decodeTarget method is
called.WcmException - Exception raised in failure situation
public IUIBaseCommand decodeTargetCommand(java.util.ArrayList values,
IResourceContext context,
IProxy proxy)
throws WcmException
IUICommand as it was
encoded in the given array list by the factories createTarget.
This command is ready to use, e.g. call its execute method. It
can be used instead of the decodeTarget or decodeMassTarget
methods, if it is unknown, which kind of class created the values list.values - Description of the paramcontext - Description of the paramproxy - Description of the paramWcmException - Exception raised in failure situation
public IExecCommand decodeTarget(java.util.ArrayList values,
IResourceContext context,
IProxy proxy)
throws WcmException
IUICommand as it was
encoded in the given array list by the factories createTarget.
This command is ready to use, e.g. call its execute method.values - a list of String values, as it was created
by the createTargetValues method of this class. Must not be
null and must not contain classes that are not of type String
.context - the present context of the session. Must not be null
.proxy - the proxy that the returned command shall use. Must
not be nullIUICommand which
was encoded in the values parameterWcmException - Exception raised in failure situation
public IMassExecCommand decodeMassTarget(java.util.ArrayList values,
IResourceContext context,
IProxy proxy)
throws WcmException
IUIMassCommand as it
was encoded in the given array list by the factories createTarget
. This command is ready to use, e.g. call its execute method.values - a list of String values, as it was created
by the createTargetValues method of this class. Must not be
null and must not contain classes that are not of type String
.context - the present context of the session. Must not be null
.proxy - the proxy that the returned command shall use. Must
not be nullIUIMassCommand which
was encoded in the values parameterWcmException - Exception raised in failure situation
public IUIGroupCommand getGroupCommand(IResource resource,
com.sapportals.wcm.repository.service.layout.customizing.IParameterName group,
com.sapportals.wcm.repository.service.layout.customizing.flavor.IFlavor flavor,
java.util.Hashtable table)
throws WcmException
IUIGroupCommand
can be found in the factories instances-table, null is returnedresource - the resource the group command is needed forflavor - the flavor to use when reading the configurationgroup - the parameter to look for in the configurationtable - the parameters that hold configuration informationnullWcmException - Exception raised in failure situation
public IUIBaseCommand getGroupCommandByID(java.lang.String groupID,
IResourceContext context)
groupID - the groupID that is defined for the group command requested.context - the current context of the sessionIUIGroupCommand or null
, if no groupID was given or no group is defined for the given groupIDpublic java.lang.String getConfigListenerId()
public void configEvent(com.sapportals.config.event.ConfigEvent parm1)
ConfigEvent.CONFIGURABLE_LOADED or ConfigEvent.CONFIGMANAGER_TERMINATED
, the factory deletes all its entries and reloads the configuration, creating
all commands anew.parm1 - the event raised by the configuration
public java.lang.String getPresentConfiguration(IResourceContext context,
java.lang.String style,
boolean showJavaClassNames)
context - the current context of the user, sets e.g. the language
of the labels for the commandsstyle - currently not usedshowJavaClassNames - flag to show (true) or hide (false) java class names
in the returned stringpublic java.util.List getPresentConfiguration(IResourceContext context)
String to avoid ClassCastException
s.context - Description of the parampublic java.util.List getMappings(java.util.Locale locale)
getMappings in interface IFactoryInfoProvidercom.sapportals.wcm.rendering.base.IFactoryInfoProviderlocale - defines the language to use, if the factory offers translated information,
must not be nullIFactoryInfoProvider.MappingInformation,
must not be nullpublic Status getStatus()
getStatus in interface IFactoryInfoProvidercom.sapportals.wcm.rendering.base.IFactoryInfoProviderStatus.ERRORpublic java.lang.String getFactoryName()
getFactoryName in interface IFactoryInfoProvidercom.sapportals.wcm.rendering.base.IFactoryInfoProvidernullpublic IPropertyNameList getRequiredProperties(java.lang.String groupID)
public long getLastReloadTime()
getLastReloadTime in interface IFactoryInfoProvidercom.sapportals.wcm.rendering.base.IFactoryInfoProviderSystem.currentTimeMillis().
An implementing class might also return -1 to indicate, that
no information is available.
public java.lang.Boolean checkSecurity(IExecCommand command,
IResourceContext context)
command - context -
|
SAP NetWeaver '04 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||