Overview Use Cases Oracle Fusion Middleware Online Documentation Library
14.2.2 Use Case: Find an Acceptable Value List and use it in an asset
Description Populate an assets single or multiple selection lists with acceptable values. Sample code is as follows: package com.flashline.sample.acceptablevaluelists; import java.net.MalformedURLException; import java.net.URL; import java.rmi.RemoteException; import javax.xml.rpc.ServiceException; import com.flashline.registry.openapi.base.OpenAPIException; import com.flashline.registry.openapi.entity.AcceptableValue; import com.flashline.registry.openapi.entity.AcceptableValueList; import com.flashline.registry.openapi.entity.Asset; import com.flashline.registry.openapi.entity.AuthToken; import com.flashline.registry.openapi.query.AcceptableValueListCriteria; import com.flashline.registry.openapi.service.v300.FlashlineRegistry; import com.flashline.registry.openapi.service.v300.FlashlineRegistryServiceLocator; public class FindAcceptableValueListAndUseInAsset { public static void mainString pArgs[] throws OpenAPIException, RemoteException, ServiceException { try { Connect to Oracle Enterprise Repository URL lURL = null; lURL = new URLpArgs[0]; FlashlineRegistry repository = new FlashlineRegistryServiceLocator .getFlashlineRegistrylURL; Authenticate with OER AuthToken authToken = repository.authTokenCreatepArgs[1], pArgs[2]; Find the AcceptableValueList AcceptableValueListCriteria criteria = new AcceptableValueListCriteria; criteria.setNameCriteriaMy AcceptableValueList; AcceptableValueList[] acceptableValueLists = repository .acceptableValueListQueryauthToken, criteria; AcceptableValueList myAcceptableValueList = acceptableValueLists[0]; AcceptableValue[] acceptableValues = myAcceptableValueList .getAcceptableValues; Find one value within the AcceptableValueList AcceptableValue myAcceptableValue = null; for int i = 0; i acceptableValues.length; i++ { if acceptableValues[i].getValue.equalsMy Value { myAcceptableValue = acceptableValues[i]; break; } 14-4 Oracle Fusion Middleware Integration Guide for Oracle Enterprise Repository } long myAcceptableValueID = myAcceptableValue.getID; Asset myAsset = repository.assetReadauthToken, 561; String customData = myAsset.getCustomData; Modify customData to use myAcceptableValueID. String modifiedCustomData = customData; ... save modified custom data myAsset.setCustomDatamodifiedCustomData; repository.assetUpdateauthToken, myAsset; } catch OpenAPIException lEx { System.out.printlnServerCode = + lEx.getServerErrorCode; System.out.printlnMessage = + lEx.getMessage; System.out.printlnStackTrace:; lEx.printStackTrace; } catch RemoteException lEx { lEx.printStackTrace; } catch ServiceException lEx { lEx.printStackTrace; } catch MalformedURLException lEx { lEx.printStackTrace; } } } 15 Asset API 15-1 15 Asset API This chapter provides an overview of Asset API and describes the use cases using this API. This chapter contains the following sections: ■ Section 15.1, OverviewParts
» Oracle Fusion Middleware Online Documentation Library
» In the left panel, click System Settings. Click Save.
» Create a name andor description. Click Edit. Select the Repository File radio button.
» Select ClearCase in the Host list.
» Populate the file name field with the path of the view from CCWeb and the file
» Click View to test the file.
» Click the asset to open its Asset Detail Display.
» Click UseDownload. The Use - Download page is displayed, as shown in
» Click the Admin link on the Oracle Enterprise Repository menu bar.
» On the Admin screen, click System Settings.
» Set Advanced Access File Stores to true.
» Click the Artifact Store File option.
» Adding a File to an Asset Using the ClearQuest Artifact Store
» Click OK to populate the File Name with the shortcut portion. Click View to test the URL.
» Overview Overview Installation Oracle Fusion Middleware Online Documentation Library
» Click OK. Configuring an Artifact Store
» Security Considerations Oracle Fusion Middleware Online Documentation Library
» In the top-right corner, click Setup, and then select Administrators on the left
» Under Create Administrator: System Privileges, select VIEW ANY TARGET.
» Under Create Administrator: Target Privileges , select BATCH ASSIGN and
» Using the Enterprise Manager Integration Utility
» Configuring the Enterprise Manager Integration Utility
» From a command prompt, run the password encryption tool as follows:
» Scroll down to the Tools section and click the Encrypt Strings for passwords link
» Enter the clear text password into the String to Encrypt text box.
» Click the Submit Query button.
» Copy the resulting encrypted password string and paste it into the appropriate
» Known Issues Oracle Fusion Middleware Online Documentation Library
» Overview Best Practices Oracle Fusion Middleware Online Documentation Library
» Click Next. The Summary page is displayed, as shown in Click Finish.
» Select both the Extensions, as shown in
» Click Next. The Summary page is displayed, as shown in
» Click Finish. Configuring Oracle JDeveloper
» Click File, New. The New Gallery dialog is displayed.
» Select General, Connections, and then select Oracle Enterprise Repository
» Click OK. The Create Oracle Enterprise Repository Connection dialog is
» Click the Common tab. In the Display in favorites menu pane, enable External Tools, as shown in
» In Eclipse, click New, Project, General, Project to create a new eclipse project.
» Browse for any WSDL file in the file system, copy it and paste into the just created
» Select the project and then click Submit this project to Oracle Enterprise
» In the Eclipse Workspace, select Run, External Tools, External Tools
» In the Common tab, enable the External Tools option.
» In the Confirmation dialog, click Yes to restart Eclipse.
» Click the Establish Connection button to ensure enterprise repository
» Enter the following details in the External Tools dialog, as shown in
» Click the File Pattern Detection tab to specify include and exclude file name
» Click Done to save your settings.
» Associating JDeveloper Application with Oracle Enterprise Repository
» Select Repository. The Repository page is displayed.
» Click OK. In Oracle JDeveloper, double-click the composite.xml file. The composite.xml page
» Click the Finding Existing WSDLs icon at the end of the WSDL URL field. The
» Harvest Artifacts Click OK in the confirmation window to complete the submission process.
» In Eclipse, right-click the project and select Submit this project to Oracle
» In Eclipse, click Window, Show View. Select Other. In Eclipse, click Window, Show View.
» Select the Enterprise Repository Access option. The Enterprise Repository Access
» Download Artifacts Right-click a search result and select Show in Asset Details View. The Asset
» Select Oracle Enterprise Repository and then Workspace Automatic Usage
» Click the Detect Usage in Workspace Projects option, and then activate the
» View Asset Details Click the Download icon for any listed asset to download the asset.
» Select the .NET projects that you want monitored for automated usage detection,
» Overview Oracle Fusion Middleware Online Documentation Library
» Prerequisites Configure orrxu.xml for Oracle Enterprise Repository and SAP UDDI
» Introduction to REX Oracle Fusion Middleware Online Documentation Library
» REX Architecture Oracle Fusion Middleware Online Documentation Library
» Click System Settings. Basic Concepts
» Enter the property cmee.extframework.enabled in the Enable New System Setting
» Click Enable. The Open API section is displayed.
» Ensure the cmee.extframework.enabled property is set to True.
» Getting Started - Consuming the WSDL
» Overview Use Cases Oracle Fusion Middleware Online Documentation Library
Show more