# Restrict the Salesforce user to members of this org.\r
# default: 0 (i.e. do not check the Org ID)\r
#\r
-# RESTART REQUIRED\r
+# SINCE 1.3.0\r
realm.salesforce.orgId = 0\r
\r
# URL of the LDAP server.\r
}\r
\r
public static enum AccountType {\r
- LOCAL, LDAP, REDMINE;\r
+ LOCAL, LDAP, REDMINE, SALESFORCE;\r
\r
public boolean isLocal() {\r
return this == LOCAL;\r
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;
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;