com.liferay.message.boards.uad.display.BaseMBThreadUADDisplay 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.display;
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.portal.kernel.dao.orm.DynamicQuery;
import com.liferay.portal.kernel.exception.PortalException;
import com.liferay.user.associated.data.display.BaseModelUADDisplay;
import java.io.Serializable;
import java.util.List;
import org.osgi.service.component.annotations.Reference;
/**
* Provides the base implementation for the MBThread UAD display.
*
*
* This implementation exists only as a container for the default methods
* generated by ServiceBuilder. All custom methods should be put in
* {@link MBThreadUADDisplay}.
*
*
* @author Brian Wing Shun Chan
* @generated
*/
public abstract class BaseMBThreadUADDisplay
extends BaseModelUADDisplay {
@Override
public MBThread get(Serializable primaryKey) throws PortalException {
return mbThreadLocalService.getMBThread(
Long.valueOf(primaryKey.toString()));
}
@Override
public String[] getDisplayFieldNames() {
return new String[] {"title"};
}
@Override
public Class getTypeClass() {
return MBThread.class;
}
@Override
protected long doCount(DynamicQuery dynamicQuery) {
return mbThreadLocalService.dynamicQueryCount(dynamicQuery);
}
@Override
protected DynamicQuery doGetDynamicQuery() {
return mbThreadLocalService.dynamicQuery();
}
@Override
protected List doGetRange(
DynamicQuery dynamicQuery, int start, int end) {
return mbThreadLocalService.dynamicQuery(dynamicQuery, start, end);
}
@Override
protected String[] doGetUserIdFieldNames() {
return MBUADConstants.USER_ID_FIELD_NAMES_MB_THREAD;
}
@Reference
protected MBThreadLocalService mbThreadLocalService;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy