• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java MendixRuntimeException类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.mendix.systemwideinterfaces.MendixRuntimeException的典型用法代码示例。如果您正苦于以下问题:Java MendixRuntimeException类的具体用法?Java MendixRuntimeException怎么用?Java MendixRuntimeException使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



MendixRuntimeException类属于com.mendix.systemwideinterfaces包,在下文中一共展示了MendixRuntimeException类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:18,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:24,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:17,代码来源:Microflows.java


示例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));
}
 
开发者ID:appronto,项目名称:RedisConnector,代码行数:17,代码来源:StringUtils.java


示例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));
}
 
开发者ID:appronto,项目名称:RedisConnector,代码行数:19,代码来源:StringUtils.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:13,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:21,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:13,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:14,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:13,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:14,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:ako,项目名称:MqttClient,代码行数:14,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:Finaps,项目名称:BootstrapCarousel,代码行数:21,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:Finaps,项目名称:BootstrapCarousel,代码行数:21,代码来源:Microflows.java


示例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);
	}
}
 
开发者ID:mrgroen,项目名称:qzIndustryPrinting,代码行数:21,代码来源:Microflows.java


示例16: dSL_Colors

import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static java.util.List<testsuite.proxies.Color> dSL_Colors(IContext context)
{
	try
	{
		Map<String, Object> params = new HashMap<String, Object>();
		java.util.List<IMendixObject> objs = Core.execute(context, "TestSuite.DSL_Colors", 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);
	}
}
 
开发者ID:mrgroen,项目名称:qzIndustryPrinting,代码行数:21,代码来源:Microflows.java


示例17: createUserIfNotExists

import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static void createUserIfNotExists(IContext context, String _username, String _role, String _password, boolean _webserviceUser)
{
	try
	{
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("Username", _username);
		params.put("Role", _role);
		params.put("Password", _password);
		params.put("WebserviceUser", _webserviceUser);
		Core.execute(context, "CommunityCommons.CreateUserIfNotExists", params);
	}
	catch (CoreException e)
	{
		throw new MendixRuntimeException(e);
	}
}
 
开发者ID:mrgroen,项目名称:qzIndustryPrinting,代码行数:17,代码来源:Microflows.java


示例18: updateUserHelper

import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
public static void updateUserHelper(IContext context, String _username, String _role, String _password, boolean _webserviceUser, system.proxies.User _user)
{
	try
	{
		Map<String, Object> params = new HashMap<String, Object>();
		params.put("Username", _username);
		params.put("Role", _role);
		params.put("Password", _password);
		params.put("WebserviceUser", _webserviceUser);
		params.put("User", _user == null ? null : _user.getMendixObject());
		Core.execute(context, "CommunityCommons.UpdateUserHelper", params);
	}
	catch (CoreException e)
	{
		throw new MendixRuntimeException(e);
	}
}
 
开发者ID:mrgroen,项目名称:qzIndustryPrinting,代码行数:18,代码来源:Microflows.java


示例19: executeAction

import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
@Override
public java.lang.String executeAction() throws Exception
{
	// BEGIN USER CODE
	if (value == null || !value.startsWith(prefix))
		return null;
	if (prefix == null || prefix.isEmpty())
		throw new MendixRuntimeException("Prefix should not be empty");
	if (key == null || key.isEmpty())
		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 = value.substring(prefix.length()).split(";");
	if (s.length < 2) //Not an encrypted string, just return the original value.
		return value;

	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));
	// END USER CODE
}
 
开发者ID:mendix,项目名称:EmailModuleWithTemplates,代码行数:25,代码来源:DecryptString.java


示例20: executeAction

import com.mendix.systemwideinterfaces.MendixRuntimeException; //导入依赖的package包/类
@Override
public java.lang.String executeAction() throws Exception
{
	// BEGIN USER CODE
	if (value == null) 
		return null;
	if (prefix == null || prefix.isEmpty())
		throw new MendixRuntimeException("Prefix should not be empty");
	if (key == null || key.isEmpty())
		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(value.getBytes());
	byte[] iv = c.getIV();

	return new StringBuilder(prefix +
			new String(Base64.encodeBase64(iv))).append(";").append(
			new String(Base64.encodeBase64(encryptedData))).toString();
	// END USER CODE
}
 
开发者ID:mendix,项目名称:EmailModuleWithTemplates,代码行数:25,代码来源:EncryptString.java



注:本文中的com.mendix.systemwideinterfaces.MendixRuntimeException类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Symbol类代码示例发布时间:2022-05-22
下一篇:
Java CMgrCompletedContainersEvent类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap