aboutsummaryrefslogtreecommitdiffstats
path: root/liferay-integration/src/main/java/com/vaadin/osgi/liferay/PortletProperties.java
blob: 534573f7357bf8a7ea964b670c1a0ac5105ea296 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
 * Copyright 2000-2022 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";
}