<div class="connector ${rowColor}">
<div class="controls">
<redback:ifAnyAuthorized permissions="archiva-manage-configuration">
- <ww:url id="sortDownRepositoryUrl" action="sortDownRepositoryFromGroup">
- <ww:param name="repoGroupId" value="%{'${repositoryGroup.key}'}"/>
- <ww:param name="targetRepo" value="managedRepositories['${repository}'].id"/>
- </ww:url>
- <ww:url id="sortUpRepositoryUrl" action="sortUpRepositoryFromGroup">
- <ww:param name="repoGroupId" value="%{'${repositoryGroup.key}'}"/>
- <ww:param name="targetRepo" value="managedRepositories['${repository}'].id"/>
- </ww:url>
- <ww:url id="removeRepositoryUrl" action="removeRepositoryFromGroup">
- <ww:param name="repoGroupId" value="%{'${repositoryGroup.key}'}"/>
- <ww:param name="repoId" value="managedRepositories['${repository}'].id"/>
- </ww:url>
+ <s:url id="sortDownRepositoryUrl" action="sortDownRepositoryFromGroup">
+ <s:param name="repoGroupId" value="%{#attr.repositoryGroup.key}"/>
- <s:param name="targetRepo" value="managedRepositories['%{#attr.repository}'].id"/>
++ <s:param name="targetRepo" value="%{#attr.managedRepositories[#attr.repository].id}"/>
+ </s:url>
+ <s:url id="sortUpRepositoryUrl" action="sortUpRepositoryFromGroup">
+ <s:param name="repoGroupId" value="%{#attr.repositoryGroup.key}"/>
- <s:param name="targetRepo" value="managedRepositories['%{#attr.repository}'].id"/>
++ <s:param name="targetRepo" value="%{#attr.managedRepositories[#attr.repository].id}"/>
+ </s:url>
+ <s:url id="removeRepositoryUrl" action="removeRepositoryFromGroup">
+ <s:param name="repoGroupId" value="%{#attr.repositoryGroup.key}"/>
- <s:param name="repoId" value="managedRepositories[%{#attr.repository}].id"/>
++ <s:param name="repoId" value="%{#attr.managedRepositories[#attr.repository].id}"/>
+ </s:url>
<c:if test="${r.count > 1}">
- <ww:a href="%{sortUpRepositoryUrl}" cssClass="up" title="Move Repository Up">
+ <s:a href="%{sortUpRepositoryUrl}" cssClass="up" title="Move Repository Up">
<img src="${iconUpUrl}"/>
- </ww:a>
+ </s:a>
</c:if>
<c:if test="${r.count < numberOfRepos}">
- <ww:a href="%{sortDownRepositoryUrl}" cssClass="down" title="Move Repository Down">
+ <s:a href="%{sortDownRepositoryUrl}" cssClass="down" title="Move Repository Down">
<img src="${iconDownUrl}"/>
- </ww:a>
+ </s:a>
</c:if>
- <ww:a href="%{removeRepositoryUrl}" cssClass="delete" title="Delete Repository">
+ <s:a href="%{removeRepositoryUrl}" cssClass="delete" title="Delete Repository">
<img src="${iconDeleteUrl}"/>
- </ww:a>
+ </s:a>
</redback:ifAnyAuthorized>
</div>
<body>
-<h1>Search</h1>
-
<div id="contentArea">
<div id="searchBox">
- <ww:form method="get" action="quickSearch" validate="true">
- <ww:textfield label="Search for" size="50" name="q"/>
- <ww:hidden name="completeQueryString" value="${completeQueryString}"/>
- <ww:submit value="Go!"/>
- </ww:form>
+ <s:form method="get" action="quickSearch" validate="true">
+ <s:textfield label="Search for" size="50" name="q"/>
+ <s:hidden name="completeQueryString" value="%{completeQueryString}"/>
- <s:submit label="Go!"/>
++ <s:submit value="Search"/>
+ </s:form>
<script type="text/javascript">
document.getElementById("quickSearch_q").focus();
</script>
- <ww:url id="filteredSearchUrl" action="advancedSearch"/>
- <ww:a href="%{filteredSearchUrl}">
+ <s:url id="filteredSearchUrl" action="advancedSearch"/>
+ <s:a href="%{filteredSearchUrl}">
Advanced Search
- </ww:a>
+ </s:a>
<p>
- <ww:actionerror/>
+ <s:actionerror/>
</p>
</div>
-
+<div id="searchHint">
<p>
Enter your search terms. A variety of data will be searched for your keywords.<br/>
To search for Java classes, packages or methods, use the keyword <code>bytecode:</code>
list="availableRepositories" doubleName="selectedRepositories"
doubleList="selectedRepositories" size="8" doubleSize="8"/>
- <ww:datepicker label="Start Date" name="startDate" id="startDate"/>
- <ww:datepicker label="End Date" name="endDate" id="endDate"/>
- <ww:textfield label="Row Count" name="rowCount" />
+ <s:datetimepicker label="Start Date" name="startDate" id="startDate"/>
- <s:datetimepicker label="End Date" name="endDate" id="endDate"/>
++ <s:datetimepicker label="End Date" name="endDate" id="endDate" />
+ <s:textfield label="Row Count" name="rowCount" />
- <ww:submit value="View Statistics"/>
- </ww:form>
+ <s:submit value="View Statistics"/>
+ </s:form>
<h2>Repository Health</h2>
- <ww:form namespace="/report" action="generateReport" validate="true">
- <ww:textfield label="Row Count" name="rowCount" />
- <ww:textfield label="Group ID" name="groupId"/>
- <ww:select label="Repository ID" name="repositoryId" list="repositoryIds"/>
+ <s:form namespace="/report" action="generateReport" validate="true">
+ <s:textfield label="Row Count" name="rowCount" />
+ <s:textfield label="Group ID" name="groupId"/>
+ <s:select label="Repository ID" name="repositoryId" list="repositoryIds"/>
- <ww:submit value="Show Report"/>
- </ww:form>
+ <s:submit value="Show Report"/>
+ </s:form>
</div>
<c:url var="imgNextPageDisabledUrl" value="/images/icon_next_page_disabled.gif"/>
<div id="contentArea">
- <div id="searchBox">
+ <div id="searchBoxResults">
<c:if test="${fromFilterSearch == true}">
- <ww:form method="get" action="filteredSearch" validate="true">
- <ww:textfield label="Row Count" size="50" name="rowCount"/>
- <ww:textfield label="Group Id" size="50" name="groupId"/>
- <ww:textfield label="Artifact Id" size="50" name="artifactId"/>
- <ww:textfield label="Version" size="50" name="version"/>
- <ww:textfield label="Class / Package" size="50" name="className"/>
- <ww:select name="repositoryId" label="Repository ID" list="managedRepositoryList"/>
- <ww:hidden name="completeQueryString" value="${completeQueryString}"/>
- <ww:hidden name="fromFilterSearch" value="${fromFilterSearch}"/>
- <ww:submit label="Go!"/>
- </ww:form>
+ <s:form method="get" action="filteredSearch" validate="true">
+ <s:textfield label="Row Count" size="50" name="rowCount"/>
+ <s:textfield label="Group Id" size="50" name="groupId"/>
+ <s:textfield label="Artifact Id" size="50" name="artifactId"/>
+ <s:textfield label="Version" size="50" name="version"/>
+ <s:textfield label="Class / Package" size="50" name="className"/>
+ <s:select name="repositoryId" label="Repository ID" list="managedRepositoryList"/>
+ <s:hidden name="completeQueryString" value="%{#attr.completeQueryString}"/>
+ <s:hidden name="fromFilterSearch" value="%{#attr.fromFilterSearch}"/>
+ <s:submit label="Go!"/>
+ </s:form>
- <ww:url id="indexUrl" action="index"/>
- <ww:a href="%{indexUrl}">
+ <s:url id="indexUrl" action="index"/>
+ <s:a href="%{indexUrl}">
Quick Search Page
- </ww:a>
+ </s:a>
<script type="text/javascript">
document.getElementById("filteredSearch_groupId").focus();
</script>
import org.codehaus.plexus.redback.authorization.UnauthorizedException;
import org.codehaus.plexus.redback.system.DefaultSecuritySession;
import org.codehaus.plexus.redback.system.SecuritySession;
--import org.codehaus.plexus.redback.xwork.filter.authentication.HttpAuthenticator;
--import org.codehaus.plexus.redback.xwork.filter.authentication.basic.HttpBasicAuthentication;
++import org.codehaus.plexus.redback.struts2.filter.authentication.HttpAuthenticator;
++import org.codehaus.plexus.redback.struts2.filter.authentication.basic.HttpBasicAuthentication;
import org.codehaus.plexus.spring.PlexusInSpringTestCase;
import org.easymock.MockControl;
import org.easymock.classextension.MockClassControl;