Menu

لڑکیوں کا ختنہ کروانا | Ladkiyon ka Khtana karwana

Question ID : 155853

Fatwa:176-197/M=3/1439 | Darul Uloom Deoband

:سوال
کیا لڑکیوں کا ختنہ کروانا ضروری ہے؟ یا کہیں سے ثابت ہے کہ ان کا ختنہ کیا جائے؟ بالتفصیل بتائیں۔ اور اگر قرآن و حدیث سے ثابت ہو تو اس کا حوالہ بھی دیں۔

:جواب
لڑکیوں کا ختنہ کروانا ضروری نہیں ہے اور لڑکوں کی طرح سنت بھی نہیں ہے۔


از: وقار علی غفرلہ، نائب مفتی 16/2/1439
الجواب صحیح: حبیب الرحمن عفا اللہ عنہ، محمود حسن بلند شہری غفرلہ
مفتیانِ دارالافتاء، دارالعلوم دیوبند

Purchase of Alaska region

Alaska was earlier part of the Russian Empire. Russia sold Alaska to the United States for 7.2 million US dollars in the year 1867. The Senate approved the treaty of purchase on April 9; President Andrew Johnson signed the treaty on May 28, and Alaska was formally transferred to the United States on October 18, 1867.


Reference

Alaska Map
Alaska part of United States | Picture @ Al Jazeera News

How to create a node or drop component in AEM using java program?

A simple and easy java code to create/add a node or drop a component in AEM.

In this tutorial, we are dropping an AEM component on AEM page (in a parsys or under a specific node) programmatically. To complete this requirement, we have to write code as follows:

First, we have to create an object of ResourceResolver either using ResourceResolverFactory or using session. In this example, we use ResourceResolverFactory interface service API to create the object of ResourceResolver to get the resource from AEM. (code snippet line # 6)
Now we will get the resource using ResourceResolver and adapt that resource in a JCR Node type, so we can deal with that resource and perform manipulation. ResourceResolver has a method getResource resource which makes AME resource available for manipulation. getResource() method required a relative to as parameter to get that resource. (code snippet line # 7)
Then using JCR API we will add a node under that resource/Node with its name(component name) and type(component type). (code snippet line # 8)
After that, we will set all the required property for that component. (code snippet line # 9-13)

Below is the complete code to drop a component in AEM using java. If you have any doubt please comment your doubt and questions in the comment section.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
@Reference
private ResourceResolverFactory resolverFactory;
ResourceResolver resolver;
private void addNodeOrComponentInAEM() {
 try {
  resolver = resolverFactory.getServiceResourceResolver(null);
  Node jcrContent=resolver.getResource("/content/we-retail/ca/en/men/jcr:content").adaptTo(Node.class);
  Node nextbuttonNode=jcrContent.addNode("nextButton","nt:unstructured");
  nextbuttonNode.setProperty("buttonType", "submit");
  nextbuttonNode.setProperty("componentName", "coralButton");
  nextbuttonNode.setProperty("fieldId", "submit");
  nextbuttonNode.setProperty("fieldLabel", "Next");
  nextbuttonNode.setProperty("sling:resourceType", "granite/ui/components/coral/foundation/button");
  
 } catch (Exception e) {
  
 } 
}