/
DLGoogleDriveCompanyConfiguration.java
75 lines (67 loc) · 2.29 KB
/
DLGoogleDriveCompanyConfiguration.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
/**
* 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.document.library.google.drive.configuration;
import aQute.bnd.annotation.metatype.Meta;
import com.liferay.portal.configuration.metatype.annotations.ExtendedAttributeDefinition;
import com.liferay.portal.configuration.metatype.annotations.ExtendedObjectClassDefinition;
/**
* @author Adolfo Pérez
*/
@ExtendedObjectClassDefinition(
category = "documents-and-media",
scope = ExtendedObjectClassDefinition.Scope.COMPANY
)
@Meta.OCD(
id = "com.liferay.document.library.google.drive.configuration.DLGoogleDriveCompanyConfiguration",
localization = "content/Language", name = "google-drive-configuration-name"
)
public interface DLGoogleDriveCompanyConfiguration {
/**
* Returns the client ID of the Google application to use when operating on
* Google Drive files. If <code>null</code> or empty, the Google Drive
* integration disables itself.
*
* @return the client ID
*/
@ExtendedAttributeDefinition(
descriptionArguments = "https://console.developers.google.com/apis/credentials/oauthclient",
requiredInput = true
)
@Meta.AD(
description = "client-id-description", name = "client-id",
required = false
)
public String clientId();
/**
* Returns the client secret of the Google application to use when operating
* on Google Drive files. If <code>null</code> or empty, the Google Drive
* integration disables itself.
*
* @return the client secret
*/
@ExtendedAttributeDefinition(
descriptionArguments = "https://console.developers.google.com/apis/credentials/oauthclient",
requiredInput = true
)
@Meta.AD(
description = "client-secret-description", name = "client-secret",
required = false
)
public String clientSecret();
/**
* Returns the API Key of the Google Drive Picker API If <code>null</code>
* or empty, the Google Drive Shortcut integration disables itself.
*
* @return the api key
*/
@ExtendedAttributeDefinition(
descriptionArguments = "https://console.developers.google.com/flows/enableapi?apiid=picker&credential=client_key"
)
@Meta.AD(
description = "picker-api-key-description", name = "picker-api-key",
required = false
)
public String pickerAPIKey();
}