Occur.MUST );
}
+ if ( StringUtils.isNotBlank( searchFields.getBundleImportPackage() ) )
+ {
+ q.add( indexer.constructQuery( OSGI.IMPORT_PACKAGE,
+ new StringSearchExpression( searchFields.getBundleImportPackage() ) ),
+ Occur.MUST );
+ }
+
+ if ( StringUtils.isNotBlank( searchFields.getBundleRequireBundle() ) )
+ {
+ q.add( indexer.constructQuery( OSGI.REQUIRE_BUNDLE,
+ new StringSearchExpression( searchFields.getBundleRequireBundle() ) ),
+ Occur.MUST );
+ }
+
if ( StringUtils.isNotBlank( searchFields.getClassifier() ) )
{
q.add(
*/
private String bundleExportService;
+
+ /**
+ * contains osgi metadata Require-Bundle if available
+ *
+ * @since 1.4-M3
+ */
+ private String bundleRequireBundle;
+
/**
* not return artifact with file extension pom
+ *
* @since 1.4-M2
*/
private boolean includePomArtifacts = false;
this.includePomArtifacts = includePomArtifacts;
}
+ public String getBundleRequireBundle()
+ {
+ return bundleRequireBundle;
+ }
+
+ public void setBundleRequireBundle( String bundleRequireBundle )
+ {
+ this.bundleRequireBundle = bundleRequireBundle;
+ }
+
@Override
public String toString()
{
sb.append( ", bundleImportPackage='" ).append( bundleImportPackage ).append( '\'' );
sb.append( ", bundleName='" ).append( bundleName ).append( '\'' );
sb.append( ", bundleExportService='" ).append( bundleExportService ).append( '\'' );
+ sb.append( ", bundleRequireBundle='" ).append( bundleRequireBundle ).append( '\'' );
sb.append( ", includePomArtifacts=" ).append( includePomArtifacts );
sb.append( ", classifier='" ).append( classifier ).append( '\'' );
sb.append( '}' );
/**
* @since 1.4-M3
- * to be able to search with a query on selected repositories
+ * to be able to search with a query on selected repositories
*/
private String queryTerms;
*/
private String bundleExportService;
+ /**
+ * contains osgi metadata Import-Package if available
+ *
+ * @since 1.4-M3
+ */
+ private String bundleImportPackage;
+
+
+ /**
+ * contains osgi metadata Require-Bundle if available
+ *
+ * @since 1.4-M3
+ */
+ private String bundleRequireBundle;
+
private String classifier;
/**
* not return artifact with file extension pom
+ *
* @since 1.4-M2
*/
private boolean includePomArtifacts = false;
this.queryTerms = queryTerms;
}
+ public String getBundleImportPackage()
+ {
+ return bundleImportPackage;
+ }
+
+ public void setBundleImportPackage( String bundleImportPackage )
+ {
+ this.bundleImportPackage = bundleImportPackage;
+ }
+
+ public String getBundleRequireBundle()
+ {
+ return bundleRequireBundle;
+ }
+
+ public void setBundleRequireBundle( String bundleRequireBundle )
+ {
+ this.bundleRequireBundle = bundleRequireBundle;
+ }
+
@Override
public String toString()
{
sb.append( ", bundleSymbolicName='" ).append( bundleSymbolicName ).append( '\'' );
sb.append( ", bundleExportPackage='" ).append( bundleExportPackage ).append( '\'' );
sb.append( ", bundleExportService='" ).append( bundleExportService ).append( '\'' );
+ sb.append( ", bundleImportPackage='" ).append( bundleImportPackage ).append( '\'' );
+ sb.append( ", bundleRequireBundle='" ).append( bundleRequireBundle ).append( '\'' );
sb.append( ", classifier='" ).append( classifier ).append( '\'' );
sb.append( ", includePomArtifacts=" ).append( includePomArtifacts );
sb.append( '}' );
search.artifact.search.form.query.bundleVersion=Bundle Version
search.artifact.search.form.query.bundleExportPackage=Export Package
search.artifact.search.form.query.bundleExportService=Export Service
+search.artifact.search.form.query.bundleImportPackage=Import Package
+search.artifact.search.form.query.bundleRequireBundle=Require Bundle
#login
login.username.placehoder=Username
//private String bundleExportService;
this.bundleExportService=ko.observable();
+ this.bundleImportPackage=ko.observable();
+
+ this.bundleRequireBundle=ko.observable();
+
//private String classifier;
this.classifier=ko.observable();
data-bind="value: searchRequest().bundleExportService"/>
</div>
</div>
+ <div class="control-group">
+ <label class="control-label" for="groupId">${$.i18n.prop('search.artifact.search.form.query.bundleImportPackage')}</label>
+ <div class="controls">
+ <input type="text" class="input-medium search-query" id="bundleImportPackage" name="bundleImportPackage" size="50"
+ data-bind="value: searchRequest().bundleImportPackage"/>
+ </div>
+ </div>
+ <div class="control-group">
+ <label class="control-label" for="groupId">${$.i18n.prop('search.artifact.search.form.query.bundleRequireBundle')}</label>
+ <div class="controls">
+ <input type="text" class="input-medium search-query" id="bundleRequireBundle" name="bundleRequireBundle" size="50"
+ data-bind="value: searchRequest().bundleRequireBundle"/>
+ </div>
+ </div>
</fieldset>
<button type="submit" id="btn-osgi-search" class="btn btn-primary"
data-bind="click: advancedSearch">${$.i18n.prop('search.artifact.search.form.btn.search')}</button>