Class 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)  
    • 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:
        copy in interface org.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:
        copy in interface org.uberfire.ext.editor.commons.service.support.SupportsCopy
      • copyIfExists

        public void copyIfExists​(Collection<org.uberfire.backend.vfs.Path> paths,
                                 String newName,
                                 String comment)
        Specified by:
        copyIfExists in interface org.uberfire.ext.editor.commons.service.CopyService
      • hasRestriction

        public boolean hasRestriction​(org.uberfire.backend.vfs.Path path)
        Specified by:
        hasRestriction in interface org.uberfire.ext.editor.commons.service.CopyService