com.liferay.message.boards.uad.exporter.BaseMBThreadUADExporter Maven / Gradle / Ivy
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.message.boards.uad.exporter;
import com.liferay.message.boards.model.MBThread;
import com.liferay.message.boards.service.MBThreadLocalService;
import com.liferay.message.boards.uad.constants.MBUADConstants;
import com.liferay.petra.string.StringBundler;
import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
import com.liferay.user.associated.data.exporter.DynamicQueryUADExporter;
import org.osgi.service.component.annotations.Reference;
/**
* Provides the base implementation for the message boards thread UAD exporter.
*
*
* This implementation exists only as a container for the default methods
* generated by ServiceBuilder. All custom service methods should be put in
* {@link MBThreadUADExporter}.
*
*
* @author Brian Wing Shun Chan
* @generated
*/
public abstract class BaseMBThreadUADExporter
extends DynamicQueryUADExporter {
@Override
public Class getTypeClass() {
return MBThread.class;
}
@Override
protected ActionableDynamicQuery doGetActionableDynamicQuery() {
return mbThreadLocalService.getActionableDynamicQuery();
}
@Override
protected String[] doGetUserIdFieldNames() {
return MBUADConstants.USER_ID_FIELD_NAMES_MB_THREAD;
}
@Override
protected String toXmlString(MBThread mbThread) {
StringBundler sb = new StringBundler(28);
sb.append("");
sb.append("com.liferay.message.boards.model.MBThread");
sb.append(" ");
sb.append(
"threadId ");
sb.append(
"statusByUserId ");
sb.append(
"statusByUserName ");
sb.append(
"rootMessageUserId ");
sb.append(
"lastPostByUserId ");
sb.append(
"userId ");
sb.append(
"userName ");
sb.append(
"title ");
sb.append(" ");
return sb.toString();
}
@Reference
protected MBThreadLocalService mbThreadLocalService;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy