本文整理汇总了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);
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}
示例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();
}
}