|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.container.LoadContainer
Provides utility methods for loading containers and container-related data.
Supported API: false
Extendable: false
Field Summary | |
private static String |
CLASSNAME
|
private static boolean |
DEBUG
|
private static DebugWriter |
LOG
|
private static String |
RESOURCE
|
static String |
SITE_ORG_DOMAIN
The name of the site organization's internet domain, as configured during the installation process |
private static String |
SITE_ORG_DOMAIN_PROPERTY
|
private static String |
SITE_ORG_FILE
|
static String |
SITE_ORG_NAME
The name of the site organization, as configured during the installation process |
private static String |
SITE_ORG_NAME_PROPERTY
|
private static String |
SITE_ORG_TEMPLATE
|
private static String |
SITE_ORG_TEMPLATE_PROPERTY
|
Constructor Summary | |
LoadContainer()
|
Method Summary | |
static boolean |
addCreator(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Make a user a creator for the given container type, within the current container. |
static boolean |
addOrgAdministrator(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Make the given user an administrator of the current org container. |
static boolean |
addSiteAdministrator(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Make the given user an administrator of the site container. |
private static void |
assignOrgProperties(WTOrganization org,
String conferencing_url,
String internet_domain)
Assigns the conferencing url and internet domain to the given organization, if they are valid. |
static boolean |
createClassicContainer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Loads the Windchill/PDM container. |
static boolean |
createContainer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Loads a WTContainer with the given properties. |
static boolean |
createExchangeContainer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Loads the exchange container. |
static boolean |
createOrgContainer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Loads an OrgContainer with the given properties. |
static boolean |
createSiteOrgContainer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
|
private static Method |
getFactoryMethod(Class container_class,
Class[] argtypes)
Get a factory method of the form newXXX from the given class |
private static WTContainerRef |
getOrgRef(String org_name)
Gets a reference to the org container with the given name. |
private static WTUser |
getUser(String user_name_or_dn,
Hashtable nv,
Hashtable cmd_line)
Get the user with the givne name or dn |
private static WTContainer |
newInstance(Class container_class,
String name,
WTContainerRef parent)
Create a new container with the given name and parent. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String SITE_ORG_NAME
public static final String SITE_ORG_DOMAIN
private static final String RESOURCE
private static final String CLASSNAME
private static final boolean DEBUG
private static final DebugWriter LOG
private static final String SITE_ORG_FILE
private static final String SITE_ORG_TEMPLATE
private static final String SITE_ORG_NAME_PROPERTY
private static final String SITE_ORG_DOMAIN_PROPERTY
private static final String SITE_ORG_TEMPLATE_PROPERTY
Constructor Detail |
public LoadContainer()
Method Detail |
public static boolean createExchangeContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
wt.admin.Install
.
This method completes the creation process by calling the exchange container's container creator
delegate.
Note: This API is only intended to be called during the administrative load of the system.
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedspublic static boolean createClassicContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
OrgContainer
for the "site" organization, then this container is created as well.
Note: This API is only intended to be called during the administrative load of a Windchill/PDM installation.
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedspublic static boolean createOrgContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
OrgContainer
with the given properties. The format of the corresponding
load line is:
containerName~containerTemplateRef~businessNamespace~sharingEnabled~creator~owner~subscriber~conferencingURL~description~internetDomain
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedspublic static boolean createSiteOrgContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
public static boolean createContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
WTContainer
with the given properties. The format of the corresponding
load line is:
containerClass~containerName~parentContainerPath~containerTemplateRef~businessNamespace~sharingEnabled~creator~owner~subscriber~conferencingURL~description~organization~creatorSelector
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedsprivate static void assignOrgProperties(WTOrganization org, String conferencing_url, String internet_domain) throws WTException
conferencing_url
- The conferencing URL for the orginternet_domain
- The internet domain for the org
WTException
private static WTContainer newInstance(Class container_class, String name, WTContainerRef parent) throws WTException
container_class
- The class for the new containername
- The name for the new containerparent
- The reference to the parent of the new container
WTException
private static Method getFactoryMethod(Class container_class, Class[] argtypes)
newXXX
from the given class
container_class
- The class to get the factory method fromargtypes
- The arguments for the factory method
private static WTContainerRef getOrgRef(String org_name) throws WTException
null
if it couldn't be found.
WTException
public static boolean addOrgAdministrator(Hashtable nv, Hashtable cmd_line, Vector return_objects)
userNameOrDN
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedspublic static boolean addSiteAdministrator(Hashtable nv, Hashtable cmd_line, Vector return_objects)
userNameOrDN
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedspublic static boolean addCreator(Hashtable nv, Hashtable cmd_line, Vector return_objects)
userNameOrDN~containerClassName
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedsprivate static WTUser getUser(String user_name_or_dn, Hashtable nv, Hashtable cmd_line) throws Exception
user_name_or_dn
- A user name or full DN if necessarynv
- map of load parameterscmd_line
- command line overrides
WTException
- If the user can't be found
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |