|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.load.LoadUser
public class LoadUser
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 Summary | |
|---|---|
static boolean |
createAccessRule(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Create an access control rule. |
static WTGroup |
createAdminGroupAndUser(String adminUserName,
String groupName,
AdministrativeDomain sysdomain,
String webUserName)
Create Administrators group and administrator user. |
static boolean |
createDomain(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Create an administrative domain. |
static boolean |
createGroup(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Create a group object and persist it in the database. |
static boolean |
createOrgAdmin(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Provides the same functionality as createUser, while additionally
making the new user a member of the given organization. |
static boolean |
createSiteAdmin(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Provides the same functionality as createUser, while additionally
making the new user a site admin. |
static boolean |
createUser(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Create a user object and persist it in the database. |
static boolean |
createUserGroup(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Add a user to a group. |
static void |
dirInit()
Initialize LDAP directory service support. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static boolean createUser(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
nv - Name/value pairs of meta data to set on the user.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.
public static WTGroup createAdminGroupAndUser(String adminUserName,
String groupName,
AdministrativeDomain sysdomain,
String webUserName)
throws WTException
userName - User NamegroupName - Group Namesysdomain - System DomainwebUserName - Web User Name
WTException
public static boolean createGroup(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
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.
public static boolean createUserGroup(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
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.
public static boolean createDomain(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
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.
public static boolean createAccessRule(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
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.
public static void dirInit()
throws WTException
WTException
public static boolean createOrgAdmin(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
createUser, while additionally
making the new user a member of the given organization.
nv - cmd_line - return_objects -
true if the load succeeds
WTException - If no organization is specified
public static boolean createSiteAdmin(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
createUser, while additionally
making the new user a site admin.
nv - cmd_line - return_objects -
true if the load succeeds
WTException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||