How can I programmatically determine the super-type of RepositoryItem

I have a bunch of point-descriptors that share a common supertype of 'product' as below...

< name point-descriptor = "visualmedia" super-type 'product' = display-name = 'Visual Media' sub-sub-type-value = "visualmedia" >
< name point-descriptor = 'application' supertype 'product' = display-name = "Application" sub-sub-type-value = "application" >

.

In my code, it is pretty easy to get kind of a RepostitoryItem as...

String itemType = item.getItemDescriptor () .getItemDescriptorName ();
gives "visualmedia" or "application".

.. .but what I really need, is the RepositoryItem super-type value of 'product '. Does anyone know how to do this?

Bob

It is always better to write code using the repository API, if possible, rather than dive into implementation of the particular repository as the GSA. The atg.repository.RepositoryUtils class is your friend. He takes care of some instanceof checks and casts are needed. It probably has the methods you need. Here are some options related to your question.

RepositoryItemDescriptor getBaseItemDescriptor(RepositoryItemDescriptor pItemDesc) - if pItemDesc is not a GSAItemDescriptor, it will be returned to you. If it's a GSAItemDescriptor, you will get back GSAItemDescriptor.getBaseItemDescriptor. The base is the root of a multilevel inheritance tree. If the input parameter has no supertypes, it will be returned. In other words, you won't get back to a null value.

RepositoryItemDescriptor getParentItemDescriptor(RepositoryItemDescriptor pItemDesc) - This returns an immediate supertype or null if the input type without a supertype.

Boolean isTypeOfItemDesc (RepositoryItem, RepositoryItemDescriptor pSuper pItem) - returns true if pItem is a pSuper or pSuper anywhere in its supertype tree. This is analogous to java instanceof. There is an overloaded version of this method where you can spend in a RepositoryItemDescriptor for the first parameter, if this happens to be most convenient for you. If you start with a RepositoryItem, there is no need to get his ItemDescriptor your own.

The code in GSAItemDescriptor.getSuperTypeDescriptor isin was exactly the same as getParentItemDescriptor, and I'm not enough to know if they would give you different answers, an expert of GSA. I doubt it. My guess is that isTypeOfItemDesc is what you really want.

Tags: Oracle Applications

