When license is invalid, settings page will not be displayed great :)
https://answers.atlassian.com/questions/101536/thirdpartypluginlicensestoragemanager-example-code
However, plugin has custom field modules. When license has expired, the custom field is still on the custom field list, and the custom fields added before the expiration of the lisence are usable in related screens. How can I solve it? Any ideas?
First, you should test licensing using ThirdPartyPluginLicenseStorageManager, and if the license is not valid, You should pass empty velocity parameters to your view.vm. Otherwise, You should pass your velocity parameters.
Map<String, Object> velocityParams = new HashMap<String, Object>(); if(!hasLicense()){ return velocityParams; } ... velocityParams.put("setvals", setValuesList); ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
First, you should test licensing using ThirdPartyPluginLicenseStorageManager, and if the license is not valid, You should pass empty velocity parameters. Otherwise, You should pass your velocity parameters.
Map<String, Object> velocityParams = new HashMap<String, Object>(); if(!hasLicense()){ return velocityParams; } ... velocityParams.put("setvals", setValuesList); ...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.