|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.inf.team.LoadContainerTeam
Provides utility methods for accessing container team-related APIs
via load files
Supported API: false
Extendable: false
Constructor Summary | |
LoadContainerTeam()
|
Method Summary | |
static boolean |
activateContainer(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Activate a container. |
static boolean |
addGuest(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Assign a principal as guest member to a container. |
static boolean |
addPrincipalToRole(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Assign a principal to a role in a container. |
static boolean |
confirmParticipation(Hashtable nv,
Hashtable cmd_line,
Vector return_objects)
Confirm a user's participation in the current container. |
private static ContainerTeamManaged |
getContainer(String container_class_name,
String container_name,
Hashtable nv,
Hashtable cmd_line)
Get the container to use for assignRoleToUser. |
private static WTPrincipal |
getPrincipal(Hashtable nv,
Hashtable cmd_line)
Gets a WTPrincipal from the load parameters, assuming the principal is configured with the principalNameOrDN and serviceName properties. |
private static Role |
getRole(String role_name,
Hashtable nv,
Hashtable cmd_line)
Get the Role with the given internal name |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LoadContainerTeam()
Method Detail |
public static boolean addPrincipalToRole(Hashtable nv, Hashtable cmd_line, Vector return_objects)
containerClass~containerName~role~principalNameOrDN~serviceName~confirmParticipationNotes
containerClass
and containerName
are specified, then
the loader will look for a container with the given class and name within the context
of the current container. Otherwise, the current container itself will be used
serviceName
is optional. If the principalNameOrDN is in fact a DN, then
OrganizationServicesManager.getPrincipalByDN(String)
is called and
this parameter is ignored.
confirmParticipation
is optional, and defaults to true
when
it isn't specified
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedspublic static boolean addGuest(Hashtable nv, Hashtable cmd_line, Vector return_objects)
containerClass~containerName~principalNameOrDN~serviceNameNotes
containerClass
and containerName
are specified, then
the loader will look for a container with the given class and name within the context
of the current container. Otherwise, the current container itself will be used
serviceName
is optional. If the principalNameOrDN is in fact a DN, then
OrganizationServicesManager.getPrincipalByDN(String)
is called and
this parameter is ignored.
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedspublic static boolean confirmParticipation(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 activateContainer(Hashtable nv, Hashtable cmd_line, Vector return_objects)
containerClass~containerNameNotes
containerClass
and containerName
are specified, then
the loader will look for a container with the given class and name within the context
of the current container. Otherwise, the current container itself will be used.
nv
- map of load parameterscmd_line
- Command line overridesreturn_objects
-
true
If the load succeedsprivate static ContainerTeamManaged getContainer(String container_class_name, String container_name, Hashtable nv, Hashtable cmd_line) throws Exception
container_class_name
- The name of the container class (may be null)container_name
- The name of the container (may be null)nv
- Load parameterscmd_line
- Command line overrides
Exception
private static WTPrincipal getPrincipal(Hashtable nv, Hashtable cmd_line) throws Exception
principalNameOrDN
and serviceName
properties.
nv
- map of load parameterscmd_line
- Command line overrides
WTException
- If the principal can't be found, or if more than one principal matches
the parameters
Exception
private static Role getRole(String role_name, Hashtable nv, Hashtable cmd_line) throws Exception
Role
with the given internal name
role_name
- A role name (such as LIBRARY_MANAGER
)nv
- map of load parameterscmd_line
- command line overrides
Exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |