How to programmatically add users to WLS 7

Is there a way to programmatically add users to Weblogic 7? I'm building up a website
and want to give my visitors an opportunity to register with the site.
The code samples I found until now are not working
cheers,
michael

Hi Guys,
I too am looking for an answer to this very question. I too want
users to be able to register and also be able to control access
to the site based on the roles being assigned. So what I would
like to do is create users and assign them roles so that the
roles defined within web.xml could be used to control access to
various parts of the site.
Regards
Vijesh
"Brian Pontarelli" <[email protected]> wrote:
>
I had the same exact question. I would like to add users programmatically
to the
weblogic server and also programmatically control the authorization and
authentication policies for these new users. Is this possible in WLS
7.0?
Previous interfaces for this type of thing are deprecated (mostly in
the Realm
stuff). There do seem to be some MBeans in the weblogic.management.security
packages, however these are not accessible MBeans because they do not
extend
from WeblogicMBean and therefore can not be looked up via the
weblogic.management.Helper class. Is there another way to get at the
current
implementation of these interfaces?
Ponch
"Michael" <[email protected]> wrote in message
news:[email protected]..
Is there a way to programmatically add users to Weblogic 7? I'm buildingup a
website
and want to give my visitors an opportunity to register with the site.
The code samples I found until now are not working
cheers,
michael

