Interface ConfigurationService
public interface ConfigurationService
Configuration service
-
Method Summary
Modifier and TypeMethodDescriptionReturn the default empty layout for a project typegetDefaultLayout
(com.atlassian.jira.project.type.ProjectType projectType) Return the default layout for a project typeReturn the last task executed versionReturn the last time when sent information to Google Analyticsboolean
hasCache()
Return if the Profields Cache is in used.boolean
Return if all users have permission to administer Profields.boolean
Return if Profields has permission to use Analyticsvoid
removeDefaultLayout
(com.atlassian.jira.project.type.ProjectType projectType) Remove the default layout for a project typevoid
setCache
(boolean enabled) Set the cache configurationvoid
setDefaultLayout
(com.atlassian.jira.project.type.ProjectType projectType, Integer idLayout) Set the default layout for a project typevoid
setLastTaskVersion
(Integer lastTaskVersion) Set the last task executed versionvoid
Set the last time when sent information to Google Analyticsvoid
setPermissionForAll
(boolean enabled) Set permission for all users to administer Profields.void
setPermissionForAnalytics
(boolean enabled) Set permission to use Analytics.
-
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
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
Set the last task executed version- Parameters:
lastTaskVersion
- the last task version
-
getDefaultLayout
Return the default layout for a project type- Parameters:
projectType
- the project type- Returns:
- integer the id of default layout
-
setDefaultLayout
Set the default layout for a project type- Parameters:
projectType
- the project typeidLayout
- 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
-