mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Added support to limit module execution to a specific range of repository versions.
e.g. the PHP SDK module has the following: module.repo.version.min=2.0 module.repo.version.max=2.1 This limits it to being installed on 2.0 or 2.1 versions of Alfresco. Roy can change this, if required. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@5532 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -40,6 +40,7 @@ import org.alfresco.repo.security.authentication.AuthenticationComponent;
|
||||
import org.alfresco.service.ServiceRegistry;
|
||||
import org.alfresco.service.cmr.module.ModuleDetails;
|
||||
import org.alfresco.service.cmr.module.ModuleService;
|
||||
import org.alfresco.service.descriptor.DescriptorService;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.core.io.Resource;
|
||||
@@ -73,6 +74,7 @@ public class ModuleServiceImpl implements ModuleService
|
||||
private static Log logger = LogFactory.getLog(ModuleServiceImpl.class);
|
||||
|
||||
private ServiceRegistry serviceRegistry;
|
||||
private DescriptorService descriptorService;
|
||||
private AuthenticationComponent authenticationComponent;
|
||||
private ModuleComponentHelper moduleComponentHelper;
|
||||
/** A cache of module details by module ID */
|
||||
@@ -91,6 +93,12 @@ public class ModuleServiceImpl implements ModuleService
|
||||
this.moduleComponentHelper.setServiceRegistry(this.serviceRegistry);
|
||||
}
|
||||
|
||||
public void setDescriptorService(DescriptorService descriptorService)
|
||||
{
|
||||
this.descriptorService = descriptorService;
|
||||
this.moduleComponentHelper.setDescriptorService(descriptorService);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param authenticationComponent allows execution as system user.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user