Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

oracle.apps.fnd.applcore.attachments.ui.managed
Class AttachmentBean

java.lang.Object
  extended by oracle.apps.fnd.applcore.attachments.ui.managed.AttachmentBean
Direct Known Subclasses:
AttachmentRequestBean

public class AttachmentBean
extends java.lang.Object

ManagedBean for the Attachments Declarative Component. This class will handle UI events and contain utility methods.


Field Summary
static java.lang.String DOCUMENT_TYPES_FULL_VO_NAME
           
static java.lang.String DOCUMENT_TYPES_VO_NAME
           
static java.lang.String STATUSES_FULL_VO_NAME
           
static java.lang.String STATUSES_VO_NAME
           
 
Constructor Summary
AttachmentBean()
           
 
Method Summary
protected  MethodMap _doMethodCall(java.lang.String methodName)
          Invoke a method within the current class and return a Map.
protected  javax.faces.component.UIComponent _findAttachmentDC(javax.faces.component.UIComponent component)
          Find the attachmentDC component, doing a recursive search from the passed in component.
protected  javax.faces.component.UIComponent _findAttachmentDCRoot(javax.faces.component.UIComponent currObject)
           
protected  javax.faces.component.UIComponent _findComponentById(javax.faces.component.UIComponent parent, java.lang.String id)
          Find a component by ID when parent and searched component are passed.
protected  javax.faces.component.UIComponent _findComponentById(javax.faces.component.UIComponent parent, java.lang.String id, java.lang.Class classType)
          Find a component by ID when parent and searched component are passed.
protected  javax.faces.component.UIComponent _findComponentById(javax.faces.component.UIComponent parent, java.lang.String id, java.lang.String mode)
          Find a component by ID when parent and searched component are passed.
protected  javax.faces.component.UIComponent _findComponentById(javax.faces.component.UIComponent parent, java.lang.String id, java.lang.String mode, java.lang.Class classType)
          Find a component by ID when parent and searched component are passed.
protected  javax.faces.component.UIComponent _findPopupById(javax.faces.component.UIComponent startingComponent, java.lang.String id)
          Find a popup .
protected  oracle.jbo.uicli.binding.JUCtrlHierBinding _getAttachmentModel(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC)
          Retrieve the attachments iterator from the attributes collection.
protected  oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent _getAttachmentsDC(java.lang.String dcId)
          Return the declarative component based on its id.
protected  oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent _getAttachmentsDC(java.lang.String dcId, java.lang.String mode)
          Return the declarative component based on its id and mode setting The search starts at the current view root
protected  oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent _getAttachmentsDC(javax.faces.component.UIComponent eventSource)
          Get the Attachments DC when you have the event source.
protected  java.lang.Object _getAttachmentsDCAttribute(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC, java.lang.String attributeName)
          Retrieve an attribute from the attachments DC
protected  oracle.jbo.uicli.binding.JUIteratorBinding _getAttachmentsIterator(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC)
          Get a handle to the iterator binding associated with the DC.
protected  oracle.jbo.ViewObject _getAttachmentsVOImpl(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC)
          Get a handle to the attachments VO that is associated with the DC.
protected  javax.faces.component.UIComponent _getEventSource()
          Returns the source of the action event.
protected  oracle.jbo.ViewObject _getParentVO(oracle.jbo.ViewObject attachmentVO)
          Get the parent vo via the view link from the attachment provided.
 void addPopupCanceledListener(javax.faces.event.ActionEvent popupCancelButtonEvent)
          Reverts the datacontrol back to the savepoint taken when the popup was shown and closes the attachments popup.
 void addPopupCanceledListener(oracle.adf.view.rich.event.PopupCanceledEvent popupCanceledEvent)
          Reverts the datacontrol back to the savepoint taken when the popup was shown and closes the attachments popup.
 void addPopupFetchListener(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)
           
 void cancelSingleAttachment()
           
static java.lang.Object categoryRequest(java.lang.String dcId, java.lang.Object row, java.lang.String request)
          Stubbed out.
