Ok, I ve got the categories Item... now what?

well... I got from another thread a way to get the categories from a folder... nice.. i got a big item full of data, sure i can recognize the categories there... how do i take the categories names and requiered attributes from each categories to include it on my app? My app should let the user choose a file, choose the available categories and fill the attributes... yes, the info is there.. but i cant use it.. everything I try leads to an error...
maybe is more a Java amateur error than a oracle developer thing... but still cant get the info out of it (i can see it only trough log( ))...
what i used...
AttributeRequest[] categoryObjectAttributes =
new AttributeRequest[] { new AttributeRequest(Attributes.CLASS_NAME,
null),
new AttributeRequest(Attributes.DISPLAY_NAME,
null),
new AttributeRequest(Attributes.METADATA_ATTRIBUTES,
new AttributeRequest[] { new AttributeRequest(Attributes.ATTRIBUTE_NAME,
null),
new AttributeRequest(Attributes.DISPLAY_NAME,
null),
new AttributeRequest(Attributes.ATTRIBUTE_TYPE,
null),
new AttributeRequest(Attributes.ATTRIBUTE_DEFAULT,
null),
new AttributeRequest(Attributes.ATTRIBUTE_ENUMERATION,
null),
new AttributeRequest(Attributes.ATTRIBUTE_REQUIRED,
null),
new AttributeRequest(Attributes.ATTRIBUTE_SETTABLE,
null),
new AttributeRequest(Attributes.ATTRIBUTE_UPDATEABLE,
null),
new AttributeRequest(Attributes.ATTRIBUTE_HIDDEN,
null),
new AttributeRequest(Attributes.ATTRIBUTE_PROMPTED,
null),
new AttributeRequest(Attributes.ATTRIBUTE_OVERRIDEABLE,
null), }) };
AttributeRequest[] requestedAttributesss =
new AttributeRequest[] { new AttributeRequest(Attributes.CATEGORY_CONFIGURATION,
new AttributeRequest[] { new AttributeRequest(Attributes.ALLOWED_CATEGORIES,
categoryObjectAttributes), }) };
Item common =
commonM.getItem(folder.getId(), requestedAttributesss);
what I got...
CATEGORY_CONFIGURATION (Item)=
(Item) 191741 CATEGORY_CONFIGURATION
requested attributes ...
ALLOWED_CATEGORIES (Item[])=
(Item) 105145 CATEGORY_CLASS 59183_AHC_105141
requested attributes ...
CLASS_NAME=59183_AHC_105141 (String)
DISPLAY_NAME=ApprovedSubmission (String)
METADATA_ATTRIBUTES (Item[])=
(Item) 105146 METADATA_ATTRIBUTE CUSTOM_105142
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105142 (String)
DISPLAY_NAME=approvalDate (String)
ATTRIBUTE_TYPE=1 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105147 METADATA_ATTRIBUTE CUSTOM_105143
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105143 (String)
DISPLAY_NAME=approver (String)
ATTRIBUTE_TYPE=8 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105148 METADATA_ATTRIBUTE CUSTOM_105144
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105144 (String)
DISPLAY_NAME=comments (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105132 CATEGORY_CLASS 59183_AHC_105126
requested attributes ...
CLASS_NAME=59183_AHC_105126 (String)
DISPLAY_NAME=DesignSubmission (String)
METADATA_ATTRIBUTES (Item[])=
(Item) 105133 METADATA_ATTRIBUTE CUSTOM_105127
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105127 (String)
DISPLAY_NAME=requestId (String)
ATTRIBUTE_TYPE=8 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105134 METADATA_ATTRIBUTE CUSTOM_105128
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105128 (String)
DISPLAY_NAME=requestor (String)
ATTRIBUTE_TYPE=8 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105135 METADATA_ATTRIBUTE CUSTOM_105129
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105129 (String)
DISPLAY_NAME=designId (String)
ATTRIBUTE_TYPE=8 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105136 METADATA_ATTRIBUTE CUSTOM_105130
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105130 (String)
DISPLAY_NAME=description (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105137 METADATA_ATTRIBUTE CUSTOM_105131
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105131 (String)
DISPLAY_NAME=model (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (String[])=
Model 1
Model 2
Model 3
ATTRIBUTE_REQUIRED=false (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=false (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 175010 CATEGORY_CLASS 59183-175009
requested attributes ...
CLASS_NAME=59183-175009 (String)
DISPLAY_NAME=Documents (String)
METADATA_ATTRIBUTES (Item[])=
(Item) 175012 METADATA_ATTRIBUTE CUSTOM_175011
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_175011 (String)
DISPLAY_NAME=Document type (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT=Letter (String)
ATTRIBUTE_ENUMERATION (String[])=
Users's guide
Technical manual
Administrator's guide
Letter
Memorandum
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196264 METADATA_ATTRIBUTE CUSTOM_196263
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196263 (String)
DISPLAY_NAME=Via (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT=Mail (String)
ATTRIBUTE_ENUMERATION (String[])=
Fax
email
Mail
Personally
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196272 METADATA_ATTRIBUTE CUSTOM_196271
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196271 (String)
DISPLAY_NAME=To (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196274 METADATA_ATTRIBUTE CUSTOM_196273
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196273 (String)
DISPLAY_NAME=From (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196276 METADATA_ATTRIBUTE CUSTOM_196275
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196275 (String)
DISPLAY_NAME=Subject (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196278 METADATA_ATTRIBUTE CUSTOM_196277
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196277 (String)
DISPLAY_NAME=Document Date (String)
ATTRIBUTE_TYPE=1 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196280 METADATA_ATTRIBUTE CUSTOM_196279
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196279 (String)
DISPLAY_NAME=Delivery Date (String)
ATTRIBUTE_TYPE=1 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196282 METADATA_ATTRIBUTE CUSTOM_196281
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196281 (String)
DISPLAY_NAME=Received Date (String)
ATTRIBUTE_TYPE=1 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196284 METADATA_ATTRIBUTE CUSTOM_196283
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196283 (String)
DISPLAY_NAME=Received hour (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=false (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196286 METADATA_ATTRIBUTE CUSTOM_196285
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196285 (String)
DISPLAY_NAME=a.m./p.m. (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT=p.m. (String)
ATTRIBUTE_ENUMERATION (String[])=
a.m.
p.m.
ATTRIBUTE_REQUIRED=false (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196294 METADATA_ATTRIBUTE CUSTOM_196293
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196293 (String)
DISPLAY_NAME=Received by (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 196296 METADATA_ATTRIBUTE CUSTOM_196295
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_196295 (String)
DISPLAY_NAME=Comments (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=false (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=true (Boolean)
(Item) 105153 CATEGORY_CLASS 59183_AHC_105149
requested attributes ...
CLASS_NAME=59183_AHC_105149 (String)
DISPLAY_NAME=RejectedSubmission (String)
METADATA_ATTRIBUTES (Item[])=
(Item) 105154 METADATA_ATTRIBUTE CUSTOM_105150
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105150 (String)
DISPLAY_NAME=rejectionDate (String)
ATTRIBUTE_TYPE=1 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105155 METADATA_ATTRIBUTE CUSTOM_105151
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105151 (String)
DISPLAY_NAME=rejector (String)
ATTRIBUTE_TYPE=8 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
(Item) 105156 METADATA_ATTRIBUTE CUSTOM_105152
requested attributes ...
ATTRIBUTE_NAME=CUSTOM_105152 (String)
DISPLAY_NAME=comments (String)
ATTRIBUTE_TYPE=2 (Integer)
ATTRIBUTE_DEFAULT (NULL)
ATTRIBUTE_ENUMERATION (NULL)
ATTRIBUTE_REQUIRED=true (Boolean)
ATTRIBUTE_SETTABLE=true (Boolean)
ATTRIBUTE_UPDATEABLE=true (Boolean)
ATTRIBUTE_HIDDEN=false (Boolean)
ATTRIBUTE_PROMPTED=true (Boolean)
ATTRIBUTE_OVERRIDEABLE=false (Boolean)
thanx in advance...
Message was edited by:
esalazar

Hi,
Assume a folder "F", containing a Document "D".
The list of Category Classes that could be presented to the user so as to be applied to Document "D" would be determined using the following logic:
* first check the category configuration of the document's folder (whether it be inheritied or explicitly defined) to determine if it is enabled, and if so, the boolean value of the ALLOW_ALL_CATEGORIES property.
* If the property is false, only instances of category classes specified in the ALLOWED_CATEGORIES property can be applied to documents within the folder.
* If no category configuration is enabled, the ALLOW_ALL_CATEGORIES property is typically set to TRUE. Meaning, any category class in the domain could be applied to the document.
Once it is determined what categories can be applied to the documents, the next step is to determine how to render the category to the end-user so that they can supply values for the various required attributes.
When the category class is initially defined, you supply a NamedValue[] containing the attribute definitions. The attribute definition specifies things like NAME, REQUIRED, PROMPTED, DEFAULT, UPDATEABLE, and importantly, ATTRIBUTE_OVERRIDABLE.
If an attribute of the category classes' is overridable, it means that a categoryconfiguration on a folder could override the default settings for that attribute - such as the default value, whether the attribute should be prompted, whether the attribute is required and so on.
Thus, when rendering the category to the end-user so that they can supply the various values, one needs to take in to account the combination of the original category class attribute definitions along with any specific attribute overrides that may have been set on the categoryconfiguration in the folder.
Note, category configuration information can be requested directly on the document itself - which will just inturn delegate to the parent folder to handle the request. See the AttributeRequests code block below to see how one would request the category configuration information on the item.
Here is some AttributeRequest[] to get access to category configuration information including overrides :-
* DOCUMENT / FOLDER item type category configuration attribute details.
* Used to retrieve the category configuration information details for the
* document/folder item.
public static final AttributeRequest[] ITEM_CATEGORY_CONFIGURATION =
new AttributeRequest[]
ClientUtils.newAttributeRequest(
Attributes.HAS_EXPLICIT_CATEGORY_CONFIGURATION),
ClientUtils.newAttributeRequest(Attributes.CATEGORY_CONFIGURATION,
CATEGORY_CONFIGURATION_ATTRIBUTES)
* CATEGORY_CONFIGURATION item type attributes.
* Includes ALLOWED_CATEGORIES, REQUIRED_CATEGORIES, ATTRIBUTE_OVERRIDES, etc
public static final AttributeRequest[] CATEGORY_CONFIGURATION_ATTRIBUTES =
new AttributeRequest[]
// Is this category configuration enabled?
ClientUtils.newAttributeRequest(Attributes.CONFIGURATION_ENABLED),
// Is this category configuration NOT able to be overridden?
ClientUtils.newAttributeRequest(Attributes.CONFIGURATION_FINAL),
// Can any category be applied on objects associated with this cat config?
ClientUtils.newAttributeRequest(Attributes.ALLOW_ALL_CATEGORIES),
// Or .. What are the allowed categories?
ClientUtils.newAttributeRequest(Attributes.ALLOWED_CATEGORIES),
// Or .. What are the mandatory categories?
ClientUtils.newAttributeRequest(Attributes.REQUIRED_CATEGORIES),
// Any overridden category attributes
ClientUtils.newAttributeRequest(
Attributes.ATTRIBUTE_OVERRIDES,ATTRIBUTE_OVERRIDE_ATTRIBUTES)
* ATTRIBUTE_OVERRIDE item type attributes.
* Applies to both Category and RecordCategory configuration items.
* Used to override an attributes core settings (defined at creation).
public static final AttributeRequest[] ATTRIBUTE_OVERRIDE_ATTRIBUTES =
new AttributeRequest[]
ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_ATTRIBUTE),
ClientUtils.newAttributeRequest(
Attributes.ATTRIBUTE_OVERRIDE_CATEGORY_CLASS),
ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_DEFAULT),
ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_PROMPT),
ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_REQUIRED),
ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDE_SETTABLE)
};Here is some AttributeRequest[] to lookup details of a category class including its attributes :-
   * CATEGORY_CLASS item type attributes.
   * Includes CLASS_NAME, SUPERCLASS, CLASS_FINAL, CLASS_HAS_SUBCLASSES,
   * METADATA_ATTRIBUTES (attributes inheritied & introduced by the class), etc
  public static final AttributeRequest[] CATEGORY_CLASS_ATTRIBUTES =
    new AttributeRequest[]
      // class internal name
      ClientUtils.newAttributeRequest(Attributes.CLASS_NAME),
      // class display name
      ClientUtils.newAttributeRequest(Attributes.DISPLAY_NAME),
      // superclass if any
      ClientUtils.newAttributeRequest(Attributes.SUPERCLASS),
      // is class abstract (abstract=true means cat instances cannot be created)
      ClientUtils.newAttributeRequest(Attributes.CLASS_ABSTRACT),
      // can this category class be subclassed
      ClientUtils.newAttributeRequest(Attributes.CLASS_FINAL),
      // subclasses if any
      ClientUtils.newAttributeRequest(Attributes.CLASS_HAS_SUBCLASSES),
      // subclasses directly extending from this class
      ClientUtils.newAttributeRequest(Attributes.DIRECT_CATEGORY_SUBCLASSES),
      // are instances of this category on an item be copied when item versioned
      ClientUtils.newAttributeRequest(Attributes.CATEGORY_COPY_ON_VERSION),
      // is class hidden from UI
      ClientUtils.newAttributeRequest(Attributes.CLASS_HIDDEN),
      // get all METADATA_ATTRIBUTES inherited and introduced by category object
      ClientUtils.newAttributeRequest(Attributes.METADATA_ATTRIBUTES,
        METADATA_ATTRIBUTE_ATTRIBUTES),
      // get direct METADATA_ATTRIBUTES introduced by category object
      ClientUtils.newAttributeRequest(Attributes.METADATA_DIRECT_ATTRIBUTES)
   * METADATA_ATTRIBUTE item type attributes.
   * Applies to both CategoryClass and RecordCategory items.
   * Includes ATTRIBUTE_NAME, ATTRIBUTE_TYPE, ATTRIBUTE_DEFAULT, etc.
  public static final AttributeRequest[] METADATA_ATTRIBUTE_ATTRIBUTES =
    new AttributeRequest[]
      // attribute internal name
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_NAME),
      // attribute display name
      ClientUtils.newAttributeRequest(Attributes.DISPLAY_NAME),
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_TYPE),
      // default value
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_DEFAULT),
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_ENUMERATION),
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_REQUIRED),
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_SETTABLE),
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_UPDATEABLE),
      // is attribute hidden from ui
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_HIDDEN),
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_PROMPTED),
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_OVERRIDEABLE),
      // class to which this attribute belongs
      ClientUtils.newAttributeRequest(Attributes.ATTRIBUTE_CLASS_OBJECT),
    };We have some good examples of these concepts in the Content DB api samples that should be available with release of the product this month.
