How to do the presentation setting for a Folder

Hi All,
My Code Creates folders and sub-folders using Portal API and Knowledge Management API.
I am able to set the DisplayName Property for the folders created from the java code, Using the below Code
sbFolder = parent.createCollection(subFolderIdName,null);
MutableProperty mProp = new MutableProperty(PropertyName.createDisplayname(),subFolderDisplayName);
sbFolder.setProperty(mProp.);
<b>Similar to this i need to find a way out to set the
Presentation setting for the created folders also.</b>     
Any help regarding this would be highly appriciated.
Thanks
Deepak

"Presentation setting for the created folders"
Do you mean the ACL for the folders?
If so in PCD, the code will be:
IAclHandle aclHandle = sbFolder.getAclHandle();
IAcl acl = aclHandle.createAcl(serviceUser);
acl.createAclEntry(serviceUser, permittedGroup, Permission.FullControl.key());
If you want to set KM-ACL:
IResourceAcl resourceACL = sbFolder.createAcl(resource);
IAclPermission readPermission = getResourceAclManager(resource).getPermission(IAclPermission.ACL_PERMISSION_READ);
IResourceAclEntry authorACLEntry = aclManager.createAclEntry(contentEditorEP5Group, false, readPermission, 1);
public static IResourceAclManager getResourceAclManager(IResource resource) throws ResourceException {
        IRepositoryManager rmgr = resource.getRepositoryManager();
        if (rmgr == null)
            return null;
        com.sapportals.wcm.repository.manager.ISecurityManager secmgr = rmgr.getSecurityManager(resource);
        if (secmgr != null && (secmgr instanceof IAclSecurityManager)) {
            IAclSecurityManager aclsecmgr = (IAclSecurityManager) secmgr;
            return aclsecmgr.getAclManager();
        } else {
            return null;
Greetings,
Praveen Gudapati

Similar Messages

  • How to change the account setting for App Store

    My last question wasn't so clear, so I would like to post again. I want to know how to change the account setting for App Store. I have changed in the Settings but it doesn't reflect in App Store.
    Thanks,

    once you sign out just click sign in and put the new email address in the "Username" field and your correct password then click OK
    it will look like it is doing nothing but give it time and it will sign you in with the new username.
    is it possible you have multiple itunes accounts?
    when you changed your itunes account from your me.com to your gmail.com address did you change it within the itunes Edit Account Info ('Store' menu then select 'View My Account', then sign in , select edit account info) or did you just create another itunes account?
    be well

  • How to access the BIOS setting for H330 to verify VT setting?

    How to access the BIOS setting for H330 to verify VT setting?

    Hello Rho2019 and welcome to community,
    To enter into BIOS, Press and hold the F1 key then turn on the computer. When you hear multiple beeps, release the F1 key.
    Best Regards,
    Tanuj
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution".! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

  • How to find the materials set for forecasting in APO..?

    Dear Experts,
    Could anyone please help me out in letting me know how to find the materials set for forecasting in APO, BY either using pegid or by using matid & locid combinations...? Please help me out ASAP as Iam severly stuck at one place.
    Thanks in advance..
    Regards,
    Sanjay.

    Hi Sanjay,
         Please have a look at the table /SAPAPO/PEGKEY.
    If u have any questions in APO goto the APO forum and raise ur doubts.
    Thanks,
    Siva.

  • How i retrieve the default setting for my browser ?

    when i download any file from firefox browser there a small box that ask you if you want to from your browser to do the same action for files like the file you are downloaded automatically,
    i did that and i wont to retrieve the old sitting i tried to reinstall the browser but it doesn't worked! so any suggestion?

    The instructions in [[Resetting preferences]] explain how to reset all your preferences back to the defaults.

  • How to change the default setting for Output Preview

    Good afternoon! I use the Output Preview feature under Advanced > Print Production quite a bit, to preview the rendering in one specific simulation profile (for me, its Web Coated SWOP 2006 Grade 3 Paper).
    Is there any way to set the default to be a specific profile, instead of the one that keeps coming up (Output Intent: CGATS TR 001)?
    It's very time consuming to have to repeatedly select my profile everytime I open a PDF and gauge the file in Output Preview.
    Any help would be greatly appreciated... thanks!
    - Johnny

    All you need to do is set the default CMYK (under Preferences > Color Management) to the profile you use the most. It will then default to that profile in Output Preview, unless it has an Output Intent specified.

  • How to change the layout set for Search Results

    Hi gurus.
    I’m developing a search component for KM Search iView, and as a requirement the layout must change dynamically to display the search results.  How do I get this to happen?
    public SearchParamsMap getSearchParamsMap() {
         SearchParamsMap m = new SearchParamsMap();
              try {
              IQueryEntryList list =                   this.createQuery();
                   m.put(SearchParamConst.PARAM_SEARCH_QUERY_ENTRIES,                list);
              } catch (WcmException e) {
                   e.printStackTrace();
              m.put(
                   SearchParamConst.PARAM_SEARCH_IN,
                   SearchParamConst.SEARCH_FROM_FOLDER);
              m.put(SearchParamConst.PARAM_SEARCH_FOLDER, path);
              return m;
    private IQueryEntryList createQuery() throws WcmException {
              Hashtable searchParameters = new Hashtable();
              searchParameters.put(
                   SearchParamConst.PARAM_ITEMS_SELECTION,
                   SearchParamConst.ITEM_ONLY_DOCS);
              searchParameters.put(
                   SearchParamConst.RESULT_LAYOUT_SET,
                   "Sed_Comunicados");
              SearchQueryListBuilder sqb =
                   new SearchQueryListBuilder(searchParameters);
              IQueryEntryList qel = sqb.buildSearchQueryList();
              return qel;
    In the createQuery() method, code searchParameters.put(
                   SearchParamConst.RESULT_LAYOUT_SET,
                   "Sed_Comunicados"); is not working.  Also, where do I find the documentation for Class SearchParamConst?

    I have the same question.  Any help will be greatly appreciated.

  • How do you change the default setting for RTF documents from TextEdit to MS Word

    How do you change the default setting for RTF documents from TextEdit to MS Word, I download forms from the Canadian government and they use RTF as a standard, they are supposed to open as MS Word documents (Yes I have Office for MAC 2011) but when download the document it goes to TextEdit which messes up the form format. I can down load it right click and go "open with" MS Word but how can I get the default chnaged to save this step.

    richr604 wrote:
    Thanks I knew this, I like Safari as I want to keep everything MAC, but if I use Firefox the documents open in MS Word straight away, I was just curious if there was some setting I could change?
    In Firefox > Preferences, click the Applications tab. If RTF is there, use the pulldown menu in the Action column to pick MS Word. If RTF is not there, there are instructions here for how to add file types.

  • How can I opt out on the default setting for a split window in Firefox 3.6.12 ?

    Since I upgraded to Firefox 3.6.12, the page opens up with two vertically divided panes. Each pane displays a different bookmark. The left pane is generally only about an inch wide and can only be expanded to about 3 inches wide. In that mode, it is pretty much useless and only provides a distraction. How can I opt out on what appears to be the default setting for a split window with two vertical panes.
    At this point, I am discontinuing using Firefox in favor of Safari because of this change in the default window.

    Opening in the side bar is the default for bookmarks that are created via a link or button on a website.
    You can check the Properties of a bookmark via the right-click context menu in the side bar (Ctrl+B; Cmd+B on Mac).
    In the Bookmarks Manager (Bookmarks > Organize Bookmarks) you can click the More button in the Details pane at the bottom right.
    Make sure that "Load this bookmark in the side bar" is not selected.

  • How can I change the default setting for downloading photos from email?

    How can I change the default setting for downloading photos from emails I receive?  It shows the default as Photoshop Elements 4.0 and is not supported by this system.  That was my last computer!!
    Thanks,
    Sheila

    That has nothing to do with styles nor Pages, it is a System/Printer Driver setting.
    You can experiment to see if the Printer Settings stick with your document, but in the past this has not worked.
    Peter

  • Hi, Might I know that how to setup the printer setting at InDesign CS6 for the Lable print?

    Hi, Might I know that how to setup the printer setting at InDesign CS6 for the Lable print?

    Label printing isn't something you set up in the print dialog in ID. If your print driver has an n-up feature that might work, but in general you need to create pages of labels to fit your sheets in ID, then print. If you are talking about doing a merge of an address list, read about Data Merge in thehelp files.

  • How to Use the same iview for both KM End User and the KM Administrator

    Hi friends,
    *This is my scenario :* How to Use the same iview for both KM End User and the KM Administrator but with different Context
    Menu Options.
    i followed these steps but im getting same context menu for both KM End User and the KM Administrator .
    Assign the role Content Administrator to the user km_admin. This is needed so that km_admin can change
    the presentation settings for the KM Folder u201EReports_kmFolder‟.
    Now, login with user km_admin. Navigate to the Km Folder reports_kmFolder through Content Administration
    -> Km Content. Click on Details link of the folder reports_kmFolder.
    Go To Settings -> Presentation. Click on the tab u201ESettings for You‟-> Click on button u201ESelect Profile‟.
    Select the radio button corresponding to u201Elayout Set‟, and choose u201EConsumerExplorer‟ from the dropdown.
    Click u201EOK‟.
    Select both the check boxes corresponding to Items Affected as shown above, and click u201ESave‟
    Now, remove the u201ESuper Administrator‟ role from the user km_admin and login with this user.
    How rto resolve this????
    Regards,
    Prasad.

    Hello Prasad,
    Most likely the user km_admin still has system principal roles assigned, even though you removed the Super Admin role, you should check that this user doesn't have any other admin roles, otherwise it will be considered a System Principal user and will therefore still have access to all content. For more information see http://help.sap.com/saphelp_nw70/helpdata/en/19/56f28fbd4e11d5993b00508b6b8b11/frameset.htm
    Try creating a new user with just read access to the content and you should see that it will not be able to make any changes etc.
    Regards,
    Lorcan.

  • How to create a value sets for concurrent program?

    Hi Friends,
    I am creating a concurrent program with a parameter period...
    In the value set for the parameter period, I am using the following query :
    ---where application_id = 101
    and set_of_books_id = :$PROFILES$.gl_set_of_bks_id
    and closing_status IN ( 'O', 'F', 'C')
    order by period_year, period_num' ----
    In my cursor, i have a condition 'where set_of_books_id = ' ---
    How can I pass the above set of books id into the cursor ?? it is not working when I am defining another parameter as Book and passing that value to the cursor....
    I need that period parameter to return all the periods for the set of books where we are running the concurrent request from...I also need to get the set of books id for my cursor...
    Hope I am making sense...All that I am trying is to have period parameter and also a SOB id in cursor condition...
    Rgds,

    Hi Vamsi /Nitin,
    Let me explain the whole thing now.....
    My plsql procedure is ......
    CREATE OR REPLACE procedure GL_INT(
         perrbuff     out varchar2,
         pretcode     out varchar2,
    pbook          in varchar2,
    pperiod          in varchar2
         ) is
    cursor cur1 (p_sdate in date, p_edate in date )is
    select distinct group_id groupid,
    user_je_source_name source
    from gl_interface
         where accounting_date >= p_sdate
    and accounting_date <= p_edate
    and set_of_books_id = pbook;
    cursor cur2 is
    select distinct start_date sdate,
         end_date edate, period_name period
    from gl_period_statuses
    where      period_name = pperiod
         and set_of_books_id = pbook
         and application_id = 101;
    i               cur1%rowtype;
    j               cur2%rowtype;
    begin
    open cur2;
                   fnd_file.put_line(fnd_file.output,'PERIOD'||'----'||'GROUPID'||
                                       '----'|| 'SOURCE');
              loop
                   fetch cur2 into J;
    exit when cur2%notfound;
                   open cur1(J.sdate,J.edate);
                   loop
              fetch cur1 into I;
                        exit when cur1%notfound;
              fnd_file.put_line(fnd_file.output, J.period||'----'||I.groupid||'----'||
                                  I.source);
                   end loop;
              end loop;
         Close cur1;
    close cur2;
    Exception when others then dbms_output.put_line(SQLERRM);     
    end;
    ==================================================================================================
    For SOB value set, I have passed the default value as vamsi suggested ($profiles$.gl_set_of_bks_id)....
    For period value set, I have entered query as ..where application_id = 101
    and set_of_books_id = :$PROFILES$.gl_set_of_bks_id
    and closing_status IN ( 'O', 'F', 'C')
    order by period_year, period_num...................
    It still doesn't work....I don't know how to derive those Periods based on the SOBs and at the same time pass SOB id into the cursors...
    Please help...
    Rgds,
    Murali

  • How to change the "home" computer for a iPod touch 3G (iOS 4.2.1) and an iPad 2(iOS5)? Music library has been already moved to iTunes on the new computer.

    I have a iPod Touch (3rd gen) that has not upgraded it's OS beyond iOS4.2.1 even if I have tried connecting it into iTiunes I have a iPad2 which has been recently upgraded to iOS5 . Both were connected to a laptop computer that my husband will take with him when he moves to a different city. I will most probably buy a second laptop sometime, but meanwhile I want to tether my iPod touch and iPad 2 to my desktop PC for now. Before I took the plunge, I had a few questions which I am hoping this forum will help me answer
    1. How to switch the Home PC for these devices? I have already transfered my Music library on to my Home PC and then downloaded and reorganised with iTunes. Since I am reorganising the library anyway I don't minding removing all my music from the iTouch and set it up from scratch for the music. However, I removed all musci from theiTouch, changed it to manual mode and connected it to the desktop- It's detecting it fine- but it still is not the home computer for the iTouch- everytime I try to put new music in it- it is deleting everything old- I can't see the same controls as I see from the laptop at all- how to rectify this? To I need to set this up as a new iPod (restore route)?
    on the touch I have very few apps and don't care about them. on the iPad I do have a couple of valuable apps that I want to hold on to- so have n't tinkered with it at all- what is the smoothest way for thsi transition? The iPad doesn't have any music on it at this time, but what to do if I want to transfer some?
    2. Is there a way I can store the organised iTunes info in any way- like I said I might buy a new laptop in a few months but do not want to reorganise my iTunes over agaoin- it' a fairly large collection most of which is n't purchased from the iTunes store.
    3. Why sin't my iTouch 3G upgrading- it's stuck on iOS4.2.1 but iTunes doesn't show any updates- even with chck updates button iTunes show that it is a current version.
    thanks for reading through and any help that I can get to sort this mess out.

    The recent release of iBooks 1.2.1 has corrected the problem of the missing Dutton edition of Winnie-the-Pooh. It may have been there with the previous install of iBooks but it would never display in the bookshelf. After updating iBooks to 1.2.1, the Dutton version (the one included with iBooks) suddenly appeared on the bookshelf. So it was a software glitch after all and not a fix Apple chose to document explicitly in the update.
    Message was edited by: Rick Lang

  • How to use the print option for photos?

    How to use the print option for photos.  I have a wireless printer but how do I set it up?

    http://www.apple.com/support/iphone/assistant/airprint/

Maybe you are looking for

  • How do you remove/add a program in the Control Panel that does not respond to the command?

    Without being installed (by me) this "Dictionary.com" toolbar that appeared and is taking up a whole line of space across the top of my desktop monitor! I followed the procedure on how to remove the toolbar precisely... Start> Control Panel > Add/Rem

  • Can't use clob and blob

    I just created a new database using dbca with General Purpose as the template, as I've done before. All went well until I tried to create tables that used clob or blob datatypes. I kept getting the error "ORA-03001: unimplemented feature". What happe

  • Need help to fit the records of a table into a particular region

    Hi All, Need help in getting the records of table to be fitted into a particular region provided for it. But in my case as the records increases the textbox below are moving down accordingly into next page that i dont want.   As shown in the below im

  • Passing values but not in the address bar?

    Hi, There is a desire to link to a quiz made in APEX from our Intranet page using the Intranet's login (they dont require an APEX login). The way I've been planning on doing it is to take the Intranet's &USER. (or however the value is referenced) and

  • Do not disturb still not working

    Hi guys, I just did the update to iOs 6.1 and the don't disturb still isn't fixed. It's showing in sleep settings (half moon at the top) when the times are no where near the sleep time