org.alfresco.repo.admin.patch.impl
Class ResetWCMToGroupBasedPermissionsPatch
java.lang.Object
org.alfresco.repo.admin.patch.AbstractPatch
org.alfresco.repo.admin.patch.impl.MoveWCMToGroupBasedPermissionsPatch
org.alfresco.repo.admin.patch.impl.ResetWCMToGroupBasedPermissionsPatch
- All Implemented Interfaces:
- Patch, org.springframework.context.ApplicationEventPublisherAware
public class ResetWCMToGroupBasedPermissionsPatch
- extends MoveWCMToGroupBasedPermissionsPatch
Alternative patch to remove ACLs from all WCM stores, and replace with WCM group-based ACLs.
Methods inherited from class org.alfresco.repo.admin.patch.AbstractPatch |
applies, apply, checkProperties, checkPropertyNotNull, getAlternatives, getDependsOn, getDescription, getFixesFromSchema, getFixesToSchema, getId, getTargetSchema, init, isForce, reportProgress, setAlternatives, setApplicationEventPublisher, setApplyToTenants, setAuthenticationContext, setDependsOn, setDescription, setFixesFromSchema, setFixesToSchema, setForce, setId, setNamespaceService, setNodeService, setPatchService, setSearchService, setTargetSchema, setTenantAdminService, setTransactionService, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ResetWCMToGroupBasedPermissionsPatch
public ResetWCMToGroupBasedPermissionsPatch()
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
setQnameDAO
public void setQnameDAO(QNameDAO qnameDAO)
setPersonService
public void setPersonService(PersonService personService)
setBatchSize
public void setBatchSize(int batchSizeOverride)
applyInternal
protected java.lang.String applyInternal()
throws java.lang.Exception
- Description copied from class:
AbstractPatch
- This method does the work. All transactions and thread-safety will be taken care of by this class. Any exception
will result in the transaction being rolled back. Integrity checks are downgraded for the duration of the
transaction.
- Overrides:
applyInternal
in class MoveWCMToGroupBasedPermissionsPatch
- Returns:
- Returns the report (only success messages).
- Throws:
java.lang.Exception
- anything can be thrown. This must be used for all failures.- See Also:
AbstractPatch.apply()
setStagingAreaPermissions
protected void setStagingAreaPermissions(AVMStoreDescriptor stagingStore)
throws java.lang.Exception
- Overrides:
setStagingAreaPermissions
in class MoveWCMToGroupBasedPermissionsPatch
- Throws:
java.lang.Exception
setSandboxPermissions
protected void setSandboxPermissions(AVMStoreDescriptor sandboxStore)
throws java.lang.Exception
- Throws:
java.lang.Exception
addToGroupIfRequired
protected void addToGroupIfRequired(java.lang.String stagingStoreName,
java.lang.String user,
java.lang.String permission)
- Overrides:
addToGroupIfRequired
in class MoveWCMToGroupBasedPermissionsPatch
extractBaseStore
protected java.lang.String extractBaseStore(java.lang.String name)
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.