Searching the doucments in KM repository

Hi Experts,
I need to implement custom search using WD java  where as user should be able to search the documents from KM repository for
the particular folders and it depends upon the date and his username. how can i achieve this could you please help me the same.
Thanks in Advance,

Hi,
I suppose you don't have problem with UI. So searching in KM can be done
      // instance indexmanagement service
      IIndexService indexService =
        (IIndexService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.INDEX_SERVICE);
      // build a query object, using the SearchQueryBuilder
      SearchQueryListBuilder sqb = new SearchQueryListBuilder();
      sqb.setSearchTerm(p_queryString);
      IQueryEntryList qel = sqb.buildSearchQueryList();
      // get an instance of federated search
      IFederatedSearch federatedSearch =
        (IFederatedSearch) indexService.getObjectInstance(IWcmIndexConst.FEDERATED_SEARCH_INSTANCE);
      List indexList = new ArrayList();
      indexList = indexService.getActiveIndexes();
      // it is recommended to use a search session object
      // for searching execution
      ISearchSession session = federatedSearch.searchWithSession(qel, indexList, p_context.getResourceContext());
      IResourceListFilter resFilter = new CustomResourceFilter();
      ISearchResultList results = session.getSearchResults(p_from, p_to, resFilter, null);
where CustomResourceFilter is:
public class CustomResourceListFilter implements IResourceListFilter {
  private IResourceListFilterService resourceListFilterService;
  public CustomResourceListFilter() {
    resourceListFilterService = null;
  /* (non-Javadoc)
   * @see com.sapportals.wcm.service.resourcelistfilter.IResourceListFilter#filterResourceList(com.sapportals.wcm.repository.IResourceList, com.sapportals.wcm.repository.service.layout.customizing.IParameters)
  public void filterResourceList(IResourceList list, IParameters parameters) throws WcmException {
    applyBaseResourceListFilter(list, parameters);
    IResourceList resultList = new ResourceList();
    IResource resource = null;
    IResourceListIterator iterator = list.listIterator();
    while (iterator.hasNext()) {
      resource = iterator.next();
      if (USE_YOUR_CONDITION_HERE_ON_RESOURCE) {
        resultList.add(resource);
    list.addAll(resultList);
  /* (non-Javadoc)
   * @see com.sapportals.wcm.service.resourcelistfilter.IResourceListFilter#getNewInstance()
  public IResourceListFilter getNewInstance() {
    return new ZpozdeniResourceListFilter();
  private IResourceList applyBaseResourceListFilter(IResourceList list, IParameters parameters) {
    try {
      if (resourceListFilterService == null)
        resourceListFilterService =
          (IResourceListFilterService) ServiceFactory.getInstance().getService("ResourceListFilterService");
    } catch (Exception e) {
     // DO SOMETHING
      return list;
    try {
      resourceListFilterService.getStandardResourceListFilter().filterResourceList(list, parameters);
    } catch (Exception e) {
     // DO SOMETHING
    return list;
Romano

Similar Messages

  • Failed to search the log and log repository using Application Server Contro

    I installed the OAS 9.0.4(10g) and tried to use Application Sever Control to search the log files or log repository. However, each time I clicked the Search button, the error page showed the following messages:The operation cannot be performed because the page contains expired data. The data will be automatically refreshed so you can try your operation again.
    I checked the emias.log and something like following existed:
    ERROR chart.EmChartCacheWorker getCachedChart.505 - EmChartCacheWorker.getCachedChart: 4abdc63146b7578d9853d1adc2aec4245fbf113b.png
    EXCEPTION: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
    2004-09-14 11:27:37,414 [HttpRequestHandler-24691856] ERROR chart.EmChartBean getChartImage.2662 - ERROR generating chart image: java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart4abdc63146b7578d9853d1adc2aec4245fbf113b.png.png (No such file or directory)
    2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2655 - EXCEPTION while generating chart image [id]: 030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png
    2004-09-14 11:27:37,422 [HttpRequestHandler-30430942] ERROR chart.EmChartBean getChartImage.2658 - java.io.FileNotFoundException: /home/oas/product/OAS904/sysman/webapps/emd/images/chartCache/chart030ddc5b70a789c374eb11e2ae97ac8c79441f5b.png.png (No such file or directory)
    I searched the directory specified in the emias.log and found it was empty!
    So what should I do to avoid this problem?
    Thanks in advance!

    Thank you.
    When you fire the processes to the report server you
    can trace the report with the following parameter:
    RWCLIENT.EXE SERVER=my_server
    TRACEFILE=c:\my_trace.trc
    TRACEMODE=TRACE_REPLACE
    TRACEOPTS=TRACE_ALL

  • Problem in searching the document

    Hi Experts,
    We've uploaded a ppt file into our KM repository. Similarly we've uploaded some other files (txt, doc, etc..) at the same location. But the problem here is, when we are searching the ppt document with search option the document (ppt) is not getting displayed. We are able to search other documents  (txt, doc, etc..) which are resided in the same folder.
    I've checked index information of the ppt file and found below information for the Service types: Clasification, the status of resource is : OK index operation.But for the service types: Search, the satus of resource is: No information available.
    No schedule was defined for the index and we are able to fetch all other documents from different folders under the same repository.
    What could be the problem.
    Best Regards,
    Satya

    Hi,
    Check the Crawler Parameters if a Resource Filter is assigned to it:
    http://help.sap.com/saphelp_nw70/helpdata/EN/46/5d5040b48a6913e10000000a1550b0/frameset.htm
    Here is how the Resource Filter can exclude files from Crawling.
    http://help.sap.com/saphelp_nw70/helpdata/EN/c0/6f5040b48a6913e10000000a1550b0/frameset.htm
    Regards,
    Praveen Gudapati

  • How do I delete photo ALBUMS from my iPHONE 4? I sync via icloud and I can not see any folders selected in itunes. I searched the internet and basically there is no one who has the answer to how you delete the iphone photo library and misc albums

    how do I delete photo ALBUMS from my iPHONE 4?
    I sync via icloud and I can not see any folders selected in itunes.
    I searched the internet and basically there is no one who has the answer (so far)
    to how you delete the iphone photo library and misc albums
    I have also had every iphone and I am not stupid.
    charles altman

    Replying to my own post - heh. I downloaded iExplorer (http://www.macroplant.com/iexplorer/) which allowed me access to the files on the phone and there was the phantom movie in the DCIM folder. Deleted it, and all is well - although I still have 0.65gb of Other in iTunes.....

  • I want to install Viber onto my iPhone.  When I search the web it tells me viber is Free but my phone is asking if I want to purchase viber.  What do I do?

    I am trying to install Viber on my new iPhone4.  After searching the internet it tells me that installation of Viber is FREE but my phone is asking me "Do I still want to buy and download Viber"  Am I doing something wrong or do I have to pay for something that appears should be FREE????

    Hi,
    This is a representative of Viber.
    As mentioned above, Viber is free, and will always remain free. No need to worry
    Viber.

  • Hello  I don't know who to complain to as you do not appear to have a complaints department, despite searching the web, I trust you can pass this to relevant department for action, as I'm very angry over my recent repair.  Following my issue relating to a

    Hello
    I don't know who to complain to as you do not appear to have a complaints department, despite searching the web, I trust you can pass this to relevant department for action, as I'm very angry over my recent repair.
    Following my issue relating to a blank screen 2 weeks ago, your advisor arranged for my iMac to collected by Amsys, for repair and return, this was done and it was returned to me last Tuesday, onWednesday I set up my iMac again and instantly realised I had problems, much worse than before. I called Amsys to inform them of the issue of the computer being very very slow and unable to open iPhoto and pages, and document listing would not show up, plus I had no sound on the mac.They informed me that they had only replaced the video card and what they had done would have not affected the computers performance. He suggested I reinstall OSX again which I did, but this made no difference to the programs, so I called you.
    Your technician on the phone was very good as they have always been, and made an appointment for me to go into the Milton Keynes Apple store the next day at 1 pm, which I did.
    The gentleman on the Genius Bar was very good and was able to run tests on the iMac in my presence, and diagnosed immediately an issue with the sound problem, and advised me that this could not be fixed while I wait and I would need to leave it for repair. I made him aware of the previous repair, and he was able to see via your system, the list of logged issues I have had with this since purchasing in September 2012. I'm sure you can see from the way you record all calls and issues the problems I have had.
    Today I called to ask if my iMac would soon be ready for collection, I was told the repairs had been completed and it was being tested. However to my dismay, I learned of another serious issue relating to the repair carried out by Amsys. I was informed that 6 screws were missing from the the iMac internally, which caused me much distress and concern, they also told me I had to wait even longer as the screws had to be ordered and installed on arrival before I could collect it.
    My issues here are: I trusted the Amsys repairer as it was arranged and recommend by you, it is very evident they are not competent to repair, as they have caused more problems with my iMac on its return, despite enclosing a checklist, fully ticked showing everything working well, it clearly wasn't ! Plus the issue of missing parts (screws) during the repair, I have already expressed my disgust with Amsys, by email and had a response, within the hour, apologising and told me they were looking into this.
    This where I stand on this, I have not had my iMac for  almost two weeks and I do not know when I will get it back. I'm also very worried about what other damage has been caused by Amsys and the quality of my iMac now. I want to know what you, Apple is going to do about this ? I have already been very inconvenienced by this and until now I have been a very loyal apple customer with 2 iPads, and 4 iPhones in our household, not to mention the iMac.
    I feel I have been very let down by this experience, on my iMac, which cost a lot of money, I have also lost a lot of money with lost work and unable to carry out my business without it, and I will be seeking compensation.
    I trust you will take this complaint seriously and pass it to the relevant department for action.
    Yours sincerely
    Des Withey 
    Sent from my iPad
    On 26 Feb 2014, at 11:44, Apple Support <[email protected]> wrote:
    Thanks for contacting us.
    Thanks for contacting Apple Support. If you need more help later, you can open the case below or start a new support request online.
    Case ID:
    Open this case
    Sincerely,
    Apple Support
    Get help online
    Visit Apple Support to learn more about your product, download software updates, and much more.
    Join the conversation
    Find and share solutions with Apple users around the world.
    TM and copyright © 2014 Apple Inc. 1 Infinite Loop, MS 96-DM, Cupertino, CA 95014.
    All Rights Reserved / Privacy Policy / Apple Support / Give us feedback
    On behalf of Apple Distribution International

    Call Apple Customer Relations - 1-800-275-2273.  Ask politely & firmly that you want to be transferred to Customer Relations.  Tell them exactly what you stated in your post.
    GOOD LUCK!
    These are user-to-user forums where everyday folk (volunteers) post questions and offer answers (technical support) to each other.  

  • The on page search is ONLY working from top down. Search the previous doesn't work at all. I've been using firefox v.3 till now and it ain't work at all. Can you fix it???

    Just do a on page search (bring up the search bar). type a word and start searching. The search will not work until you specifically click on the page and put the cursor in the page. Why do i have to do that since i'm already viewing the page and i intend to do search??
    Once you are searching the word, click on the 'Previous' button to go to previous found word. This button NEVER work since i started using firefox v.3 till now!!! Hello, pls improve your search. Go take a look at IE same page search.

    From the Firefox help files;<BR><BR>
    Try disabling graphics hardware acceleration. Since this feature was added to Firefox, it has gradually improved, but there still are a few glitches.

  • Error 0x80090318 and lots of other errorsI live in Iran  Yesterday i wanted to use itunes store for windows ; when i have open itunes it gives me the error 0x80090318 .  I have search the wb alot and i have check lots of Iranian and English website but ha

    I live in Iran
    Yesterday I wanted to use iTunes store for windows ; when i have open iTunes it gives me the error 0x80090318 .
    I have search the web alot and i have check lots of Iranian and English website but have not find any solution for
    this problem . Today I have find a software called "Hide my IP" i have opened up that
    when this software was opened , itunes have said "iTunes can't verify the identify of the server "init.itunes.apple.com"".
    then i have click on "continue" then iTunes said "iTunes could not connect to the iTunes Store. An unknown error occurred (310)."
    And theres a matter that i think that have a connection with this topic and thats , that when i want to go to the lots
    of websites like Google Yahoo! Mail and lots of other website my both browser ( FireFox and IE ) will say" This connection is untrusted " .
    I think the solution of my second problem is the solution of my first problem too !

    Tried all the rest on this site did not work for me
    Follow the link below & this one sorted it for me, it was a conflict in programs using Winsock & I got rid of my old program,
    Sorted.
    http://support.apple.com/kb/TS4123
    Tom Ireland

  • Songs only appear on my phone when i search the album rather than appear when i select the artist, how can i put them on the artist as well?

    songs appear when i search the album on my phone but not under the artist, how can i change it so they show in the artist section as well?

    Wish I did. I tried the group function but that didn't help in iTunes. The search function is the best I came up with. I can answer the question do you have susch and such artist. But I can't browse for an artist I don't remember exactly or have misspelled. Fortunately I don't think I've bought anything from iTunes that i already had. If you can't see an artist it's possible you think you don't have something you actually do have. Sorry, still hoping for a better work around or better yet a fix.

  • How can I reliably search the "Notes" field in iOS?

    I know this isn't strictly an Applescript question, but I've found that the level of knowledge in this particular section of the boards is WAAAAAYYY higher than other sections, so I'm gonna ask this here anyway. FWIW, it does involve AppleScript....
    So I really miss the Palm style contact search by first initial and last name. So I wrote an applescript that runs nightly on my iMac and updates any new contacts to include this search term in the notes field. Actually, to be completely honest, some members of this forum wrote most of the script for me.... Anyway, for instance, Joe Smith has "JSmith" placed into the notes field.
    Now, usually when I search my contacts like this on my iphone it works like a dream. But sometimes the expected contact does not appear. In those cases, if I open the contact a different way (by searching for "Joe Smith," for instance, I find the contact, open it up, and always find that "JSmith" is actually in the notes field. My Applescript is working like clockwork... that's not the problem. Once I close the Joe Smith contact and retry the "JSmith" search, it now works. What gives?
    It's kinda like Spotlight is using a search index for the notes field but not the name itself? And the search index is not getting updated until I manually open the contact? But only on some contacte? Usually it updates itself just fine without my having to open the contact? And then today it failed to find a contact that has had the Palm-seach term in the notes field for at least three weeks. Once I opened it manually, though, it worked.
    So... help! Is there a way to force the iphone to manually rebuild whatever database spotlight is using to search the notes field? What's going on?

    I've turned on BOLD TEXT and turned on REDUCE MOTION but for me it feels like more than just the zooms in and out... I'm getting sick just reading emails and texts or just glancing at the lock screen. It's intant nausea. The only thing I can think of is that it's something to do with refresh rate or frequency of the screen.
    I thought I'd just get used to it but it has not subsided. I only hope I don't have to resort to backgrading to iOS 6 or worse, moving to a different brand of phone.

  • How to search the indexes in 11g Enterprise Manager Console

    Hi,
    After setting the Indexes using Java Embedding for a process, can you please tell me how to search the indexes in 11g Enterprise Manager Console for the particular process.In 10g BPEL Console we have the option of searching the Instances based on Indexes we already set at process level which is inbuilt in 10g. I need the same in 11g .
    Thanks,
    Sagar.

    Hi Sagar,
    You can define composite sensors in your composite.
    Then you will get fields in enterprise manager of that composite instance.(the sensors you have defined will be displayed here)
    You can enter the values based on what you want to search the instance. :)
    Regards
    PavanKumar.M

  • My iPhoto library has suddenly disappeared from my computer. When i click on iPhoto it tells me to choose my library or create a new one. However no library option appears. I have searched the computer for the library but it does not seem to exist

    My iPhoto library has suddenly disappeared from my computer.
    When i click on iPhoto it tells me to choose my library or create a new one. However no library option appears. I have searched the computer for the library but it does not seem to exist anymore. I did not have time machine set up, so there is no back up. Is there any way i can retrieve my library?
    Here is a picture of what appears when i click on iPhoto:

    In terms of searching i have searched for photos on my finder. However, none of the photos that appear are from my iPhoto Library.
    Search with FindAnyFile. You can download it here:   http://apps.tempel.org/FindAnyFile/index.php
    Search for any file with "ThumbJPGSegment" in the name. If you added at least one image to your library, the library should contain a file with this name, see OldToad's post: Re: Since I updated to iPhoto 9.5.1, my library is not listed or available. How can I find it? Can I use the time machine to restore it?

  • Is there a way to access the "Creative Cloud Clipboard" repository outside Adobe Line/Sketch Apps?

    Is there a way to access the "Creative Cloud Clipboard" repository outside Adobe Line/Sketch Apps?
    For instance via (macbookpro) web, local directory (CC desktop), or mobile web? As opposed to Utilizing the feature purely in Adobe line/sketch?
    I mean... I know i could just take screen shots... via the iPad's protocol. However, that would defeat the purpose of creative cloud.
    The point of accessing the creative cloud clipboard, is so that I can create Time-Lapse .GIF's of my drawings, Using the "timeline" feature (undo)....which is amazing feature btw.
    Honestly the solution for me... would be to have an option to export a .GIF (animated), .tiff sequence, or video file (m4a mov). I would say export options would be 1. File Size & Type (Context...) 2. Detail, # of Slides (How long is your timeline, what do you want to show, what level of detail?) 3. Share (Behance, Creative Cloud Files, MMS, iMessage, etc... 4. Open in... Photoshop, Aftereffects etc...
    I think this would be great for..tutorials, multi-media, prototyping (wireframes, character design, etc). So, i'm not saying this should be a heavy set...focal point of the application, after all an animation app all itself would be nice. However, I think a feature like an "interactive timeline" would push users to be even more creative, by hacking, creating ghetto rigged *** backwards ways of prototyping that...actually might be more convenient. This is the story Adobe is trying to tell, the story of process, whats in your head... in the moment. Thats why behance is integrated, because process & feedback + exposure are essential to developing as a creative, so Adobe has put together a great platform...for its users. So, yeah...Adobe.. here's your chance to gain a greater insight into creative process, and integrate it directly into the creative cloud platform. I think it would be huge for Ink & Slide , Behance, and Student-Teacher / Designer- Company relationship.
    "Share | Project Timeline "  "Intervals | # of images"   "Crop | Length (time)"   "Crop | Project Area (artboard?)"
    Yeah this question took a left turn...but hey.... either or.
    EDITS............
    ***You can copy images to creative cloud files....via the share function in ADOBE SKETCH... thats how I made the .gifs im going to attach.***
    ***However, in ADOBE LINE, if you try to copy multiple images of the same project, they do not receive unique filenames, thus replacing all images in the saved sequence****

    First, to answer your initial question - no there is no way to access the clipboard content outside of the apps at this time.
    The idea of exporting a timelapse is very interesting, and something we have been thinking about, but there are already some decent ways to do this. Check out this video of a drawing in Line created by Brian Yap Adobe Ink and Adobe Line Illustration - YouTube
    You can create this kind of video using several of the available apps that let you display your iPad screen on your computer using Airple. Some examples are Reflector http://www.airsquirrels.com/reflector/ and AirServer http://www.airserver.com/

  • 1. How can we search the Forum to see if a question has already been asked? 2. Can I send a Web Page and not just its Link?

    1. How can we search the Forum to see if a question has already been asked? Search goes back to Help and out of the Forum.
    2. Can I send a Web Page and not just its Link? Explorer allows it.

    1. How can we search the Forum to see if a question has already been asked? Search goes back to Help and out of the Forum.
    2. Can I send a Web Page and not just its Link? Explorer allows it.

  • Is it possible to search the client for a file in WebDynpro?

    Hi,
    I need to check inside a WebDynpro application wether a
    file exists on a client or not, befor showing or listing it.
    I have a UNC-Name for the location (e.g.
    servername\dirname\filename.extension).
    Another task would be to browse this directory for all other existing files and dirs and list them.
    Is this at all possible with WebDynpro?
    Or would this only be possible by using the filesystem of
    the applicationserver (e.g. mount the dir on the filesys)?
    Is it possible to launch a client-located script (like VB-Script or such) in WebDynpro?
    (e.g. to search the dir, create a text-file and read this text-file).
    Or are these concepts totally against the security-policies
    of web-based applications?
    Thanks in advance.
    Alf

    Hi Alfred,
    generally web applications run in a sandbox on the client.
    That means that they have no access to the file system.
    To get access you need to install a certificate on the client:
    You create a key with the Java-Tool "Keytool" and sign the application (or the applet) with the Java-Tool "Jarsigner".
    That generates a *.cert file wich you now have to export from the parent system and import onto the client (with Keytool).
    You will find many detilled instructions for this procedure in the internet.
    Unfortunately I don`t know how it works with Web Dynpro.
    Karsten

Maybe you are looking for

  • Nothing is working after ios6 update...help!

    I have updated my iphone 4s to the IOS6 and now i cant get on itunes,app store, safari, twitter, or facebook. I have also lost 2 bars on my service. I dont know what the **** happened. I have tried doing a hard reset and the recently known date/time

  • Why are my email attachments showing as being attached but the recipient does not get an attachment?

    I currently use the Mail program on my MacBook Pro and am having issues with email attachments. I have read through a few forums and I seem to be doing everything correctly but I am still having problems. I have 3 different email accounts that I have

  • How to set the active Step in a process Train using JSF

    I have a process train that I am pointing to a list of steps, I want to be able to set the current step, but cannot find the property to set. Does anyone know how to accomplish this? This process train is for readonly purposes only, no navigation nee

  • How to disable booklet 3g jack audio

    the sound has gone for the speaker... it is too bad for me, i only can hear the sound by headphone... i already update to the newest audio driver, but still the sound is gone T_T

  • What is the best way to make copies of install discs on HD

    I have older OSX versions that are on disc in addition to some older software. I want to have these files stored for when I need to make another boot disc or an install. I want to have them as .dmg files. I guess that is the default that you can open