mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Merged V2.2 to HEAD
7251: First cut at permissions checking in AVM git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8232 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -15,11 +15,11 @@
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
|
||||
* As a special exception to the terms and conditions of version 2.0 of
|
||||
* the GPL, you may redistribute this Program in connection with Free/Libre
|
||||
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
||||
* FLOSS exception. You should have recieved a copy of the text describing
|
||||
* the FLOSS exception, and it is also available here:
|
||||
* As a special exception to the terms and conditions of version 2.0 of
|
||||
* the GPL, you may redistribute this Program in connection with Free/Libre
|
||||
* and Open Source Software ("FLOSS") applications as described in Alfresco's
|
||||
* FLOSS exception. You should have recieved a copy of the text describing
|
||||
* the FLOSS exception, and it is also available here:
|
||||
* http://www.alfresco.com/legal/licensing"
|
||||
*/
|
||||
package org.alfresco.repo.avm;
|
||||
@@ -27,6 +27,7 @@ package org.alfresco.repo.avm;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import org.alfresco.service.cmr.security.PermissionService;
|
||||
import org.alfresco.util.AbstractLifecycleBean;
|
||||
import org.springframework.context.ApplicationEvent;
|
||||
|
||||
@@ -34,31 +35,45 @@ import org.springframework.context.ApplicationEvent;
|
||||
* This component ensures that the AVM system is properly bootstrapped
|
||||
* and that this is done in the correct order relative to other
|
||||
* bootstrap components.
|
||||
*
|
||||
*
|
||||
* @see #setIssuers(List)
|
||||
* @see org.alfresco.repo.avm.Issuer
|
||||
*
|
||||
*
|
||||
* @author Derek Hulley
|
||||
*/
|
||||
public class AvmBootstrap extends AbstractLifecycleBean
|
||||
{
|
||||
private List<Issuer> issuers;
|
||||
|
||||
|
||||
private AVMLockingAwareService avmLockingAwareService;
|
||||
|
||||
|
||||
private AVMRepository avmRepository;
|
||||
|
||||
private PermissionService permissionService;
|
||||
|
||||
public AvmBootstrap()
|
||||
{
|
||||
issuers = new ArrayList<Issuer>(0);
|
||||
}
|
||||
|
||||
|
||||
public void setAvmLockingAwareService(AVMLockingAwareService service)
|
||||
{
|
||||
avmLockingAwareService = service;
|
||||
}
|
||||
|
||||
public void setAvmRepository(AVMRepository repository)
|
||||
{
|
||||
avmRepository = repository;
|
||||
}
|
||||
|
||||
public void setPermissionService(PermissionService service)
|
||||
{
|
||||
permissionService = service;
|
||||
}
|
||||
|
||||
/**
|
||||
* Provide a list of {@link Issuer issuers} to bootstrap on context initialization.
|
||||
*
|
||||
*
|
||||
* @see #onBootstrap(ApplicationEvent)
|
||||
*/
|
||||
public void setIssuers(List<Issuer> issuers)
|
||||
@@ -77,6 +92,7 @@ public class AvmBootstrap extends AbstractLifecycleBean
|
||||
issuer.initialize();
|
||||
}
|
||||
avmLockingAwareService.init();
|
||||
avmRepository.setPermissionService(permissionService);
|
||||
}
|
||||
|
||||
/** NO-OP */
|
||||
|
Reference in New Issue
Block a user