Menu

Grant other AEM user to Apache Felix web console

By default only admin user have access to open the Apache Felix web console. Most of the time people have requirement to grant other users and group of users as well to manage the Felix console, so granted users also can read the write the configurations.

How to grant other user to Apache Felix


Apache Sling Web Console Security Provider is a configuration in Apache Felix [http://localhost:4502/system/console/configMgr] where we need to add other users to whom we want to allow access to Apache Felix web console.

Configuration for the security provider used to verify user credentials and grant access to the Apache Felix Web Console based on registered JCR Repository users.

Apache Sling Web Console Security Provider - Apache Felix restriction
Apache Sling Web Console Security Provider

Persistent Identity (PID): 

org.apache.sling.extensions.webconsolesecurityprovider.internal.SlingWebConsoleSecurityProvider

User Names 

Names of users granted full access to the Apache Felix Web Console. By default this lists the "admin" user. A maximum of 20 users may be configured. Administrators are encouraged to create a group whose members are to be granted access to Web Console instead of allowing access to individual users. (users)

Group Names 

Names of groups whose members are granted full access to the Apache Felix Web Console. The default lists no groups. Administrators are encouraged to create a group whose members are to be granted access to the Web Console. A maximum of 20 groups may be configured. Using groups to control access requires a Jackrabbit based repository. (groups)

Recursive method in Java

How to write a recursive method in Java?

Below is the code snippet of a recursive method in Java to generate numbers and check the number and execute the method again. In the below example printNumber() is a recursive method that will get called inside its own body.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package rashidjorvee;

public class RecursiveMethod {

 public static void main(String[] args) {

  RecursiveMethod recursiveMethod=new RecursiveMethod();
  recursiveMethod.printNumber(2);

 }
 private void printNumber(int j) {
  try {
   int i=j; 
    if(i==2) {
     printNumber(4);
    }
    System.out.println("Number "+i);
    }
  catch(Exception e) {

  }
 }
}

List of all the AEM components

List of all the AEM component and detail of that component and where all this component is being used.

First, navigate to the components path using the below URI.
http://localhost:4502/libs/wcm/core/content/sites/components.html

From right-hand side apply the filters on the basis of site path and group to get the filtered list of components.
http://localhost:4502/libs/wcm/core/content/sites/components.html
Components in AEM

From the filtered list select your component or click on the name of the component to open the detail of that component in AEM.


Now move to Live usage tab to view the list of pages where this component is dropped.