static java.lang.Object categoryRequestValue(java.lang.String dcId, java.lang.Object row, java.lang.String request, java.lang.Object attachmentCMObj, java.lang.String updateCategoryList)
          Function declared in the fnd.tld.
 java.lang.Boolean checkEmptyRows(javax.faces.component.UIComponent eventSource)
          If user clicks on "OK" in popup and there are some empty rows in it, this method would delete those empty rows.
 void checkinDialogListener(oracle.adf.view.rich.event.DialogEvent event)
           
 void confDelDialogListener(oracle.adf.view.rich.event.DialogEvent event)
           
 void confirmDeletePopupDialogListener(javax.faces.event.ActionEvent event)
          Processes the Yes or No click from the delete confirmation popup.
 void confirmProcessDelete(javax.faces.event.ActionEvent event)
          Processes the request to launch the delete confirmation poup, from the tables.
 void dCode_ValueChangeListener(javax.faces.event.ValueChangeEvent vce)
          Value change listener sets the two Datatype code values ahead of the PPR firing on the required settings for the File or Url column.
 void deleteSingleAttachment(javax.faces.component.UIComponent eventSource)
           
 void docTypeId_ValueChangeListener(javax.faces.event.ValueChangeEvent vce)
          Value change listener for Single Attachment Popup
 oracle.adf.view.rich.component.rich.RichPopup get_singlePopup()
           
 oracle.adf.view.rich.component.rich.data.RichTable getAttachmentTable()
           
 MethodMap getCategories()
          This method is to be used in EL expressions to return a list of Category Names.
 java.util.ArrayList getCategoriesList()
          While displaying categories, this method is called to display the value.
 java.util.ArrayList getCategoriesList(java.lang.String dcId, java.lang.String categoryName, java.lang.String entityName, org.apache.myfaces.trinidad.model.CollectionModel attachmentsCM, java.lang.String updateCategoryList)
          This method generates a list of category types for the specified DC.
 MethodMap getCategoryUpdateAllowed()
          This method is to be used in EL expressions to return if only a single category is available.
 java.lang.Boolean getCategoryUpdateAllowedValue(java.lang.String dcId, java.lang.String currentCategoryName, java.lang.String entityName, org.apache.myfaces.trinidad.model.CollectionModel attachmentsCM, java.lang.String updateCategoryList)
           
 oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout getColLinkPanelGroupLayout()
           
 org.apache.myfaces.trinidad.model.CollectionModel getColumnCollectionModel()
          Interrogates the "columnModel" attribute passed into the Attachments DC and converts it into a CollectionModel.
 oracle.adf.view.rich.component.rich.RichPopup getConfirmDeletePopup()
           
 MethodMap getDatatypeCodes()
          This method is to be used in EL expressions to return a list of data types.
 java.util.List getDatatypeCodesList(java.lang.String dcId)
          Method to currently pass in the three values supported by attachments.
 MethodMap getDocumentTypes()
          This method is to be used in EL expressions to return a list of document types.
 java.util.List getDocumentTypesList(java.lang.String dcId)
          This method generates a list of document types for the specified DC.
 oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout getLinkPanelGroupLayout()
           
