public class RepFacilityTestUtil
extends java.lang.Object
| Constructor and Description |
|---|
RepFacilityTestUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addUserToGroup(MboRemote user,
MboRemote group) |
static void |
addUserToGroups(MboRemote user,
MboSetRemote groupSet) |
static void |
allowNullRepairFacilityInUserGroups(boolean allowNull,
java.lang.String userName,
UserInfo userInfo)
Goes thru each group the user belongs to and update the NULLREPFAC according to the received parameter
|
static void |
allowNullRepairFacilityInUserGroups(boolean allowNull,
java.lang.String userName,
UserInfo userInfo,
boolean excludeEveryoneGroup,
boolean excludeNewUsersGroup)
Goes thru each group the user belongs to and update the NULLREPFAC according to the received parameter
|
static void |
authorizeAllRepairFacilitiesToUserGroups(java.lang.String userName,
UserInfo userInfo)
Goes thru each group the user belongs to and set the AUTHALLREPFACS flag to true
|
static void |
authorizeAllRepairFacilitiesToUserGroups(java.lang.String userName,
UserInfo userInfo,
boolean excludeEveryoneGroup,
boolean excludeNewUsersGroup)
Goes thru each group the user belongs to and set the AUTHALLREPFACS flag to true
|
static void |
authorizeIndividualRepairFacility(MboRemote repairFacility,
java.lang.String groupName)
Adds a REPFACAUTH record (if need be) to the group, to authorize the repair facility
|
static void |
authorizeIndividualRepairFacilityToUserGroups(MboRemote repairFacility,
java.lang.String userName,
UserInfo userInfo)
Adds a REPFACAUTH record (if need be) to each group the user belongs to, in order to authorize the repair facility
|
static void |
authorizeIndividualRepairFacilityToUserGroups(MboRemote repairFacility,
java.lang.String userName,
UserInfo userInfo,
boolean excludeEveryoneGroup,
boolean excludeNewUsersGroup)
Adds a REPFACAUTH record (if need be) to each group the user belongs to, in order to authorize the repair facility
|
static void |
clearIndividualRepairFacilityAuthorization(java.lang.String userName,
UserInfo userInfo)
Goes thru each group the user belongs to and set the AUTHALLREPFACS flag to false
|
static void |
clearRepairFacilityAuthorization(MboRemote maxUser,
UserInfo userInfo)
Goes thru each group the user belongs to and set the AUTHALLREPFACS flag to false
|
static MaxUserRemote |
createNewUser(MaxGroupRemote group,
UserInfo userInfo) |
static AssetRemote |
createRandomAsset(UserInfo userInfo)
Creates a new asset record, choosing randomly the value for
ASSET.ASSETNUM
|
static AssetRemote |
createRandomAsset(UserInfo userInfo,
MboSetRemote assetSet)
Creates a new asset record, choosing randomly the value for ASSET.ASSETNUM
|
static WORemote |
createRandomWO(MboSetRemote woSet,
java.lang.String insertSite)
Creates a new workorder record, choosing randomly the value for WORKORDER.WONUM
|
static WORemote |
createRandomWO(UserInfo userInfo)
Creates a new workorder record, choosing randomly the value for
WORKORDER.WONUM
|
static void |
updateByPassMaxvar(UserInfo userInfo,
java.lang.String orgid,
boolean enable)
Updates the By Pass Repair Facility Warning Message maxvar for one specific organization
|
static void |
updateByPassMaxvarForAllOrgs(UserInfo userInfo,
boolean enable)
Updates the By Pass Repair Facility Warning Message maxvar for all organizations
|
static void |
updateFacilitiesMaxvar(UserInfo userInfo,
java.lang.String orgid,
boolean enable)
Updates the Repair Facility maxvar for one specific organization
|
static void |
updateFacilitiesMaxvarForAllOrgs(UserInfo userInfo,
boolean enable)
Updates the Repair Facility maxvar for all organizations
|
public static WORemote createRandomWO(UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic static WORemote createRandomWO(MboSetRemote woSet, java.lang.String insertSite) throws java.rmi.RemoteException, MXException
insertSite - java.rmi.RemoteExceptionMXExceptionpublic static AssetRemote createRandomAsset(UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic static AssetRemote createRandomAsset(UserInfo userInfo, MboSetRemote assetSet) throws java.rmi.RemoteException, MXException
java.rmi.RemoteExceptionMXExceptionpublic static void updateFacilitiesMaxvarForAllOrgs(UserInfo userInfo, boolean enable) throws MXException, java.rmi.RemoteException
userInfo - enable - MXExceptionjava.rmi.RemoteExceptionpublic static void updateFacilitiesMaxvar(UserInfo userInfo, java.lang.String orgid, boolean enable) throws MXException, java.rmi.RemoteException
userInfo - enable - MXExceptionjava.rmi.RemoteExceptionpublic static void updateByPassMaxvarForAllOrgs(UserInfo userInfo, boolean enable) throws MXException, java.rmi.RemoteException
userInfo - enable - MXExceptionjava.rmi.RemoteExceptionpublic static void updateByPassMaxvar(UserInfo userInfo, java.lang.String orgid, boolean enable) throws MXException, java.rmi.RemoteException
userInfo - enable - MXExceptionjava.rmi.RemoteExceptionpublic static void allowNullRepairFacilityInUserGroups(boolean allowNull,
java.lang.String userName,
UserInfo userInfo)
throws MXException,
java.rmi.RemoteException
allowNull - Specifies the value to be set to NULLREPFAC flaguserName - Specifies the user who will have the groups updateduserInfo - The UserInfo object to be passed to the MXServer to perform all mbo-related operationsMXExceptionjava.rmi.RemoteExceptionpublic static void allowNullRepairFacilityInUserGroups(boolean allowNull,
java.lang.String userName,
UserInfo userInfo,
boolean excludeEveryoneGroup,
boolean excludeNewUsersGroup)
throws MXException,
java.rmi.RemoteException
allowNull - Specifies the value to be set to NULLREPFAC flaguserName - Specifies the user who will have the groups updateduserInfo - The UserInfo object to be passed to the MXServer to perform all mbo-related operationsexcludeEveryoneGroup - Determines if EVERYONE group has to be ignoredexcludeNewUsersGroup - Determines if DEFLTREG group has to be ignoredMXExceptionjava.rmi.RemoteExceptionpublic static void authorizeIndividualRepairFacility(MboRemote repairFacility, java.lang.String groupName) throws MXException, java.rmi.RemoteException
repairFacility - groupName - MXExceptionjava.rmi.RemoteExceptionpublic static void authorizeIndividualRepairFacilityToUserGroups(MboRemote repairFacility, java.lang.String userName, UserInfo userInfo) throws MXException, java.rmi.RemoteException
repairFacility - userName - userInfo - MXExceptionjava.rmi.RemoteExceptionpublic static void authorizeIndividualRepairFacilityToUserGroups(MboRemote repairFacility, java.lang.String userName, UserInfo userInfo, boolean excludeEveryoneGroup, boolean excludeNewUsersGroup) throws MXException, java.rmi.RemoteException
repairFacility - userInfo - The UserInfo object to be passed to the MXServer to perform all mbo-related operationsuserInfo - excludeEveryoneGroup - Determines if EVERYONE group has to be ignoredexcludeNewUsersGroup - Determines if DEFLTREG group has to be ignoredMXExceptionjava.rmi.RemoteExceptionpublic static void authorizeAllRepairFacilitiesToUserGroups(java.lang.String userName,
UserInfo userInfo)
throws java.rmi.RemoteException,
MXException
userName - Specifies the user who will have the groups updateduserInfo - The UserInfo object to be passed to the MXServer to perform all mbo-related operationsjava.rmi.RemoteExceptionMXExceptionpublic static void authorizeAllRepairFacilitiesToUserGroups(java.lang.String userName,
UserInfo userInfo,
boolean excludeEveryoneGroup,
boolean excludeNewUsersGroup)
throws java.rmi.RemoteException,
MXException
userName - Specifies the user who will have the groups updateduserInfo - The UserInfo object to be passed to the MXServer to perform all mbo-related operationsexcludeEveryoneGroup - Determines if EVERYONE group has to be ignoredexcludeNewUsersGroup - Determines if DEFLTREG group has to be ignoredjava.rmi.RemoteExceptionMXExceptionpublic static void clearRepairFacilityAuthorization(MboRemote maxUser, UserInfo userInfo) throws java.rmi.RemoteException, MXException
userName - Specifies the user who will have the groups updateduserInfo - The UserInfo object to be passed to the MXServer to perform all mbo-related operationsjava.rmi.RemoteExceptionMXExceptionpublic static void clearIndividualRepairFacilityAuthorization(java.lang.String userName,
UserInfo userInfo)
throws java.rmi.RemoteException,
MXException
userName - Specifies the user who will have the groups updateduserInfo - The UserInfo object to be passed to the MXServer to perform all mbo-related operationsjava.rmi.RemoteExceptionMXExceptionpublic static MaxUserRemote createNewUser(MaxGroupRemote group, UserInfo userInfo) throws java.rmi.RemoteException, MXException
group - userInfo - The UserInfo object to be passed to the MXServer to perform all mbo-related operationsjava.rmi.RemoteExceptionMXExceptionpublic static void addUserToGroups(MboRemote user, MboSetRemote groupSet) throws java.rmi.RemoteException, MXException
user - groupSet - java.rmi.RemoteExceptionMXExceptionpublic static void addUserToGroup(MboRemote user, MboRemote group) throws MXException, java.rmi.RemoteException
user - group - MXExceptionjava.rmi.RemoteException