Configuring the Storage Service

Some of the NETVIBES OnePart application data such as the user’s Preferences and selections is stored in a SQLite database called “Storage Service”. This data is written and read by UI widgets and in certain cases, are also pushed to the index to provide faceting and sorting.

This task shows you how to:

Context: In general, the Storage Service is useful to:

  • Get arbitrary chunks of data (JSON strings, images, Java objects, etc.) attached to your Mashup UI application.
  • Delete, replace and append metas and categories to Exalead CloudView documents.
  • Store private data per user.
For administration details on storage, see the OnePart Installation Guide.

Data in the Storage Service

The following table shows the data available by default in the OnePart Storage Service.

Context:

Name Key Scope Description Example
Baskets baskets[] shared A basket object is a JSON array of index ids. [{"id":{"url":"/E%3A%5CProjets%5CJ1/262_70013A_SHAFT+-+HEAD+ASSY.SLDPRT", "source":"J1"}, "quantity":1,"data":{}},{"id":{"url":"/E%3A%5CProjets%5CJ2/262_70013A_SHAFT+-+HEAD+ASSY.SLDPRT", "source":"J2"}, "quantity":1,"data":{}}]
Current users baskets userBaskets[] user Link a user to 2 baskets: the current one and the last deleted one (for restore feature). hqjj0xfe3vdm9n@hqjj0xfi4il3rg
Hit view count nb_views document The view count of a hit. It is updated each time a user goes to the preview page, and then indexed. 252
Shape similarity configuration shapeSimilarityConfig[] shared A shape similarity configuration is a JSON object of key values. {"timeOut_duration":"5","similarityLevel":"88", "timeOut":"true", "inertiaPrefilter":"true", "sameFamily":"null", "inertiaPrefilter_similarity":"80", "bbPrefilter_similarity":"80","bbPrefilter":"null", "sameSource":"null","collapseIdentical":"null"}
User preferences preferences user The user preferences is a JSON object of key values. {"childrenResolveStrategy.autocad":"2", "compareNumericalTolerance":"5", "childrenResolveStrategy.catia":"2", "childrenResolveStrategy.proengineer":"2", "locale":"en", "dateTimeFormat":"dd MMM yyyy, [HH:mm","childrenResolveStrategy.solidworks":"0 HH:mm", "childrenResolveStrategy.solidworks":"0]", "dateFormat":"dd/MM/yyyy","timeZone":"Europe/Paris?","unitSystem":"metric", "childrenResolveStrategy.nx":"1", "shapeSimilarityConfigId":"hqjj1jw7uwk00c"}
Hit tags tags_full[] document A hit tag is a JSON object of key values. {"timestamp":1390233428494,"author":"user1","text":"latest"}
Relations manager 3d_shape_children_resolve_who document Who changed the relation strategy. user1
Relations manager 3d_shape_children_resolve_when document When last change of relation strategy occurred. 01/28/2014 16:55:30
Relations manager 3d_shape_children_resolve_strategy document Id of the relation strategy to use. 4

Create your own features using the Storage Service

See the “Creating Collaborative Widgets Using Storage Service” in Exalead CloudView Mashup Programmer's Guide.