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.RemoteException
MXException
public static WORemote createRandomWO(MboSetRemote woSet, java.lang.String insertSite) throws java.rmi.RemoteException, MXException
insertSite
- java.rmi.RemoteException
MXException
public static AssetRemote createRandomAsset(UserInfo userInfo) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static AssetRemote createRandomAsset(UserInfo userInfo, MboSetRemote assetSet) throws java.rmi.RemoteException, MXException
java.rmi.RemoteException
MXException
public static void updateFacilitiesMaxvarForAllOrgs(UserInfo userInfo, boolean enable) throws MXException, java.rmi.RemoteException
userInfo
- enable
- MXException
java.rmi.RemoteException
public static void updateFacilitiesMaxvar(UserInfo userInfo, java.lang.String orgid, boolean enable) throws MXException, java.rmi.RemoteException
userInfo
- enable
- MXException
java.rmi.RemoteException
public static void updateByPassMaxvarForAllOrgs(UserInfo userInfo, boolean enable) throws MXException, java.rmi.RemoteException
userInfo
- enable
- MXException
java.rmi.RemoteException
public static void updateByPassMaxvar(UserInfo userInfo, java.lang.String orgid, boolean enable) throws MXException, java.rmi.RemoteException
userInfo
- enable
- MXException
java.rmi.RemoteException
public 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 operationsMXException
java.rmi.RemoteException
public 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 ignoredMXException
java.rmi.RemoteException
public static void authorizeIndividualRepairFacility(MboRemote repairFacility, java.lang.String groupName) throws MXException, java.rmi.RemoteException
repairFacility
- groupName
- MXException
java.rmi.RemoteException
public static void authorizeIndividualRepairFacilityToUserGroups(MboRemote repairFacility, java.lang.String userName, UserInfo userInfo) throws MXException, java.rmi.RemoteException
repairFacility
- userName
- userInfo
- MXException
java.rmi.RemoteException
public 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 ignoredMXException
java.rmi.RemoteException
public 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.RemoteException
MXException
public 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.RemoteException
MXException
public 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.RemoteException
MXException
public 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.RemoteException
MXException
public 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.RemoteException
MXException
public static void addUserToGroups(MboRemote user, MboSetRemote groupSet) throws java.rmi.RemoteException, MXException
user
- groupSet
- java.rmi.RemoteException
MXException
public static void addUserToGroup(MboRemote user, MboRemote group) throws MXException, java.rmi.RemoteException
user
- group
- MXException
java.rmi.RemoteException