@ApplicationScoped public class CopyServiceImpl extends Object implements CopyService
Constructor and Description |
---|
CopyServiceImpl() |
CopyServiceImpl(IOService ioService,
org.jboss.errai.security.shared.api.identity.User identity,
SessionInfo sessionInfo,
javax.enterprise.inject.Instance<CopyHelper> helpers,
javax.enterprise.event.Event<ResourceCopiedEvent> resourceCopiedEvent,
javax.enterprise.inject.Instance<CopyRestrictor> copyRestrictorBeans,
PathNamingService pathNamingService) |
Modifier and Type | Method and Description |
---|---|
Path |
copy(Path path,
String newName,
Path targetDirectory,
String comment) |
Path |
copy(Path path,
String newName,
String comment) |
void |
copyIfExists(Collection<Path> paths,
String newName,
String comment) |
boolean |
hasRestriction(Path path) |
public CopyServiceImpl()
@Inject public CopyServiceImpl(@Named(value="ioStrategy") IOService ioService, org.jboss.errai.security.shared.api.identity.User identity, SessionInfo sessionInfo, javax.enterprise.inject.Instance<CopyHelper> helpers, javax.enterprise.event.Event<ResourceCopiedEvent> resourceCopiedEvent, javax.enterprise.inject.Instance<CopyRestrictor> copyRestrictorBeans, PathNamingService pathNamingService)
public Path copy(Path path, String newName, String comment)
copy
in interface SupportsCopy
public Path copy(Path path, String newName, Path targetDirectory, String comment)
copy
in interface SupportsCopy
public void copyIfExists(Collection<Path> paths, String newName, String comment)
copyIfExists
in interface CopyService
public boolean hasRestriction(Path path)
hasRestriction
in interface CopyService
Copyright © 2012–2018 JBoss by Red Hat. All rights reserved.