Class UserInfo

java.lang.Object
org.dlese.dpc.schemedit.config.UserInfo
All Implemented Interfaces:
Serializable

public class UserInfo extends Object implements Serializable
Bean to handle the "userInfo" element of the framework_config record, which is used to specify where information about the current user is to be placed in metadata records.

The userInfo element contains a "autoPopulate" attribute that specifies WHEN the user info is to be inserted (e.g., at record creation time) and the repeating "property" elements specify a) the value (obtained from the User object) and b) the xpath of the metadataData record at which the value is to be inserted.

Author:
ostwald
See Also:
  • Field Details

    • autoPopulate

      public String autoPopulate
  • Constructor Details

    • UserInfo

      public UserInfo(org.dom4j.Element e)
      Constructor for the UserInfo object
      Parameters:
      e - a userInfo element from the framework-config record
  • Method Details

    • getPath

      public String getPath(String propName)
      Gets the xpath for the specified property in the metadata record
      Parameters:
      propName - attribute of the User object
      Returns:
      The path value
    • propNameIterator

      public Iterator propNameIterator()
      Returns an Iterator over the properties specified by this UserInfo object.
      Returns:
      iterator over avail
    • toString

      public String toString()
      Description of the Method
      Overrides:
      toString in class Object
      Returns:
      Description of the Return Value