cheers
Matt.

Similar Messages

  • Got the MBPretina. Now, what High-end Monitor ?

    After lots of waiting, weighing pros and cons and whether I should go iMac, Mac Mini or MacBook Pro High rez anti-glare, helped in that pilgrim quest by some encouraging users reviews and eventually compelled by a dealer's special, I fell for a 2013 MacBook Pro Retina 15". First impressions are great. So far, after installing most of my compatible programs, there has not been a hiccup. Leaping from an early iMac Core2 duo, Lightroom seems to fly !
    It is still in the installation phase and I wonder if it will provide for all the connections I need. I'm not a fan of prolonged exposure to WIFI, so I plugged it to the network with the Apple USB to Ethernet adapter, which works great also for retrieving stuff from my iMac with a normal patch cable (thanking again for the informative post on auto-sensing ports provided here). Of course, WIFI does also work for those tasks. I got the USB to Ethernet adapter instead of the faster TB to Ethernet, because I will need the two Thunderbolt ports, one for an external display and the other for my older FW800 drives (I went USB3 subsequently). This will leave  one USB3 port available for another drive. Things might get a bit awkward for downloading CF cards, but then I can simply unplug the network for a while. Still, there is a USB printer sitting there, a USB microphone, and I might find the need for an external scratch at some point as the internal SSD fills up. I reckon that an USB3 hub will soon prove necessary.
    Monitor. Since Apple hasn't yet announced a designer grade Apple Display, I'll be looking at third parties. I  do skip the top notch ones for some obvious reason. After extensive research, I am left with those contenders : The proven CCFL NEC PA27W, or the Eizo SX2762W. But for a similar price, I'm actually seriously leaning towards the new DELL U3014.
    What draws me to the Dell is the ratio first. Many of my images are framed vertically, and I also work with InDesign. Brightness on that LED panel can be set to a minimum of 50 cd/m2, with non flickering GB LED back-lighting technology. Price is a lot less than the NEC counterpart. Last but not least, it has a USB3 hub. The earlier released U2713H is well reviewed, except for uniformity.
    Now the drawback: Monitors this size must be plugged in with the dual cable adapter, which takes one TB and one USB I think. But this would be the case with the other two also.
    The DELL has a USB3 hub, which would greatly help, but the MacbookPro Retina seems  fussy with external USB3 hubs have I read, at least earlier versions of the MBPr.
    There have also been some sleep issues with some types of monitors. But I suppose that using the latest, I should not see that.
    What did I forget ? I would gladly take any word of encouragement and /or  of warning before the final purchase !
    Thanks!
    Paul

    First, I love Eizo monitors. Second, I couldn't afford one so I bought the Apple Thunderbolt Display. With a colorimeter, it produces 'good enough' color.
    I would suggest that you ask the color pros on the Adobe Color Management Forum - http://forums.adobe.com/community/design_development/color_management?view=discu ssions. You'll get plenty of opinions there.
    Good luck,
    Clinton

  • I paid for a rented film on my iPad, got the receipt but now i can't find the film and its not in my purchase history. Help!

    I paid for a rented film on my iPad, got the receipt but now i can't find the film and its not in my purchase history. Help!

    If you rented and downloaded it on your iPad then it should be in the Videos app - if it doesn't show in there then have you got a film age rating set in Settings > General > Restrictions that is hiding it ?

  • HT1212 my ipad got disable bcoz of entering wrong password for several time and i got the above method but what if i dont have the same computer which i used to sync my ipad

    my ipad got disable bcoz of entering wrong password for several time and i got the above method but what if i dont have the same computer which i used to sync my ipad

    How can I unlock my iPad if I forgot the passcode?
    http://www.everymac.com/systems/apple/ipad/ipad-troubleshooting-repair-faq/ipad- how-to-unlock-open-forgot-code-passcode-password-login.html
    iOS: Device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    How can I unlock my iPad if I forgot the passcode?
    http://tinyurl.com/7ndy8tb
    How to Reset a Forgotten Password for an iOS Device
    http://www.wikihow.com/Reset-a-Forgotten-Password-for-an-iOS-Device
    Using iPhone/iPad Recovery Mode
    http://ipod.about.com/od/iphonetroubleshooting/a/Iphone-Recovery-Mode.htm
    Saw this solution on another post about an iPad in a school environment. Might work on your iPad so you won't lose everything.
    ~~~~~~~~~~~~~
    ‘iPad is disabled’ fix without resetting using iTunes
    Today I met my match with an iPad that had a passcode entered too many times, resulting in it displaying the message ‘iPad is disabled – Connect to iTunes’. This was a student iPad and since they use Notability for most of their work there was a chance that her files were not all backed up to the cloud. I really wanted to just re-activate the iPad instead of totally resetting it back to our default image.
    I reached out to my PLN on Twitter and had some help from a few people through retweets and a couple of clarification tweets. I love that so many are willing to help out so quickly. Through this I also learned that I look like Lt. Riker from Star Trek (thanks @FillineMachine).
    Through some trial and error (and a little sheer luck), I was able to reactivate the iPad without loosing any data. Note, this will only work on the computer it last synced with. Here’s how:
    1. Configurator is useless in reactivating a locked iPad. You will only be able to completely reformat the iPad using Configurator. If that’s ok with you, go for it – otherwise don’t waste your time trying to figure it out.
    2. Open iTunes with the iPad disconnected.
    3. Connect the iPad to the computer and wait for it to show up in the devices section in iTunes.
    4. Click on the iPad name when it appears and you will be given the option to restore a backup or setup as a new iPad (since it is locked).
    5. Click ‘Setup as new iPad’ and then click restore.
    6. The iPad will start backing up before it does the full restore and sync. CANCEL THE BACKUP IMMEDIATELY. You do this by clicking the small x in the status window in iTunes.
    7. When the backup cancels, it immediately starts syncing – cancel this as well using the same small x in the iTunes status window.
    8. The first stage in the restore process unlocks the iPad, you are basically just cancelling out the restore process as soon as it reactivates the iPad.
    If done correctly, you will experience no data loss and the result will be a reactivated iPad. I have now tried this with about 5 iPads that were locked identically by students and each time it worked like a charm.
    ~~~~~~~~~~~~~
    Try it and good luck. You have nothing more to lose if it doesn't work for you.
     Cheers, Tom

  • None of the changes I make to system preference or the dock will hold after restart. I've cleared the RAM, run disk repair and reinstalled the OS. Now what?

    None of the changes I make to system preference or the dock will hold after restart. I've cleared the RAM, run disk repair and reinstalled the OS. Now what?

    MobileMe closed on July 31, 2012.
    It is true that the only way to sync your Mac with iCloud is to upgrad.  You need to be running OS X Lion 10.7.2 or higher in order to sync your Mac with iCloud.  At this point, you can upgrade directly to OS X Mountain Lion from the version of OS X you are now running (10.6.8).   You can purchase and download the Mountain Lion upgrade from the Mac App Store for $19.99.  After upgrading you will see iCloud in System Preferences.  This guide explains how to sync your Mac with iCloud after upgrading: http://www.apple.com/icloud/setup/mac.html.
    Once all your devices are signed into the same iCloud account and you have turned on your iCloud data syncing, you will be able to keep them all in sync using iCloud.  You will still have to sync with iTunes to manage your iTunes media such as music, movies, podcasts, etc.  You will have the option to either continue backing up automatically with your computer when you sync with iTunes, or to back up your iOS devices automatically to iCloud every 24 hours (as long as they are connected to wifi and your chargers).

  • HT4623 When I go to settings General, software update is not one of the options. Now what do I do to update  my phone?

    When I go to settings>General, software update is not one of the options. Now what do I do to update  my phone?

    Read the entire article.
    Not just the first part.
    It tells you how to update via itunes:
    Learn about iOS: How to update your iPhone, iPad, or iPod touch 

  • TS1967 When trying to recover a lost iTunes library file, the programme moved all the normal contents of iTunes folder to the desktop. Now what must I do?

    When trying to recover a lost iTunes library file, the programme moved all the normal contents of iTunes folder to the desktop. Now what must I do? There is no iTunes Library.itl file. On the desktop it is labelled iTunes Library.xml. Several others files have appeared there too including iTunes Music Library.xml
    Before I can use the programme is it necessary to take another step?
    Thanks for advice.

    Don't worry. I'm all for caution. I guess I should have asked a little more about what steps you took while trying to recover your lost library?
    The permissions thing may be a red herring, but if there is a problem with file access rights to the designated media folder iTunes has been known to place files on the desktop instead since it can access this location. The most common cause for such problems is working with a folder on an NTFS drive via a differnt account or on a different computer. In the normal course of events folders created inside user profiles have limited rights for other users.
    Here are the typical layouts for the iTunes folders:
    Normally the iTunes folder will be created at <User's Music>\iTunes with the media folder inside it. The library files should all appear in the same place so your comment about there not being an iTunes Library.itl file is confusing. Is it just the case that the .itl extension is hidden? The two .xml files makes sense from the above and indicates that the active library is not in <User's Music>\iTunes, but you have a recovered file from when it was.
    If, in fact, the situation is that your desktop is acting as the main iTunes folder, and contains the library file, Album Artwork, iTunes Media and (optionally) Previous iTunes Libraries folders, with all other content being inside the iTunes Media folder, then it should be relativly easy to rearrange your into the correct shape and move them to the correct location.
    If things are more complex, with something other than a library folder containing a media folder, then reestablishing the normal order is more complicated. The iTunes consolidate function is used to bring copies of files stored outside of the media folder into the media folder. It may sometimes be needed as part of the process of tidying up, however it leaves behind originals. There are circumstances where there isn't room for two complete sets of the media files on the same drive which is why I suggested the script might be useful as it produces the same results for the library without leaving the originals for manual clear up.
    I think before you do anything however, we should get a clearer picture of exactly what is where. Could you perhaps take a screenshot of the desktop and post it here? Take a look at this post on making a split library portable. The same techniques I outline there can be used to lick your library into shape, it is just a question of working out which to use in which order for the best effect.
    tt2

  • HT4061 I have the serial number & the MEID.  Now what do I with this information?  I do not remembe the passcode to my lock screen

    I have the serial number & the MEID.  Now what do I with this information?  I do not remembe the passcode to my lock screen

    The serial and other ID numbers are of no use in a situation where you forgot the passcode.
    Here's what you need to do:
    http://support.apple.com/kb/HT1212

  • Just got the iPod Classic. What is taking up 12GB of space when it says it's empty? (Hoping to clear it)

    Just got the iPod Classic. What is taking up 12GB of space when it says it's empty? (Hoping to clear it)

    rockindon wrote:
    What is taking up 12GB of space when it says it's empty?
    The operating system and space reserved for the iPod to carry out its tasks, such as remembering what you have played and how many times you've played it (this information is Synced back to your iTunes Library at each Sync.) There is also a slight discrepancy in the way that storage size is calculated, which accounts for some of that 12GB.
    rockindon wrote:
    (Hoping to clear it)
    You cannot.
    You still have 148GB for storing your music, vidoes and Podcasts. That's quite a lot.
    My music library is currently 115.78GB and is a mixture of songs at various Bit Rates. (The higher the Bit Rate, usually, the better the quality.) It has more than 17,000 songs and will play (non-stop) for 58 days.
    If your Library becomes (or already is) larger than this, it is possible to set iTunes to automatically manage the content, by removing (for example) recently played songs (except any specific ones you always want on your iPod) and then to put back onto the iPod songs that haven't been played for a while.
    If you would like any detail on how this is done, let us know.
    In the meantime, enjoy your iPod.
    Create your Library of music and - my advice is - to use Sync to add everything to your iPod. In other words, do not use Manually Manage. In the long run, Sync is easier. You can still fully control what is on the iPod using Sync. Again, if you need help, this is the place to ask. Generally speaking, the more points a user has, the more people feel that have been helped by that user.

  • No airport card installed!  I'm not using the internet and now what should I do?

    no airport card installed!
    I'm not using the internet and now what should I do?

     menu/About this Mac/System Information (at the bottom, may be called something else) - run that and see if the Airport card is detected.
    Some things you can try.
    https://discussions.apple.com/message/22246571#22246571
    If you live near an Apple Store, make a Genius Bar appointment to have the computer tested. Supposedly there is no charge for testing.
    Genius Bar Reservation US

  • I had to change my password to get into my iTunes account. I had $11.11 remaining on a card I had. I no longer have that card but it wants the code from the card. Now what?

    I had to change my password to get into my iTunes account. I had $11.11 remaining on a card I had. I no longer have that card but it wants the code from the card. Now what?

    First, please be aware that you are not communicating with Apple when you post in these forums. The only people who will reply to your posts are we your fellow users. iTunes Support will never respond to posts made here.
    As to your issue, confirm with your bank that they do not block access from on-line services or otherwise have restrictions on with whom a card can be used. For some company cards, such blocks can be set up. If you confirm that no such restrictions are in place, post back and we'll go from there.
    Regards.

  • I re-installed Mountain Lion from a USB stick, and now my Apps can't be downloaded.  The App store indicates that the Apps are already installed, but that is not the case. Now what :)

    I re-installed Mountain Lion from scratch of a USB stick, and now my Apps in the App store ca not be installed, the App store indicates that they are already installed, but that is not the case.  Now what?

    Ok, this is somewhat of a better work around I've found:
    Starting in the Australian iTunes store, I go through the process of signing into the UK iTunes store up until the point it asks for my credit card information.
    I then click the 'X' in the top left of iTunes to exit the store.
    Now when I click on my Apps Updates button it shows me what UK Apps I have that are available to update.
    You can't download these as at this point I've changed the store I'm viewing, but haven't officially switched accounts. Not to worry.
    I write down the names of the UK Apps to update.
    Then, use the 'search store' field in the top right of iTunes to search for one of the Apps.
    Once you've found it, click to buy it / download it.
    iTunes recognises that the App is already in your account and downloads it again for free….
    … now I'm HOPING that that App is now fully within my Australian account… unfortunately only time will tell once there is a new update for it.
    I'll let you know.

  • I tried installing an update to QuickTime. An error occurred and it wouldn't install. I tried removing the QuickTime program, but a window appeared telling me that a fatal error  ccurred during installation and I could not remove the program.  Now what?

    I tried installing an update to QuickTime. An error occurred and it wouldn't install. I tried removing the QuickTime program, but a window appeared telling me that a fatal error  ccurred during installation and I could not remove the program.  Now what?

    I tried removing the QuickTime program, but a window appeared telling me that a fatal error  ccurred during installation and I could not remove the program.
    I think we'd better see if some other application (other than QuickTime itself) has dropped old QuickTime componentry in the system files on the PC. (If there's a version mismatch between the old componentry and the "QuickTime proper" componentry, that can create those symptoms.)
    So we'll go looking for the older QuickTime componentry in the most common locations for it to be stashed.
    First we'll need to change some view options on the PC.
    1. Open My Computer from the desktop or Start menu.
    2. In the Tools menu, click Folder Options.
    3. Click the View tab.
    4. In the "Advanced settings" pane under "Hidden files and folders" make sure that the "Show hidden files and folders" option is selected, and the "Hide extensions for known file types" option is unchecked.
    5. Click OK.
    Now in My Computer, open your C drive.
    Open the "Windows" folder.
    Open the "system32" folder.
    What files and/or folders can you see in there with QuickTime in the file/folder name? (In a standard installation of QuickTime, you should see precisely two files ... QuickTime.qts and QuickTimeVR.qtx ... and no QuickTime folders whatsoever.)

  • HT1414 I just got a replacement iPhone 5 (64MB) for one with a cracked face, and tried to restore it.  Got an error message saying the iTunes could not restore the iPhone because not enough free space is available on the iPhone.  Now what?

    I just replaced my iPhone 5 because of a cracked face.  I backed up the old phone to iTunes.  When I tried to restore my data off of iTunes to the new phone, I got an error message saying that iTunes could not restore the iPhone because not enough free space is available on the new iPhone.  Now what?
    I have Apple Care+, but I'll be darned if I can find any way to contact anyone at Apple to talk to about this.  They take your money, but make darned sure they don't have to support you unless you jump through a bunch of hoops first, like this site.

    I've done a restore.. The phone was completely wiped back to factory settings.. It then tells me there isn't enough space on the phone to restore from back up? How when the phone is empty?!

  • My G1 Apple TV no longer synchs since I got the latest IMac.  What to do?

    I recently got the latest IMac.  However, I can no longer sync my Apple TV (first generation, either for pics, or for music).  The sync menu is very limited and the content is no longer dispalyed on ITunes.  How can I solve this, please?

    btw , I've cleared cache ,deleted temp files etc.
    Screensaver was working on here a couple of wks ago ,now nowt!.
    Also , I've had my hard drive saved & I'm running it on here .
    Another thing ,I cant access my Picasa files which I thought would be on my hard drive??
    Scary thing watching your laptop on fire ,any help with why my screensaver doesnt work would be soothing :)
    btw ,the link you give for micrsof help with screensaver is no use to my probs.
    Cyndi.x.

Maybe you are looking for

  • (Item) was not copied to the iPod (Name)'s iPod Touch because it cannot be played on this iPod

    Last week I purchased Star Wars the Clone Wars: Season 5 off of the iTunes store. I have purchased all previous seasons over the years and they have been able to play on my iPod. But when I purchased this new season, whenever I try to add the episode

  • Cannot open .pdf files (corrupt or not supported?

    I am using OSX 10.9.1 and my wife saves .pdf files of knitting patterns.  When she tries to open them at a later time she gets the "file is corrupt or not supported."  I have looked every where I know to find a fix.

  • URGENT HELP plz! crop image

    I have an image when loaded into my program, i have the getScaledInstance to about half of the size and then i want to crop on that scaled image icon, how can i do that? i tried the crop image filter, but it always need to getImage().getSource() whic

  • SQL Developer Loading Problem

    Hi Friends, I Successfully Install Oracle 11g in my system. When i enter into SQL Developer the screen was opened but it was asking username and password continuously. So, i couldn't work.Please tell me the solution for this. Can anyone help me ? Tha

  • Duplicate Supplier Bank Account Details

    Hi Friends, I am an Oracle Finance Functional Consultant. I got into an issue i regards to Duplicate supplier bank account details. While making payment to on of the suppliers through payment workbench in Oracle Payables, under remit-to account numbe