当前位置: 首页>>代码示例>>Java>>正文


Java Message.getString方法代码示例

本文整理汇总了Java中com.liferay.portal.kernel.messaging.Message.getString方法的典型用法代码示例。如果您正苦于以下问题:Java Message.getString方法的具体用法?Java Message.getString怎么用?Java Message.getString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.liferay.portal.kernel.messaging.Message的用法示例。


在下文中一共展示了Message.getString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: receive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
public void receive(Message message) {

	String topic = message.getString("topic");
	int qos = message.getInteger("qos");
	byte[] payload = (byte[])message.getPayload();

	try {
		if (!MqttLocalServiceUtil.isConnected()) {
			MqttLocalServiceUtil.connect();
		}

		MqttLocalServiceUtil.publish(topic, payload, qos);
	}
	catch (SystemException | MqttException e) {
		_log.error(e);
	}
}
 
开发者ID:baxtheman,项目名称:mqtt-liferay-plugins,代码行数:19,代码来源:MQTTPublishMessageListener.java

示例2: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		DictAttributeLocalServiceUtil.clearService();

		DictAttributeServiceUtil.clearService();
		DictCollectionLocalServiceUtil.clearService();

		DictCollectionServiceUtil.clearService();
		DictDataLocalServiceUtil.clearService();

		DictDataServiceUtil.clearService();
		DictMetaDataLocalServiceUtil.clearService();

		DictMetaDataServiceUtil.clearService();
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:22,代码来源:ClpMessageListener.java

示例3: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
    String command = message.getString("command");
    String servletContextName = message.getString("servletContextName");

    if (command.equals("undeploy") &&
            servletContextName.equals(getServletContextName())) {
        ArtigoLocalServiceUtil.clearService();

        ContribuicaoLocalServiceUtil.clearService();

        EstruturaLocalServiceUtil.clearService();

        WikiLegisServiceUtil.clearService();
    }
}
 
开发者ID:camaradosdeputadosoficial,项目名称:edemocracia,代码行数:17,代码来源:ClpMessageListener.java

示例4: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
    String command = message.getString("command");
    String servletContextName = message.getString("servletContextName");

    if (command.equals("undeploy") &&
            servletContextName.equals(getServletContextName())) {
        ChatRoomLocalServiceUtil.clearService();

        ChatRoomServiceUtil.clearService();
        ChatRoomMessageLocalServiceUtil.clearService();

        ChatRoomTwitterLocalServiceUtil.clearService();

        ChatRoomUserLocalServiceUtil.clearService();

        ChatRoomVideoLocalServiceUtil.clearService();
    }
}
 
开发者ID:camaradosdeputadosoficial,项目名称:edemocracia,代码行数:20,代码来源:ClpMessageListener.java

示例5: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
    String command = message.getString("command");
    String servletContextName = message.getString("servletContextName");

    if (command.equals("undeploy") &&
            servletContextName.equals(getServletContextName())) {
        ConfiguracaoLocalServiceUtil.clearService();

        EixoLocalServiceUtil.clearService();

        PriorizacaoServiceUtil.clearService();
        PropostaLocalServiceUtil.clearService();

        VotoLocalServiceUtil.clearService();
    }
}
 
开发者ID:camaradosdeputadosoficial,项目名称:edemocracia,代码行数:18,代码来源:ClpMessageListener.java

示例6: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		AlbumLocalServiceUtil.clearService();

		AlbumServiceUtil.clearService();
		ArtistLocalServiceUtil.clearService();

		ArtistServiceUtil.clearService();
		SongLocalServiceUtil.clearService();

		SongServiceUtil.clearService();
	}
}
 
开发者ID:juliocamarero,项目名称:jukebox-portlet,代码行数:19,代码来源:ClpMessageListener.java

示例7: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		ConversationLocalServiceUtil.clearService();

		MessageLocalServiceUtil.clearService();

		PanelLocalServiceUtil.clearService();

		ParticipantLocalServiceUtil.clearService();

		SettingsLocalServiceUtil.clearService();
	}
}
 
