Wisata Pulau Seribu » Discussions


Oracle UCM Java Filters

  • December 9, 2021
    Filters are a way to add your own custom logic or java code to the content server to get the required behaviour.
    As Bex explained in his book, Filters trigger the execution of custom code when specific events occur in content server, ex : validateStandard occurs during check-in .

    In the following example i would use the very simple java filter, which generates the ContentID with a custom prefix [based on the ContentType value chosen during Check-in]. and we want to insert that logic during content check-in.

    Steps to follow:
    1. I would first create a custom component in ComponentWizard and name it AlterPrefix.
    2. Write the logic to add a prefix the ContentID sequence with the content type.[use the idcserver.jar* file to properly compile and execute the java file ]
    3. place the compiled '.class' file under 'classes' folder under custom component [AlterPrefix] Directory.
    4. add the java class name and the filter where you want to execute your code.

    1. Create a component in CompWizard as AlterPrefix.


    2. Write the java code : [i used Eclipse IDE]




    2.a Add the jar file idcserver.jar to the project


    3. place the .class file under 'classes' folder


    4. add the filter name to the component's glue file under 'Filters' result set section. filter name = 'preComputeDocName'







    enable the custom component in the UCM and restart the server.


    Now Once you check-in a content in UCM , the above event is triggered during check-in and it looks into the component .hda file which has the filter preComputeDocName and also for the Location of the custom code to be executed - which is mentioned as - - alterprefix.CustomFilter.
    eventually , following the java code , it takes the content type and prefixes as shown below

    I check-in a content choosing the type as utilities:





    and the custom java filter add the prefix as shown below :








    Hope this made a clear and simple example about adding a custom java code to content server using Filters.
    personally , i feel that it takes equal effort to find and decide the right filter for the job as with the logic , depending on the requirement.

    * You can find the idcserver.jar file at "Oracle\\Oracle_ECM1\ucm\idc\jlib" under your ucm installation directories
  • December 9, 2021
    The filter in your HVAC system has two jobs. It stops undesired particles from entering the ductwork and passing over the internal components, namely the coils. The second job is to clean the air by removing dust and airborne particles which improves the indoor air quality. Let's talk filters. check the website
  • March 10, 2022
    wheres your rss feed? probably concealed within basic sight understanding me lol. Canada Visa Online
  • March 13, 2022
    There are a couple of interesting points with time in this posting but I do not know if I see these people center to heart. There exists some validity but I’m going to take hold opinion until I check into it further. Great write-up , thanks and we want a lot more! Included with FeedBurner as well fake Gucci wallets
  • March 14, 2022
    thank you for a really fascinating read, i hope you would do a follow up article considering i can never go through enough on this topic インドのビジネスビザ
  • March 20, 2022
    Whats tough now is how the systematic appearance to life is not changed. Do you know what I’m saying? It’s nearly as if we run through the life experience with our eyes closed on, not understanding the true meaning of our own destiny. ufabet เข้าสู่ระบบ
  • March 22, 2022
    Very nice site, I just came to know of it yesterday evening. Bookmarked this and also stumbled upon it. Thanks a lot,You had some nice ideas in the post, I enjoyed scaning it. joker918kiss
  • March 27, 2022
    Hello! I just now would choose to make a massive thumbs up for any great info you’ve got here with this post. I am returning to your blog site for further soon. 인도 비자 온라인
  • April 6, 2022
    I have read some good stuff here. Certainly worth bookmarking for revisiting. I wonder how much effort you put to create such a magnificent informative website. 토토사이트코드
  • April 11, 2022
    There’s no doubt that, a man or woman until they offer trust, or simply allow individuals trust. Imlil Day Trip