How Can I Create a new Role in an PCD address?

Hello EveryBody,
I need to develop a new class that it can manage SAP Portal roles. I got how to recover all the roles of a user or how to recover all the roles in a PCD path. Now I have the problem when I try to create a new role in a PCD path.
The code that I have to do that it is this:
try {
*     IRoleFactory iRoleF = UMFactory.getRoleFactory();*
*     IRole nuevorol=iRoleF.newRole(pcdPath+nameRol);*
*     nuevorol.setDisplayName(nameRol);*
*     nuevorol.setDescription(descripcionRol);*
*     nuevorol.commit();*
*     return true;*
catch (Exception e)
*     return false;*
This code it works and it makes a new Role but I donu2019t know how to create this role in a PCD path. Could you help me with this?
This it is a urgent task that I have to develop, please I need help. Thanks in advance.

Hi,
     Now I understood your question. As of now, I think there is no api which creates workset and roles in pcd. API are available for iView, page, system and layout only.
For creation of iView, page etc, check this blog.
PCD II: Creating Portal Objects
For role and workset creation, there is another tool used. Check these blogs.
SP15: XML Content and Actions
Mass Creation of Portal Content - Generic Creator
If you want to use this tool functionality in code, then check this blog.
Using the XML upload content and actions dynamically
If you are on NW7.1, then check this article.
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/40c72897-c7e6-2a10-e98a-af81b89084f4
Hope these will help. Good luck.
Regards,
Harini S

Similar Messages

  • How can i create a new user with only read rights ?

    How can i create a new user with only read rights ?

    You are asking about a Database User I hope.
    You can look into the Oracle 8i Documentation and find various privillages listed.
    In particular, you may find:
    Chapter 27 Privileges, Roles, and Security Policies
    an intresting chapter.
    You may want to do this with the various tools included with 8i - including the
    Oracle DBA Studio - expand the Security node and you can create USERS and ROLES.
    Or use SQL*Plus. To create a
    user / password named John / Smith, you would login to SQL*Plus as System/manager (or other) and type in:
    Create user John identified by Smith;
    Grant CONNECT to John;
    Grant SELECT ANY TABLE to John;
    commit;
    There is much more you can do
    depending on your needs.
    Please read the documentation.
    -John
    null

  • How can I create a new E-mail address for the Marketing Manager

    Hullo,
    how can I create a new E-mail address for the Marketing Manager (i.e. marketing professional role in SAP CRM) please.
    That when you go and create a new E-mail campaign you need to choose an E-mail form in addition to the E-mail address of the Marketing Manager.
    Kind Regards.

    Hi Alhussien
    Add it to his Position in the Organisational Model. Transaction PPOMA_CRM.
    Under there address section is an option to populate the email address.
    Regards
    Arden

  • TS2756 How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )

    How can i create a new usb connection (service)  on my iMac for sharing internet from my iPhone5 ( i seem have to deleted it )
    i know its not a problem whit my carrier o data plan or sharing preferences on the ipone because when i use it un my laptop it works perfectly through
    the usb and even works on the Imac through wifi and bluethood tethering but NOT through usb!!.
    the problem is that trying to make it work i deleted the "profile" usb iphone on the network prefereces panel. Now i only have 3 options: ethernet / wifi / bluetooth
    but not the usb iPhone i used to have.
    And when i try to add a new one i dont get a USB option.
    can some one help me please??
    this is how it looks (after the bluetooth PAN i used to have USB iPhone option)

    The question would be more appropriate in the Mac forums as it is not really related to the iPhone.

  • How can I create a new ring tone for my iPhone 4?

    How can I create a new ring tone for my iPhone 4? I followed the Garage Band process and ended up with the ring tone I want as a AAC audio file. It got stored in my iTunes a a song rather than a ring tone. How do I make it a ring tone vs. a song? I tried dragging it t the Ring Tone category at the bottom of the ITunes list, but it won't alloow me to move it?

    There's also an easy to use Applescript over at Doug's Applescripts for iTunes. It automates the whole thing. All you do is set the start and stop time on a file in iTuens and run the script. It will do everything else.
    Make Ringable v1.1
    http://dougscripts.com/475

  • It wants to verify my account and won't take the password, how can I create a new one or verify the existing one?

    I cloud wants to verify my account and won't take the password, how can I create a new one or verify the one it won't take?

    If you can't remember the password, reset it at...
    iForgot.com

  • How can I create a new Music Library?

    Had to buy new laptop which of course has Vista. The old unit was acting up(I think Windows XP was corrupt), so I saved my Library Files but it looks like the old machine only saved portions not the whole Library. I had approx. 13,000 tunes (35GB) in the LIbrary and all that was saved seems to be 319 tunes. I have all the music on an external HD and only the Library was on the laptop. My question is, how can I create a new Library from the external HD music? Is there a way or am I SOL? Any suggestions and help would be greatly appreciated.

    You need the entire libary on the external, not just media.
    What are the iTunes library files? - http://support.apple.com/kb/HT1660
    More on iTunes library files and what they do - http://en.wikipedia.org/wiki/ITunes#Media_management
    What are all those iTunes files? - http://www.macworld.com/article/139974/2009/04/itunes_files.html
    Where are my iTunes files located? - http://support.apple.com/kb/ht1391
    iTunes 9 [and later]: Understanding iTunes Media Organization - http://support.apple.com/kb/ht3847
    Image of folder structure and explanation of different iTunes versions (turingtest2 post) - https://discussions.apple.com/message/13025536 and https://discussions.apple.com/message/17457605
    Once you get a complete iTunes folder on the external drive, start iTunes with the option/alt key held down and select the iTunes Library.itl file on the external drive.  You will also need to do this with your main computer or the libraries will become unsynchronized.
    Alternatively you can make a separate library using the same media on the second computer. Start as you have been doing, let iTunes create a new, blank library file which will be on hte internal drive, set the media folder location in preferences to be the one on the external drive, then add the files to the new iTunes library. Unless you are a super-organized individual, or you don't care if your libraries do not have the same content, you are better off using a single library file that is on the external, not setting up separate library files.

  • How can I create a new entry without using LOV for foreign keys.

    Referring to TUHRA sample application based on HR database schema. JDeveloper 10.1.3.0.4
    How can I create a new employee without using LOV for the foreign key "job_id".
    On the first page I would like to choose the job_title from adf read-only table.
    After clicking on the "create new employee button" a creation form appears in which the job_id field is set with previous selection.
    Regards M.Winkler
    Edited by: user3541283 on 06.10.2008 03:44
    Edited by: user3541283 on 06.10.2008 03:50

    Hi,
    usually the foreign key is only set if the VO you select is dependent from a master. If e.g. you have DepartmentsVO1 that has an EmployeeVO3 as its nested VO, then creating a new instance of employees automatically add the foreign key. If you add EmployeesVO1, which is not dependent to DepartmensVO1, then the foreign key is not set. So if this is the case in THURA (keep in mind that this is not an Oracle demo but a sample used in a book about ADF) then all you need is to take the independent VO when building the new employee form.
    Frank

  • How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?

    How can I create a new TC backup with ethernet, so I don't have to wait two days for a new wireless backup?
    Several times in the last year, I've gotten a message that Time Machine needs to completely redo my backup. Using the wireless connection, this takes almost two days. Is there a way to do the backup with ethernet and then switch back to wireless? Thanks.

    May I know what is needed to make sure the MacBook is able to see Time Capsule on ethernet?
    Connect an Ethernet cable from one of the LAN <-> ports on the 2Wire gateway to the WAN port (circle of dots icon) on the Time Capsule.
    If AirPort Utility cannot "see" the Time Capsule now, you will need to perform a "hard reset" by holding in the reset button for 7-8 seconds or so and then reconfigure the Time Capsule. You can use the same Time Capsule name and password, etc. as before.
    Configure the Time Capsule to "Create a wireless network" and select the Bridge Mode option when it appears during the setup using AirPort Utility.
    Once the Time Capsule is configured, restart the entire network again. Power down everything, start the 2Wire first and then start each other device after that one at a time about a minute apart.
    Now you can connect your Mac directly to one of the LAN <-> ports on the Time Capsule for the backup using another Ethernet cable. In general, about 20-25 GB per hour will transfer.
    The Time Capsule will broadcast a much faster wireless network than the 2Wire can provide, so you might want to leave the setup "as is" for awhile after the first backup is complete. If you decide to use the Time Capsule as your main wireless access point, you would want to turn the wireless off on the 2Wire since two wireless networks in close proximity can create interference problems.
    Or, if you want to use the wireless on the 2Wire, you could turn off the wireless on the Time Capsule. Then backups will occur over the 2Wire wireless, or over Ethernet.
    I don't really recommend the "Join a wireless network" setting on the Time Capsule for most users, but you could go back to that setup as well if you want after the first backup is complete.

  • I cannot recover my Master Password under 10.6.8. I want to change it. I do have my admin password for my account. How can I create a new master pw?

    I cannot recover my Master Password under 10.6.8. I want to change it. I do have my admin password for my account. How can I create a new master pw?

    If you are referring the Master Password that can be set in System Preferences>Security>FileVault, then see this thread:
    How to reset FileVault master password
    http://discussions.apple.com/thread.jspa?messageID=5822772
    As explained there, and for obvious security reasons, a new master password created in this fashion way will not unlock any pre-existing FileVault accounts. Resetting the master password is therefore only useful after you turn off FileVault in all existing accounts. You can then turn FileVault back on after the new master password is in place.

  • How can i create a new Adminstrator user account ?

    How can i create a new Adminstrator user account ?

    Go to the System Preferences>Users.
    Click the lock if and enter your password, if necessary.
    Then click on the "+" symbol below the accounts list.
    From the "New Account" menu, select"Administrator" and fill in the rest of the information.
    And finally click the "Create Account" button.
    Done. A new Administrator user account.

  • How can i create a new transport request?

    Dear Experts,
    Some colleagues have to modify a master record, but save time, failing to produce a request no., then, how can i create a new transport request?
    Wilson

    Hi,
    Please let us know about the issue when you create the new Transport request .
    In which system you are creating the request . Hope its in Development  .
    If so , check the entries are enabled in SCC4 > Changes without automatic recording
    Changes to repository objects and cross client customizing allowed .
    Protection level 0
    If these entries are enabled, you must be able to create Transport requests.
    Please check and update .
    Regards,
    Nibu

  • How can i create a new password?

    I forgot my password, how can i create a new one?

    On Lion or Mountain Lion, you use the following technique to reset the Administrators password:
    Boot to your Recovery Partition, by holding down the Option key while starting, and then selecting the Recovery HD as the boot choice.
    Once booted, at the top of the screen is a menu ..., select Utilities / Terminal from the menu bar.
    In the Terminal window, type “resetpassword” (without the quotes) and press return. A “Reset Password” window will open. Select your boot volume (your SSD drive) if it is not already selected. Select your administrators username from the menu labeled “Select the user account” if it is not already selected. Follow the prompts to reset the password. Restart the computer from the apple menu.

  • How can I create a new pattern?

    How can I create a new pattern?

    Sorry but is this doesn't appear to be a question about Apple Remote Desktop, Apple's software for managing networked Macs and the topic of this forum. I'd suggest you post in the forum for the version of Mac OS X you're running.
    Regards.

  • How can I create a new recovery key if you automatically removed my trusted device after update do iOS 8?

    How can I create a new recovery key if you automatically removed my trusted device after update do iOS 8?

    Hey -
    I need to do the EXACT same thing, but have no idea how. Has anyone out there done this?
    My situation is a tad different..this is a new Mac (and I'm a brand new Mac user). Tons of querks occur under my original account (videos won't run, Safari won't support certain plug-ins). I spent 6 hours on the phone w/ 4 different Apple Reps and nobody could fix it. A rep finally looked at my MacBook Pro in person today. He created a new account just to see if that would work and under that new account, everything works perfectly fine (no querks, can view video). He tried switching a million settings in my original account to no avail.
    He said to create a new account (as he did) and move my files over to the new account and then go back to the original and delete it. How do you do this?! I can't figure it out! I've got a new account created, but of course it just has the default folders in it w/ the little red icons next to them! Thanks in advance!

Maybe you are looking for

  • Mac running slow suddenly

    Dear All, My mid-2012 13" MacBook Pro suddenly became extremely slow yesterday evening. I restarted it several times, installed the latest software updates without any improvement. This morming I did the following: - I removed com.adobe.aaa.updater-1

  • Display pdf in a hidden frame

    Hello, I have written a servlet which calls a server application and get a pdf as response. When I call the pdf it will be print directly with the default printer. This is because of the javascript code which i have parsed to the pdf. The problem is

  • Error While loading Hierarchy from R3 to BW

    Hi Experts,   plz solve my problem, I am rtying to load Hierarchy data from IS-R R/3 to Bw In the monitoring(left hand side) QM status is green saying that the load is successfull Right hand side QMStatus also Green, But in the Details Tab(right hand

  • Release Procedure for PO in two currencies

    Hi I have to create PO release procedure for PO for Two Currencies based on the below characteristics 1.Company code 2.Document type 3.Purchasing group 4.Net order value in both INR and USD Can Any body help me I tried but the system is not triggerin

  • Developing filter plug-in: having trouble storing image buffer in the registry

    Hi guys, I'm new to plug-in development and having a bit of trouble with storing information to the photoshop registry. My plug-in has two buttons, "capture" and "apply". When the capture button is pressed, the filter needs to grab whatever image dat