Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM - Create custom OSGi Configuration | AEM Community Blog Seeding

Avatar

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,157 likes

Total Posts

6,247 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile

Avatar
Establish
Community Manager
kautuk_sahni
Community Manager

Likes

1,157 likes

Total Posts

6,247 posts

Correct Reply

1,144 solutions
Top badges earned
Establish
Coach
Originator
Contributor 2
Contributor
View profile
kautuk_sahni
Community Manager

03-06-2021

BlogImage.jpg

AEM - Create custom OSGi Configuration by Adobe Docs

Abstract

Introduction
Create custom OSGi configuration to capture the credentials of your document cloud account

To make a custom OSGi configuration, we need to first create an interface whose public methods will represent the fields in the configuration.

Create an interface named DocumentCloudConfiguration and paste the following code in it.

package com.aemforms.doccloud.core;

import org.osgi.service.metatype.annotations.AttributeDefinition;
import org.osgi.service.metatype.annotations.ObjectClassDefinition;

@ObjectClassDefinition(name="Document Cloud Service Configuration", description = "Connect AEM Forms With Document Cloud")
public @interface DocumentCloudConfiguration {
@AttributeDefinition(name="Client ID", description="Client ID")
String getClientID() default "";

@AttributeDefinition(name="Client Secret", description="Client Secret")
public String getClientSecret() default "26dc4de1-f7f0-46b6-9e8e-86270ad34f58";

@AttributeDefinition(name="Technical Account ID", description="Technical Account ID")
public String getTechnicalAccount() default "42FF05A7606F71BB0A495FBE@techacct.adobe.com";

@AttributeDefinition(name="Organization ID", description="Organization ID")
String getOrganizationID() default "299805FF5FC9199D0A495EBC@AdobeOrg";

@AttributeDefinition(name="Metascope", description="Metascope")
String getMetascope() default "ent_documentcloud_sdk";


}

Read Full Blog

AEM - Create custom OSGi Configuration

Q&A

Please use this thread to ask the related questions.

AEM AEMIBlogSeeding Experience Manager