Class PathService

java.lang.Object
com.almis.awe.config.ServiceConfig
com.almis.awe.developer.service.PathService
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class PathService extends ServiceConfig
Manage the development paths
Author:
agomez
  • Constructor Details

    • PathService

      public PathService(String developerPath, String developerPathFile, String developerPathProperty)
      Autowired constructor
      Parameters:
      developerPath - Developer path
      developerPathFile - Developer path file
      developerPathProperty - Developer path property
  • Method Details

    • checkPath

      public ServiceData checkPath() throws AWException
      Check if path file properties exists
      Returns:
      Service data
      Throws:
      AWException - Error checking path
    • getPropertiesFile

      public Properties getPropertiesFile() throws AWException
      Check if path file properties exists
      Returns:
      Path
      Throws:
      AWException - Error retrieving path
    • getPath

      public String getPath() throws AWException
      Check if path file properties exists
      Returns:
      Path
      Throws:
      AWException - Error retrieving path
    • setPath

      public ServiceData setPath(String path) throws AWException
      Updates user working directory
      Parameters:
      path - Path
      Returns:
      Service data
      Throws:
      AWException - Error setting path