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


Java PortletPreferencesLocalService类代码示例

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


PortletPreferencesLocalService类属于com.liferay.portal.kernel.service包,在下文中一共展示了PortletPreferencesLocalService类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: PortalURLServlet

import com.liferay.portal.kernel.service.PortletPreferencesLocalService; //导入依赖的package包/类
public PortalURLServlet(
	CompanyLocalService companyLocalService,
	GroupLocalService groupLocalService,
	LayoutLocalService layoutLocalService,
	PortletPreferencesLocalService porletPreferencesLocalService,
	UserLocalService userLocalService) {

	_companyLocalService = companyLocalService;

	_groupLocalService = groupLocalService;

	_layoutLocalService = layoutLocalService;

	_portletPreferencesLocalService = porletPreferencesLocalService;

	_userLocalService = userLocalService;
}
 
开发者ID:liferay-labs,项目名称:arquillian-liferay,代码行数:18,代码来源:PortalURLServlet.java

示例2: setPortletPreferencesLocalService

import com.liferay.portal.kernel.service.PortletPreferencesLocalService; //导入依赖的package包/类
@Reference(unbind = "-")
protected void setPortletPreferencesLocalService(
        PortletPreferencesLocalService portletPreferencesLocalService) {
    _portletPreferencesLocalService = portletPreferencesLocalService;
}
 
开发者ID:inofix,项目名称:ch-inofix-data-manager,代码行数:6,代码来源:MeasurementImportController.java

示例3: start

import com.liferay.portal.kernel.service.PortletPreferencesLocalService; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
	_companyLocalServiceServiceReference = context.getServiceReference(
		CompanyLocalService.class);

	CompanyLocalService companyLocalService = null;

	if (_companyLocalServiceServiceReference == null) {
		throw new IllegalStateException(
			"Can not access CompanyLocalService");
	}

	companyLocalService = context.getService(
		_companyLocalServiceServiceReference);

	_groupLocalServiceServiceReference = context.getServiceReference(
		GroupLocalService.class);

	GroupLocalService groupLocalService = null;

	if (_groupLocalServiceServiceReference == null) {
		throw new IllegalStateException("Can not access GroupLocalService");
	}

	groupLocalService = context.getService(
		_groupLocalServiceServiceReference);

	_layoutLocalServiceServiceReference = context.getServiceReference(
		LayoutLocalService.class);

	LayoutLocalService layoutLocalService = null;

	if (_layoutLocalServiceServiceReference == null) {
		throw new IllegalStateException(
			"Can not access LayoutLocalService");
	}

	layoutLocalService = context.getService(
		_layoutLocalServiceServiceReference);

	_portletPreferencesLocalServiceServiceReference =
		context.getServiceReference(PortletPreferencesLocalService.class);

	PortletPreferencesLocalService portletPreferencesLocalService = null;

	if (_portletPreferencesLocalServiceServiceReference == null) {
		throw new IllegalStateException(
			"Can not access PortletPreferencesLocalService");
	}

	portletPreferencesLocalService = context.getService(
		_portletPreferencesLocalServiceServiceReference);

	_userLocalServiceServiceReference = context.getServiceReference(
		UserLocalService.class);

	UserLocalService userLocalService = null;

	if (_userLocalServiceServiceReference == null) {
		throw new IllegalStateException("Can not access UserLocalService");
	}

	userLocalService = context.getService(
		_userLocalServiceServiceReference);

	PortalURLServlet portalURLServlet = new PortalURLServlet(
		companyLocalService, groupLocalService, layoutLocalService,
		portletPreferencesLocalService, userLocalService);

	Dictionary<String, Object> properties = new HashMapDictionary<>();

	properties.put(
		"osgi.http.whiteboard.servlet.name", "Install Portlet Servlet");

	properties.put(
		"osgi.http.whiteboard.servlet.pattern",
		"/install-portlet-servlet/*");

	_servletServiceRegistration = context.registerService(
		Servlet.class, portalURLServlet, properties);
}
 
开发者ID:liferay-labs,项目名称:arquillian-liferay,代码行数:82,代码来源:PortalURLBundleActivator.java

示例4: start

import com.liferay.portal.kernel.service.PortletPreferencesLocalService; //导入依赖的package包/类
@Override
public void start(BundleContext context) throws Exception {
	_companyLocalServiceServiceReference = context.getServiceReference(
		CompanyLocalService.class);

	CompanyLocalService companyLocalService;

	if (_companyLocalServiceServiceReference == null) {
		throw new IllegalStateException(
			"Can not access CompanyLocalService");
	}

	companyLocalService = context.getService(
		_companyLocalServiceServiceReference);

	_groupLocalServiceServiceReference = context.getServiceReference(
		GroupLocalService.class);

	GroupLocalService groupLocalService;

	if (_groupLocalServiceServiceReference == null) {
		throw new IllegalStateException("Can not access GroupLocalService");
	}

	groupLocalService = context.getService(
		_groupLocalServiceServiceReference);

	_layoutLocalServiceServiceReference = context.getServiceReference(
		LayoutLocalService.class);

	LayoutLocalService layoutLocalService;

	if (_layoutLocalServiceServiceReference == null) {
		throw new IllegalStateException(
			"Can not access LayoutLocalService");
	}

	layoutLocalService = context.getService(
		_layoutLocalServiceServiceReference);

	_portletPreferencesLocalServiceServiceReference =
		context.getServiceReference(PortletPreferencesLocalService.class);

	PortletPreferencesLocalService portletPreferencesLocalService;

	if (_portletPreferencesLocalServiceServiceReference == null) {
		throw new IllegalStateException(
			"Can not access PortletPreferencesLocalService");
	}

	portletPreferencesLocalService = context.getService(
		_portletPreferencesLocalServiceServiceReference);

	_userLocalServiceServiceReference = context.getServiceReference(
		UserLocalService.class);

	UserLocalService userLocalService;

	if (_userLocalServiceServiceReference == null) {
		throw new IllegalStateException("Can not access UserLocalService");
	}

	userLocalService = context.getService(
		_userLocalServiceServiceReference);

	PortalURLServlet portalURLServlet = new PortalURLServlet(
		companyLocalService, groupLocalService, layoutLocalService,
		portletPreferencesLocalService, userLocalService);

	Dictionary<String, Object> properties = new HashMapDictionary<>();

	properties.put(
		"osgi.http.whiteboard.servlet.name", "Install Portlet Servlet");

	properties.put(
		"osgi.http.whiteboard.servlet.pattern",
		"/install-portlet-servlet/*");

	_servletServiceRegistration = context.registerService(
		Servlet.class, portalURLServlet, properties);
}
 
开发者ID:arquillian,项目名称:arquillian-extension-liferay,代码行数:82,代码来源:PortalURLBundleActivator.java


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