Support for Organizational Units

aaviad
2012-07-15
2012-09-11
  • aaviad
    aaviad
    2012-07-15

    I wonder if this is just my inability to locate this importnat functionality,
    but does the library support "Organization Units"?

    According to spec, The ORG: line might have a ; separated units of the Org
    units. It does not seem have that implemented, or am I missing it somehow?

     
  • George_H
    George_H
    2012-07-16

    Yes it is supported. In cardme's OrganizationType class you have a
    "addOrganization()" method where you can add multiple units. They will be
    separated by semicolons.

     
  • aaviad
    aaviad
    2012-07-16

    Thanks for the quick response. So the on read of a vCard should I consider the
    first in the list the main organization and others as sub-units?

     
  • George_H
    George_H
    2012-07-16

    Yes exactly. This is how the RFC2426 describes the use of Organizational Unit.

    The type is based on the X.520 Organization Name

    and Organization Unit attributes. The type value is a structured type

    consisting of the organization name, followed by one or more levels

    of organizational unit names.

    So ... ORG:IBM;IT;Development

    would make the Organization IBM and unit IT and sub unit Development.