Search in sources :

Example 1 with PluginRelease

use of com.gitblit.models.PluginRegistry.PluginRelease in project gitblit by gitblit.

the class PluginManager method lookupRelease.

@Override
public synchronized PluginRelease lookupRelease(String pluginId, String version) {
    PluginRegistration reg = lookupPlugin(pluginId);
    if (reg == null) {
        return null;
    }
    PluginRelease pv;
    if (StringUtils.isEmpty(version)) {
        pv = reg.getCurrentRelease(getSystemVersion());
    } else {
        pv = reg.getRelease(version);
    }
    return pv;
}
Also used : PluginRelease(com.gitblit.models.PluginRegistry.PluginRelease) PluginRegistration(com.gitblit.models.PluginRegistry.PluginRegistration)

Aggregations

PluginRegistration (com.gitblit.models.PluginRegistry.PluginRegistration)1 PluginRelease (com.gitblit.models.PluginRegistry.PluginRelease)1