Package org.guvnor.structure.backend
Class FileSystemDeleteWorker
- java.lang.Object
-
- org.guvnor.structure.backend.FileSystemDeleteWorker
-
public class FileSystemDeleteWorker extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static StringCRON_MINUTES
-
Constructor Summary
Constructors Constructor Description FileSystemDeleteWorker()FileSystemDeleteWorker(org.uberfire.io.IOService ioService, org.guvnor.structure.organizationalunit.OrganizationalUnitService organizationalUnitService, org.guvnor.structure.repositories.RepositoryService repositoryService, org.uberfire.java.nio.file.FileSystem systemFS, org.guvnor.structure.organizationalunit.config.SpaceConfigStorageRegistry registry, javax.enterprise.event.Event<org.guvnor.structure.organizationalunit.RemoveOrganizationalUnitEvent> removeOrganizationalUnitEvent, org.guvnor.structure.server.config.ConfigurationService configurationService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.uberfire.java.nio.fs.jgit.FileSystemLockcreateLock(File file)protected voiddelete(File path)voiddoRemove()protected FilegetSpacePath(org.uberfire.java.nio.file.Path configPath)protected booleanisDeleteWorkerEnabled()protected voidremoveAllDeletedRepositories()protected voidremoveAllDeletedSpaces()protected voidremoveRepository(org.guvnor.structure.repositories.Repository repo)protected voidremoveSpaceDirectory(org.uberfire.spaces.Space space)
-
-
-
Field Detail
-
CRON_MINUTES
public static final String CRON_MINUTES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FileSystemDeleteWorker
public FileSystemDeleteWorker()
-
FileSystemDeleteWorker
@Inject public FileSystemDeleteWorker(@Named("ioStrategy") org.uberfire.io.IOService ioService, org.guvnor.structure.organizationalunit.OrganizationalUnitService organizationalUnitService, org.guvnor.structure.repositories.RepositoryService repositoryService, @Named("systemFS") org.uberfire.java.nio.file.FileSystem systemFS, org.guvnor.structure.organizationalunit.config.SpaceConfigStorageRegistry registry, javax.enterprise.event.Event<org.guvnor.structure.organizationalunit.RemoveOrganizationalUnitEvent> removeOrganizationalUnitEvent, org.guvnor.structure.server.config.ConfigurationService configurationService)
-
-
Method Detail
-
doRemove
public void doRemove()
-
isDeleteWorkerEnabled
protected boolean isDeleteWorkerEnabled()
-
removeAllDeletedRepositories
protected void removeAllDeletedRepositories()
-
removeAllDeletedSpaces
protected void removeAllDeletedSpaces()
-
removeSpaceDirectory
protected void removeSpaceDirectory(org.uberfire.spaces.Space space)
-
delete
protected void delete(File path) throws IOException
- Throws:
IOException
-
getSpacePath
protected File getSpacePath(org.uberfire.java.nio.file.Path configPath)
-
removeRepository
protected void removeRepository(org.guvnor.structure.repositories.Repository repo)
-
createLock
protected org.uberfire.java.nio.fs.jgit.FileSystemLock createLock(File file)
-
-