Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 8 (11.1.8)

E22562-08

oracle.apps.fnd.applcore.socialnetwork.ui.managed
Class SocialNetworkBackingBean

java.lang.Object
  extended by oracle.apps.fnd.applcore.socialnetwork.ui.managed.SocialNetworkBackingBean
All Implemented Interfaces:
java.io.Serializable

public class SocialNetworkBackingBean
extends java.lang.Object
implements java.io.Serializable

Backing Bean to hold all of the binding information, etc for the Social Network Setup page.

Since:
11.1.1.7.0
Version:
$Header: atgpf/applcore/applications/SocialNetwork/ViewController/src/oracle/apps/fnd/applcore/socialnetwork/ui/managed/SocialNetworkBackingBean.java /st_atgpf_11.1.1.7.2/4 2013/08/30 14:48:40 pacross Exp $
See Also:
Serialized Form

Constructor Summary
SocialNetworkBackingBean()
          Default Constructor.
 
Method Summary
 void attributeAddListener(javax.faces.event.ActionEvent actionEvent)
          Listener executed when the user clicks the plus button in the attributes table.
 void attributeDetailsPopupFetchAction(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
          Fetch action to allow for the Attribute Details popup to display the correct information.
 void attributesDeleteListener(javax.faces.event.ActionEvent actionEvent)
          Listener triggered when the user clicks the remove attribute button.
 void attributesPopupDialogListener(oracle.adf.view.rich.event.DialogEvent dialogEvent)
          Listener fired when the user clicks the OK button.
 void attributesPopupFetchListener(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
          Listener fired when the attributes popup is to be displayed.
 void attributesPopupTreeTableDisclosureListener(org.apache.myfaces.trinidad.event.RowDisclosureEvent rowDisclosureEvent)
          Listener for when the Attribute Popups Tree Table changes its disclosure.
 void attributeTableSelectionListener(org.apache.myfaces.trinidad.event.SelectionEvent selectionEvent)
          Listener that fires when a row is selected in the attribute table.
 java.lang.String closeSendOsnPopup()
          Gets the action while Closing the Send to OSN popup.
 void disableOsnListener(javax.faces.event.ActionEvent actionEvent)
          Disables the currently selected view object.
 java.lang.String enableAllBusinessObjects()
          Action for when the EnableAll button is clicked.
 oracle.adf.view.rich.component.rich.RichPopup getAttributeAddPopup()
          Gets the binding for the add attribute popup.
 org.apache.myfaces.trinidad.model.RowKeySetTreeImpl getAttributePopupTreeTableDisclosedKeys()
          Getter for the Attribute Popups Tree Table disclosed keys.
 oracle.adf.view.rich.component.rich.fragment.RichDeclarativeComponent getAttributesFndTable()
          Binding retrieval for the fnd table for the attributes table.
 oracle.adf.view.rich.component.rich.data.RichTreeTable getAttributesPopupTreeTable()
          Gets the binding for the add attribute popup tree table.
 oracle.adf.view.rich.component.rich.data.RichTable getAttributesTable()
          Binding retrieval for the af table for the attributes table.
 java.util.List<SocialNetworkEnabledItem> getCurrentAttributeDetails()
          Retrieve the additional information for the attribute being hovered over in the UI.
 java.util.List<javax.faces.model.SelectItem> getCurrentNodeAllAttributeSelectedItems()
          Provide a list of the translated values for the Enabled Items that the user can select for Customer Enabled field.
 java.lang.Boolean getCurrentNodeMandatory()
          Determine if the currenlty selected node is mandatory.
 java.util.List<javax.faces.model.SelectItem> getEnabledItemsList()
          Provide a list of the translated values for the Enabled Items that the user can select for Customer Enabled field.
 oracle.adf.view.rich.component.rich.fragment.RichDeclarativeComponent getObjectsFndTreeTable()
          Binding retrieval for the fnd tree table.
 oracle.adf.view.rich.component.rich.data.RichTreeTable getObjectsTreeTable()
          Binding retrieval for the af tree table.
 org.apache.myfaces.trinidad.model.RowKeySetTreeImpl getObjectsTreeTableDisclosedKeys()
          Getter for the Business Objects Tree Table disclosed keys.
 org.apache.myfaces.trinidad.model.RowKeySetTreeImpl getObjectTreeSelectedKeys()
          Gets the selected row keys for the Business Objects tree table.
 boolean getOsnEnabledPopupAutomatic()
          Gets the customer enabled flag on the View Object defintion in the model.
 boolean getOsnEnabledPopupManual()
          Gets the customer enabled flag on the View Object defintion in the model.
 boolean getOsnEnabledPopupNo()
          Gets the customer enabled flag on the View Object defintion in the model.
 oracle.adf.view.rich.component.rich.RichPopup getSendToOsnProgressPopup()
          Get the binding to the Send To OSN Progress popup.
 SocialNetworkRangeModel getSnRangeModel()
          Retrieve the Social Network Range Model to get vthe values to display in the Send To OSN popup.
 oracle.adf.view.rich.component.rich.RichPopup getSyncAllPopup()
          Binding for the Page level Sync button which synchronizes all of the view objects with OSN.
 void hideSyncAllPopupListener(javax.faces.event.ActionEvent actionEvent)
          Hide the Synchronize all View Objects popup.
 boolean isDisableOSNButtonDisabled()
          Determines if the Disable OSN button should be disabled.
 boolean isEnableOSNButtonDisabled()
          Determines if the Enable OSN button should be disabled.
 boolean isPageModified()
          Determine if the page has been modified.
 void objectsTreeTableDisclosureListener(org.apache.myfaces.trinidad.event.RowDisclosureEvent rowDisclosureEvent)
          Listener for when the Objects Tree Table changes its disclosure.
 void objectTreeSelectionListener(org.apache.myfaces.trinidad.event.SelectionEvent selectionEvent)
          Tree table listener for the object tree.
 void osnEnabledPopupDialogListener(oracle.adf.view.rich.event.DialogEvent dialogEvent)
          The listeneter that is fired when the user clicks the Ok or Cancel button on the OSN Enabled popup.
 void osnEnabledPopupFetchListener(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
          Called when the Enable OSN button is pressed to show the popup.
 java.lang.String saveToMdsOsn()
          Action for when the Save and Close button is clicked.
 void setAttributeAddPopup(oracle.adf.view.rich.component.rich.RichPopup attributeAddPopup)
          Sets the binding for the add attribute popup.
 void setAttributePopupTreeTableDisclosedKeys(org.apache.myfaces.trinidad.model.RowKeySetTreeImpl newDisclosedKeys)
          Setter for the Attribute Popups Tree Table disclosed keys.
 void setAttributesFndTable(oracle.adf.view.rich.component.rich.fragment.RichDeclarativeComponent attributesFndTable)
          Binding storage for the fnd table for the attributes table.
 void setAttributesPopupTreeTable(oracle.adf.view.rich.component.rich.data.RichTreeTable attributesPopupTreeTable)
          Sets the binding for the add attribute popup tree table.
 void setAttributesTable(oracle.adf.view.rich.component.rich.data.RichTable attributesTable)
          Binding storage for the af table for the attributes table.
 void setObjectsFndTreeTable(oracle.adf.view.rich.component.rich.fragment.RichDeclarativeComponent objectsFndTreeTable)
          Binding storage for the fnd tree table.
 void setObjectsTreeTable(oracle.adf.view.rich.component.rich.data.RichTreeTable objectsTreeTable)
          Binding storage for the af tree table.
 void setObjectTreeSelectedKeys(org.apache.myfaces.trinidad.model.RowKeySetTreeImpl objectTreeSelectedKeys)
          Set the selected row keys for the Business Objects tree table.
 void setOsnEnabledPopupAutomatic(boolean automatic)
          Sets the customer enabled flag on the View Object defintion in the model.
 void setOsnEnabledPopupManual(boolean manual)
          Sets the customer enabled flag on the View Object defintion in the model.
 void setOsnEnabledPopupNo(boolean no)
          Sets the customer enabled flag on the View Object defintion in the model.
 void setSendToOsnProgressPopup(oracle.adf.view.rich.component.rich.RichPopup sendToOsnProgressPopup)
          Set the binding for the Send To OSN Progress popup.
 void setSyncAllPopup(oracle.adf.view.rich.component.rich.RichPopup syncAllPopup)
          Binding for the Page level Sync button which synchronizes all of the view objects with OSN.
 java.lang.String syncAllButtonAction()
          Determine what happens when the sync button is clicked.
 java.lang.String syncAllUnchangedAction()
          Hide the synchronize all popup and provide the Synchronzie All Unchanged View Objects action.
 java.lang.String syncSaveAllAction()
          Hide the synchronize all popup and provide the Synchronzie All Unchanged View Objects/Save Modified Objects action.
 java.lang.String updateOsnTranslationsButtonAction()
          Send all translations to the OSN server as a background send.
 void warningMessagePopupFetchAction(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
          Fetch action to allow for the Warning Message popup to display the correct warning message.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SocialNetworkBackingBean

public SocialNetworkBackingBean()
Default Constructor.

Method Detail

setObjectsFndTreeTable

public void setObjectsFndTreeTable(oracle.adf.view.rich.component.rich.fragment.RichDeclarativeComponent objectsFndTreeTable)
Binding storage for the fnd tree table.

Parameters:
objectsFndTreeTable - the fnd tree table.

getObjectsFndTreeTable

public oracle.adf.view.rich.component.rich.fragment.RichDeclarativeComponent getObjectsFndTreeTable()
Binding retrieval for the fnd tree table.

Returns:
the fnd tree table.

setObjectsTreeTable

public void setObjectsTreeTable(oracle.adf.view.rich.component.rich.data.RichTreeTable objectsTreeTable)
Binding storage for the af tree table.

Parameters:
objectsTreeTable - the af tree table.

getObjectsTreeTable

public oracle.adf.view.rich.component.rich.data.RichTreeTable getObjectsTreeTable()
Binding retrieval for the af tree table.

Returns:
the af tree table.

objectTreeSelectionListener

public void objectTreeSelectionListener(org.apache.myfaces.trinidad.event.SelectionEvent selectionEvent)
Tree table listener for the object tree.

Parameters:
selectionEvent - the selection event.

setObjectTreeSelectedKeys

public void setObjectTreeSelectedKeys(org.apache.myfaces.trinidad.model.RowKeySetTreeImpl objectTreeSelectedKeys)
Set the selected row keys for the Business Objects tree table.

Parameters:
objectTreeSelectedKeys - the selected row keys.

getObjectTreeSelectedKeys

public org.apache.myfaces.trinidad.model.RowKeySetTreeImpl getObjectTreeSelectedKeys()
Gets the selected row keys for the Business Objects tree table.

Returns:
the selected row keys.

getObjectsTreeTableDisclosedKeys

public org.apache.myfaces.trinidad.model.RowKeySetTreeImpl getObjectsTreeTableDisclosedKeys()
Getter for the Business Objects Tree Table disclosed keys. This method will re-generate the RowKeySet for the tree table based upon what is in its internal cache or entirely from the model layer.

Returns:
the disclosed keys for the objects tree table.

objectsTreeTableDisclosureListener

public void objectsTreeTableDisclosureListener(org.apache.myfaces.trinidad.event.RowDisclosureEvent rowDisclosureEvent)
Listener for when the Objects Tree Table changes its disclosure. This will update the model layer with the details of which nodes have been shown and which have been hidden.

Parameters:
rowDisclosureEvent - the event containing the disclosure information.

isEnableOSNButtonDisabled

public boolean isEnableOSNButtonDisabled()
Determines if the Enable OSN button should be disabled.

Returns:
true if the tree row selected is not a VO node.

isDisableOSNButtonDisabled

public boolean isDisableOSNButtonDisabled()
Determines if the Disable OSN button should be disabled.

Returns:
true if the tree row selected is not a VO node or the selected row has a cusomer enabled value of No/false.

osnEnabledPopupFetchListener

public void osnEnabledPopupFetchListener(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
Called when the Enable OSN button is pressed to show the popup. It is used to load the Enable OSN value into pageflow scope.


setOsnEnabledPopupManual

public void setOsnEnabledPopupManual(boolean manual)
Sets the customer enabled flag on the View Object defintion in the model.

Parameters:
manual - the value ADF wants to set the flag to.

getOsnEnabledPopupManual

public boolean getOsnEnabledPopupManual()
Gets the customer enabled flag on the View Object defintion in the model.

Returns:
true if the OSN enabled value of Manual.

setOsnEnabledPopupAutomatic

public void setOsnEnabledPopupAutomatic(boolean automatic)
Sets the customer enabled flag on the View Object defintion in the model.

Parameters:
automatic - the value ADF wants to set the flag to.

getOsnEnabledPopupAutomatic

public boolean getOsnEnabledPopupAutomatic()
Gets the customer enabled flag on the View Object defintion in the model.

Returns:
true if the OSN enabled value of Automatic.

setOsnEnabledPopupNo

public void setOsnEnabledPopupNo(boolean no)
Sets the customer enabled flag on the View Object defintion in the model.

Parameters:
no - the value ADF wants to set the flag to.

getOsnEnabledPopupNo

public boolean getOsnEnabledPopupNo()
Gets the customer enabled flag on the View Object defintion in the model.

Returns:
true if the OSN enabled value of No.

osnEnabledPopupDialogListener

public void osnEnabledPopupDialogListener(oracle.adf.view.rich.event.DialogEvent dialogEvent)
The listeneter that is fired when the user clicks the Ok or Cancel button on the OSN Enabled popup. Copy the Customer Enabled value from the pageflow bean and put it back into the model.


setAttributesFndTable

public void setAttributesFndTable(oracle.adf.view.rich.component.rich.fragment.RichDeclarativeComponent attributesFndTable)
Binding storage for the fnd table for the attributes table.

Parameters:
attributesFndTable - the fnd table.

getAttributesFndTable

public oracle.adf.view.rich.component.rich.fragment.RichDeclarativeComponent getAttributesFndTable()
Binding retrieval for the fnd table for the attributes table.

Returns:
the attributes fnd table.

setAttributesTable

public void setAttributesTable(oracle.adf.view.rich.component.rich.data.RichTable attributesTable)
Binding storage for the af table for the attributes table.

Parameters:
attributesTable - the af table.

getAttributesTable

public oracle.adf.view.rich.component.rich.data.RichTable getAttributesTable()
Binding retrieval for the af table for the attributes table.

Returns:
the attributes af table.

getEnabledItemsList

public java.util.List<javax.faces.model.SelectItem> getEnabledItemsList()
Provide a list of the translated values for the Enabled Items that the user can select for Customer Enabled field.

Returns:
the list of items to display.

disableOsnListener

public void disableOsnListener(javax.faces.event.ActionEvent actionEvent)
Disables the currently selected view object.

Parameters:
actionEvent - the button click event.

setAttributeAddPopup

public void setAttributeAddPopup(oracle.adf.view.rich.component.rich.RichPopup attributeAddPopup)
Sets the binding for the add attribute popup.

Parameters:
attributeAddPopup - popup reference.

getAttributeAddPopup

public oracle.adf.view.rich.component.rich.RichPopup getAttributeAddPopup()
Gets the binding for the add attribute popup.

Returns:
popup reference.

attributeAddListener

public void attributeAddListener(javax.faces.event.ActionEvent actionEvent)
Listener executed when the user clicks the plus button in the attributes table. Used to pop up the Add Attributes popup.

Parameters:
actionEvent - the event.

getCurrentNodeAllAttributeSelectedItems

public java.util.List<javax.faces.model.SelectItem> getCurrentNodeAllAttributeSelectedItems()
Provide a list of the translated values for the Enabled Items that the user can select for Customer Enabled field. This will filter off any mandatory attributes.

Returns:
the list of items to display.

attributesPopupFetchListener

public void attributesPopupFetchListener(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
Listener fired when the attributes popup is to be displayed. This will filter off any mandatory attributes.

Parameters:
popupFetchEvent - the popup event.

attributesPopupDialogListener

public void attributesPopupDialogListener(oracle.adf.view.rich.event.DialogEvent dialogEvent)
Listener fired when the user clicks the OK button. On OK update the attributes data model with the new selections.

Parameters:
dialogEvent - the dialog event.

getCurrentNodeMandatory

public java.lang.Boolean getCurrentNodeMandatory()
Determine if the currenlty selected node is mandatory.

Returns:
true if node must always exist.

attributesDeleteListener

public void attributesDeleteListener(javax.faces.event.ActionEvent actionEvent)
Listener triggered when the user clicks the remove attribute button.

Parameters:
actionEvent - the event.

warningMessagePopupFetchAction

public void warningMessagePopupFetchAction(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
Fetch action to allow for the Warning Message popup to display the correct warning message.

Parameters:
popupFetchEvent - the popup event.

setAttributesPopupTreeTable

public void setAttributesPopupTreeTable(oracle.adf.view.rich.component.rich.data.RichTreeTable attributesPopupTreeTable)
Sets the binding for the add attribute popup tree table.

Parameters:
attributesPopupTreeTable - attribute popup tree table reference.

getAttributesPopupTreeTable

public oracle.adf.view.rich.component.rich.data.RichTreeTable getAttributesPopupTreeTable()
Gets the binding for the add attribute popup tree table.

Returns:
attributeAddPopup attribute popup tree table reference.

attributeDetailsPopupFetchAction

public void attributeDetailsPopupFetchAction(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
Fetch action to allow for the Attribute Details popup to display the correct information.

Parameters:
popupFetchEvent - the popup event.

getCurrentAttributeDetails

public java.util.List<SocialNetworkEnabledItem> getCurrentAttributeDetails()
Retrieve the additional information for the attribute being hovered over in the UI.

Returns:
the list of attribute details.

attributeTableSelectionListener

public void attributeTableSelectionListener(org.apache.myfaces.trinidad.event.SelectionEvent selectionEvent)
Listener that fires when a row is selected in the attribute table. It is required to pass the selection event onto the table as well as store the selected attribute for later use.

Parameters:
selectionEvent - the selection event.

hideSyncAllPopupListener

public void hideSyncAllPopupListener(javax.faces.event.ActionEvent actionEvent)
Hide the Synchronize all View Objects popup.

Parameters:
actionEvent - unused.

syncAllUnchangedAction

public java.lang.String syncAllUnchangedAction()
Hide the synchronize all popup and provide the Synchronzie All Unchanged View Objects action.

Returns:
Synchronize All Unchanged action.

syncSaveAllAction

public java.lang.String syncSaveAllAction()
Hide the synchronize all popup and provide the Synchronzie All Unchanged View Objects/Save Modified Objects action.

Returns:
Synchronize All Unchanged action.

setSyncAllPopup

public void setSyncAllPopup(oracle.adf.view.rich.component.rich.RichPopup syncAllPopup)
Binding for the Page level Sync button which synchronizes all of the view objects with OSN.

Parameters:
syncAllPopup - the Sync button binding.

getSyncAllPopup

public oracle.adf.view.rich.component.rich.RichPopup getSyncAllPopup()
Binding for the Page level Sync button which synchronizes all of the view objects with OSN.

Returns:
the Sync button binding.

syncAllButtonAction

public java.lang.String syncAllButtonAction()
Determine what happens when the sync button is clicked. If nothing is modified then just do the save otherwise popup the Sync All popup.

Returns:
the sync action if the popup is not shown.

setAttributePopupTreeTableDisclosedKeys

public void setAttributePopupTreeTableDisclosedKeys(org.apache.myfaces.trinidad.model.RowKeySetTreeImpl newDisclosedKeys)
Setter for the Attribute Popups Tree Table disclosed keys. This method should never be called as the getter rebuilds the RowKeySetTreeImpl from the cache each time it is called.

Parameters:
newDisclosedKeys - not used.

getAttributePopupTreeTableDisclosedKeys

public org.apache.myfaces.trinidad.model.RowKeySetTreeImpl getAttributePopupTreeTableDisclosedKeys()
Getter for the Attribute Popups Tree Table disclosed keys. This method will re-generate the RowKeySet for the tree table based upon what is in its internal cache or entirely from the model layer.

Returns:
the disclosed keys for the attribute popup tree table.

attributesPopupTreeTableDisclosureListener

public void attributesPopupTreeTableDisclosureListener(org.apache.myfaces.trinidad.event.RowDisclosureEvent rowDisclosureEvent)
Listener for when the Attribute Popups Tree Table changes its disclosure. This will update the model layer with the details of which nodes have been shown and which have been hidden.

Parameters:
rowDisclosureEvent - the event containing the disclosure information.

setSendToOsnProgressPopup

public void setSendToOsnProgressPopup(oracle.adf.view.rich.component.rich.RichPopup sendToOsnProgressPopup)
Set the binding for the Send To OSN Progress popup.

Parameters:
sendToOsnProgressPopup - the progress popup.

getSendToOsnProgressPopup

public oracle.adf.view.rich.component.rich.RichPopup getSendToOsnProgressPopup()
Get the binding to the Send To OSN Progress popup.

Returns:
the progress popup.

getSnRangeModel

public SocialNetworkRangeModel getSnRangeModel()
Retrieve the Social Network Range Model to get vthe values to display in the Send To OSN popup.

Returns:
range model.

closeSendOsnPopup

public java.lang.String closeSendOsnPopup()
Gets the action while Closing the Send to OSN popup.

Returns:
Action String for close event

updateOsnTranslationsButtonAction

public java.lang.String updateOsnTranslationsButtonAction()
Send all translations to the OSN server as a background send.

Returns:
null.

saveToMdsOsn

public java.lang.String saveToMdsOsn()
Action for when the Save and Close button is clicked.

Returns:
null.

enableAllBusinessObjects

public java.lang.String enableAllBusinessObjects()
Action for when the EnableAll button is clicked.

Returns:
null.

isPageModified

public boolean isPageModified()
Determine if the page has been modified.

Returns:
true if any of the view objects have been modified.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 8 (11.1.8)

E22562-08

Copyright © 2013 Oracle. All Rights Reserved.