本文整理汇总了Java中com.mendix.systemwideinterfaces.MendixRuntimeException类的典型用法代码示例。如果您正苦于以下问题:Java MendixRuntimeException类的具体用法?Java MendixRuntimeException怎么用?Java MendixRuntimeException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MendixRuntimeException类属于com.mendix.systemwideinterfaces包,在下文中一共展示了MendixRuntimeException类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: sendInvite
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static void sendInvite(IContext context, java.lang.String _environmentUUID, java.lang.String _environmentPassword, java.lang.String _roleUUID, java.lang.String _inviteeEmailAddress, java.lang.String _inviterEmailAddress)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
params.put("EnvironmentUUID", _environmentUUID);
params.put("EnvironmentPassword", _environmentPassword);
params.put("RoleUUID", _roleUUID);
params.put("InviteeEmailAddress", _inviteeEmailAddress);
params.put("InviterEmailAddress", _inviterEmailAddress);
Core.execute(context, "InviteAPI.SendInvite", params);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例2: getRolesForOpenID
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static java.util.List<permissionsapi.proxies.AppRole> getRolesForOpenID(IContext context, java.lang.String _openID, java.lang.String _environmentID, java.lang.String _environmentPassword)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
params.put("OpenID", _openID);
params.put("EnvironmentID", _environmentID);
params.put("EnvironmentPassword", _environmentPassword);
java.util.List<IMendixObject> objs = Core.execute(context, "PermissionsAPI.GetRolesForOpenID", params);
java.util.List<permissionsapi.proxies.AppRole> result = null;
if (objs != null)
{
result = new java.util.ArrayList<permissionsapi.proxies.AppRole>();
for (IMendixObject obj : objs)
result.add(permissionsapi.proxies.AppRole.initialize(context, obj));
}
return result;
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例3: getUserProfile
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static profileservice.proxies.UserProfile getUserProfile(IContext context, java.lang.String _openID, java.lang.String _environmentUUID, java.lang.String _environmentPassword)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
params.put("OpenID", _openID);
params.put("EnvironmentUUID", _environmentUUID);
params.put("EnvironmentPassword", _environmentPassword);
IMendixObject result = (IMendixObject)Core.execute(context, "ProfileService.GetUserProfile", params);
return result == null ? null : profileservice.proxies.UserProfile.initialize(context, result);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例4: encryptString
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static String encryptString(String key, String valueToEncrypt) throws Exception
{
if (valueToEncrypt == null)
return null;
if (key == null)
throw new MendixRuntimeException("Key should not be empty");
if (key.length() != 16)
throw new MendixRuntimeException("Key length should be 16");
Cipher c = Cipher.getInstance("AES/CBC/PKCS5PADDING");
SecretKeySpec k = new SecretKeySpec(key.getBytes(), "AES");
c.init(Cipher.ENCRYPT_MODE, k);
byte[] encryptedData = c.doFinal(valueToEncrypt.getBytes());
byte[] iv = c.getIV();
return new String(Base64.encodeBase64(iv)) + ";" + new String(Base64.encodeBase64(encryptedData));
}
示例5: decryptString
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static String decryptString(String key, String valueToDecrypt) throws Exception
{
if (valueToDecrypt == null)
return null;
if (key == null)
throw new MendixRuntimeException("Key should not be empty");
if (key.length() != 16)
throw new MendixRuntimeException("Key length should be 16");
Cipher c = Cipher.getInstance("AES/CBC/PKCS5PADDING");
SecretKeySpec k = new SecretKeySpec(key.getBytes(), "AES");
String[] s = valueToDecrypt.split(";");
if (s.length < 2) //Not an encrypted string, just return the original value.
return valueToDecrypt;
byte[] iv = Base64.decodeBase64(s[0].getBytes());
byte[] encryptedData = Base64.decodeBase64(s[1].getBytes());
c.init(Cipher.DECRYPT_MODE, k, new IvParameterSpec(iv));
return new String(c.doFinal(encryptedData));
}
示例6: newAccount
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static void newAccount(IContext context)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
Core.execute(context, "Administration.NewAccount", params);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例7: retrieveTimeZones
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static java.util.List<system.proxies.TimeZone> retrieveTimeZones(IContext context)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
java.util.List<IMendixObject> objs = Core.execute(context, "Administration.RetrieveTimeZones", params);
java.util.List<system.proxies.TimeZone> result = null;
if (objs != null)
{
result = new java.util.ArrayList<system.proxies.TimeZone>();
for (IMendixObject obj : objs)
result.add(system.proxies.TimeZone.initialize(context, obj));
}
return result;
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例8: test_SubscribeTwoMosquittoImportTopics
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static void test_SubscribeTwoMosquittoImportTopics(IContext context)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
Core.execute(context, "TestMqttClient.Test_SubscribeTwoMosquittoImportTopics", params);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例9: rerunUnittest
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static void rerunUnittest(IContext context, unittesting.proxies.UnitTest _unitTestRun)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
params.put("UnitTestRun", _unitTestRun == null ? null : _unitTestRun.getMendixObject());
Core.execute(context, "UnitTesting.RerunUnittest", params);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例10: uT_ValidUnitTest
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static boolean uT_ValidUnitTest(IContext context)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
return (java.lang.Boolean)Core.execute(context, "UnitTesting.UT_ValidUnitTest", params);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例11: invokeOnNonFirstLoginAppCloudUser
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static void invokeOnNonFirstLoginAppCloudUser(IContext context, system.proxies.User _user)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
params.put("User", _user == null ? null : _user.getMendixObject());
Core.execute(context, "AppCloudServices.InvokeOnNonFirstLoginAppCloudUser", params);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例12: refreshUserPermissions
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static void refreshUserPermissions(IContext context, java.lang.String _openId)
{
try
{
Map<java.lang.String, Object> params = new HashMap<java.lang.String, Object>();
params.put("OpenId", _openId);
Core.execute(context, "AppCloudServices.RefreshUserPermissions", params);
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例13: retrieveTimeZones
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static java.util.List<system.proxies.TimeZone> retrieveTimeZones(IContext context)
{
try
{
Map<String, Object> params = new HashMap<String, Object>();
java.util.List<IMendixObject> objs = Core.execute(context, "Administration.RetrieveTimeZones", params);
java.util.List<system.proxies.TimeZone> result = null;
if (objs != null)
{
result = new java.util.ArrayList<system.proxies.TimeZone>();
for (IMendixObject obj : objs)
result.add(system.proxies.TimeZone.initialize(context, obj));
}
return result;
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例14: dS_GetCarousel
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static java.util.List<myfirstmodule.proxies.Content> dS_GetCarousel(IContext context)
{
try
{
Map<String, Object> params = new HashMap<String, Object>();
java.util.List<IMendixObject> objs = Core.execute(context, "MyFirstModule.DS_GetCarousel", params);
java.util.List<myfirstmodule.proxies.Content> result = null;
if (objs != null)
{
result = new java.util.ArrayList<myfirstmodule.proxies.Content>();
for (IMendixObject obj : objs)
result.add(myfirstmodule.proxies.Content.initialize(context, obj));
}
return result;
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}
示例15: dSL_Color
import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static java.util.List<testsuite.proxies.Color> dSL_Color(IContext context)
{
try
{
Map<String, Object> params = new HashMap<String, Object>();
java.util.List<IMendixObject> objs = Core.execute(context, "TestSuite.DSL_Color", params);
java.util.List<testsuite.proxies.Color> result = null;
if (objs != null)
{
result = new java.util.ArrayList<testsuite.proxies.Color>();
for (IMendixObject obj : objs)
result.add(testsuite.proxies.Color.initialize(context, obj));
}
return result;
}
catch (CoreException e)
{
throw new MendixRuntimeException(e);
}
}