Expand my Community achievements bar.

subnaik
subnaik
Offline
Type
  • All
  • Questions
  • Discussions
  • Ideas
  • Blogs
Filter by user contributions
  • Thanks Diksha, Here my scenario is that I am hitting one Servlet (http://localhost:4502/bin/content/api/getChildNodes?type=grb&uuid=078b036a-d536-5b8e-9893-94c92041f4d3)  and this servlet is calling the below GetChildNodesServiceImpl class and the code is below. *************************************...

    Type

    Discussions

    Views

    306

    Like

    1

    Replies

    0
  • Dear All, I have written one getchildnodesIMPL service class for which trying to write JUNIT and written the below JUNIT. But in my code coverage it is not taking. *************** JAVA Class ****************private void extracted(ResourceResolver resourceResolver, Node rootNode, JsonObject jsonObjec...

    Type

    Discussions

    Views

    374

    Like

    1

    Replies

    2
  • Hi All, I am doing upload asset through below service and written below code.  import java.io.BufferedReader; import java.io.ByteArrayInputStream; import java.io.InputStream; import java.nio.charset.StandardCharsets; import java.util.Base64; import java.util.HashMap; import java.util.Map; import or...

    Type

    Questions

    Views

    391

    Likes

    0

    Replies

    2
  • Hi All, I have written one custom jQuery for my Customized Content Fragment. Inside this custom Jquery I want to call the dropdown value and on change dropdown value it will show the text field. For example, in My dropdown 3 values are there called Article, Casestudy and External Link. So when someb...

    Type

    Questions

    Views

    501

    Likes

    0

    Replies

    1
  • Hi All, I have written one custom jQuery for my Customized Content Fragment. Inside this custom Jquery I want to call the dropdown value and on change dropdown value it will show the text field. For example, in My dropdown 3 values are there called Article, Casestudy and External Link. So when someb...

    Type

    Questions

    Views

    376

    Likes

    0

    Replies

    1
  • Dear all,I have one simple service implementation class called ResourceResolverServiceImpl and I want to write JUNIT test class for this. I am very new to this JUNIT test. ************************* ResourceResolverServiceImpl Class *********************import test.contentadmin.core.service.ResourceR...

    Type

    Questions

    Views

    239

    Likes

    0

    Replies

    1
  • Dear all,My issue is resolved. Just adding below line of code in bold testLocationString = testLocationString .replace("name", "communityName"); for (String testLocationString : testLocationsStringArray) { testLocationString = testLocationString .replace("name", "communityName"); JsonObject tes...

    Type

    Questions

    Views

    766

    Likes

    0

    Replies

    0
  • Hi Tanika, Yes I have all imports . But I think you are not clear with my requirement. let me tell you once again. I need to change only name to communityName marked as bold, like here. can we use something like replace "or" anything else rather than so much code. if (communityLocation.has(LOCATION_...

    Type

    Questions

    Views

    799

    Likes

    0

    Replies

    0
  • Hi @Tanika02  and all I changes in my Java class, as shown below , but it is coming error , as shown below  Also I am not sure why you put system.out.println as in AEM it is not working.private void settestLocations(Resource masterResource, Node masterNode, CommunityPublishModel testModel) throws Re...

    Type

    Questions

    Views

    820

    Likes

    0

    Replies

    2
  • Hi All, I have customized CF model, as shown below.   NOTE - My location Name value is coming from database I have written the JSON and in JSON my location name is coming like below.************* JSON **************"testLocations":{"City":[{"id":"161341","name":"Badarganj"}],"Country":[{"id":"157031...

    Type

    Questions

    Views

    855

    Likes

    0

    Replies

    5
Top badges earned by subnaik
Customize the badges you want to showcase on your profile