Content DB API - retrieving categories and attributes

Hi, I'm trying to get the values of attributes of a document using the Content DB api, does anyone have an example? I can get as far as:
targetDoc = fileM.resolvePath("/acme/POST-IN/test.txt",requestedAttributes);
Item category;
NamedValue[] nvArray = targetDoc.getRequestedAttributes();
int len = (nvArray == null ? 0 : nvArray.length);
for (int i = 0; i < len; i++)
Item[] categories = (Item[]) nvArray.getValue();
for (int j = 0; (categories != null && j < categories.length); j++)
Item currentItem = categories[j];
s_Logger.log("item "+i+" "+j+" "+currentItem.getId()+currentItem.getName()+currentItem.getClass()+currentItem.getType());
Output: item 0 0 97922nullclass oracle.ifs.fdk.ItemCATEGORY
I'm not sure what exactly the currentItem is, it doesn't even have a name.

I found helpful information in the CDB toolkit, ApplyingCategories.java lines 250-258.
// next, let us retrieve the category instances that have been applied to
// our document that match our Test Category class type.
requestedAttributes = new AttributeRequest[] {
// for the matching category instances, return back the value of the
// second attribute ("Target Audience") by providing internal attr name.
// Note to return back all attributes of the category instance,
// Attributes.CUSTOM_ALL can be specified instead!
ClientUtils.newAttributeRequest(attribute2Name)
...

Similar Messages

  • ISE is unable to retrieve groups and attributes

    Hello guys,
    I have Cisco ISE installed on EXSi in a lab. I was able to join the ISE server to my test Active Directory server, and under the OU=Computers, I can see my ISE hostname.
    However, when I go to Administrator > External Identity Sources > Active Directory > Groups > Add > Select Group from Directory:
    I have my domain entered in Domain box and an * for filter. When I clicked the "Retrieve Groups" button, I always received "Number of Groups Retrieved: 0 (Limit is 100)"
    It seem like ISE is unable to retrieve the groups that I have on my AD. I checked the status of my ISE server and it says that it is still connected to the domain. When I search for attributes, it keep saying that the user is not found.
    I disabled my AD's firewall and still getting the same results. I ran the detailed test connection, and it was a success and the port connections are all good. At this point, I am pretty much stuck.
    Any help would be greatly appreciated.
    Thanks

    I am sorry Jatin. I have another question.  I am working on Motorola RFS7000 WLC and Cisco ISE v1.1.1.
    I am not sure if I should create a new thread about the new issue I am having now.  I have successfully added my RFS controller and one AP7131 to ISE Network Devices. And I am able to login to these devices using my AD account. However, it is not allowing me to manage these devices.  I believe I am at exec mode. I SSH to my RFS and I can't even get to enable mode.

  • Documentation about Content Area APIs and Views

    Can somebody point me to the documentation about Content Area APIs and also the documentation about the views of the Content Areas ?
    I have not been able to find nothing else that what is available in the package specs.
    Thank you for your help.

    Hi,
    Please Refer to this thread.
    Re: eclipse designer not found in Beta 3
    --Sriram                                                                                                                                                                                                                                   

  • Displaying content item -(IContentItem) in portlet using Content Server API

    Hi,
    I am using the latest Content server API in my remote server to get the published content items. I have to display the content item in the JSP portlet.
    So how to display the content item in the portlet, if you have the IContentItem Object retrieved from the content server ? Is there any mechanism to get the HTML code/JSP code that corresponds to the IContentItem object?(All the content item will be an html or jsp )
    Currently we are extracting the publish url and opening an http connection to retrieve the html, which is not a good solution if you have mutiple portlets in the same page. So please suggest how can I display the content item (IContentItem Object) in the portlet.?

    Hi Anand,
    I am facing the same problem on IBM WebSphere Portal 5.1.
    Did you find a solution to your problem ?
    Thanks
    Ganesh

  • About using categories and perspectives for new user

    We are just beginning a conversion and upgrade project to convert our Web site to Oracle Portal. I'm trying to get a good handle on some different things we need to resolve as part of the project. One of the first decisions is using Categories and Perspectives.
    I'd like to ask users about how they have used categories and perspectives and some real-world examples of how these work and improve the site and user experience.
    About us
    We're a big nonprofit river authority and wholesale electric provider in Austin, Texas. Currently, we offer very limited online transaction capabilities. However, we are diverse organization and users come to us looking for every specific information, so these elements may be very helpful. I'm evaluating how we can use these and other elements to make recommendations. Some real-world examples and best practices would help a lot.
    Thank you, Charles Boisseau
    Web editor
    Lower Colorado River Authority
    [email protected]

    Continuing the thread...
    Perspectives and categories may be leveraged in custom search portlets, so that you can enter the content one time, in one place, and have selected content display in multiple places.
    Re: our "news" concept: our central communications group posts news stories tagged with one or more perspectives, such as which school is related to the story. This allows us to keep all of our news stories in one page group, but reuse the content elsewhere. For example, for the School of Nursing intranet, we can use a custom search portlet that automatically displays only that school's stories.
    You'll want to do some up-front planning regarding your classification scheme. One significant limitation of both categories and perspectives is the inability to change the hierarchy. Oracle Portal product team, if you're reading this, this is a serious pain! I might also recommend leaving your classification scheme relatively flat. Tagging content with perspectives becomes more difficult if the content contributor has to visually traverse a deep hierarchy of perspectives.
    Categories work similarly, but we mainly use them to visually sort items on a page using the "Group By" feature of a region.
    Hope this gets some gears turning.
    -John

  • Retrieve city and state from zip code that is entered by user

    I am trying to use AJAX to retrieve city and state from a table based on a zip code that is entered by the user. Two are text fields (zip code and city) and one is a SELECT field (state).
    1. I defined an application item called TEMPORARY_APPLICATION_ITEM.
    2. I defined an application process called SET_CITY_STATE as follows:
        a. Process point: on demand
        b. type: anonymous block
        c. process text:
    <pre>
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    apex_util.set_session_state('P2_CO_CITY',v_city);
    apex_util.set_session_state('P2_CO_STATE',v_state);
    EXCEPTION
    WHEN OTHERS
    THEN
    apex_util.set_session_state('P2_CITY','Unknown city');
    apex_util.set_session_state('P2_STATE',null);
    END;
    </pre>
    3. Javascript is defined in the region header:
    <pre>
    <script language="JavaScript" type="text/javascript">
    <!--
    function pull_city_state(pValue){
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
    'APPLICATION_PROCESS=Set_City_State',0);
    if(pValue){
    get.add('TEMPORARY_APPLICATION_ITEM',pValue)
    }else{
    get.add('TEMPORARY_APPLICATION_ITEM','null')
    gReturn = get.get('XML');
    get = null;
    //-->
    </script>
    </pre>
    4. In the HTML Form Element Attributes of the P2_CO_ZIP text item: onchange="pull_city_state(this.value)";
    The city and state are not being populated. I checked the select statement and it is retreiving the city and state in SQL WORKSHOP > SQL COMMANDS.
    I would like to use it for the mailing address as well, so I would need to make the application process / javascript a bit more generic to be used in two places.
    I placed the application on apex.oracle.com:
    Workspace: RGWORK
    Application: Online Certification Application (28022)
    Can someone assists, please.
    Thank you,
    Robert
    Edited by: sect55 on Jun 2, 2009 4:11 PM

    Hi Robert,
    Try using XML instead of session state -
    Change the application on demand process with the following script -
    >
    DECLARE
    v_city VARCHAR2 (100);
    v_state VARCHAR2 (2);
    CURSOR cur_c
    IS
    SELECT city, state
    FROM ZIP
    WHERE zip = v ('TEMPORARY_APPLICATION_ITEM');
    BEGIN
    FOR c IN cur_c
    LOOP
    v_city := c.city;
    v_state := c.state;
    END LOOP;
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CO_CITY">' || v_city || '</item>');
    HTP.prn ('<item id="P2_CO_STATE">' || v_state || '</item>');
    HTP.prn ('</body>');
    EXCEPTION
    WHEN OTHERS
    THEN
    OWA_UTIL.mime_header ('text/xml', FALSE);
    HTP.p ('Cache-Control: no-cache');
    HTP.p ('Pragma: no-cache');
    OWA_UTIL.http_header_close;
    HTP.prn ('<body>');
    HTP.prn ('<desc>this xml genericly sets multiple items</desc>');
    HTP.prn ('<item id="P2_CITY">' || 'Unknown city' || '</item>');
    HTP.prn ('<item id="P2_STATE">' || '' || '</item>');
    HTP.prn ('</body>');
    END;
    >
    in your javascript make sure you typing the application process name correctly as it is case sensitive.
    Hope this helps,
    Regards,
    M Tajuddin
    web: http://tajuddin.whitepagesbd.com

  • Difference between text data and attributes in master data?

    Hello,
    a charcteristic in BW maintains texts, hierarchies and attributes.
    What exactly is the difference between texts and attributes?
    Attributes describe master data like a customer. The country where the customer resides, the industry etc. describe and classify the customer. Attributes are not just the structure/metadata of the characteristics. They are also the content. The following table should visualize what i mean:
    customer-no. | name
    112          | mcpherson inc.
    113          | donalds inc.
    Texts contain contain the description of a characteristic. Texts define a characteristic. An example is the customers name. It does not describe the customer but defines him/her.
    Is my understanding about these two parts of master data right?
    What else except the customer's name belongs to the texts?
    If I set up a characteristic like the customer in SAP BW, do I have to create an attribute "name". The name belongs to texts, not to attributes?? If I upload master data then, how does it work?
    Thanks in advance.

    Hi,
    If your analysis includes country and region then country  and region should be included in the Infocube.This is required because only if you include these characteristics then you can restrict your queries for country and region.You may need to select some particular countires/region and show the report.Then you have to restrict your queries to only those countries/region.This is possible only if you have these  characteristic in your infocube.
    I am just envisaging your model like this.
    Characteristic in the Infocube
    Customer
    Country
    Region
    Customer Attributes
    Customer Number (SID which is self generated)
    Customer Address1,2 ,3
    Registration No
    Date of Registration
    Deposit Amount
    etc ...
    Region Attributes
    Region Number (SID)
    Total Customers
    Sale Office Address
    Number of Sales Persons
    Customer Attributes
    Customer Number (SID)
    Total Customers
    Head Office Address
    Number of Sales Persons
    GDP
    Total Population
    So the conclusion is whichever entity you want to restrict or analyse should be a part of Infocube.It is very difficult to do analysis based on attributes as I mentioned in my earlier post that they are only "Display attributes" (u can just show that's it).
    Yes!! there are  methods available for analysis based on characteristics in attributes table and you have to do either with virtual characteristic or replacement path or with writing code in customer exits.But a good design and earlier study of all possible report combination and having a good design will avoid good amount of development time and changes.
    I have suffered  when I had only 0CALDAY in my cube and when I want to take a monthly analysis, I was unable to do it and then I have to redesign my whole cube.
    Please anyone, correct me if I am wrong.
    Regs
    Gopi.

  • How to create a Templates for Categories and Products In BCC

    Hi All,
    Could you please tell me How to create a Templates for Categories and Products In BCC and how Can I get those Templates details(Categories and Products)in jsp
    If possible can any one send the document or where we find in atg docs
    Regards,

    At product/category/sku level there is a property called template.
    Find the property in ACC/BCC and provide all the values including the URL property.
    In you jsp, you can use this property from product/sku like the way you retrieve any other property from sku/product.
    <dsp:valueof param="product.template.URL" />
    Using that property with <dsp:include> includes that page.
    Peace
    Shaik

  • List of SQL tables and attributes used in SSRS reports

    Hi,
    I have around 450-500 reports deployed in SSRS reporting server.
    All these reports are built on SQL from multiple databases, and these databases are having unnecessary tables and attributes.
    My requirement is to clean the unused tables and attributes from the databases. For this, I need the list of SQL tables and attributes used in these 450-500 SSRS reports.
    Is there any way to get this data?
    Regards,
    RK

    Hi RK,
    According to your description, you want to get a list of the tables and attributes used in all reports.
    In your scenario, you can query the ReportServer.dbo.Catalog table to get Report name, data source name, dataset name, and query used in the dataset with query below:
    WITH XMLNAMESPACES ( DEFAULT 'http://schemas.microsoft.com/sqlserver/reporting/2010/01/reportdefinition', 'http://schemas.microsoft.com/SQLServer/reporting/reportdesigner' AS rd )
    SELECT ReportName = name
    ,DataSetName = x.value('(@Name)[1]', 'VARCHAR(250)')
    ,DataSourceName = x.value('(Query/DataSourceName)[1]','VARCHAR(250)')
    ,CommandText = x.value('(Query/CommandText)[1]','VARCHAR(250)')
    ,Fields = df.value('(@Name)[1]','VARCHAR(250)')
    ,DataField = df.value('(DataField)[1]','VARCHAR(250)')
    ,DataType = df.value('(rd:TypeName)[1]','VARCHAR(250)')
    --,ConnectionString = x.value('(ConnectionProperties/ConnectString)[1]','VARCHAR(250)')
    FROM ( SELECT C.Name,CONVERT(XML,CONVERT(VARBINARY(MAX),C.Content)) AS reportXML
    FROM ReportServer.dbo.Catalog C
    WHERE C.Content is not null
    AND C.Type = 2
    ) a
    CROSS APPLY reportXML.nodes('/Report/DataSets/DataSet') r ( x )
    CROSS APPLY x.nodes('Fields/Field') f(df)
    ORDER BY name
    For more information, please refer to this similar thread:
    Extract metadata from report server database
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Need Information on Categories and Templates in Collaboration

    Hi,
       I am new to Collaboration. I want to know about the Categories while creating Room.  
       I have seen that there are 4 categories :
    1. default_category
    2. category_1
    3. category_2
    4. category_3
    Please give some description about these categories i.e. <b>what are these, when to use which one</b>.
    Also I have seen that there are 5 templates:
    1. SAP_Information_Site_2
    2. SAP_Meeting_Room_2
    3. SAP_Meeting_Room_Extended_2
    4. SAP_Project_Template_2
    5. SAP_Team_Room_2.
    Also, please give some description about these templates i.e. <b>what are these, when to use which one</b>.
    Regards
    Deep

    Hello Deep,
    The four room categories you see are the default categories provided by SAP.  I recommend you create your own that would actually mean something in your environment (such as Finance, HR, etc. depending on your needs).  To do this, follow the documentation from SAP: <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/44/50167b97c01193e10000000a155369/frameset.htm">Defining Categories and Relationship Types for Rooms</a>.
    Regarding the default room templates, to get an idea of what kind of Pages and iViews are in each one, you can view them in the PCD (Content Administration > Portal Content) in the Portal Content > com.sap.ip.collaboration > TemplateWorksets folder.  Just double-click a workset to view a list of pages that are created when the Room is created.  You can create your own template based on a copy of one of these, if they don't quite fit your requirements.  See <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/85/f58ece033b3349ae5509d2ea29e23b/frameset.htm">Providing Templates for Rooms</a> for more information.
    Cheers,
    Fallon

  • Content based image retrieval using Oracle Multimedia

    I'm doing a thesis in which I'm trying to improve content based image retrieval, and using Oracle 11g Multimedia and I'm hoping to do CBIR system based on signature generated by Multimedia.
    To do my application I'm using  this documentation http://fildz.developpez.com/tutoriel/oracle-java/ordimage/
    Now I need to have an idea about the technique used to generate signature. In this link https://community.oracle.com/message/618866#618866, i find some indications like : texture histograms, global color, the Manhattan distance... so i look for a clear and rich documentation about generated signature in CBIR using Oracle 11g.
    Thank you

    The details in that thread is the only information that can be shared.
    Melli
    Oracle Multimedia

  • Tables for char and attributes

    Hi ,
    How to identify that a characteristic for an inspection lot has long term characteristics ?
    We want to retrieve the characteristic attributes for qualitative characteristics . What is the table link for the qualitative characteristics and the characteristic attributes ?

    Check following thread--->
    Control Indicator field in Inspection plan characteristics
    for tables
    Results Recording QAKL Results table for value classes
    Results Recording QAMR Characteristic results during inspection processing
    check bapi
    BAPI_INSPCHAR_GETRESULT
    Edited by: Sujit Gujar on Mar 15, 2011 9:35 PM

  • HT5295 Podcast categories and podcasts are in English and not in Italian

    Podcast app is in Italian language
    Iphone: podcast categories and database are in Italian
    Ipad: podcast categories and database are in english
    IOS 5.1.1. in Italian both in Ipad and Iphone
    Same apple id
    You can see in pic that buttons in the app are in Italian but podcasts are in english
    Thanks and ciao.
    Andrea

    Some websites have a link for an international version that allows to select the language, so you can look for that (it may appear as a flag icon).
    Local Google sites have a link at the bottom of the page to go to the [http://www.gooogle.com/ncr "Google.com in English"] site.
    You may need to hover that local Google page with the mouse to make extra content appear.
    You can set Google preferences on the [http://www.google.com/preferences?hl=en Google Search settings] page (click the gear icon at the top right).
    Such settings are stored in a cookie on your computer that you need to allow.

  • Controlling Access of end users on Categories and Activity versions

    Dear All,
    I am having end users who are having full access in learning Administrator for Creating Categories and Activity versions , Offerings and Classes in using Learning Administrator responsibility.
    As per the business needs i need to create a new responsibility where end users can not create categories & Activity version but they can create only offerings & classes on selected Activity version.
    your guide lines will be greatly appreciated.
    Thanks & Regards,
    Edited by: user1113648 on Apr 28, 2011 11:55 AM

    Hi CDA
    You're not understanding the way Discoverer works. The lowest level of security control that can be applied inside Discoverer is at the business area level. Thus if a user has access to any part of a business area then they have access to the whole business area. This is done by your administrator using TOOLS | SECURITY from the Administration menu bar.
    The privileges that can be set using TOOLS | PRIVILEGES control what a user can do with the data that they have access to (remember that access itself is at the business area). Thus if a user has the Create / Edit workbook privilege and they have access to two business areas then they have that privilege for both business areas and create or edit workbooks to their heart's content in both of them.
    Further, and I think this is where you may be getting confused, you have to understand that an end user cannot grant the privilege for another end user to have access to their business area simply by sharing a workbook. The act of sharing a workbook does not share the access rights. In order for one user, aka the Registrar, to be able to run a workbook that was created by another user, aka the HR director), the Registrar must already have been granted access to the HR business areas by the Discoverer administrator. If a user does not have access to a business area but does have access to a workbook from that business area then they will not be able to execute the workbook.
    It therefore sounds like you do not have security under control.
    Best wishes
    Michael
    BTW: Are you using the SunGard Banner system by any chance, and are you using the ODS? If this is the case, you may be interested in knowing that my company has partnered with SunGard Higher Education to bring Discoverer training and consulting to their customers.

  • Product Qualifications at Categories and Hierarchies

    Hi Frnds,
        Can any one inform me , Product Qualifications can be attached to categories and hierarchies in product master ? If How ?
               Frnds , the perfect answer will get full reward points .
    Chrs
    Ram

    Product enhancements need to be set up from bottom to top (with Tx-Codes):
    1. you need to define attributes (COMM_ATTRSET)
    2. you need to group the attributes to set types (COMM_ATTRSET)
    3. you need to create a hierarchy (COMM_HIERARCHY)
    4. you need to assign your set types to the hierarchy (inheritance is happening automatically) (COMM_HIERARCHY)
    5. you have to assign your product to the hierarchy -> The additional classifications become available.(COMM_PR01)
    Keep in mind that all this is not customizing but maintaining master data - as such they are not automatically put into transport requests.
    Regards, Kai

Maybe you are looking for

  • How do I rename a hyperlink?

    Hi, I want to "rename" a link I am sending by e-mail so that the person sees something like "click here" instead of the web address. I've googled this a lot of people have asked this but none of the answers work. there is an option to edit a link if

  • Playlist problem....Please help!!!!!!

    Hello all. I have an ipod 5th gen. I'm trying to update my playlist and when I synced it, itunes synced with my ipod but it did not sync in the order I put in the playlist. Itunes synced my ipod with the playlist in alphabetical order and not in the

  • Commenting on Shared PDF not available

    Using Adobe Reader 9.3....  I'm trying to beta test this document which I download and can make and mark comments on.. however I can't upload them or post comments anywhere like they are telling me to..  The original author does have it activated on

  • What causes iCloud duplicates (and which to keep?)

    Since the iTunes 11 upgrade, everything I've purchased from the iTunes Store appears twice in iTunes - one version with an iCloud icon overlay, and one without. I do NOT use or subscribe to iTunes Match (I'd love to, but the 25k track cap is far too

  • Apple surveys

    I had someone from apple give me a call telling me that I bought a macbook a couple months ago (which I did). they then proceeded to ask me questions about it - satisfaction etc. Is this common for apple? I have bought apple products before (well act