Class CopyServiceImpl
- java.lang.Object
-
- org.uberfire.ext.editor.commons.backend.service.CopyServiceImpl
-
- All Implemented Interfaces:
org.uberfire.ext.editor.commons.service.CopyService,org.uberfire.ext.editor.commons.service.support.SupportsCopy
@ApplicationScoped public class CopyServiceImpl extends Object implements org.uberfire.ext.editor.commons.service.CopyService
-
-
Constructor Summary
Constructors Constructor Description CopyServiceImpl()CopyServiceImpl(org.uberfire.io.IOService ioService, org.jboss.errai.security.shared.api.identity.User identity, org.uberfire.rpc.SessionInfo sessionInfo, javax.enterprise.inject.Instance<CopyHelper> helpers, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceCopiedEvent> resourceCopiedEvent, javax.enterprise.inject.Instance<org.uberfire.ext.editor.commons.service.restrictor.CopyRestrictor> copyRestrictorBeans, org.uberfire.ext.editor.commons.service.PathNamingService pathNamingService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path path, String newName, String comment)org.uberfire.backend.vfs.Pathcopy(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)voidcopyIfExists(Collection<org.uberfire.backend.vfs.Path> paths, String newName, String comment)booleanhasRestriction(org.uberfire.backend.vfs.Path path)
-
-
-
Constructor Detail
-
CopyServiceImpl
public CopyServiceImpl()
-
CopyServiceImpl
@Inject public CopyServiceImpl(@Named("ioStrategy") org.uberfire.io.IOService ioService, org.jboss.errai.security.shared.api.identity.User identity, org.uberfire.rpc.SessionInfo sessionInfo, javax.enterprise.inject.Instance<CopyHelper> helpers, javax.enterprise.event.Event<org.uberfire.workbench.events.ResourceCopiedEvent> resourceCopiedEvent, javax.enterprise.inject.Instance<org.uberfire.ext.editor.commons.service.restrictor.CopyRestrictor> copyRestrictorBeans, org.uberfire.ext.editor.commons.service.PathNamingService pathNamingService)
-
-
Method Detail
-
copy
public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path, String newName, String comment)- Specified by:
copyin interfaceorg.uberfire.ext.editor.commons.service.support.SupportsCopy
-
copy
public org.uberfire.backend.vfs.Path copy(org.uberfire.backend.vfs.Path path, String newName, org.uberfire.backend.vfs.Path targetDirectory, String comment)- Specified by:
copyin interfaceorg.uberfire.ext.editor.commons.service.support.SupportsCopy
-
copyIfExists
public void copyIfExists(Collection<org.uberfire.backend.vfs.Path> paths, String newName, String comment)
- Specified by:
copyIfExistsin interfaceorg.uberfire.ext.editor.commons.service.CopyService
-
hasRestriction
public boolean hasRestriction(org.uberfire.backend.vfs.Path path)
- Specified by:
hasRestrictionin interfaceorg.uberfire.ext.editor.commons.service.CopyService
-
-