Storing application settings in Moqui - moqui

I need to store and retrieve settings (with application scope). Is there anything suitable included OOTB?
My aim is to have them easy accessible from the Tools or System (for editing) menu with the ability to feed them via the gradle methods.

The entity designed for this is the UserPreference entity. There are convenience methods on the UserFacade (ec.user) for getting and setting these preferences, and they are already used for things like setting the light/dark theme, etc. There are even transitions in the apps.xml screen that can be used to set preferences, and screens that use them.

Related

Setting values whitout UI interaction. Cypress app actions

Guys! I'm kinda new in cypress and was looking in this link (https://www.cypress.io/blog/2019/01/03/stop-using-page-objects-and-start-using-app-actions/ )to see the diff between page objects and app actions. Since app actions are brand new, i was not able to find any documentation to help me out. In the link above, there was an example of how to predefine values ​​on the page so no UI interaction is required. I was able to follow the steps and realize the changes here, but i don't know how to do that outside this example.
How could i manipulate cypress application to do that?
Skimming the article, the idea of application actions is to export an API/hooks from your application that your test can use to interact with the app (its model, state etc.), for the purpose of speeding up certain workflows (such as seeding the model), awaiting certain events etc.
There's nothing magical about it, but it requires knowing your app architecture β€” what you need to export (i.e. expose on the window object), and how to interact with it. If you're not the developer of the app (e.g. you work in a separate QA department), and treat the app as a black box, then you'll need to discuss with the dev team how best to implement this.
Each app is different, and depending on the app architecture (What framework does it use? How does it store state/model? etc.), each solution will be different.

Windows Explorer extension: how to handle opening links?

I'm working on a specific document management system (DMS) which has, for design sake, a Tortoise-like Explorer extension. The simple part (custom context menu) is done, because there are a lot of resources, describing how to do it. (For instance, http://www.codeproject.com/Articles/830/The-Complete-Idiot-s-Guide-to-Writing-Shell-Extens).
But I have faced a feature request to handle opening .lnk files (in Windows Explorer, of course) and process them (if needed) using the DMS instead of the standard verbs. I'm not sure whether it's possible at all using a COM callback interface (due to security reasons). I would avoid low-level techniques like hooks at all costs. Anyway it's supposed that our users work as admins, have all privileges etc.
Regards,

WSO2 ESB - Customise Browser for ESB Identity

Is there any way to customize the user browser experience.
I have multiple ESB's and its easy to accidentally configure one thinking you are in another. The port seem to be the only differentiator.
I was thinking along the lines of being able to set a banner text -
e.g. "I'm In UAT" etc ?
According to the WSO2 Documentation, You can customize the Management console as per your need.
Customizing the product interface involves changing the layout/design of the Carbon framework as well as changing the styles and images specific to the product.
Specifically, you can do the following.
Changing the layout
Changing the styles on the Carbon framework
Changing the product specific styles and images

Windows Store Apps difference between Contracts and Extensions?

Can someone provide me an easy explanation of the difference between Contracts and Extensions in Windows Store Apps?
I have read this article: http://msdn.microsoft.com/en-us/library/windows/apps/hh464906.aspx, however, in some of the examples it isn't clear why one is a Contract and not an Extension and vice-versa.
Thank you.
When you "extend" a native function of Windows 8, like taking pictures or picking files - then your app is an "extension". It is more a category of apps based on their function. Contracts, in contrast, are just leveraging the charms and device capabilities. //End
To summarize:
Many apps will use contracts.
Few (very few?) apps will be extensions.
A contract is an agreement to consume and/or supply data in a specific format, often between apps as is the case with the Share contract. Contracts result in activations and are most often invoked directly from the Charms Bar (Search, Share, Settings, PlayTo) or the Start Menu (Launch).
An extension is an agreement between your app and the operating system. It is a way to extend the OS functionality with your app. AutoPlay for example allows the OS to launch your app when an item of a particular type is selected. Camera Settings will allow you to customize the camera settings provided by the OS when the user is configuring the camera.
So in general I think of contracts as app-app or app-user and extensions as app-OS, but it is obvious some are gray areas (like File Picker, I would consider that more an extension than a contract, but it is categorized as a contract).
A contract is like an interface with the common windows 8 charm bar features such as share & search.
You can make you app available to either provide to, or receive from these contracts.
An extension is where you might say, my app id used as a third part component, or as the link suggests says your app handles files of a particular extension and presents itself as a handler perhaps for that file type

Set System Preferences using Objective-C

This is probably trivial, however I couldn't find any information online: How can I set any Apple preference using code? I would like to create a little application for myself that sets certain preferences when I click a button. For instance I would like to turn off Bluetooth and Wi-Fi. As far as I know, these preferences are stored in /Users/fabian/Library/Preferences/com.apple.*.plist.
So: how can I change these preferences and make sure they are applied?
The CoreFoundation CFPreferences API allows for editing of defaults outside of the current application's defaults domain.
Note that you'll likely need administrative privileges to edit many network related defaults.