|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.load.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
Field Summary | |
private static String |
ADMINISTRATORS
|
private static String |
defaultAdapter
|
private static String |
defaultDirectoryUser
|
private static boolean |
DIRVERBOSE
|
private static String |
userSearchBase
|
private static boolean |
VALIDATE_TYPE_FOR_ACCESS
|
Constructor Summary | |
LoadUser()
|
Method Summary | |
private static String |
addAddrPart(String addr,
String addrPart)
|
private static void |
addMemberByDN(String groupDN,
String memberDN)
|
private static void |
addMemberByName(String groupDN,
String userName)
|
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. |
private static void |
createGroup(String dn,
String description)
|
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 |
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. |
private static String |
getGroupDN(String groupName,
WTContainerRef containerRef)
|
private static String |
getUserDN(String userName)
|
static void |
loadGroup(String groupName,
String groupDesc,
String user,
boolean dbstore,
boolean addpsb)
Deprecated. Supported API: false |
private static void |
loadUser(String newName,
String fullName,
Vector values)
Load a user definition into the directory and database. |
private static String |
normalizeDn(String dn)
|
private static String |
queryUser(String userName)
Query a user definition registered in the directory. |
static void |
updateUserGroup(String groupName,
String userName,
boolean addpsb)
Deprecated. Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static boolean DIRVERBOSE
private static boolean VALIDATE_TYPE_FOR_ACCESS
private static String defaultAdapter
private static String userSearchBase
private static String defaultDirectoryUser
private static String ADMINISTRATORS
Constructor Detail |
public LoadUser()
Method Detail |
private static String addAddrPart(String addr, String addrPart)
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
groupName
- Group Namesysdomain
- System DomainwebUserName
- Web User Name
WTException
private static String queryUser(String userName) throws WTException
userName
- The unique identifier for a user
WTException
private static void loadUser(String newName, String fullName, Vector values) throws WTException
WTException
private static String normalizeDn(String dn)
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.
private static String getGroupDN(String groupName, WTContainerRef containerRef) throws WTException
WTException
private static String getUserDN(String userName) throws WTException
WTException
private static void createGroup(String dn, String description) throws WTException, IOException, IEException
WTException
IOException
IEException
private static void addMemberByDN(String groupDN, String memberDN) throws WTException
WTException
private static void addMemberByName(String groupDN, String userName) throws WTException
WTException
public static void loadGroup(String groupName, String groupDesc, String user, boolean dbstore, boolean addpsb) throws WTException
groupName
- Name of the group to be loaded into the Directory and
the database.groupDesc
- Description of the group to be loaded into the
Directory and the database.user
- Name of the user to be associated with the group.
Null if none.dbstore
- true = add to the databaseaddpsb
- true = construct the user's distinguished name from
the user search base
WTException
public static void updateUserGroup(String groupName, String userName, boolean addpsb) throws WTException
addpsb
- True = add userSearchBase to the user
WTException
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |