當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。