Similar Messages

  • How to programmatically add user comment using human task data control

    Hi,
    We create the task form by using “create Task flow based on Human task”. I need to programmatically create and insert the user comment for the task. I know I need to create and insert a new element to the userCommentIterator that linked to the human task data control. But I could not get it work or find any related detail sample coding. Please help.
    Thanks a lot,
    Helen

    post it in soa suite forum
    SOA Suite
    or bpel forum
    BPEL
    to get.. quick reply.

  • How to programmatically add rectangle to a pdf file ?

    How to programmatically add rectangle to a pdf file ?
    There is several page pdfs, non-vector, black and white.
    Users are color blind and have disabilities.
    To train them, one adds a rectangle at a certain lower-left point and width,height specified for a page.
    The idea is to give the script the page and coordinates and size of rectangle to be added programmatically. Green rectangles are acceptable as the cones are most sensitive there.
    Also, additional feature to add bookmarks on the left in the order these rectangle data is provided to the script.
    The script could be "hard-wired" by a list of the rectangle coodinates, and page number, pasted inside acrobat and run or entered into acrobat in some way.
    Your script would help many disabled people who are distributed through out the world.
    Feel free to contact me by email if you wish.
    Dying Vets

    P.S.
    This rectangle does not have to be a full annotation rectangle which needs user,date and a lot of info.
    Something minimal like this would suffice
    1 0 0 RG % red for stroke color
    200 300 50 75 re
    As you can see that the native unit of the pdf file is the "point" having 72 in an inch.
    The file dpi would be given. However, one could assume that pixel for the rectangle lower-left and width/height are given.
    From the pixels and dpi, the points could be calculated if desired.

  • How to Implement Add User Functionality in ADF

    Hi,
    I already setup my web app to use ADF security and the sample user's and groups that I have created in jazn-data.xml is already
    functioning as expected.
    I just need to add the functionality on how to programmmaically add user in my weblogic internal LDAP realm
    and assign them to the currently configured user groups.
    This would be available to Admin Level user.
    Anybody has good site or link on how to accomplish this in my ADF Web Application?
    Thanks
    JDEV 11G PS3

    Hi Arun,
    Jdev Version 11.1.1.6.0
    I have one table already created in a hosted db.It has some columns namely Component,Manager,%CodeCoverage,TotalLines,Covered Lines.One manager has 5-6 components under him.
    What I want is to have a table having manager name and if I click on manager,it should show components under him with all the details mentioned above.
    I wanted to achieve it through tree table but don't know how to proceed

  • How to programmatically add af:setPropertyListener to CommandImageLink

    Hi All,
    My Requirement: programmatically add af:setPropertyListener to CommandButton
    I referred this post how to programmatically add af:setPropertyListener to CommandButton and followed the following code.
    Code:
    // create a value expression
    ValueExpression vx =
    elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
    String.class);
    // set a default value if desired
    vx.setValue(elContext, clockNo);
    SetPropertyListener spl =
    new SetPropertyListener(ActionEvent.class.getName());
    spl.setFrom(clockNo);
    spl.setValueExpression("to", vx);
    // add the listener to the button
    newOpButton.addActionListener(spl);
    My Code:
    <af:commandImageLink id="editInsuraceDetLink"
    icon="/resources/images/Edit.jpg"
    iconPosition="trailing"
    rendered="#{not row.deleted}"
    action="addEndorsement"
    useWindow="true"
    inlineStyle="vertical-align:bottom;"
    partialSubmit="true"
    shortDesc="Edit"
    *actionListener="#{pageFlowScope.GetEndorsementTypeListener.execute}"*
    returnListener="#{GetEndorsementDetailsListener.execute}"
    windowEmbedStyle="window"
    windowModalityType="applicationModal"
    windowHeight="650" windowWidth="740">
    </af:commandImageLink>
    Action Listener - .GetEndorsementTypeListener.execute code:
    RichCommandImageLink a_button = (RichCommandImageLink) a_component.findComponent("editInsuraceDetLink");
    FacesContext fctx = FacesContext.getCurrentInstance();
    Application application = fctx.getApplication();
    ELContext elContext = fctx.getELContext();
    ExpressionFactory elFactory = application.getExpressionFactory();
    ValueExpression vx = elFactory.createValueExpression(elContext, "#{pageFlowScope.controlFlowName}", String.class);
    // set a default value if desired
    //vx.setValue(elContext, clockNo);
    SetPropertyListener spl = new SetPropertyListener(ActionEvent.class.getName());
    spl.setFrom(a_target.getEndorsementFor().toString());
    spl.setValueExpression("to", vx);
    System.out.println("From= "+spl.getFrom());
    System.out.println("To= "+spl.getValueExpression("to"));
    // add the listener to the button
    a_button.addActionListener(spl);
    I got the following output.
    From= Nominee / Appointee
    To= ValueExpression[#{pageFlowScope.controlFlowName}]
    Now my Problem is: the pageFlowScope variable ControlFlowName is not set.
    And also I got a *link*: https://blogs.oracle.com/vijaymohan/entry/usage_of_setpropertylistener_and_setactionlistener
    Whats wrong with my code. Is my problem related with above *link*.
    Please suggest me how to add SetPropertyListener programmatically.
    -Thanks
    Mohanraj

    Frank,
    This works:
            // create a value expression
            ValueExpression vx =
                elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
                                                String.class);
            // set a default value if desired
            vx.setValue(elContext, clockNo);
            SetPropertyListener spl =
                new SetPropertyListener(ActionEvent.class.getName());
            spl.setFrom(clockNo);
            spl.setValueExpression("to", vx);
            // add the listener to the button
            newOpButton.addActionListener(spl);But, I am thinking you would have known about it before I posted it. I don't really know how it works, but it does.
    Can you help me reconcile between this, and what you said. Because what you said makes sense too.

  • What are user parameters? and how can i add user parameter

    Hi Experts,
    what are user parameters? and how can i add user parameter and how can i add a user parameter
    HR_DISP_INFTY_NUM with value X?

    user parameters are used give reference grps and counntry grouping use SU3 tcode as amite said

  • How to programmatically add UDVs to project?

    Hi all,
    I have successfully used something like this to programatically add shared variables to an LVLIB (the code assumes that the library associated with the Container Reference contains at least one variable):
    An example output would be:
    Container Name: "MyLibrary.lvlib"
    Variable Name: "Variable1"
    Variable Path: <blank>
    Variable Type String: "Variable"
    (I notice that there is no way to specify the data type of the variable, and LabVIEW creates a DBL variable in the LVLIB by default.)
    However, if Container Reference is associated with a "User-Defined Variables" container, then I get Error 1 at the Invoke Node ("LabVIEW: An input parameter is invalid"). A example output is:
    Container Name: "User-Defined Variables"
    Variable Name: "Variable1"
    Variable Path: <blank>
    Variable Type String: "Variable"
    Questions:
    Does the error occur because LabVIEW is trying to create a DBL variable (which is not allowed with UDVs)?
    How can I programmatically add UDVs to my project?
    Thanks in advance!

    What is the scope of your project? How will you be using these UDV's?
    Mark P.
    Applications Engineer
    National Instruments
    www.ni.com/support

  • How to batch add user

    the system use LDAP to authiticate the user, when user login the system.
    now I want to add a lot of user, how can I do?

    Make sure users are added in LDAP.
    No need to add users in the system.
    Pls mark correct/helpful if helps
    Edited by: Srini VEERAVALLI on Oct 10, 2012 6:24
    Any updates on this?
    Edited by: Srini VEERAVALLI on Jan 29, 2013 9:44 AM

  • How to programmatically add timeline webpart to publishing page

    Can we add timeline webpart programmatically?
    If yes then please let me know how we can add it?

    Hi Jason,
    Thanks for your reply. It helped me lot but i want to add something to your code.
    1) Added web.AllowUnsafeUpdates to resolve error of disallow to update.
    2) Added TimelineType  and SourceSelection  properties else it shows add setup properties of webpart
    3) manager.WebParts.Count >= 0 Added condition else on every request it adds control.
    Also i want to know few line of code from your answer:
    1) What is the purpose of using storagekey? Why it is needed?
    2) Why you update page items?
    try
                    using (SPSite site = new SPSite(SPContext.Current.Site.ID))
                        using (SPWeb web = site.OpenWeb(SPContext.Current.Web.ID))
                            web.AllowUnsafeUpdates = true;
                            SPFile page = web.GetFile("/Pages/Home.aspx");
                            page.CheckOut();
                            using (SPLimitedWebPartManager manager = page.GetLimitedWebPartManager(PersonalizationScope.Shared))
                                if (manager.WebParts.Count <= 0)
                                    SPTimelineWebPart timelineWebPart = new SPTimelineWebPart();
                                    timelineWebPart.TimelineType = SPTimelineWebPart.TimelineTypeTaskList;
    //Task type list
                                    timelineWebPart.SourceSelection = "Tasks"; //list name
                                    manager.AddWebPart(timelineWebPart, "timelineZone", 0);
                            page.CheckIn(string.Empty);
                            page.Publish(string.Empty);
                            web.AllowUnsafeUpdates = false;
                catch (Exception ex)
                    lblError.Visible = true;
                    lblError.Text = ex.Message.ToString();
    Once again thanks for your reply. Please if you can resolve my queries then please reply it.

  • How to programmatically add af:setPropertyListener to CommandButton

    I just read:
    https://blogs.oracle.com/jdevotnharvest/entry/creating_adf_faces_comamnd_button
    from Frank Nimphius.
    How do I programmatically add an af:setPropertyListener to the programmatically created command button?
    I just cannot seem to figure it out.
    Thanks.
    Edited by: Arie Morgenstern on Feb 8, 2013 9:59 PM

    Frank,
    This works:
            // create a value expression
            ValueExpression vx =
                elFactory.createValueExpression(elContext, "#{pageFlowScope.clockNo}",
                                                String.class);
            // set a default value if desired
            vx.setValue(elContext, clockNo);
            SetPropertyListener spl =
                new SetPropertyListener(ActionEvent.class.getName());
            spl.setFrom(clockNo);
            spl.setValueExpression("to", vx);
            // add the listener to the button
            newOpButton.addActionListener(spl);But, I am thinking you would have known about it before I posted it. I don't really know how it works, but it does.
    Can you help me reconcile between this, and what you said. Because what you said makes sense too.

  • How to programmatically add Allergens & Sensitivities

    We want to ensure that the Allergens (Known to Contain and Does not contain) and Sensitivities (Known to Contain and Does not contain) on the Trade spec match the allergens and sensitivities from the formulation output. How do I programmatically add Allergens (Known to Contain and Does not contain) and Sensitivities (Known to Contain and Does not contain) to their appropriate collection in code?

    Here's my code:
    My code:
    var transContext = AppPlatformHelper.ApplicationManager.TransactionManager.GetSharedContext();
    transContext.Begin();
    try
    // Get allergens from Associated Specs that are Primary associations and not in Version History status
    var allergensContained = tradeSpec.LinkedAssociations.Values.Cast<IAssociatedSpec>()
                                      .Where(linkedSpec => linkedSpec.AssociationType.AssociationTypeML.Targetname == "Primary")
                                      .Where(linkedSpec => !linkedSpec.AssociationHost.IsVersionHistoryStatus())
                                      .SelectMany(linkedSpec => linkedSpec.AssociationHost.As<IGSMTradeSpecDO>()
                                                                  .AllergensContained.Values.Cast<IAllergenContainedDO>()
                                                                  .Select(x => new { Allergen = x.ComplianceItem.Name, Pkid =x.Allergen.PKID })
                                                                  .ToArray())
    // Get allergens not in the Trade Spec
    var allergensToAdd = allergensContained.GroupBy(x => x.Allergen)
                          .Where(x => tradeSpec.AllergensContained.Values.Cast<IAllergenContainedDO>().All(y => y.ComplianceItem.Name != x.Key))
                                          .Select(x => new { Allergen = x.Key, PKIDs = x })
                                          .ToArray();
    // Add allergens to the Trade Spec
    allergensToAdd.Each(x =>
       // Add allergen (known to contain)
       var allergenContainedDo = (IAllergenContainedDO)ServiceBase.DataManager.newObject(EnumUniversalDataObjectType.AllergenContainedDO);
       allergenContainedDo.Allergen = (IAllergen)ServiceBase.DataManager.objectFromID(x.PKIDs.First().Pkid); // pkid of allergen(2002)
       allergenContainedDo.MaxPer100g = 1.0;
       allergenContainedDo.MaxPer100gUOM = (IUOM)ServiceBase.DataManager.objectFromID(ServiceBase.UnitOfMeasureService.GetUOMByISOCode("GR").PKID);
       tradeSpec.AllergensContained.Add(allergenContainedDo);
       allergenContainedDo.Save(transContext.Connection);
    catch (Exception ex)
        transContext.SetAbort();
    finally
        transContext.Commit();

  • How can we add user defined fields in My Account Profile?

    Hi,
    When adding new field for user,user groups,my resource,organizations and request all exist in the drop down menu list but the MyAccount(In the page where we add user defined fields).
    Please help me to add user defined field in MyAccount also.
    Thanks in advance.

    Hi,
    As I said before it is not that straight forward.If you will decompile tcViewProfileAction .class using any java decompiler you will find out that data in setAccountProfile method is not getting set through formmetadata.xml . If you are well verse with struts then only you can achieve what you are trying to do.You need to extend tcViewProfileAction class and also tcViewProfileForm class and then you need to modify tjspViewProfileTiles.jsp .It will not be easy job.Usually in implementation we do not change action class until its absolutely required as oracle also do not recommend that so now its between you and your client to make a call if they want to go for such customization.I won't recommend you do that.
    Regards
    Nitesh

  • How do I add users to home sharing?

    Hi!
    I am trying to figure out how I can add my family members to home sharing so that they can access my music and apps.
    I appreciate any help.
    Kristian

    When you turn on Home Sharing, it asks you for your Apple ID and password. You have to use the same one on each device you're sharing with.
    This link might help:
    Understanding Home Sharing

  • How do I add user to a Contact Role in 11i? ( GIS )

    Hi Hussein:
    I was trying to find out how to add a list of users to a contact role in GIS? Initially the contact used to be individual email_id's , but right now the user email_ids are added to a new role and in the subsidiary company setup the contact is having a pointer to the role.
    Regards,
    Bala

    Yes, Hussein.. If you login to EBS as a user with GIS Responsibility --> setup -- > Intercompany -- > Subsidiaries
    in the form u will notice 'Notification Options' and you will see a field ' Contact '. This filed normally used to be a email id. For easy manageability they have created a contact role and assigned users to this role. I do now how to get the list of contact roles and how to add the new users to the role, so they can get notifications.
    Regards,
    Bala

  • How to electronically add users

    I need to add over 1000 users for access to Instant Portal with a selection of rights falling into 5 basic groups. How can this be achieved electronically?

    Hi there,
    I wouldn't say "electronically", but you may use the Metalink Note:260290.1, which basically uses OID APIs and Portal APIs (as this is security there shouldn't be a problem using this with Instant Portal) to sort this out (remember that Instant Portal users need to belong to the oip_available_users group -- check carefully the Instant Portal Guide -- http://download.oracle.com/docs/cd/B14099_15/portal.1012/b16385/instprtl.htm).
    I hope it helps...
    Cheers,
    Pedro.

Maybe you are looking for

  • Z-index issues

    Hello I am having issues with z-index and layering. I have an iframe which is a full screen video acting as a background. I used a spry tabbed panels widget for my tabs and text, and canNOT get it to appear in FRONT of the video. The iframe z-index i

  • Will frequent removal of headphones from the headphone jack damage the jack

    As said in the subject. Will it damage? Thanks!

  • HP4710 all in one printer - just won't start up

    HP4710 all in one printer start up screen display just keeps cycling but never gets to usual finish screen. Hence cannot even use HP diagnostic tool. Have tried the obvious stuff - ie on/ off button & disconecting/ reconnecting power but same happens

  • Bug: Before and After Margins Layout with section starting in right page

    Hi, I am using the Spanish version of Pages 09. I have observed that when I start a new section, I have no problems setting the layout margins (right, left, before, after) of this section. But if a set that the new section must start in a right page,

  • Time machine article wrong!

    This article is incorrect: http://support.apple.com/kb/ht1427 In Disk Utility, make sure it has a GUID partition and is formatted as Mac OS Extended (Journaled). If needed, reformat the drive as Mac OS Extended with a GUID partition. If you do not kn