Class DefaultWritableDirectoryForGroupsExistsCriteria
- java.lang.Object
-
- com.atlassian.confluence.admin.criteria.DefaultWritableDirectoryForGroupsExistsCriteria
-
- All Implemented Interfaces:
AdminConfigurationCriteria
,WritableDirectoryForGroupsExistsCriteria
public class DefaultWritableDirectoryForGroupsExistsCriteria extends Object implements AdminConfigurationCriteria, WritableDirectoryForGroupsExistsCriteria
Criteria for checking that we have a directory we can add groups to.Note: will get it wrong if Confluence thinks it can write to the directory, but the directory disagrees. This happens with Remote Crowd directories.
- Since:
- 5.5.1
-
-
Constructor Summary
Constructors Constructor Description DefaultWritableDirectoryForGroupsExistsCriteria(SettingsManager settingsManager, com.atlassian.crowd.embedded.api.ApplicationFactory applicationFactory, com.atlassian.crowd.manager.permission.PermissionManager permissionManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getIgnored()
String
getValue()
boolean
hasLiveValue()
boolean
hasValue()
boolean
isMet()
Whether the acceptance criteria is met or not for this admin configuration.void
setIgnored(boolean ignored)
-
-
-
Constructor Detail
-
DefaultWritableDirectoryForGroupsExistsCriteria
public DefaultWritableDirectoryForGroupsExistsCriteria(SettingsManager settingsManager, com.atlassian.crowd.embedded.api.ApplicationFactory applicationFactory, com.atlassian.crowd.manager.permission.PermissionManager permissionManager)
-
-
Method Detail
-
isMet
public boolean isMet()
Description copied from interface:AdminConfigurationCriteria
Whether the acceptance criteria is met or not for this admin configuration.- Specified by:
isMet
in interfaceAdminConfigurationCriteria
- Specified by:
isMet
in interfaceWritableDirectoryForGroupsExistsCriteria
- Returns:
- true if the acceptance criteria is met, false otherwise.
-
getValue
public String getValue()
- Specified by:
getValue
in interfaceAdminConfigurationCriteria
- Returns:
- A human-friendly representation of the current value of the admin configuration.
-
hasValue
public boolean hasValue()
- Specified by:
hasValue
in interfaceAdminConfigurationCriteria
- Returns:
- true if the task has a value which can be configured.
-
hasLiveValue
public boolean hasLiveValue()
- Specified by:
hasLiveValue
in interfaceAdminConfigurationCriteria
- Returns:
- Whether the value for this configuration criteria should always be queried as opposed to cached. Useful for getting live data instead of an 'accepted value' when an associated task is completed.
-
getIgnored
public boolean getIgnored()
- Specified by:
getIgnored
in interfaceAdminConfigurationCriteria
- Returns:
- true if the acceptance criteria for this configuration has been ignored by an end-user, false otherwise.
-
setIgnored
public void setIgnored(boolean ignored)
- Specified by:
setIgnored
in interfaceAdminConfigurationCriteria
- Parameters:
ignored
- whether this acceptance criteria should be ignored or not.
-
-