static java.util.List getModelLookupList(oracle.jbo.ApplicationModule am, java.lang.String voName, java.lang.String fullVoName)
           For internal use only Uses an instance of the AttachmentUIAM to find and/or create a view object of a lookup type.
 oracle.adf.view.rich.component.rich.data.RichTable getPopupAttachmentTable()
           
 MethodMap getSingleCategory()
          This method is to be used in EL expressions to return if only a single category is available.
 boolean getSingleCategoryValue(java.lang.String dcId, org.apache.myfaces.trinidad.model.CollectionModel attachmentsCM, java.lang.String updateCategoryList)
          This calculates to see if only one category is present.
 java.util.Map getSizeOf()
           
 MethodMap getStatuses()
          This method is to be used in EL expressions to return a list of statuses.
 java.util.List getStatusesList(java.lang.String dcId)
          This method generates a list of statuses for the specified DC.
 java.lang.String getTaskFlowId()
          used by the doc picker taskflow definition
 java.lang.String getUnselectedCategoryValue(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC, java.lang.String entityName)
          This method generates the default category to be shown in categories list.
 oracle.jbo.ViewLink getViewLink(oracle.jbo.uicli.binding.JUCtrlHierBinding attachmentModel)
           
 void popupDialogListener(oracle.adf.view.rich.event.DialogEvent event)
           
 void popupFetchListener(oracle.adf.view.rich.event.PopupFetchEvent event)
           
 void popupOkActionListener(javax.faces.event.ActionEvent actionEvent)
           
 void processAdd(javax.faces.event.ActionEvent event)
          Processes the attachments add UI event.
 void processAddNewRow()
          When mode in attachments components is link and user clicks on the '+' button, this method is called to add a new row to the attachments table prior showing it to the user.
 void processAddNewSingleRow()
          When mode in attachments components is link and insertMultiple attribute is False user clicks on the '+' button.
 void processAttachRepositoryFile(javax.faces.component.UIComponent eventSource, oracle.webcenter.content.JCRContentID[] contentIds)
           
 void processCancelCheckOut(javax.faces.event.ActionEvent actionEvent)
          Performs and undo of a checkout on the currently selected attachment.
 void processCheckIn(javax.faces.event.ActionEvent actionEvent)
          Performs a repository checkin of the currently selected attachment.
 void processCheckOut(javax.faces.event.ActionEvent actionEvent)
          Perform a repository checkout of the currently selected attachment.
 void processDelete(javax.faces.event.ActionEvent event)
          Processes deleting a row from the Attachments Table, either from the delete icon or "delete" from the menu.
 void processSingleAttachment()
           
 void processSingleAttachRepositoryFile(javax.faces.component.UIComponent eventSource, oracle.webcenter.content.JCRContentID contentId)
          repository file processing for SingleAttachment
 void processSingleCanceledListener(oracle.adf.view.rich.event.PopupCanceledEvent popupCanceledEvent)
          Cancel action for Single Attachment when the popup close button is pressed.
 void set_singlePopup(oracle.adf.view.rich.component.rich.RichPopup _singlePopup)
           
 void setAttachmentTable(oracle.adf.view.rich.component.rich.data.RichTable _attachmentTable)
           
 void setColLinkPanelGroupLayout(oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout _colLinkPanelGroupLayout)
           
 void setConfirmDeletePopup(oracle.adf.view.rich.component.rich.RichPopup _confirmDeletePopup)
           
 void setLinkPanelGroupLayout(oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout _linkPanelGroupLayout)
           
 void setPopupAttachmentTable(oracle.adf.view.rich.component.rich.data.RichTable _popupAttachmentTable)
           
 void sharedValidator(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uIComponent, java.lang.Object object)
          Check to see whether a file can be unshared.
 void showPopupAndAdd(javax.faces.event.ActionEvent event)
          Shows the addAttachmentPopup and adds a new row into it.
 void singleDialogListener(oracle.adf.view.rich.event.DialogEvent event)
           
