How to persist a profile ?

Is it possible to persist a profile such as the CustomerProperties to the database using the ProfileControl?
It seems that setting properties is only in memory.
Or do I need to create a custom user profile manager?

This code adds lots of users and profiles.
you have to login first with "weblogic" before you can add them all.
     @Jpf.Action(forwards = { @Jpf.Forward(name = "success", path = "success.jsp") })
     public Forward processForm(portlets.login.LocalLoginController.LoginForm form) {
          Forward forward = new Forward("success");
          try {
               boolean isRegistered = Boolean.parseBoolean(form.getRegister());
               if (isRegistered)
                    Authentication.login(form.getUserID(),form.getPwd(),this.getRequest(),this.getResponse());
                    ProfileWrapper pw;
                    pw = profileControl.getUserProfile(getRequest().getRemoteUser());
                    pw.setProperty("CustomerProperties","CustomerType",form.getCustomerType());
                    int offset = 2000;
                    for (int i=200; i<10000; i++)
                         String name = "NewUser" + i;
                         userProviderControl.createUser(name,name,getRequest());
                         ProfileWrapper ronpw = profileControl.getUserProfile(name);
                         ronpw.setProperty("CustomerProperties","CustomerType","myCustomerType");
                         ronpw.setProperty("CustomerProperties","FirstName","createFirstNameProperty");
                         ronpw.setProperty("CustomerProperties","LastName","createLastNameProperty");
                         ronpw.validateProfile();
                    }

Similar Messages

  • How to persist URL parameters in OAM portal inserts?

    Hi,
    We have a requirement to redirect the users to different XSLs based on the containers configured in OID (ou=employees,ou=customers). We have configured different style directories (employees and customers) in OAM. For Identity Administration activities we are using another style (adminStyle) used by OAM Identity Administrators.
    We are using OAM portal inserts for navigating from webapplication (integrated with OAM) to OAM modify profile page to change user attributes.
    Also webapplication using different authenitcation scheme in OAM.
    User login into webapplication using login.jsp (form based authentication scheme) and clicks on Modify profile link (URL will be portal insert URL).
    After the user session timeout (Configured in webgate) user is redirected to OAM login page (form based authentication). Once the user enters valid credentials user is redirected to OAM user manager application (only navigation bar with back button is displayed).
    The parameters comp=true, style=employees and program=modify are lost. Hence user not able to see OAM Modify profile page. Again user needs to click on back button (portalid) to get into Modify profile page. How to persist these parameters in the URL?
    Following is the portal insert URL we are using:
    http://<host>:<port>/identity/oblix/apps/userservcenter/bin/userservcenter.cgi?program=modify&uid=UserDN&style=employees&xsl=usc_profile.xsl&comp=true &portalid=webapphome
    Anypointers on this is appreciated.
    Thanks in advance.
    Regards,
    Srikanth
    Edited by: Srikanth_idam on 16-Apr-2010 04:30

    Hi Srikanth,
    That looks like a bug (6158232) that was fixed in version 10.1.4.2 of OAM Access Server (maybe WebGate too). Are you on an earlier version?
    Regards,
    Colin

  • How to return a profile in Game Center. where you want to enter the old nikneim?

    How to return a profile in Game Center. where you want to enter the old nikneim?

    It's not actually round.  It is slight flattened vertically.
    Anyway...
    I have an Action that places guides at 50% (50pc) vertically and horizontally to give me the exact center of an image file, or you place them manually with View > New Guide.
    After doing that I would place the circular select from that center point using Shift and Alt (Opt) and get it more or less where I wanted it.  Then change the selection into a work path.
    You can use Free Transform to reshape and position that work path by selecting it in the Paths panel.
    Then place your text, and if you still need to fine tune, use Free Transform again, but on the Type layer.
    You could also use Free Transform to reshape the BG graphic to make it round.

  • How to change the profile value in the pl/sql code without making change in the database

    How to change the profile value in the pl/sql code without making change in the database.

    I have program ,where if the profiles 'printer and nunber of copies ' are set at the user level, by default when the report completes the O/p will be sent to the printer mentioned in the set-up. but what user wants is
    if these Profiles are set for the user running this program automatic printing should not be done.

  • How to  get the profile object in simple java class  (Property accessor)

    Hi All,
    Please guide me how to get the profile object in simple java class (Property accessor) which is extending the RepositoryPropertyDescriptor.
    I have one requirement where i need the profile object i.e i have store id which is tied to profile .so i need the profile object in the property accessor of the SKU item descriptor property, which is extending RepositoryPropertyDescriptor.
    a.I dont have request object also to do request.resolvename.
    b.It is not a component to create setter and getter.It is simple java class which is extending the RepositoryPropertyDescriptor.
    Advance Thanks.

    Iam afraid you might run into synchronization issues with it. You are trying to get/set value of property of a sku repository item that is shared across various profiles.
    Say one profile A called setPropertyValue("propertyName", value).Now another profile B accesses
    getPropertyValue() {
    super.getPropertyValue() // Chance of getting value set by Profile A.
    // Perform logic
    There is a chance that profile B getting the value set by Profile A and hence inconsistency.
    How about doing this way??
    Create PropertyDescriptor in Profile (i.e user item descriptor), pass the attribute CustomCatalogTools in userProfile.xml to that property.
    <attribute name="catalogTools" value="atg.commerce.catalog.CustomCatalogTools"/>
    getPropertyValue()
    //You have Profile item descriptor and also storeId property value.
    // Use CustomCatalogTools.findSku();
    // Use storeId, profile repository item, sku repository item to perform the logic
    Here user itemdescriptor getPropertyValue/setPropertyValue is always called by same profile and there is consistency.
    -karthik

  • How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?

    How to Get user profile properties in provider -cloud hosted app in sharepoint online - office 365 using REST API?
    any idea?

    Hi,
    From your description, my understanding is that you want to get user profile properties in provider-hosted app in SharePoint online using REST API.
    Here is sample code for getting user profile properties:
    http://www.vrdmn.com/2013/07/sharepoint-2013-get-userprofile.html
    Here is a blog below about accessing data from the provider-host apps:
    http://dannyjessee.com/blog/index.php/2014/07/accessing-sharepoint-data-from-provider-hosted-apps-use-the-right-context/
    Best Regards,
    Vincent Han
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to persist TextInput text values?

    Can anyone provide a brief explanation of how to persist text
    values?
    Description:
    Stuff written into a TextInput field does not persist when
    moving
    to another frame, and back again.
    Example:
    Frame 1: Put a TextInput component on the stage.
    Frame 1: Put a "forward" button on the stage.
    Frame 9: Put a "back" button on the stage.
    Frame 1 actionScript:
    this.btnForward.onRelease = function() {
    gotoAndStop(9);
    Frame 9 actionScript:
    this.btnBack.onRelease = function() {
    gotoAndStop(1);
    Play it.
    Write something in the TextInput.
    Click the forward button. (this takes it to Frame 9)
    Click the back button. (this takes it back to Frame 1)
    >> The TextInput field is blank.
    Hoping someone can help,
    Thanks,
    John

    quote:
    Originally posted by:
    JohnKirk
    Hi,
    Thanks for your quick reply!! -- still have a problem, as
    follows: Value gets set to "undefined" upon return.
    Can you go into just a little more detail about "where" the
    variable should be created, and "when" it should be populated and
    read?
    Details:
    Frame 1:
    1) I declare a variable in Frame 1, and initialize it to
    null:
    "var myStr:String = "";"
    That seems reasonable (thoug technically you set it to an
    empty string and not to null, but the empty string is better in
    this case)
    quote:
    2) I save the value in the btnForward.OnRelease function:
    "myStr = Ti.text;"
    when using the button this way you would have to use
    "this._parent.myStr = this._parent.Ti.text";
    as the scope in buttons behaves different if you put the
    action directliy on the button (flash 5 way) or if you do it your
    way.
    quote:
    3) I add a line to set the TextInput text: "Ti.text = myStr;"
    4) When I Play it, Ti is empty. I type in words, and click
    forward (moving to Frame 9). Then I click back (moving to Frame 1).
    Ti shows "undefined".
    Thanks for your patience,
    John
    I hope that helps.
    [I have to put my kids to bed now, so it'll be a while before
    I can help if it won't work as I expect.
    Anybody else also is very welcome to help ;-) ]

  • How to persist user changes in porlet in portal

    hi,
    when i login with particular id and i made some changes
    in look and feel of portlets in portal page. can any body tell how to persist those changes for particular user in portal .
    Thanks in advance

    Sorry for the confusion. I may not have clarified my issue.
    The situation is I save UserId and Password in UserInfo JavaBean from Login Page. I can pass UserInfo to create and finder methods of BMP to connect to database. My problems is with ejbStore method. I need to find a way so that ejbStore would be able find this UserInfo object.
    Also remember Container does Activate and Passivate EJB.
    Thanks,
    Jigs

  • How to get the profile name

    I did not know how to get the profile name in photoshop file using javascript? Kindly help me.

    var myDocProfile = app.activeDocument.colorProfileName;

  • How to check user profile service working in sharepoint 2013?

    HI All,
    How to check user profile service working or not in sharepoint 2013? Thanks.

    Hi,
    Select which OU's you want to synchronize, then check if all users in those OU's have a user profile in the user profile service application.
    Nico Martens - MCTS, MCITP
    SharePoint 2010 Infrastructure Consultant / Trainer

  • How to persist updated DataGridTemplateColumn value

    I am new to WPF and facing some issues with datagrid . My ViewModel has an ObservableCollection Report Of class T_Reports.
    //EF generated code 
    public partial class T_Reports
            public int ReportID { get; set; }
            public string ReportName { get; set; }
            public Nullable<string> ReportUIGroup { get; set; }
            public virtual T_ReportsUIGroups T_ReportsUIGroups { get; set; }
    I am showing the ReportUIGroup in DataGrid. My intention is to allow user to be able to change to other values of ReportUIGroup from T_ReportUIGroups. To achieve this i am fetching all Values of T_ReportUIGroups table in an ObservableCollection UIGroupingsWithReportNavigation.
    I have created a DataGridTemplateColumn  which shows current Value of ReportUIGroup and on edit it shows a combobox with all possible values from UIGroupingsWithReportNavigation.
    But i am not getting how to persist this changed Value back to Report(ObservableCollection)
    ModelView 
     public ObservableCollection<T_ReportsUIGroups> UIGroupingsWithReportNavigation
                get { return _uIGroupingsWithReportNavigation; }
                set
                    _uIGroupingsWithReportNavigation = value;
                    base.RaisePropertyChangedEvent("UIGroupingsWithReportNavigation");
            public ObservableCollection<T_Reports> Reports
                get { return _reports; }
                set
                    _reports = value;
                    base.RaisePropertyChangedEvent("Reports");
    XAML
    <DataGrid  HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch" AutoGenerateColumns="False"
                     GridLinesVisibility="None" AlternatingRowBackground="Silver" ItemsSource="{Binding Reports}"   
                                                           Margin="0 0 0 0" Height="420" ColumnWidth="SizeToCells">
                  <DataGrid.Columns>
                           <DataGridTemplateColumn Header="UI Group1" MinWidth="150" >
                             <DataGridTemplateColumn.CellTemplate>
                             <DataTemplate>
     <TextBlockText="BindingT_ReportsUIGroups.GroupName,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" />
                              </DataTemplate>
                              </DataGridTemplateColumn.CellTemplate>
                                         <DataGridTemplateColumn.CellEditingTemplate>
                                          <DataTemplate>
                                        <ComboBox DataContext="{DynamicResource MainWindowViewModel}" ItemsSource="{Binding UIGroupingsWithReportNavigation}"
    DisplayMemberPath="GroupName" SelectedValuePath="GroupID" ></ComboBox>
                                         </DataTemplate>
                                         </DataGridTemplateColumn.CellEditingTemplate>
                                 </DataGridTemplateColumn>
                                  </DataGrid.Columns>
                 </DataGrid>
    Please help me to solve this problem
    Thanks

    If the DataGrid's ItemsSource property is bound to the ObservableCollection<T_Reports> you should store the selected value of the ComboBox in some property of the T_Reports class.
    If the GroupID of the T_ReportsUIGroups class (SelectedValuePath in the ComboBox) is of type int, you could bind it to an int property of the T_Reports class:
    public partial class T_Reports
    public int ReportID { get; set; }
    public string ReportName { get; set; }
    public Nullable<string> ReportUIGroup { get; set; }
    public virtual T_ReportsUIGroups T_ReportsUIGroups { get; set; }
    public int SelectedGroupId { get; set; }
    <ComboBox DataContext="{DynamicResource MainWindowViewModel}" ItemsSource="{Binding UIGroupingsWithReportNavigation}" DisplayMemberPath="GroupName" SelectedValuePath="GroupID" SelectedValue="{Binding SelectedGroupId}"></ComboBox>
    Hope that helps.
    Please remember to mark helpful posts as answer and/or helpful.

  • How to create Partner profile

    1)Could someone tell me how to create partner profile in file to idoc scenario.
    2)How to create RFC connection.
    3)How to use IDX1 and IDX2.
    Thanks
    Regards
    Ashish

    Ashish,
    take a look at this article,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660 
    XI ~~
    1. SM59 -- Create an RFC destination for R3 system.
    2. IDX1 -- Create a port to R3 system
    3. IDX2 -- Import IDOC metadata.
    SLD ~~
    Create technical system and business system pointing to the R3 system and use this as you reciver system.
    Let me know if you need any inouts.
    Regards,
    Bhavesh

  • How to Create Roaming Profile(s) For Windows Workgroups

    This Tutorial Shows how to create roaming profile(s) for Windows Workgroups.
    Here are the steps in order to do this:
    On the host PC:
    1. Goto 'Folder Options'>'View' and un-tick 'Use Simple File Sharing'.
    2. Goto Network Connections and right click on the 'Local Area Connection' (Ethernet recommended)
    3. Goto Properties>General, and tick 'File and Printer Sharing'.
    Click Apply + Ok.
    4. Goto Control Panel>User Accounts, add a new user.
    5. Logon to this user, and open the profile folder properties.
    5b. Share this folder.
    6. Make the Share permissions so that 'everyone' has: Full Control, Read, Change.
    Click Apply + Ok.
    7. Click on 'Caching' and disable Caching for this Share.
    Click Ok.
    8. Now goto the 'Security' tab and give 'Administrator' and 'SYSTEM' 'Full Control'.
    Click Apply + Ok.
    On the remote PC(s):
    1. Make the same User as on the Host.
    1b.Logon to the account and log back out again. Delete the profile folder from 'Documents and Settings'.
    3. Give 'SYSTEM': 'Read','Read and Execute','List Folder Contents' to the 'Administrators' Profile
    4. Type 'lusrmgr.msc' into run, goto: 'Users', double click on the new user and goto the 'Profile' tab.
    4b. In the 'Profile Path' box, type \\hostPCname\ProfileName.
    Click Apply + Ok
    *Note* Replace the \\path\ accordingly to what names are on your Host PC.
    5. Goto regedit>HKLM\Software\Microsoft\Windows NT\CurrentVersion. Double click
    on 'ProfileList'.
    Find which key is for the new user. (Example S-1-5-21-58435627-18431725-18026167-1003)
    6. Right click that key and goto: 'Permissions' and give 'SYSTEM' 'read'.
    *Note* Once you logon to the roaming profile from the remote PC for the first time you can undo this step.
    7. goto GPEdit>Computer Configuration/Administrative Templates/System/User Profiles:
    Enable these settings:
    'Do not check for user ownership of roaming profile folders'
    'Delete cached copies of roaming profiles'
    'Log users off when roaming profile fails'
    "Add the Administrators security group to roaming profiles'
    'Prevent roaming profile changes from propagating to the server'
    7b. Make 'Timeout for dialog boxes' '1' (seconds)
    8. goto: Computer Configuration/Security Settings/Local Policies/Security Options:
    Make 'Number of previous logons to cache (if server is unavailable) '0'
    Now you're ready to login to the Profile on the remote PC.
    *Note* Sometimes, when windows loads it takes a minute for the profile folder to become shared again.
    Thanks for reading.

    Hi,
    I have replied to the below thread mentioning the FM's to create Profile sets, profiles and also target groups. This may be helpful to you.
    Re: target group creation
    Regards,
    Priyanka

  • How to create Creation Profile

    Hello all Gurus,
    Can someone please tell me how to create "Creation Profile" and use them in MM scheduling agreement? I have an issue, where the user wants 2 separate creation profiles to be created so that the demands should be sent to suppliers on Thursdays and Fridays only. I maintained the creation profiles in SPRO -- MM -- Purchasing -- Scheduling Agreement -- Maintain Creation Profile for Scheduling agreement with rel. doc. But these creation profiles doesn't seems to work. What are the extra steps that we need to carry out once the creation profiles are created and then maintained in MM scheduling agreement?
    If you have any knowledge on creation of CREATION PROFILES please share it with me. It will be very much helpful for me.
    Thanks and Regards,
    Umakanth

    hi,
    Go to SPRO > MM > Purchasing > Scheduling Agreement > Maint. Rel. Creation Profile for Sched. Agmt. w. Rel. Docu.
    Maint. Rel. Creation Profile for Sched. Agmt. w. Rel. Docu.
    In this step, you can define the release creation profile.
    The latter is an instrument for determining which criteria are used to generate releases against a scheduling agreement and transmit them to the vendor.
    You assign the creation profile to the scheduling agreement item in the additional data.
    The creation profile controls the creation periodicity of the releases and - starting from the current date of release creation - the way in which the quantities are aggregated.
    In the release creation profile, you can define
    o   General Parameters
    -   Which creation strategy is the basis for JIT delivery schedules and scheduling agreements.
    -   How backlog and immediate requirements are taken into account during release creation.
    o   Aggregation and release horizon
    -   If and how schedule lines should be aggregated during release creation.
    o   Release creation periodicity
    -    With which periodicity scheduling agreement releases are created
    o   Tolerance profile
    -    That for releases created as a result of changed schedule lines, the system performs a tolerance check
    o   Internet release
    -    Whether an Internet release is created during release creation

  • How to embed ICC profile

    Hello,
    I'm trying to embed an icc profile in a pdf, I am actually doing like this:
      char *filePath=NULL;
              ASPathName ICCPath;
              asprintf(&filePath,"%s/ICC_PROFILES/%s",DataDirName,profileName);
      #if !macosx
                        ICCPath = ASFileSysCreatePathFromDIPath(NULL,filePath,NULL);
              #else
                        ICCPath = GetMacPath(filePath);
              #endif
              ASFile iccProfile = NULL;
              ASFileSysOpenFile (NULL, ICCPath, ASFILE_READ, (ASFile *)&iccProfile);
              ASStm asStmICC = ASFileStmRdOpen(iccProfile,0);
              int tmp = ASFileGetEOF(iccProfile);
              char* buff=calloc(tmp,1);
              ASStmRead(buff,1,tmp,asStmICC);
              AC_Profile profil = NULL;
              ACMakeBufferProfile(&profil,buff,tmp);
              PDDocColorConvertEmbedOutputIntent(pdDoc,profil);
    it's kind of work since I have the icc profile inside my pdf file (I can see it with vim)
    but I'm having issue when trying to open it with Photoshop ... Photoshop don't see the embeded profile.
    any idea ?
    Regards,
    William

    An OutputIntent Profile (which is what you are creating with the PDDoc call at the end) is NEVER used by PDF UNLESS the PDF is also compliant with one of the subset standards (eg. PDF/A, PDF/E, PDF/X) - see ISO 32000-1:2008, 14.11.5.
    Why are you setting this profile?  Is the PDF a single page with a single raster image?
    From: Adobe Forums <[email protected]<mailto:[email protected]>>
    Reply-To: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>>
    Date: Wed, 19 Oct 2011 05:39:21 -0700
    To: Leonard Rosenthol <[email protected]<mailto:[email protected]>>
    Subject: how to embed ICC profile
    how to embed ICC profile
    created by yokuju<http://forums.adobe.com/people/yokuju> in Acrobat SDK - View the full discussion<http://forums.adobe.com/message/3979415#3979415

