Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14.  
  15. package com.liferay.osb.partner.forms.web.internal.portlet;
  16.  
  17. import com.liferay.osb.partner.forms.web.internal.constants.OSBPartnerFormsPortletKeys;
  18. import com.liferay.portal.kernel.model.Release;
  19. import com.liferay.portal.kernel.portlet.bridges.mvc.MVCPortlet;
  20.  
  21. import javax.portlet.Portlet;
  22.  
  23. import org.osgi.service.component.annotations.Component;
  24. import org.osgi.service.component.annotations.Reference;
  25.  
  26. /**
  27. * @author Rachael Koestartyo
  28. */
  29. @Component(
  30. immediate = true,
  31. property = {
  32. "com.liferay.portlet.css-class-wrapper=portlet-osb-partner-forms",
  33. "com.liferay.portlet.display-category=category.sample",
  34. "com.liferay.portlet.instanceable=true",
  35. "com.liferay.portlet.use-default-template=true",
  36. "javax.portlet.display-name=OSB Partner Forms",
  37. "javax.portlet.expiration-cache=0",
  38. "javax.portlet.init-param.template-path=/",
  39. "javax.portlet.init-param.view-template=/view.jsp",
  40. "javax.portlet.name=" + OSBPartnerFormsPortletKeys.OSB_PARTNER_FORMS,
  41. "javax.portlet.portlet-info.short-title=OSB Partner Forms",
  42. "javax.portlet.portlet-info.title=OSB Partner Forms",
  43. "javax.portlet.security-role-ref=administrator,guest,power-user,user",
  44. "javax.portlet.supports.mime-type=text/html"
  45. },
  46. service = Portlet.class
  47. )
  48. public class OSBPartnerFormsPortlet extends MVCPortlet {
  49.  
  50. @Reference(
  51. target = "(&(release.bundle.symbolic.name=com.liferay.osb.partner.forms.web)(release.schema.version=1.0.0))",
  52. unbind = "-"
  53. )
  54. protected void setRelease(Release release) {
  55. }
  56.  
  57. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement