When to use the new file based content repository

In Service Pack 4 there's a new implementation of the CMSPI interfaces which is configured by using the following implementation class:
com.bea.content.spi.internal.FileSystemRepositoryImpl
When should one use this new file based repository versus the existing one (configured by using the following class: com.bea.content.spi.internal.RepositoryImpl).
I've read the edocs, but it doesn't state when to use this new one compared to the previous implementation.
We consider using a third party content repository, but for the time being we will use the content repository provided by BEA.
Trond Andersen, Invenia AS, +4798290811

use the new keyword when you don't have an instance of that object in memory that you want to use.  For example...
if you have an object already in memory that is holding a property with a "CamelQuery" object, then you can say 
var query = myobject.Query;
however, if you have to write the query, or instantiate the object from nothing, then you need to use the "new" keyword.  A good example is SPSite object...
if you can get a new SPSite object by either "newing one up and passing the URL" or getting the farm and getting a site from that object. 
using(SPSite site = new SPSite("url to my site"))
now I can use site.
//or
SPSite = myWebApp.Sites[0];
// this gives you site at index 0 of current webApp
most of the time in SharePOint you will be using the "new" keyword to open site collections, and then getting your subsites from there. BE CAREFUL using the "new" keyword. If you "new" up an object that is iDisposable... you
MUST dispose of that, but if you use that same object but it comes from the "current context", you mustn't dispose of it.
//dispose of this by using statement
using(SPSite site = new SPSite(<url>))
//do stuff
//after this bracket it is disposed.
//do not dispose of this:
SPSite mysite = SPContext.Current.Site;
//unpredictable behavior can occur because you will still need references to your current site.

Similar Messages

  • Trying to use the new file features in Flash 10

    Hi there, I'm now trying to use the new file features in Flash 10 but I'm getting this error when I try something like
    fileRef.load();
    ReferenceError: Error #1069: Property load not found on flash.net.FileReference and there is no default value.

    It's tough to tell without seeing more of your code, but it might be that you're missing these lines of code at the top of your actions window:
        import flash.net.FileFilter;
        import flash.net.FileReference;

  • When I use the new Pages on my iPad, I can't open it on my new computer. It tells me that I must download the new Pages to see the Pages document, but when I try to download the new pages to my computer it tells me all apps are up to date.

    When I use the new Pages app. On my IPod  to type documents, I can't open them on my new computer. It sends me a message that I have to download a newer version of pages to see the Pages document. When I try to do that it tells me all my apps are up to date and will not allow me to upgrade the pages on my iMac.
    Any suggestions?

    What level of OS X is installed on your Mac (your profile is incomplete)?
    Barry

  • I share a macbook with my other half and we both use it for our iphones. When syncing using the new software I now have all of her and my contacts on my phone.  I don't want her contacts! How do I get rid?

    I share a macbook with my other half and we both use it for our iphones. When syncing using the new software I now have all of her and my contacts on my phone.  I don't want her contacts! How do I get rid?

    Hi,
    You have 2 solutions:
    1 - You can use 2 differents icloud account
    2 - You use the same account but you don't sync yours contacts.
    You configure that in  Settings > icloud
    You activate or desactivate what you want.
    Have a nice day.

  • My computer crashed and I have to buy a new one.  What happens to my Contacts, Photos, etc when i use the new computer?  I do not have an iTunes backup.

    My computer crashed and I have to buy a new one.  What happens to my Contacts, Photos, etc when i use the new computer?  I do not have an iTunes backup.

    Do you have the iCloud set up?  If you don't you need to buy a third party software that will do it for you when you plug your phone into the new computer.  You can google: iPad/iPhone/iPod to Computer Transfer.  You have to pay for the software but it's really a life saver and you get free updates for life.  It'll save you a lot of pain and suffering in the future.  I've used it many times.

  • Firefox 3.6.13 - Why, when I use the dropdown File menu to open a new window, does FF open my Home Page tabs? All I want is a blank page.

    I have four tabs in my home page:
    2 - https://mail.google.com/mail/;
    1 - http://us.mg5.mail.yahoo.com/dc/launch;
    1 - http://www.facebook.com/login.php
    When I use the "File" drop-down menu I want only a blank page, but I get the four tabs. How go I get other New Windows to open as blank pages?

    A new window open by default with the Home page(s), tabs open a blank page.
    The only ways to avoid opening a new window with the home page is either to set the home page to about:blank (ie disabling the home page) or use a bookmark with the location set to about:blank and use Shift + left-click to open that link in a new window.

  • When I use the new ColorSync icc Profile!

    Wwhen I use the new ColorSync icc Profile!
    the New Settings will be reset to Default Profile
    After Rebooting My Mac Mini 2010 with Mac OS X 10.6.7!
    Why? My LCD is Chimei 22sh-l with HDMI output.
    Thanks!

    The Critical Problem was solved by buying a Apple DisplayPort VGA Cable[New Taiwan Dollar :1,000]
    link http://store.apple.com/us/product/MB572Z/A?fnode=MTY1NDA3Ng&mco=MTA4NDU0NjA
    The Fact is that the Mac mini Bundled HDMI to DVI would made my ColorSync Profile to Default everytime I
    Reboot or logout my mac mini.
    Also, if you Rrealize the boot-up mac mini Superdrive DVD is noisy! You could just insert a DVD inside, then When you boot-up your Mac mini next time, the noise is Vanished ^^ & Happy
    So, Apple just accept its made Display Protocol for ColorSync to Adjust the Monitor Color, befroe I`ve done this,
    I  thought I have to buy a Apple Cinema Display or Macbook, then I can Get that kind of Benefits!
    But Hopefully, My problem is just solved & Happy .

  • Using my Actiontec modem's wifi, it doesn't find my new airport express.  When I use the new airport express network I created error message says ip address is wrong.  Help setting this new airport express up

    Using my Actiontec modem's wifi, it doesn't find my new airport express.  Using the new airport express network I just set up it says the ip address is invalid.  What can I do to overcome this blinking amber light and error messages?

    You need to begin by configuring the AEX to Join an existing network (Bridge Mode.) You can then connect to it using Wi-Fi, but the AEX will not extend your existing network.
    If you can connect the AEX to your existing router using Ethernet, then you could use it to Create a new network. Otherwise, if you want to extend your existing network you will need to get a Wireless Access Point - WAP - from a non-Apple product like D-Link.

  • OBIEE 11g best practice - when to use the new "presentation hierarchies"

    Hi, maybe a dumb question, but what are the rules of thumb for when to expose a presentation hierarchy to end users. Obviously this must be done when using a parent / child hierarchy, as there is no level info that would allow drilling the "10g" way. However, I'm not so sure what the bonuses / drawbacks are when using level based hierarchies.
    I have noticed that the SQL seems more complex and less performant when using the hierarchy. As an example, I have a simple dimension (business unit) that has a hierarchy with a total level, and 3 members in the detail level.
    If I create this as a 10g style report, I add business unit column, dollar amounts, and a table total (so I can see grand total amounts), the SQL launched looks like this:
    WITH
    SAWITH0 AS (select sum(1) as c1,
    sum(T45393.SPEND_AMOUNT) as c2,
    T45273.BUSINESS_UNIT_CODE as c3
    from
    DIM_BUSINESS_UNIT T45273,
    FACT_SPEND_ANALYTICS T45393
    where ( T45273.BUSINESS_UNIT_KEY = T45393.BUSINESS_UNIT_KEY )
    group by T45273.BUSINESS_UNIT_CODE)
    select distinct 0 as c1,
    D1.c3 as c2,
    D1.c2 as c3,
    D1.c1 as c4,
    0 as c5,
    0 as c6
    from
    SAWITH0 D1
    This is simple and efficient, and OBIEE "knows" the grand total can be calculated by simply summing the business unit totals together.
    But if I create this as an 11g style report using the presentation hierarchy, with all members selected (so I can get the detailed business units plus the grand total), the SQL is much less efficient, it actually fires two queries - one for the detail level, another for the total level:
    WITH
    SAWITH0 AS (select distinct sum(1) as c1,
    sum(T45393.SPEND_AMOUNT) as c2
    from
    FACT_SPEND_ANALYTICS T45393)
    select distinct 0 as c1,
    NULL as c2,
    'All Business Units' as c3,
    1 as c4,
    NULL as c5,
    D1.c2 as c6,
    D1.c1 as c7
    from
    SAWITH0 D1
    AND
    WITH
    SAWITH0 AS (select sum(1) as c1,
    sum(T45393.SPEND_AMOUNT) as c2,
    T45273.BUSINESS_UNIT_CODE as c3
    from
    DIM_BUSINESS_UNIT T45273,
    FACT_SPEND_ANALYTICS T45393
    where ( T45273.BUSINESS_UNIT_KEY = T45393.BUSINESS_UNIT_KEY )
    group by T45273.BUSINESS_UNIT_CODE)
    select distinct 1 as c1,
    D1.c3 as c2,
    'All Business Units' as c3,
    1 as c4,
    D1.c3 as c5,
    D1.c2 as c6,
    D1.c1 as c7
    from
    SAWITH0 D1
    Not only does this fire off two queries - but it doesn't use the existing cache for the "detail" level generated by the "non-hierarchy" query.
    So I'm trying to figure out pros and cons of exposing hierarchies for end users. I've come up with the following:
    Pros:
    - Users can click on the + and - signs to drill / collapse individual members while still keeping all other members on the report
    Cons:
    - Queries fired at all levels, doesn't seem like it's smart enough to figure out it doesn't need to send a level query to database if all children were already queried
    - In 10g if I want to expand all children (i.e. drill down all quarters to the month level) I could just click on the column header. Doesn't appear to be any way to do that using the hierarchical drills, I have to click each and every one to see all the months.
    Any insights would be appreciated!
    Thanks,
    Scott

    Hi, no, I haven't tried setting options such as "report based totals" - simply because I wouldn't want an option that requires users to tweak settings on each and every report they create to get stuff working efficiently.
    Thanks,
    Scott

  • HT2729 itune and when i use the "add file to library" methode! this is frustrating! i am useing the latest version and i am on pc! please help!

    My itunes doesnt want to accept/disply videos when i drag an drop it onto itunes! i am using the latest version and i am on windows 7! please help!

    Same problem here, and but only on my laptop... I tried to add an mp4 file to itunes on there and it wouldn't work, moved the same exact file to my desktop and it worked fine. Both computers are using windows 7.

  • HT1473 I am trying to copy videos from my windows based dell into iTunes and they will not coy when I drag and drop nor with they copy when I use the add file command.

    I am trying to copy videos from windows folder into iTunes and it will not copy. I have used drag and drop and the folder sopy comand from iTunes. Anybody got an answer?

    Hi wayneiii,
    If you are having issues adding video files to iTunes on your Windows machine, you may want to verify that they are in a format that iTunes can play. You may find the following article helpful:
    iTunes: Frequently asked questions about viewing and syncing videos
    http://support.apple.com/kb/ht2729
    Regards,
    - Brenden

  • HT1347 When I add a folder to the library, does that mean that 'later' when I drop a new file into that folder (already added) it will automatically end up in iTunes? (or do I have to add file/folder to library every time I have a new file??) I'm using XP

    When I add a folder to the library, does that mean that 'later' when I drop a new file into that folder (already added) it will automatically end up in iTunes? (or do I have to add file/folder to library every time I have a new file??) I'm using XP...

    iTunes does not actively scan the media folders.  If you manually add content to a folder, then you must add that content to iTunes manually via the File > Add File/Folder feature.
    The only folder that gets scanned is the "Automatically add to iTunes" folder.

  • I am trying to create mobile pages using the steps file new new document page from sample mobile starters jquery mobile (cdn).  When "page from sample" is selected, the subsequent options are not available.  This seems like a silly question, but how do I

    I am trying to create mobile pages using the steps file>new>new document>page from sample>mobile starters>jquery mobile (cdn).  When "page from sample" is selected, the subsequent options are not available.  This seems like a silly question, but how do I acquire these options?

    You can get the latest jQuery Mobile Themes directly from jQuery Mobile's web site.
    https://demos.jquerymobile.com/1.1.0/docs/api/themes.html
    Or roll your own with ThemeRoller
    http://themeroller.jquerymobile.com/
    Nancy O.

  • How can I auto export a PDF File using the "Smallest File Size" preset and set the Exported File Name based on information from an Imported PDF?

    Greetings all,
    I am trying to create a script to automate a PDF export process for my company for inDesign. I’m fairly new to inDesign itself and have no previous experience with javascript, although I did take C++ in high school and have found it helpful in putting this code together.
    We have an inDesign template file and then use the Multi-page PDF importer script to import PDF files. We then have to export two version of each file that we import, then delete the imported file and all of the pages to reset the template. This has to be done for nearly 1000 pdf files each month and is quite tedious. I’m working on automating the process as much as possible. I’ve managed to piece together code that will cleanup the file much quicker and am now trying to automate the PDF exports themselves.
    The files are sent to us as “TRUGLY#####_Client” and need to be exported as “POP#####_Client_Date-Range_North/South.pdf”
    For example, TRUGLY12345_Client needs to be exported as POP12345_Client_Mar01-Mar31_North and POP12345_Client_Mar01-Mar31_South.
    There are two templates built into the template file for the north and south file that are toggled easily via layer visibility switches. I need to get a code that can ideally read the #s from the imported Trugly file as well as the Client and input those into variables to use when exporting. The date range is found in the same place in the top right of each pdf file. I am not sure if this can be read somehow or if it will have to be input manually. I can put North or South into the file name based on which template layer is visible.
    I am not sure how to go about doing this. I did find the following code for exporting to PDF with preset but it requires me to select a preset and then type the full file name. How can I set it to automatically use the “Smallest File Size” preset without prompting me to choose and then automatically input some or preferably all of the file name automatically? (If the entire filename is possible then I don’t even want a prompt to appear so it will be fully automated!)
    PDF Export Code (Originally from here: Simple PDF Export with Preset selection | IndiSnip [InDesign® Snippets]):
    var myPresets = app.pdfExportPresets.everyItem().name;
    myPresets.unshift("- Select Preset -");
    var myWin = new Window('dialog', 'PDF Export Presets');
    myWin.orientation = 'row';
    with(myWin){
        myWin.sText = add('statictext', undefined, 'Select PDF Export preset:');
        myWin.myPDFExport = add('dropdownlist',undefined,undefined,{items:myPresets});
        myWin.myPDFExport.selection = 0;
        myWin.btnOK = add('button', undefined, 'OK');
    myWin.center();
    var myWindow = myWin.show();
    if(myWindow == true && myWin.myPDFExport.selection.index != 0){
        var myPreset = app.pdfExportPresets.item(String(myWin.myPDFExport.selection));
        myFile = File(File.saveDialog("Save file with preset: " + myPreset.name,"PDF files: *.pdf"));
        if(myFile != null){
            app.activeDocument.exportFile(ExportFormat.PDF_TYPE, myFile, false, myPreset);
        }else{
            alert("No File selected");
    }else{
        alert("No PDF Preset selected");
    So far my code does the following:
    1) Runs the Multi-Page PDF Import Script
    2) Runs PDF Export Script Above
    3) Toggles the Template
    4) Runs #2 Again
    5) Deletes the imported PDF and all pages and toggles template again.
    It’s close and much better than the original process which was almost 100% manual but I’d like to remove the Preset prompt from the PDF script and have it automatically select the “Smallest File Size” preset. and then if there’s a way to have it auto-fill in the file name so no user input is required at all other than selecting each file to import. (If there’s a way to setup a batch action for the multi-import script that would be even better!)
    Thanks in advance and if there’s anything else I can provide that would help please let me know! Even a nudge in the right direction will be a big help!

    If you hold down the option key, it will typically show the location. Or you can often hit option-return on the file and it will reveal the file in the Finder, instead of opening it.
    Final option is to open it, and just option-click the filename in the toolbar of Preview and it should show you the location.
    It's probably an attachment to an email you've received. If you have Mail set to cache emails and their attachments it'll be stashed in a subdirectory of ~/Library/Mail. Which is fine.

  • Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro? Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?

    Can I use the new Time Capsule to backup my mid 2010 Macbook Pro?
    Yes, if you are asking about using Time Machine to backup the Mac.
    Also can I want to free up my hard disk, can I save my photos and files on the time capsule and later access through wifi?
    You are not thinking of deleting the photos and files on your Mac, are you?  If you do this, you will have no backups for those files.
    Another concern is that Time Machine backs up the changes on your Mac. At some point, Time Machine will automatically delete the photos and files from the Time Capsule.....you just don't know when this might occur.
    In other words, only delete files from your Mac that you can afford to lose.

Maybe you are looking for

  • I want to share my iTunes library between 2 computers.

    But when I tried to authorize my laptop, it said I'd already authorized 5 computers. How do I see the list of authorized computers for my account so I can delete just the old ones?

  • F'fox doesn't open web addresses from T'bird

    When I click or ctrl clik on web addresses in emails (Thunderbird) Firefox doesn't respond. I have it set as default browser. This has only happened after the most recent upgrade. I always upgrade when they come up.

  • Deleting unwanted items

    Hi Newbie here so please be gentle. I manually sync my ipod as my wife has a nano and we share the computer, but not the same taste in music ! I drag & drop from our library into my pod, how do I remove individual tunes manualy ? Thanks Steve

  • Deploying SQL Developer in LAN environment

    I downloaded SQL Developer today and would like to deploy it on the LAN. How do I ensure that the connections I implement remain standard and prompt each individual user for his unique sign in username/password if he executes from the network executa

  • Information regarding BI Cube

    Hi Experts, I need some information about: We already configured SEM BCS 6.0, in this we use source data basis from bw 3.5 cube (XFIGL_C10). Now BI upgrading source cube from 3.5 version to 7.0, for this any effect occur in BCS. Thanks & Regards Madh