Maybe you are looking for

  • How to insert multiple rows in the database table with the high performance

    Hello everybody, I am using the struts,jsp and spring framework. In my application there are 100s of rows i have to insert into the database 1 by 1. I am using usertransaction all other things are working right but i am not getting the real time perf

  • [Erwin] How to replace all datatypes using domain dictionary in Erwin

    Hi, I am new to ERWin. My issue --- I have an existing database that I re-engineered in ERWin, but due some requirements and standard changes, I have to edit the model. A lot of these changes will apply to every table. e.g. Column DT_ADDED needs to c

  • Drivers for HP2000C printer to run on Windows XP Service Pack 2

    I am trying to reinstall an HP2000C printer on Windows XP Service Pack 2. When I insert CD a message says "Your operating system is not supported by this program". Problem I am having is that when I try to print a PDF file the printer cycles but does

  • Published site has more pages that local iWeb files

    I added several pages to my site. Then my hard drive crashed and my backup did not have the new pages. Now the published site has more pages than what i see when I open iWeb. How can I fix this? I want all the published pages also available in my har

  • Beefing up Secirity and Encryption in Air Apps

    Hello, We are working on an AIR app currently and concerned about security when it comes to local data and content. We have come up with a few ideas which may help. 1. Storing Data in the local encrypted datastore This is a great feature, unfortunate