Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7010395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:59:07+00:00 2026-05-27T21:59:07+00:00

I am currently working on the saving the information using blackberry persistence store. I

  • 0

I am currently working on the saving the information using blackberry persistence store. I have to save the details according to the user level access.

Scenario: User 1 has logged in and saved some details to the persistence store, and then User2 logged in. The data saved by User1 should not be available for User2. Can you please guide me how do i fix that.

I am using the below code.

try {       
    store = PersistentStore.getPersistentObject(key);
    CodeSigningKey codeSigningKey = CodeSigningKey.get("ACME");
       synchronized (store) {
        objectsList = new Vector();
        store.setContents(new ControlledAccess(objectsList,codeSigningKey));
        store.commit();
       }
   } catch (Exception e) {
       Dialog.inform(e.toString());
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:59:08+00:00Added an answer on May 27, 2026 at 9:59 pm

    You could create a different persistent store for each user by using the username as key

    so what you should do is the following

    try {
    
    String username="joe";
    String key =StringUtilities.stringHashToLong (username); 
    store = PersistentStore.getPersistentObject(key);
    
    CodeSigningKey codeSigningKey = CodeSigningKey.get("ACME");
    
    synchronized (store) {
        objectsList = new Vector();
        store.setContents(new ControlledAccess(objectsList, codeSigningKey));
        store.commit();
    }
    } catch (Exception e) {
    Dialog.inform(e.toString());
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently working with some code involving saving a file to a user-defined file.
I'm currently working on an app using EF 4.1 Code First and have a
Im currently working with an API which requires we send our collection details in
I`m currently working on a script, and I have the following situation. function somnicefunction()
I'm currently working on an Android application. I wish to have a GridView on
I'm using a SQLite database to store information on players and their teams using
I have a simple WCF4 REST service which is working fine when using a
I am currently working on a php/javascript project which retrieves information from a database
I'm currently working with a part of my application that uses Dynamic Web User
I'm currently working with some data using Javascript that is in the form of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.