|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IUWLViewManager
View manager is used to create, modify, and delete the different views and their display attributes. It also allows setting up desired navigation attributes to move around and between views. The Presentation Adaptor does the actual renderings of the views based off of their attributes.
When getting a View the View Manager will automatically merge all Display
Attributes along with any Global Display Attribute into the View, it will also
check if there is a personalized view for the specified user.
When getting navigation nodes you can have the View manager merge dynamic views into the list, it will also merge in any personalized view where the personalized place holder flag is indicated.
Navigation Nodes are used to create the Tabs and Dropdown in the UWL as shown in the example below.
Then the Views are used to display the UWL table as shown in the example below.
| Table Header (View header option) | |||
| Column header 1 (DisplayAttribute) | Column header 2 (DisplayAttribute) | Column header 3 (DisplayAttribute) | Column header 4 (DisplayAttribute) |
| Data row | |||
UWLView,
NavigationNode,
DisplayAttribute| Field Summary | |
|---|---|
static String |
UWL_ADD_DYNAMIC_VIEWS
This is used to indicate the location in the Navigation Node to start adding dynamic views. |
static String |
UWL_LASTACCESS_NAME
Deprecated. no longer used |
static String |
UWL_PERSONAL_GROUP_ID
This is the Navigation node Id for the personalization. |
static String |
UWL_PERSONAL_GROUP_NAME
This is the reference group name for the personalization, used as a place holder in the navigation node. |
| Method Summary | |
|---|---|
NavigationNode |
addNavigationNode(NavigationNode node,
UWLContext context)
Deprecated. see updateNavigationNode |
NavigationNode |
addToPersonalNode(UWLContext context,
UWLView view)
Deprecated. use updateNavigationNode |
UWLView |
addView(UWLView viewData,
UWLContext context)
Deprecated. use the updateView |
void |
appendItemTypesWithItems(NavigationNode navNode,
UWLContext context,
String configGroup,
int maxAppendNumber,
String currentSelectedViewId,
String substitutedUserId)
This is used to add dynamic views into the Navigation Node. |
ItemTypeCount[] |
appendItemTypesWithItems(NavigationNode navNode,
UWLContext context,
String configGroup,
int maxAppendNumber,
String currentSelectedViewId,
String substitutedUserId,
ItemTypeCount[] itemTypeCount)
This is used to add dynamic views into the Navigation Node. |
void |
deleteNavigationNode(String id,
UWLContext context)
This method will remove the specified navigation node name from the list of personalized nodes for the specified user. |
void |
deleteView(UWLView viewName,
UWLContext context)
This method will remove the specified view name from the list of personalized views for the specified user. |
NavigationNode[] |
getItemTypeNavigationNode(NavigationNode root,
String[] baseItemType,
UWLContext context,
String configGroup,
int maxReturn,
String currentSelectedViewId,
String substitutedUserId)
Return an array of NavigationNodes for the all ItemTypes which are not in the specified root NavigationNode and have items assigned to the user. |
NavigationNode |
getNavigationNode(String id,
UWLContext context)
This method will look for the specified Navigation node by its name which is defined in the standard or custom XML files (see example XML). |
List |
getNavigationNodesByGroup(String groupName,
UWLContext context)
Method getNavigationNodesByGroup. |
List |
getNavigationNodesUsingViewName(String viewName,
UWLContext context)
Method getNavigationModelsUsingViewId. |
UWLView |
getView(String id,
UWLContext context)
This is used to get a view by its ID name which is defined in the system or custom XML files (See example) or the name of the personalized view. |
UWLView |
getViewForItemType(String itemType,
UWLContext context)
Method getViewForItemType. |
NavigationNode |
updateNavigationNode(NavigationNode node,
UWLContext context)
Use this method to add the passed in navigation node to the users list of personalized nodes. |
UWLView |
updateView(UWLView viewData,
UWLContext context)
Use this method to add the passed in view to the users list of personalized views. |
| Field Detail |
|---|
static final String UWL_PERSONAL_GROUP_ID
static final String UWL_PERSONAL_GROUP_NAME
static final String UWL_ADD_DYNAMIC_VIEWS
static final String UWL_LASTACCESS_NAME
| Method Detail |
|---|
UWLView getView(String id,
UWLContext context)
This is used to get a view by its ID name which is defined in the system or custom XML files (See example) or the name of the personalized view.
Example XML definition:
<View name="DefaultView"
width="98%" supportedItemTypes="uwl.task"
...
Note: the personalized view can use the same name as system defined view and it will overwrite that view. See the return order of views below.
The view will be return with the following priority:
id - The view name.context - The information on the login in user.
UWLView addView(UWLView viewData,
UWLContext context)
viewData - context - the UWL context.
updateView(UWLView, UWLContext)
UWLView updateView(UWLView viewData,
UWLContext context)
Use this method to add the passed in view to the users list of personalized views. If the view is already in the list then it will override the old view with this new one.
When personalizing a view always may sure the view has been cloned before change view settings.
viewData - The new viewcontext - The information on the login in user.
UWLView.clone()
void deleteView(UWLView viewName,
UWLContext context)
This method will remove the specified view name from the list of personalized views for the specified user.
Note: If the personified view was overriding a system view, then this will have the effect of restore the system view.
viewName - context - The information on the login in user.
UWLView getViewForItemType(String itemType,
UWLContext context)
itemType - context - The information on the login in user.
NavigationNode getNavigationNode(String id,
UWLContext context)
This method will look for the specified Navigation node by its name which is defined in the standard or custom XML files (see example XML).
<NavigationNode name="CombinedTask" view="DefaultView" referenceBundle="tasks">
id - The name defined in the xml filecontext - The information on the login in user.
NavigationNode[] getItemTypeNavigationNode(NavigationNode root,
String[] baseItemType,
UWLContext context,
String configGroup,
int maxReturn,
String currentSelectedViewId,
String substitutedUserId)
root - This is the Current NavigationNodes being display, to avoid duplication
of NavigationNodes.root - the navigation node.baseItemType - the array of strings.context - The information on the login in user.maxReturn - Indicate the total number of NavigationNodes to return.
appendItemTypesWithItems(NavigationNode, UWLContext, String, int, String, String)
void appendItemTypesWithItems(NavigationNode navNode,
UWLContext context,
String configGroup,
int maxAppendNumber,
String currentSelectedViewId,
String substitutedUserId)
navNode - context - The information on the login in user.maxAppendNumber - - indicate the max number of views which can be added.currentSelectedViewId - - can be null. This is the current selected ViewId. Used to determine
if the dynamic node should be added even if it is empty.
ItemTypeCount[] appendItemTypesWithItems(NavigationNode navNode,
UWLContext context,
String configGroup,
int maxAppendNumber,
String currentSelectedViewId,
String substitutedUserId,
ItemTypeCount[] itemTypeCount)
navNode - context - The information on the login in user.maxAppendNumber - - indicate the max number of views which can be added.currentSelectedViewId - - can be null. This is the current selected ViewId. Used to determinesubstitutedUserId - - can be null. This is the user id for which user is being substituted for.itemTypeCount - - can be null. Used for performance. If not passed in then the Item Manager will be called to get
the array, which requires a database call.
NavigationNode addNavigationNode(NavigationNode node,
UWLContext context)
node - context - The information on the login in user.
updateNavigationNode(NavigationNode, UWLContext)
NavigationNode updateNavigationNode(NavigationNode node,
UWLContext context)
Use this method to add the passed in navigation node to the users list of personalized nodes. If the node is already in the list then it will override the old node with this new one.
When personalizing a node always may sure the node has been cloned before change node settings.
node - New navigation nodecontext - The information on the login in user.
NavigationNode.clone(IPrincipal)
void deleteNavigationNode(String id,
UWLContext context)
This method will remove the specified navigation node name from the list of personalized nodes for the specified user.
Note: If the personified navigation node was overriding a system navigation node, then this will have the effect of restore the back to the system navigation node.
id - the ID.context - The information on the login in user.
List getNavigationNodesUsingViewName(String viewName,
UWLContext context)
Get all the navigation nodes which reference a View which is defined in the standard or custom XLM file (see example)
<NavigationNode name="CombinedTask" view="DefaultView" referenceBundle="tasks">
viewId - context - The information on the login in user.
List getNavigationNodesByGroup(String groupName,
UWLContext context)
groupName - context - The information on the login in user.
UWL_PERSONAL_GROUP_NAME
NavigationNode addToPersonalNode(UWLContext context,
UWLView view)
context - The information on the login in user.view -
UWLView.getOwner()
|
SAP NetWeaver 7.11 (EhP1 SP03) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||