static java.lang.String toPortletURL(java.lang.String url)
          If running in a portlet environment, append special query string parameters to the URL: _xResourceMethod=wsrp - do in-protocol resource request javax.portlet.faces.ViewLink=false - this is a resource request, so call EC.encodeResourceURL() Exposed as EL function #{fnd:toPortletURL(...)}
 void uploadedFileListener(javax.faces.event.ValueChangeEvent event)
          Listener for the uploadedFile.
 void URLValidator(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uIComponent, java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STATUSES_VO_NAME

public static final java.lang.String STATUSES_VO_NAME
See Also:
Constant Field Values

STATUSES_FULL_VO_NAME

public static final java.lang.String STATUSES_FULL_VO_NAME
See Also:
Constant Field Values

DOCUMENT_TYPES_VO_NAME

public static final java.lang.String DOCUMENT_TYPES_VO_NAME
See Also:
Constant Field Values

DOCUMENT_TYPES_FULL_VO_NAME

public static final java.lang.String DOCUMENT_TYPES_FULL_VO_NAME
See Also:
Constant Field Values
Constructor Detail

AttachmentBean

public AttachmentBean()
Method Detail

_getEventSource

protected javax.faces.component.UIComponent _getEventSource()
Returns the source of the action event.


_doMethodCall

protected MethodMap _doMethodCall(java.lang.String methodName)
Invoke a method within the current class and return a Map.

Parameters:
methodName -
Returns:

_findComponentById

protected javax.faces.component.UIComponent _findComponentById(javax.faces.component.UIComponent parent,
                                                               java.lang.String id)
Find a component by ID when parent and searched component are passed.

Parameters:
parent - UIComponent Object
id - String value
Returns:
UIComponent Object

_findComponentById

protected javax.faces.component.UIComponent _findComponentById(javax.faces.component.UIComponent parent,
                                                               java.lang.String id,
                                                               java.lang.Class classType)
Find a component by ID when parent and searched component are passed.

Parameters:
parent - UIComponent Object
id - String value
classType - the type of class being searched for
Returns:
UIComponent Object

_findComponentById

protected javax.faces.component.UIComponent _findComponentById(javax.faces.component.UIComponent parent,
                                                               java.lang.String id,
                                                               java.lang.String mode)
Find a component by ID when parent and searched component are passed.

Parameters:
parent - UIComponent Object
id - String value
mode - String value
Returns:
UIComponent Object

_findComponentById

protected javax.faces.component.UIComponent _findComponentById(javax.faces.component.UIComponent parent,
                                                               java.lang.String id,
                                                               java.lang.String mode,
                                                               java.lang.Class classType)
Find a component by ID when parent and searched component are passed.

Parameters:
parent - UIComponent Object
id - String value
mode - String value
classType - the type of class being searched for
Returns:
UIComponent Object

_findPopupById

protected javax.faces.component.UIComponent _findPopupById(javax.faces.component.UIComponent startingComponent,
                                                           java.lang.String id)
Find a popup .

Parameters:
parent - UIComponent Object
id - String value
Returns:
UIComponent Object

_findAttachmentDCRoot

protected javax.faces.component.UIComponent _findAttachmentDCRoot(javax.faces.component.UIComponent currObject)

_findAttachmentDC

protected javax.faces.component.UIComponent _findAttachmentDC(javax.faces.component.UIComponent component)
Find the attachmentDC component, doing a recursive search from the passed in component. This method will not search within regions that have their own namespace. Therefore this method has limited usefulness

Parameters:
component - UIComponent Object
Returns:
UIComponent object

_getAttachmentsDC

protected oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent _getAttachmentsDC(javax.faces.component.UIComponent eventSource)
Get the Attachments DC when you have the event source. Do not use this method where no event, like a button click has occurred - otherwise it will return null.

Returns:

_getAttachmentsDC

protected oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent _getAttachmentsDC(java.lang.String dcId)
Return the declarative component based on its id. The search starts at the current view root

Parameters:
dcId -
Returns:
attachments declarative component

_getAttachmentsDC

protected oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent _getAttachmentsDC(java.lang.String dcId,
                                                                                            java.lang.String mode)
Return the declarative component based on its id and mode setting The search starts at the current view root

Parameters:
dcId -
mode - - declarative component mode
Returns:
attachments declarative component

_getAttachmentsDCAttribute

protected java.lang.Object _getAttachmentsDCAttribute(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC,
                                                      java.lang.String attributeName)
Retrieve an attribute from the attachments DC

Parameters:
attributeName -
Returns:

_getAttachmentModel

protected oracle.jbo.uicli.binding.JUCtrlHierBinding _getAttachmentModel(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC)
Retrieve the attachments iterator from the attributes collection.

Parameters:
attachmentDC -
Returns:
the object bound to the attachmentsModel attribute

_getAttachmentsIterator

protected oracle.jbo.uicli.binding.JUIteratorBinding _getAttachmentsIterator(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC)
Get a handle to the iterator binding associated with the DC.

Parameters:
attachmentDC -
Returns:
Iterator Binding

_getParentVO

protected oracle.jbo.ViewObject _getParentVO(oracle.jbo.ViewObject attachmentVO)
Get the parent vo via the view link from the attachment provided.

Parameters:
attachmentVO - the attachement VO.
Returns:
the parent of the attachment VO.

_getAttachmentsVOImpl

protected oracle.jbo.ViewObject _getAttachmentsVOImpl(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC)
Get a handle to the attachments VO that is associated with the DC.

Parameters:
attachmentDC -
Returns:
viewObject

showPopupAndAdd

public void showPopupAndAdd(javax.faces.event.ActionEvent event)
Shows the addAttachmentPopup and adds a new row into it.

Parameters:
event -

processAddNewRow

public void processAddNewRow()
When mode in attachments components is link and user clicks on the '+' button, this method is called to add a new row to the attachments table prior showing it to the user.


processAddNewSingleRow

public void processAddNewSingleRow()
When mode in attachments components is link and insertMultiple attribute is False user clicks on the '+' button. This flow starts the same as processAddNewRow, adding a new Attachment. Once added the page is programmatically partially refreshed to update the components that are rendered in the page. The refresh events inside the Single mode popup will cause issues if these components are not present. Once the component has been re-rendered, the popup is launched programmatically too. Another deviation from the process for multiple mode support.


getCategoriesList

public java.util.ArrayList getCategoriesList()
While displaying categories, this method is called to display the value. Here also it works when attachments mode='link'.

Returns:
ArrayList of categories

processAdd

public void processAdd(javax.faces.event.ActionEvent event)
Processes the attachments add UI event. Either from the plus icon or "add" from the menu of the attachments table.


confirmProcessDelete

public void confirmProcessDelete(javax.faces.event.ActionEvent event)
Processes the request to launch the delete confirmation poup, from the tables.

Parameters:
event -

confirmDeletePopupDialogListener

public void confirmDeletePopupDialogListener(javax.faces.event.ActionEvent event)
Processes the Yes or No click from the delete confirmation popup.

Parameters:
event -

processDelete

public void processDelete(javax.faces.event.ActionEvent event)
Processes deleting a row from the Attachments Table, either from the delete icon or "delete" from the menu.


getDatatypeCodes

public MethodMap getDatatypeCodes()
                           throws java.lang.NoSuchMethodException
This method is to be used in EL expressions to return a list of data types.

Returns:
A Map object which will be used to access the data types
Throws:
java.lang.NoSuchMethodException

getDatatypeCodesList

public java.util.List getDatatypeCodesList(java.lang.String dcId)
Method to currently pass in the three values supported by attachments. The user table might have more datatupe codes which are not yet supported by attachments.


getDocumentTypes

public MethodMap getDocumentTypes()
                           throws java.lang.NoSuchMethodException
This method is to be used in EL expressions to return a list of document types.

Returns:
A Map object which will be used to access the document types
Throws:
java.lang.NoSuchMethodException

getDocumentTypesList

public java.util.List getDocumentTypesList(java.lang.String dcId)
This method generates a list of document types for the specified DC.

Parameters:
dcId - String value
Returns:
An arraylist of selectItems to be used in a droplist

getStatuses

public MethodMap getStatuses()
                      throws java.lang.NoSuchMethodException
This method is to be used in EL expressions to return a list of statuses.

Returns:
A Map object which will be used to access the statuses
Throws:
java.lang.NoSuchMethodException

getStatusesList

public java.util.List getStatusesList(java.lang.String dcId)
This method generates a list of statuses for the specified DC.

Parameters:
dcId - String value
Returns:
An arraylist of selectItems to be used in a droplist

getModelLookupList

public static java.util.List getModelLookupList(oracle.jbo.ApplicationModule am,
                                                java.lang.String voName,
                                                java.lang.String fullVoName)
For internal use only Uses an instance of the AttachmentUIAM to find and/or create a view object of a lookup type. A list of strings contaning the values for the attributes LookupCode and Meaning is returned.


getCategories

public MethodMap getCategories()
This method is to be used in EL expressions to return a list of Category Names.

Returns:
A Map object which will be used to access the document types

getCategoriesList

public java.util.ArrayList getCategoriesList(java.lang.String dcId,
                                             java.lang.String categoryName,
                                             java.lang.String entityName,
                                             org.apache.myfaces.trinidad.model.CollectionModel attachmentsCM,
                                             java.lang.String updateCategoryList)
This method generates a list of category types for the specified DC.

Parameters:
dcId - String the name of the DC
categoryName - String value
entityName - String the name of the entity to find the categories for.
attachmentsCM - CollectionModel the attachments collection model.
updateCategoryList - String the update category list value.
Returns:
An arraylist of selectItems to be used in a droplist

getSingleCategory

public MethodMap getSingleCategory()
This method is to be used in EL expressions to return if only a single category is available.

Returns:
A boolean value which will be used to either display or hide category column

getSingleCategoryValue

public boolean getSingleCategoryValue(java.lang.String dcId,
                                      org.apache.myfaces.trinidad.model.CollectionModel attachmentsCM,
                                      java.lang.String updateCategoryList)
This calculates to see if only one category is present.

Parameters:
dcId - String value
Returns:
a boolean true if only one category present

getUnselectedCategoryValue

public java.lang.String getUnselectedCategoryValue(oracle.adf.view.rich.component.fragment.UIXDeclarativeComponent attachmentDC,
                                                   java.lang.String entityName)
This method generates the default category to be shown in categories list.

Parameters:
dcId - String value
Returns:
a string value of category

checkEmptyRows

public java.lang.Boolean checkEmptyRows(javax.faces.component.UIComponent eventSource)
If user clicks on "OK" in popup and there are some empty rows in it, this method would delete those empty rows.


uploadedFileListener

public void uploadedFileListener(javax.faces.event.ValueChangeEvent event)
Listener for the uploadedFile. It breaks down the uploadedFile object into its constituent attributes and uploads them to the AttachmentsVO.

Parameters:
event -

processAttachRepositoryFile

public void processAttachRepositoryFile(javax.faces.component.UIComponent eventSource,
                                        oracle.webcenter.content.JCRContentID[] contentIds)

deleteSingleAttachment

public void deleteSingleAttachment(javax.faces.component.UIComponent eventSource)

processSingleAttachment

public void processSingleAttachment()

cancelSingleAttachment

public void cancelSingleAttachment()

processSingleCanceledListener

public void processSingleCanceledListener(oracle.adf.view.rich.event.PopupCanceledEvent popupCanceledEvent)
Cancel action for Single Attachment when the popup close button is pressed.

Parameters:
popupCanceledEvent - the popup cancelled event.

getTaskFlowId

public java.lang.String getTaskFlowId()
used by the doc picker taskflow definition


processSingleAttachRepositoryFile

public void processSingleAttachRepositoryFile(javax.faces.component.UIComponent eventSource,
                                              oracle.webcenter.content.JCRContentID contentId)
repository file processing for SingleAttachment


singleDialogListener

public void singleDialogListener(oracle.adf.view.rich.event.DialogEvent event)

confDelDialogListener

public void confDelDialogListener(oracle.adf.view.rich.event.DialogEvent event)

checkinDialogListener

public void checkinDialogListener(oracle.adf.view.rich.event.DialogEvent event)

popupFetchListener

public void popupFetchListener(oracle.adf.view.rich.event.PopupFetchEvent event)

popupDialogListener

public void popupDialogListener(oracle.adf.view.rich.event.DialogEvent event)

getSizeOf

public java.util.Map getSizeOf()

processCheckOut

public void processCheckOut(javax.faces.event.ActionEvent actionEvent)
Perform a repository checkout of the currently selected attachment.

Parameters:
actionEvent -

processCheckIn

public void processCheckIn(javax.faces.event.ActionEvent actionEvent)
Performs a repository checkin of the currently selected attachment.

Parameters:
actionEvent -

processCancelCheckOut

public void processCancelCheckOut(javax.faces.event.ActionEvent actionEvent)
Performs and undo of a checkout on the currently selected attachment.

Parameters:
actionEvent -

dCode_ValueChangeListener

public void dCode_ValueChangeListener(javax.faces.event.ValueChangeEvent vce)
Value change listener sets the two Datatype code values ahead of the PPR firing on the required settings for the File or Url column.


docTypeId_ValueChangeListener

public void docTypeId_ValueChangeListener(javax.faces.event.ValueChangeEvent vce)
Value change listener for Single Attachment Popup


setLinkPanelGroupLayout

public void setLinkPanelGroupLayout(oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout _linkPanelGroupLayout)

getLinkPanelGroupLayout

public oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout getLinkPanelGroupLayout()

setColLinkPanelGroupLayout

public void setColLinkPanelGroupLayout(oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout _colLinkPanelGroupLayout)

getColLinkPanelGroupLayout

public oracle.adf.view.rich.component.rich.layout.RichPanelGroupLayout getColLinkPanelGroupLayout()

setAttachmentTable

public void setAttachmentTable(oracle.adf.view.rich.component.rich.data.RichTable _attachmentTable)

getAttachmentTable

public oracle.adf.view.rich.component.rich.data.RichTable getAttachmentTable()

setPopupAttachmentTable

public void setPopupAttachmentTable(oracle.adf.view.rich.component.rich.data.RichTable _popupAttachmentTable)

getPopupAttachmentTable

public oracle.adf.view.rich.component.rich.data.RichTable getPopupAttachmentTable()

sharedValidator

public void sharedValidator(javax.faces.context.FacesContext facesContext,
                            javax.faces.component.UIComponent uIComponent,
                            java.lang.Object object)
Check to see whether a file can be unshared. An about to be Unshared condition is when checkbox value is false and DmFolderPath has a value. In which case we need to run a query to see if there are other business object records attached to the same file. If there are the validation needs to throw an exception.

Parameters:
facesContext -
uIComponent -
object -

set_singlePopup

public void set_singlePopup(oracle.adf.view.rich.component.rich.RichPopup _singlePopup)

get_singlePopup

public oracle.adf.view.rich.component.rich.RichPopup get_singlePopup()

setConfirmDeletePopup

public void setConfirmDeletePopup(oracle.adf.view.rich.component.rich.RichPopup _confirmDeletePopup)

getConfirmDeletePopup

public oracle.adf.view.rich.component.rich.RichPopup getConfirmDeletePopup()

URLValidator

public void URLValidator(javax.faces.context.FacesContext facesContext,
                         javax.faces.component.UIComponent uIComponent,
                         java.lang.Object object)

getCategoryUpdateAllowed

public MethodMap getCategoryUpdateAllowed()
This method is to be used in EL expressions to return if only a single category is available.

Returns:
A boolean value which will be used to either display or hide category column

getCategoryUpdateAllowedValue

public java.lang.Boolean getCategoryUpdateAllowedValue(java.lang.String dcId,
                                                       java.lang.String currentCategoryName,
                                                       java.lang.String entityName,
                                                       org.apache.myfaces.trinidad.model.CollectionModel attachmentsCM,
                                                       java.lang.String updateCategoryList)

categoryRequest

public static java.lang.Object categoryRequest(java.lang.String dcId,
                                               java.lang.Object row,
                                               java.lang.String request)
Stubbed out. All new calls should be through categoryRequestValue.


categoryRequestValue

public static java.lang.Object categoryRequestValue(java.lang.String dcId,
                                                    java.lang.Object row,
                                                    java.lang.String request,
                                                    java.lang.Object attachmentCMObj,
                                                    java.lang.String updateCategoryList)
Function declared in the fnd.tld. Called by richattachment.jspx

Parameters:
dcId - - id of the calling Attachment Component
row - - AttachmentsVORow, passed as object and is cast to the correct type
request - - Category related action, currently ALLOWED and LIST
attachmentCMObject - - the attachments collection model
updateCategoryList - - the update category list attribute value
Returns:

addPopupCanceledListener

public void addPopupCanceledListener(oracle.adf.view.rich.event.PopupCanceledEvent popupCanceledEvent)
Reverts the datacontrol back to the savepoint taken when the popup was shown and closes the attachments popup.

Parameters:
popupCanceledEvent - the cancel event that occurs when the popup is closed via the x button.

addPopupCanceledListener

public void addPopupCanceledListener(javax.faces.event.ActionEvent popupCancelButtonEvent)
Reverts the datacontrol back to the savepoint taken when the popup was shown and closes the attachments popup.

Parameters:
popupCancelButtonEvent - the cancel event that occurs when the popup is closed close button.

addPopupFetchListener

public void addPopupFetchListener(oracle.adf.view.rich.event.PopupFetchEvent popupFetchEvent)

popupOkActionListener

public void popupOkActionListener(javax.faces.event.ActionEvent actionEvent)

getViewLink

public oracle.jbo.ViewLink getViewLink(oracle.jbo.uicli.binding.JUCtrlHierBinding attachmentModel)

toPortletURL

public static final java.lang.String toPortletURL(java.lang.String url)
If running in a portlet environment, append special query string parameters to the URL: _xResourceMethod=wsrp - do in-protocol resource request javax.portlet.faces.ViewLink=false - this is a resource request, so call EC.encodeResourceURL() Exposed as EL function #{fnd:toPortletURL(...)}

Returns:
The query string.

getColumnCollectionModel

public org.apache.myfaces.trinidad.model.CollectionModel getColumnCollectionModel()
Interrogates the "columnModel" attribute passed into the Attachments DC and converts it into a CollectionModel. This method caches the result to avoid any additional overhead.

Returns:
the collection model representation of columnModel attribute.

Oracle Fusion Middleware extensions for Applications Core API Reference
11g Release 1 (11.1.2)

E22562-02

Copyright © 2011 Oracle. All Rights Reserved.