Similar Questions

  • How do I programmatically determine the version OMIVV

    How can I programmatically retrieve the version of OMIVV (OpenManage for VMware vCenter integration)?

    That's how I do it manually
    1. connect to https://
    2. in the left menu, select the DEVICE MANAGEMENT
    3 version is displayed under the DEVICE UPDATE

    There is no url in the hyperlink for the management of the unit. This is a javascript action.
    I prefer not to have to hack all the javascript and html to find the source of the information, as this could easily change in a future version, this hack of rendering obsolete.

    There is no SNMP agent
    You can't SSH to the IMO

    I would like to write a script to collect this information on a regular basis as part of the State of my management of environment report.

    Hello

    There is not a way to side plugin to collect the version. You may be able to use other methods of Vcenter for version. PowerCLI should be able to get a list or the specific version of the plugin with the Get-vCenterPlugin command

    https://my.VMware.com/Web/VMware/details?downloadGroup=PCLI550&ProductID=352

  • How can I programmatically set the delay of a feedback node?

    I'm generating a sine wave using the vi simulate Signal Express. I then use a feedback node to delay the signal of a specific amount. The front displays 2 charts: one of the original signal and another of the delayed signal.

    The problem is that I will determine the amount of delay based Boolean user entry rather than having to set by using the configuration box (the time will be 4000 if the user chooses "real" and 2000 if the user chooses "fake". I do this with a box structure. How can I use the delay printed by the case structure to control the delay of feedback node?

    I'm relatively new to Labview, so maybe there is a better way to reach my goal of using a Feedback node. Any ideas are appreciated!

    Take a look at this response, "Is there a period of dynamic for nodes of z comments?"

  • How can I programmatically change the parameters of voltage range in a DAQ Assistant

    Hello

    First post here.

    I need to be able to change the properties of voltage range of a daqmx assistant DAQ based on user input.  My material, an SCXI module - 1102C does not change this property on a running task, so I would together the range of input voltage analog before activating the DAQ Assistant, or break the DAQ Assistant immediately after it starts, set the values, and then resume.

    I don't know how to change the task ahead because the DAQ assistant creates the task when it is running, and there is no job before that.

    In the attached photo, I have a conditional section, configured to run only if the loop iteration is 0.  I take the task of the Daq assistant, sending him stop vi of task, set the property and then send the task with the snap the vi task. I can watch him run with lightweight debugging on, and everything seems to work properly, but on the second (and all others) iteration of the loop, I read I. Max and it seems that a re DAQ Assistant set it to the 5V.  You can see what's going wrong here?

    BTW, there is a continuous acquisition and the code doesn't produce error messages when executing.

    I've encountered a similar question someone posted here in 2006, but his question was specifically a Labview API (VB, I think) and not a real solution of G.

    Attached are the real vi in question and a PNG of the block diagram.

    Thank you!

    Ruby K

    First of all, if you want to start getting beyond the basics with the DAQ hardware, you have to stop using the DAQ assistant and do it with lower level VI DAQmx.  There are hundreds of examples in the finder of the example.  You can even make a right-click on the DAQ assistant and select open front panel.  This will create a Subvi, you can open and see what is happening behind the scenes.  Do it.  I think you will find that the task DAQ is recreated on each (although I'm not 100 percent the way parameters are established or maintained in each section of this sub - VI).

    The second problem is that you have a bit of a race on iteration 0 condition.  These two property DAQ nodes are running at the same time.  Thus, when you read the AI. Max, this can happen before or after the AI. Max is located in the structure of your business.

    Thirdly, make sure that involve you your son of the error.

  • How can I programmatically determine if a TCP port is still open

    I use STM to go from communication between a GUI and a reat-time target. Everything works great except if the TCP connection is terminated at each end for a reason any. How I can programitcally queries the port to see if the connection is still valid with on a read or write on the port?

    LabVIEW is not any sort of TCP 'polling' VI. You will need to perform an operation of TCP and get the error provided to indicate that the connection has been lost. What did you do once you have discovered if the connection is no longer valid? Did you want to open a new connection and start using that one? If so, the best way to handle this is by trapping the error conditions in your code. If you get the error "connection interrupted" you open a new connection and try the operation again. I don't know how your code is structured, so I couldn't really tell you the best way to implement this in your code.

  • Performing a loopback test, how can all I determine the connection either RS-232 or RS-485?


    Hi Sergio,
    You need not choose the Protocol.  The computer COM port is RS - 232, so you can make the RS-232 configuration test.

    Kind regards

    Sammy Z.

  • How can I dynamically select the shared Variable API programming data type?

    I am trying to create a configuration of open connections of variable shared using the programming API. It seems to me that the cleanest way to do would be to put one "open and check" routine in a loop, then call it for each variable in the library.

    The question that I am running is that I have different types of data in my library (to help a server Modbus i/o and data types 'boolean' and 'single' in my library.) How can I dynamically select the data type of the shared variable API?

    See the attached snipit.

    Thank you

    What I ended up doing was doing a Subvi to open, read, write, and close each data type, I use the packaged in 4 polymorphic SubVIs (polymorphic Open, read, etc...)

    Now all I have to do I drop in the polymorphic Subvi and it switches automatically to the appropriate data type

  • How to determine the image type in IMAQdx

    You can use the property IMAQ node to determine the image type when creating images.  However, when I try with IMAQdx I get 0 bits per pixel and I do not see a type as for IMAQ image.  I am creating 8-bit images when my camera is color.  How can I determine the image type of the camera file?

    Hi rammer,.

    IMAQdx exposes an attribute called "TypeOfImageInUse" that will give you the image type expected for the current settings of the camera. However, none of the functions that return an image IMAQdx will automatically convert the image to the format automatically, so you don't normally have to worry about this.

    I do not believe that the attribute is now directly exposed as his own property node, but you can use the CameraAttributes-> ActiveAttribute/ValueU32 those for questioning as any other attribute of dynamic camera.

    Eric

  • How can I find all the plugins in the firefox browser

    HI I was wondering if I could ask a question how can I find all the installed plugins in the firefox lasted I would like to be able to know if, for example, if the shockwave plugin is updated and which version is currently installed in the firefox browser lasted.

    Thank you

    Hello Funny78, type Subject: addons in the address bar and then select plugins, add-ons manager opens and you can see the last version of the plugins (and other info), now click on the click to see if your plugins are up to date and see if it is.

    Thank you

  • How can I permanently change the NVIDIA geforce of Intel(r) hd graphics?

    I would like to know how can I permanently change the type of adapter display card Intel (R) NVIDIA geforce hd? Previously, when I bought my computer, it is equipped with one chart type-NVIDIA geforce and everything goes fine until I installed Intel(r) hd as you are prompted by windows update. Since then, my computer have encountered many problems, especially when you play high graphics... I tried to move from the graphics card Intel (R) NVIDIA geforce hd when playing games... and yet, the performance is not as good as the last time where I did have only one chart. Because of this, I would like to change or define main graphic geforce NVIDIA and Intel (R) hd as secondary, or if possible, permanently remove the hd Intel (R).

    Hello

    What is the make and model of computer?

    What is the Windows operating system?

    Follow these steps to disable Intel

    http://www.WikiHow.com/disable-the-onboard-graphics-and-install-a-new-graphics-card-in-your-HP-Pavilion-6630

    HP Support Doc

    http://h10025.www1.HP.com/ewfrf/wc/document?DocName=c01684404&tmp_task=useCategory&LC=en&DLC=en&cc=us&product=4215700&lang=en

  • How can I get to the screen to insert the DNS settings? Printer continues to fall from the network

    Windows 7

    Photosmart 6520

    How can I get to the screen to insert the DNS settings? Wireless network printer continues to fall.

    The screen to manually set the DNS and IP parameters is in the SAP, or shipped to the printer Web server.  To access this page, it will take the IP address of the printer.  This information is found by pressing the icon on the front of the Photosmart 6520 wireless.

    Once again, we have the IP address, and then they could type this information in the address bar of their favorite browser.

    On another thread, you have mentioned the difficulties getting to the Web integrated printer server.  It is possible that the printer has a valid IP address, but still has no "communication" with the router.  Have you tried to enter the menu of the 6520 wireless and default network selection.  After having done that, then we can re - run the Wireless Setup Wizard in the wireless menu to reconnect the printer to the network.

    With this new valid IP address, you can access SAP of the printer?  In addition, make sure that the printer and the PC are connected to the same network access point.  Let me know how it goes.

  • How can I move all the information of the computer without having to hit F1 or F2 at startup and go directly to the windows desktop in Windows XP

    How can I move all the information of the computer without having to hit F1 or F2 at startup and go directly to the windows desktop in Windows XP

    see if this article applies to your question:

    http://www.computerhope.com/issues/ch000301.htm

    a method to determine if the motherboard (cmos battery) battery should be replaced is to monitor the time in the windows desktop.

    If windows does not have the exact time, then the motherboard battery is low and must be replaced.

  • How can I activate in the window manager for areo glass can be activated?

    After installation ATS for Microsoft Fix - It, I went to... check areo glass and he pointed out that my 'Windows Manager' was not enabled.   How can I go on the activation of the 'Windows Manager'?

    Execute plug-in software component services MMC (services.msc) find the two services, make a double click and set the startup type to automatic. "A programmer is just a tool that converts the caffeine in code" Deputy CLIP - http://www.winvistaside.de/

  • PC DM files: my hard drive is currently filled by PC DM files in my folder/Public user folder. How can I safely remove the right files in this folder?

    My hard drive is currently filled by PC DM files in my folder/Public user folder.  How can I safely remove the right files in this folder?  Vista Home Premium 64 bit is my os.

    Hi templar_39,

    DM (Message Delivery) file types are not Windows files, they can be generated by a third-party program.

    This particular file type is often associated with audio data and can be hosted on some cell phones to be used as ringtones or multimedia clips. To my knowledge, these files can be generated by your mobile phone.

    Note: you can go ahead and remove these files only if you notice that the files do not contain any important information.

    If this happens without connect you all devices (like mobile PHONES), this may be a virus or malware activity. You can run a virus scan to get rid of them

    Step 1: A scanner online for any threat and try to correct

    http://OneCare.live.com/site/en-us/Center/cleanup.htm

    Thank you, and in what concerns:

    Ajay K

    Microsoft Answers Support Engineer

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Firewall: How can I SWITCH OFF THE FIREWALL on the PC

    How can I SWITCH OFF THE FIREWALL on the PC

    http://Windows.Microsoft.com/en-AU/Windows-Vista/turn-Windows-Firewall-on-or-off

    Enable or disable Windows Firewall

    If your computer is connected to a network, network policy settings may prevent you from completing these steps.

    View all

    To turn on Windows Firewall
    1. Open Windows Firewall by clicking on the button start, clicking Control Panel, clicking Security, and then clickingWindows firewall.

    2. Click turn on or off Windows Firewall. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. Click on (recommended), and then click OK.

    If you want the firewall to block everything, including the programs selected on theExceptions tab, select the block all incoming connections checkbox.

    You should not turn off Windows Firewall unless you have another firewall is enabled. Turning firewall offWindows can make your computer (and your network, if you have one) more vulnerable to damage caused by worms or hackers.

    1. Open Windows Firewall by clicking on the button start, clicking Control Panel, clicking Security, and then clickingWindows firewall.

    2. Click turn on or off Windows Firewall. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.

    3. Click on (not recommended), and then click OK.

    See you soon.

    Mick Murphy - Microsoft partner

Maybe you are looking for

  • Need drivers for Satellite M200 PSMC0K XP or VISTA

    Hello. I need all drivers for my TOSHIBA SATELLITE M200 PSMC0K - 01 L 00. for XP or VISTA I buy this mobile in europe, but it is a Korean model (here you can see this laptop http://www.shoptoshiba.co.kr/goods/content.asp?num=52288&big=18&middle=1&sma

  • analog-to-digital

    Hello, please how to convert an analog output digital, I'm working on the cRIO 9012.

  • Small businesses of Microsoft Outlook 2000

    Seeking advice.  I click on the outlook icon.  Outlook opens briefly and then closes immediately.   Used Microsfift diagnosis.  Looked at the switches.  Also tried the repair icon small business office.  Can't get outlook to open.  Any suggestions?

  • E7440 - problem with the PCI standard PCI to PCI bridge device

    I'm having a problem that I've not seen before on the E7440. I am Windows 7 x 64 deployment and after the imaging system, I have a machine called a bridge of PCI to PCI standard PCI with a yellow exclamation point. Indicates the status of the device

  • VCS EXPRESS WAY CLUSTER

    Hello We intend to deploy VCS Expressway Cluster for a company with two sites. Each site will have a VCS Expressway. Dual interface and NAT will be used. I would like to know the list of ports is used for cluster communications. Annex 3 of the Guide