Package wt.load

Class LoadUser

java.lang.Object
wt.load.LoadUser

public class LoadUser extends Object
Used to load users, groups, associate users to groups, domains, and access rules for test or demo data in Windchill. Methods in this class are defined for use by the load package inside of the map file (wt.home.loadFile.csvmapfile.txt). These methods were written to be called by the load package using introspection not by a user interface.

Supported API: true
  • Method Details

    • createUser

      public static boolean createUser(Hashtable nv, Hashtable cmd_line, Vector return_objects)
    • createGroup

      public static boolean createGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Parameters:
      nv - Name/value pairs of meta data to set on the group.
      cmd_line - command line argument that can be substituted into the load data.
      return_objects - Object(s) created by this method used by wt.load.StandardLoadService for user feedback messages.

      Supported API: true
    • createAdminGroupAndUser

      public static WTGroup createAdminGroupAndUser(String adminUserName, String groupName, AdministrativeDomain sysdomain, String webUserName) throws WTException
      Parameters:
      userName - User Name
      groupName - Group Name
      sysdomain - System Domain
      webUserName - Web User Name

      Supported API: true
      Throws:
      WTException
    • createUserGroup

      public static boolean createUserGroup(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Parameters:
      nv - Name/value pairs representing the user name and the group name.
      cmd_line - command line argument that can be substituted into the load data.
      return_objects - Object(s) created by this method used by wt.load.StandardLoadService for user feedback messages.

      Supported API: true
    • createOrgAdmin

      public static boolean createOrgAdmin(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
      true if the load succeeds
      Throws:
      WTException - If no organization is specified
    • createSiteAdmin

      public static boolean createSiteAdmin(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Parameters:
      nv -
      cmd_line -
      return_objects -
      Returns:
      true if the load succeeds
      Throws:
      WTException
    • createDomain

      public static boolean createDomain(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Create an administrative domain.
      Parameters:
      nv - Name/value pairs of meta data to set on the domain.
      cmd_line - command line argument that can be substituted into the load data.
      return_objects - Object(s) created by this method used by wt.load.StandardLoadService for user feedback messages.

      Supported API: true
    • createAccessRule

      public static boolean createAccessRule(Hashtable nv, Hashtable cmd_line, Vector return_objects)
      Create an access control rule.
      Parameters:
      nv - Name/value pairs of meta data to set on the access control rule.
      cmd_line - command line argument that can be substituted into the load data.
      return_objects - Object(s) created by this method used by wt.load.StandardLoadService for user feedback messages.

      Supported API: true