Package com.nagarro.jsag.fjt.gall.services

Examples of com.nagarro.jsag.fjt.gall.services.DirectoryService


            StandardWatchmanService.LOG.debug(MethodUtils.executionMessage());
        }
        String debugMessage = StringConstants.EMPTY_STRING.getConstant();
        try {
            if ((Boolean) Files.getAttribute(directory, "basic:isDirectory", LinkOption.NOFOLLOW_LINKS)) {
                final DirectoryService directoryService = new StandardDirectoryService();
                directoryService.setDirectoryPath(directory);
                debugMessage = MethodUtils.subroutineCallbackMessage(this.getDirectoryServices().add(directoryService));
            } else {
                throw new IllegalArgumentException("Directory: ".concat(directory.toString()).concat(
                        " not a directory."));
            }
View Full Code Here


            StandardWatchmanService.LOG.debug(MethodUtils.executionMessage());
        }
        String debugMessage = StringConstants.EMPTY_STRING.getConstant();
        try {
            if ((Boolean) Files.getAttribute(directory, "basic:isDirectory", LinkOption.NOFOLLOW_LINKS)) {
                final DirectoryService directoryServiceFound = this.findDirectoryService(directory);
                if (GeneratorUtils.<DirectoryService>generateDefaultUnknownValue() == directoryServiceFound) {
                    debugMessage =
                            MethodUtils.subroutineCallbackMessage(this.getDirectoryServices().remove(
                                    directoryServiceFound));
                }
View Full Code Here

     *            the directory
     * @return the directory service
     */
    private DirectoryService findDirectoryService(final Path directory) {
        final Iterator<DirectoryService> directoryServicesIterator = this.getDirectoryServices().iterator();
        DirectoryService directoryServiceFound = GeneratorUtils.<DirectoryService>generateDefaultUnknownValue();
        while ((GeneratorUtils.<DirectoryService>generateDefaultUnknownValue() == directoryServiceFound)
                && directoryServicesIterator.hasNext()) {
            final DirectoryService directoryService = directoryServicesIterator.next();
            if (directoryService.getDirectoryPath().toAbsolutePath().equals(directory.toAbsolutePath())) {
                directoryServiceFound = directoryService;
            }
        }
        return directoryServiceFound;
    }
View Full Code Here

TOP

Related Classes of com.nagarro.jsag.fjt.gall.services.DirectoryService

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.