diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/distrib/data/gitblit.properties | 2 | ||||
-rw-r--r-- | src/main/java/com/gitblit/Constants.java | 2 | ||||
-rw-r--r-- | src/main/java/com/gitblit/SalesforceUserService.java | 7 |
3 files changed, 8 insertions, 3 deletions
diff --git a/src/main/distrib/data/gitblit.properties b/src/main/distrib/data/gitblit.properties index 412bcae2..9f7eb778 100644 --- a/src/main/distrib/data/gitblit.properties +++ b/src/main/distrib/data/gitblit.properties @@ -1128,7 +1128,7 @@ realm.salesforce.backingUserService = ${baseFolder}/users.conf # Restrict the Salesforce user to members of this org.
# default: 0 (i.e. do not check the Org ID)
#
-# RESTART REQUIRED
+# SINCE 1.3.0
realm.salesforce.orgId = 0
# URL of the LDAP server.
diff --git a/src/main/java/com/gitblit/Constants.java b/src/main/java/com/gitblit/Constants.java index 5ed0a256..2c64570d 100644 --- a/src/main/java/com/gitblit/Constants.java +++ b/src/main/java/com/gitblit/Constants.java @@ -480,7 +480,7 @@ public class Constants { }
public static enum AccountType {
- LOCAL, LDAP, REDMINE;
+ LOCAL, LDAP, REDMINE, SALESFORCE;
public boolean isLocal() {
return this == LOCAL;
diff --git a/src/main/java/com/gitblit/SalesforceUserService.java b/src/main/java/com/gitblit/SalesforceUserService.java index 989b4878..aa0795ac 100644 --- a/src/main/java/com/gitblit/SalesforceUserService.java +++ b/src/main/java/com/gitblit/SalesforceUserService.java @@ -5,6 +5,7 @@ import java.io.File; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import com.gitblit.Constants.AccountType; import com.gitblit.models.UserModel; import com.gitblit.utils.ArrayUtils; import com.gitblit.utils.StringUtils; @@ -18,7 +19,11 @@ public class SalesforceUserService extends GitblitUserService { public static final Logger logger = LoggerFactory .getLogger(SalesforceUserService.class); private IStoredSettings settings; - + + protected AccountType getAccountType() { + return AccountType.SALESFORCE; + } + @Override public void setup(IStoredSettings settings) { this.settings = settings; |