123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- /*
- * Copyright 2000-2016 Vaadin Ltd.
- *
- * Licensed under the Apache License, Version 2.0 (the "License"); you may not
- * use this file except in compliance with the License. You may obtain a copy of
- * the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
- * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
- * License for the specific language governing permissions and limitations under
- * the License.
- */
- package com.vaadin.osgi.liferay;
-
- import javax.portlet.Portlet;
-
- import com.vaadin.ui.UI;
-
- /**
- * Constants for Liferay {@link Portlet portlets}. This doesn't have to be used
- * by the application developer.
- * <p>
- * This only applies to Liferay Portal 7+ with OSGi support.
- *
- * @author Vaadin Ltd.
- * @since 8.1
- */
- public final class PortletProperties {
- private PortletProperties() {
-
- }
-
- /**
- * Property key for the Liferay category property. By default this is
- * "category.vaadin"
- */
- public static final String DISPLAY_CATEGORY = "com.liferay.portlet.display-category";
-
- /**
- * Property key for the name of the {@link Portlet}. It is recommended to
- * use something like the bundle symbolic name and a version string appended
- * for the value of this property as this is used as a {@link Portlet} id.
- */
- public static final String PORTLET_NAME = "javax.portlet.name";
-
- /**
- * Property key for the {@link UI} visible name of the {@link Portlet}.
- */
- public static final String DISPLAY_NAME = "javax.portlet.display-name";
-
- /**
- * Property key for the security roles mapped to the {@link Portlet}.
- */
- public static final String PORTLET_SECURITY_ROLE = "javax.portlet.security-role-ref";
-
- /**
- * This property is used to mark the UI service as a {@link Portlet}
- * {@link UI}. The value of this property must be non-null and will be
- * ignored but must be present to use the {@link UI} as a {@link Portlet}.
- *
- * <p>
- * The alternative is to simply annotate the {@link UI} with
- * {@link VaadinLiferayPortletConfiguration}.
- */
- public static final String PORTLET_UI_PROPERTY = "com.vaadin.osgi.liferay.portlet-ui";
- }
|