You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

PortletProperties.java 2.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /*
  2. * Copyright 2000-2016 Vaadin Ltd.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  5. * use this file except in compliance with the License. You may obtain a copy of
  6. * the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  12. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  13. * License for the specific language governing permissions and limitations under
  14. * the License.
  15. */
  16. package com.vaadin.osgi.liferay;
  17. import javax.portlet.Portlet;
  18. import com.vaadin.ui.UI;
  19. /**
  20. * Constants for Liferay {@link Portlet portlets}. This doesn't have to be used
  21. * by the application developer.
  22. *
  23. * @author Vaadin Ltd.
  24. * @since 8.1
  25. */
  26. public final class PortletProperties {
  27. private PortletProperties() {
  28. }
  29. /**
  30. * Property key for the Liferay category property. By default this is
  31. * "category.vaadin"
  32. */
  33. public static final String DISPLAY_CATEGORY = "com.liferay.portlet.display-category";
  34. /**
  35. * Property key for the name of the {@link Portlet}. It is recommended to
  36. * use something like the bundle symbolic name and a version string appended
  37. * for the value of this property as this is used as a {@link Portlet} id.
  38. */
  39. public static final String PORTLET_NAME = "javax.portlet.name";
  40. /**
  41. * Property key for the {@link UI} visible name of the {@link Portlet}.
  42. */
  43. public static final String DISPLAY_NAME = "javax.portlet.display-name";
  44. /**
  45. * Property key for the security roles mapped to the {@link Portlet}.
  46. */
  47. public static final String PORTLET_SECURITY_ROLE = "javax.portlet.security-role-ref";
  48. /**
  49. * This property is used to mark the UI service as a {@link Portlet}
  50. * {@link UI}. The value of this property must be non-null and will be
  51. * ignored but must be present to use the {@link UI} as a {@link Portlet}.
  52. *
  53. * <p>
  54. * The alternative is to simply annotate the {@link UI} with
  55. * {@link VaadinLiferayPortletConfiguration}.
  56. */
  57. public static final String PORTLET_UI_PROPERTY = "com.vaadin.osgi.liferay.portlet-ui";
  58. }