diff options
author | Peter O'Neill <peter.oneill@metaswitch.com> | 2013-04-29 11:49:03 +0100 |
---|---|---|
committer | Peter O'Neill <peter.oneill@metaswitch.com> | 2013-04-29 11:49:03 +0100 |
commit | 766fcf2c51ea7c95c3de7ef45d2cce843e9e0480 (patch) | |
tree | 44e2e0f6739f45b729efb1b6808e5036499499ca /src/net/java/sip/communicator/util | |
parent | 75fef62f934b63b931a3e0721b90d056dcf3c9b4 (diff) | |
download | jitsi-766fcf2c51ea7c95c3de7ef45d2cce843e9e0480.zip jitsi-766fcf2c51ea7c95c3de7ef45d2cce843e9e0480.tar.gz jitsi-766fcf2c51ea7c95c3de7ef45d2cce843e9e0480.tar.bz2 |
Add new config option to disable merging contacts, which removse 'Add
contact' from the contact right button menu.
Existing config options for 'move contact' and drag-and-drop of contacts
must also be used to completely prevent merging.
Diffstat (limited to 'src/net/java/sip/communicator/util')
-rw-r--r-- | src/net/java/sip/communicator/util/ConfigurationUtils.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/util/ConfigurationUtils.java b/src/net/java/sip/communicator/util/ConfigurationUtils.java index dcb72e3..99546a7 100644 --- a/src/net/java/sip/communicator/util/ConfigurationUtils.java +++ b/src/net/java/sip/communicator/util/ConfigurationUtils.java @@ -162,6 +162,11 @@ public class ConfigurationUtils private static boolean isAddContactDisabled; /** + * Indicates if the merge contact functionality is disabled. + */ + private static boolean isMergeContactDisabled; + + /** * Indicates if the go to chatroom functionality is disabled. */ private static boolean isGoToChatroomDisabled; @@ -644,6 +649,13 @@ public class ConfigurationUtils "CONTACT_ADD_DISABLED", false); + // Load the "MERGE_CONTACT_DISABLED" property. + isMergeContactDisabled + = configService.getBoolean( + "net.java.sip.communicator.impl.gui.main.contactlist." + + "CONTACT_MERGE_DISABLED", + false); + // Load the "CREATE_GROUP_DISABLED" property. isCreateGroupDisabled = configService.getBoolean( @@ -1185,6 +1197,17 @@ public class ConfigurationUtils } /** + * Returns <code>true</code> if the "MERGE_CONTACT_DISABLED" property is + * true, otherwise - returns <code>false</code>. + * @return <code>true</code> if the "MERGE_CONTACT_DISABLED" property is + * true, otherwise - returns <code>false</code>. + */ + public static boolean isMergeContactDisabled() + { + return isMergeContactDisabled; + } + + /** * Returns <code>true</code> if the "CREATE_GROUP_DISABLED" property is * true, otherwise - returns <code>false</code>.. * @return <code>true</code> if the "CREATE_GROUP_DISABLED" property is |