import org.apache.archiva.admin.model.RepositoryAdminException;
import org.apache.archiva.admin.model.runtime.RedbackRuntimeConfigurationAdmin;
+import org.apache.archiva.redback.components.cache.Cache;
import org.apache.archiva.redback.rbac.AbstractRBACManager;
import org.apache.archiva.redback.rbac.Operation;
import org.apache.archiva.redback.rbac.Permission;
import org.springframework.stereotype.Service;
import javax.inject.Inject;
+import javax.inject.Named;
import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
+import java.util.Set;
/**
* @author Olivier Lamy
@Inject
private RedbackRuntimeConfigurationAdmin redbackRuntimeConfigurationAdmin;
+ @Inject
+ @Named( value = "cache#operations" )
+ private Cache<String, Operation> operationsCache;
+
+ @Inject
+ @Named( value = "cache#permissions" )
+ private Cache<String, Permission> permissionsCache;
+
+ @Inject
+ @Named( value = "cache#resources" )
+ private Cache<String, Resource> resourcesCache;
+
+ @Inject
+ @Named( value = "cache#roles" )
+ private Cache<String, Role> rolesCache;
+
+ @Inject
+ @Named( value = "cache#userAssignments" )
+ private Cache<String, UserAssignment> userAssignmentsCache;
+
+ @Inject
+ @Named( value = "cache#userPermissions" )
+ private Cache<String, Map<String, List<Permission>>> userPermissionsCache;
+
+ @Inject
+ @Named( value = "cache#effectiveRoleSet" )
+ private Cache<String, Set<Role>> effectiveRoleSetCache;
+
@Override
public void initialize()
{
*/
define("archiva.general-admin",["jquery","i18n","utils","jquery.tmpl","knockout","knockout.simpleGrid",
"knockout.sortable","jquery.ui","jquery.validate","bootstrap","select2"]
- , function(jquery,i18n,utils,jqueryTmpl,ko) {
+ , function(jquery,i18n,utils,jqueryTmpl,ko,simpleGrid,sortable,jqueryUi,validate,bootstrap,select2) {
//-------------------------
// legacy path part
});
}
+
ArchivaRuntimeConfigurationViewModel=function(archivaRuntimeConfiguration){
var self=this;
this.archivaRuntimeConfiguration=ko.observable(archivaRuntimeConfiguration);
success: function(data){
displaySuccessMessage( $.i18n.prop("archiva.runtime-configuration.updated"));
},
- complete: function(){
- removeMediumSpinnerImg(userMessages);
- mainContent.find("#cache-failure-form-btn-save" ).button('reset');
+ error:function(){
+ displayErrorMessage("error.500");
}
- });
+ } ).always(
+ function(){
+ removeMediumSpinnerImg(userMessages);
+ mainContent.find("#cache-failure-form-btn-save" ).button('reset');
+ }
+ );
}
}
}
displayRedbackRuntimeConfiguration=function(){
+ var jqueryUi = require("jquery.ui");
$.log("displayRuntimeConfiguration");
var mainContent = $("#main-content");
mainContent.html(mediumSpinnerImg());
<plexus-digest.version>1.1</plexus-digest.version>
<plexus-expression-evaluator.version>2.0</plexus-expression-evaluator.version>
<plexus-utils.version>3.0.8</plexus-utils.version>
- <asfTomcatMavenPluginVersion>2.1-SNAPSHOT</asfTomcatMavenPluginVersion>
+ <asfTomcatMavenPluginVersion>2.1</asfTomcatMavenPluginVersion>
<tomcat7Version>7.0.37</tomcat7Version>
<release.preparationGoals>clean install</release.preparationGoals>