Interface ConfigurationService


public interface ConfigurationService
Configuration service
  • Method Details

    • isPermissionForAll

      boolean isPermissionForAll()
      Return if all users have permission to administer Profields.
      Returns:
      true if all user have permission
    • setPermissionForAll

      void setPermissionForAll(boolean enabled)
      Set permission for all users to administer Profields.
      Parameters:
      enabled - the permission
    • isPermissionForAnalytics

      boolean isPermissionForAnalytics()
      Return if Profields has permission to use Analytics
      Returns:
      true if Profields has permission to use
    • setPermissionForAnalytics

      void setPermissionForAnalytics(boolean enabled)
      Set permission to use Analytics.
      Parameters:
      enabled - the permission of Analytics
    • getLastTimeOfAnalytics

      LocalDateTime getLastTimeOfAnalytics()
      Return the last time when sent information to Google Analytics
      Returns:
      date the last time
    • setLastTimeOfAnalytics

      void setLastTimeOfAnalytics(LocalDateTime date)
      Set the last time when sent information to Google Analytics
      Parameters:
      date - the last time
    • getLastTaskVersion

      Integer getLastTaskVersion()
      Return the last task executed version
      Returns:
      integer the last task version
    • setLastTaskVersion

      void setLastTaskVersion(Integer lastTaskVersion)
      Set the last task executed version
      Parameters:
      lastTaskVersion - the last task version
    • getDefaultLayout

      Integer getDefaultLayout(com.atlassian.jira.project.type.ProjectType projectType)
      Return the default layout for a project type
      Parameters:
      projectType - the project type
      Returns:
      integer the id of default layout
    • setDefaultLayout

      void setDefaultLayout(com.atlassian.jira.project.type.ProjectType projectType, Integer idLayout)
      Set the default layout for a project type
      Parameters:
      projectType - the project type
      idLayout - the id of default layout
    • removeDefaultLayout

      void removeDefaultLayout(com.atlassian.jira.project.type.ProjectType projectType)
      Remove the default layout for a project type
      Parameters:
      projectType - the project type
    • getDefaultEmptyLayout

      Integer getDefaultEmptyLayout()
      Return the default empty layout for a project type
      Returns:
      integer the id of default empty layout
    • setCache

      void setCache(boolean enabled)
      Set the cache configuration
      Parameters:
      enabled -
    • hasCache

      boolean hasCache()
      Return if the Profields Cache is in used.
      Returns:
      true or false