开发者ID:marcelmika,项目名称:lims,代码行数:19,代码来源:ClpMessageListener.java

示例8: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		RatingLocalServiceUtil.clearService();

		RatingServiceUtil.clearService();
		SubtopicLocalServiceUtil.clearService();

		SubtopicServiceUtil.clearService();
		TopicLocalServiceUtil.clearService();

		TopicServiceUtil.clearService();
	}
}
 
开发者ID:PolitAktiv,项目名称:politaktiv-aktuelles-meinungsbild-portlet,代码行数:19,代码来源:ClpMessageListener.java

示例9: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		MqttLocalServiceUtil.clearService();
	}
}
 
开发者ID:baxtheman,项目名称:mqtt-liferay-plugins,代码行数:11,代码来源:ClpMessageListener.java

示例10: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		DossierProcessLocalServiceUtil.clearService();

		DossierProcessServiceUtil.clearService();
		DossierStepLocalServiceUtil.clearService();

		DossierStepServiceUtil.clearService();
		ProcessOrderLocalServiceUtil.clearService();

		ProcessOrderServiceUtil.clearService();
		StepTransitionLocalServiceUtil.clearService();

		StepTransitionServiceUtil.clearService();
		TransitionHistoryLocalServiceUtil.clearService();

		TransitionHistoryServiceUtil.clearService();
		UserAssignmentLocalServiceUtil.clearService();

		UserAssignmentServiceUtil.clearService();
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:28,代码来源:ClpMessageListener.java

示例11: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		LinkScannerURLStatusLocalServiceUtil.clearService();

		LinkScannerURLStatusServiceUtil.clearService();
	}
}
 
开发者ID:craigvershaw,项目名称:link-scanner,代码行数:13,代码来源:ClpMessageListener.java

示例12: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		NewUserLogLocalServiceUtil.clearService();

		UserActivityLocalServiceUtil.clearService();
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:13,代码来源:ClpMessageListener.java

示例13: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		SSOAppLocalServiceUtil.clearService();

		SSOAppServiceUtil.clearService();
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:13,代码来源:ClpMessageListener.java

示例14: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		ApplicationLocalServiceUtil.clearService();

		ApplicationServiceUtil.clearService();
		AppMessageLocalServiceUtil.clearService();

		AppMessageServiceUtil.clearService();
		AppRoleLocalServiceUtil.clearService();

		AppRoleServiceUtil.clearService();
		AppRole2EmployeeLocalServiceUtil.clearService();

		AppRole2EmployeeServiceUtil.clearService();
		AppRole2JobPosLocalServiceUtil.clearService();

		AppRole2JobPosServiceUtil.clearService();
		UserSyncLocalServiceUtil.clearService();

		UserSyncServiceUtil.clearService();
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:28,代码来源:ClpMessageListener.java

示例15: doReceive

import com.liferay.portal.kernel.messaging.Message; //导入方法依赖的package包/类
@Override
protected void doReceive(Message message) throws Exception {
	String command = message.getString("command");
	String servletContextName = message.getString("servletContextName");

	if (command.equals("undeploy") &&
			servletContextName.equals(getServletContextName())) {
		BusinessLocalServiceUtil.clearService();

		BusinessServiceUtil.clearService();
		CitizenLocalServiceUtil.clearService();

		CitizenServiceUtil.clearService();
		DelegacyLocalServiceUtil.clearService();

		DelegacyServiceUtil.clearService();
		EmployeeLocalServiceUtil.clearService();

		EmployeeServiceUtil.clearService();
		JobPosLocalServiceUtil.clearService();

		JobPosServiceUtil.clearService();
		JobPos2RoleLocalServiceUtil.clearService();

		JobPos2RoleServiceUtil.clearService();
		SubAccountLocalServiceUtil.clearService();

		SubAccountServiceUtil.clearService();
		WorkingUnitLocalServiceUtil.clearService();

		WorkingUnitServiceUtil.clearService();
	}
}
 
开发者ID:openegovplatform,项目名称:OEPv2,代码行数:34,代码来源:ClpMessageListener.java


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