DFC Constants Can Be Insightful

Clicking through the DFC JavaDocs the other day, I found myself on the Constant Field Values page (C:\Program Files\Documentum\help\dfc\api\constant-values.html).  I got there by clicking on the “Constant Field Values” link under the “DF_APPLY” entry on the IDfQuery page.  No matter how I got there.  What I soon discovered is that there are some interesting things revealed in this file.  For example:

  • The relation types of PARENT and CHILD are defined as constants for the IDfRelationType class.
  • Tons of exceptions are defined in the IDfException class (among others).
  • Of course, query types are defined (I wrote about this previously).
  • A good selection of object types are defined in IDfId class (the constants correspond to the objects’ type prefix in the repository.  For example, dm_sysobject = 8, dm_document = 9.  That’s convenient.)
  • Lots of ACL permissions are defined in the IDfACL class, including extended permissions.
  • Attribute types are defined in the IDfType, IDfAttr and IDfValue classes. (That’s kind of curious to have these definitions repeated.)
  • Tons of search and query-related constants are defined.
  • Time patterns are defined in IDfTime (I previously wrote about those too).

The point is, I wasn’t necessarily looking for any of this, but gained some great insights and ideas about how to better standardize my DFC code by taking advantage of these constants.  What do you think?

Advertisements

About Scott
I have been implementing Documentum solutions since 1997. In 2005, I published a book about developing Documentum solutions for the Documentum Desktop Client (ISBN 0595339689). In 2010, I began this blog as a record of interesting and (hopefully) helpful bits of information related to Documentum, and as a creative outlet.

One Response to DFC Constants Can Be Insightful

  1. Pingback: IDfCollections, Part II « dm_misc: Miscellaneous Documentum Tidbits and Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: