/
WikiGroupServiceConfiguration.java
179 lines (149 loc) · 5.39 KB
/
WikiGroupServiceConfiguration.java
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
/**
* SPDX-FileCopyrightText: (c) 2000 Liferay, Inc. https://liferay.com
* SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
*/
package com.liferay.wiki.configuration;
import aQute.bnd.annotation.metatype.Meta;
import com.liferay.portal.configuration.metatype.annotations.ExtendedObjectClassDefinition;
import com.liferay.portal.kernel.settings.LocalizedValuesMap;
import org.osgi.annotation.versioning.ProviderType;
/**
* @author Iván Zaera
*/
@ExtendedObjectClassDefinition(
category = "wiki", scope = ExtendedObjectClassDefinition.Scope.GROUP
)
@Meta.OCD(
id = "com.liferay.wiki.configuration.WikiGroupServiceConfiguration",
localization = "content/Language",
name = "wiki-group-service-configuration-name"
)
@ProviderType
public interface WikiGroupServiceConfiguration {
/**
* Set the default wiki format.
*/
@Meta.AD(deflt = "creole", name = "default-format", required = false)
public String defaultFormat();
@Meta.AD(
deflt = "${server-property://com.liferay.portal/admin.email.from.address}",
name = "email-from-address", required = false
)
public String emailFromAddress();
@Meta.AD(
deflt = "${server-property://com.liferay.portal/admin.email.from.name}",
name = "email-from-name", required = false
)
public String emailFromName();
@Meta.AD(
deflt = "${resource:com/liferay/wiki/configuration/dependencies/email_page_added_body.tmpl}",
name = "email-page-added-body", required = false
)
public LocalizedValuesMap emailPageAddedBody();
@Meta.AD(
deflt = "true", name = "email-page-added-enabled", required = false
)
public boolean emailPageAddedEnabled();
@Meta.AD(
deflt = "${resource:com/liferay/wiki/configuration/dependencies/email_page_added_subject.tmpl}",
name = "email-page-added-subject", required = false
)
public LocalizedValuesMap emailPageAddedSubject();
@Meta.AD(
deflt = "${resource:com/liferay/wiki/configuration/dependencies/email_page_updated_body.tmpl}",
name = "email-page-updated-body", required = false
)
public LocalizedValuesMap emailPageUpdatedBody();
@Meta.AD(
deflt = "true", name = "email-page-updated-enabled", required = false
)
public boolean emailPageUpdatedEnabled();
@Meta.AD(
deflt = "${resource:com/liferay/wiki/configuration/dependencies/email_page_updated_subject.tmpl}",
name = "email-page-updated-subject", required = false
)
public LocalizedValuesMap emailPageUpdatedSubject();
@Meta.AD(deflt = "true", name = "enable-rss", required = false)
public boolean enableRss();
/**
* Set the name of the default page for a wiki node. The name for the
* default page must be a valid wiki word. A wiki word follows the format of
* having an upper case letter followed by a series of lower case letters
* followed by another upper case letter and another series of lower case
* letters. See http://www.usemod.com/cgi-bin/wiki.pl?WhatIsaWiki for more
* information on wiki naming conventions.
*/
@Meta.AD(deflt = "FrontPage", name = "front-page-name", required = false)
public String frontPageName();
@Meta.AD(
deflt = "ckeditor_creole", name = "get-creole-editor", required = false
)
public String getCreoleEditor();
@Meta.AD(deflt = "ckeditor", name = "get-html-editor", required = false)
public String getHTMLEditor();
/**
* @deprecated As of Mueller (7.2.x), with no direct replacement
*/
@Deprecated
@Meta.AD(deflt = "simple", name = "get-media-wiki-editor", required = false)
public String getMediaWikiEditor();
/**
* Set the name of the default node that will be automatically created when
* the Wiki portlet is first used in a site.
*/
@Meta.AD(deflt = "Main", name = "initial-node-name", required = false)
public String initialNodeName();
@Meta.AD(deflt = "true", name = "page-comments-enabled", required = false)
public boolean pageCommentsEnabled();
/**
* Set this to <code>true</code> to enable social activity notifications on
* minor edits of a wiki page.
*/
@Meta.AD(
deflt = "true", name = "page-minor-edit-add-social-activity",
required = false
)
public boolean pageMinorEditAddSocialActivity();
/**
* Set this to <code>true</code> to enable email notifications on minor
* edits of a wiki page.
*/
@Meta.AD(
deflt = "false", name = "page-minor-edit-send-email", required = false
)
public boolean pageMinorEditSendEmail();
/**
* Specify the supported protocols for the Creole parser.
*/
@Meta.AD(
deflt = "ftp://|http://|https://|mailto:|mms://",
name = "parsers-creole-supported-protocols", required = false
)
public String[] parsersCreoleSupportedProtocols();
/**
* Set this to <code>true</code> to enable the highlighting of links in
* creole format to unexisting wiki pages.
*/
@Meta.AD(
deflt = "false", name = "enable-highlight-creole-format",
required = false
)
public boolean enableHighlightCreoleFormat();
@Meta.AD(deflt = "200", name = "rss-abstract-length", required = false)
public int rssAbstractLength();
@Meta.AD(
deflt = "${server-property://com.liferay.portal/search.container.page.default.delta}",
name = "rss-delta", required = false
)
public String rssDelta();
@Meta.AD(
deflt = "${server-property://com.liferay.portal/rss.feed.display.style.default}",
name = "rss-display-style", required = false
)
public String rssDisplayStyle();
@Meta.AD(
deflt = "${server-property://com.liferay.portal/rss.feed.type.default}",
name = "rss-feed-type", required = false
)
public String rssFeedType();
}