James Moger
2013-06-17 06116dd5f166ec2fff0531d21d6a291c9018703c
Minor tweaks to SalesForce user service
3 files modified
9 ■■■■ changed files
src/main/distrib/data/gitblit.properties 2 ●●● patch | view | raw | blame | history
src/main/java/com/gitblit/Constants.java 2 ●●● patch | view | raw | blame | history
src/main/java/com/gitblit/SalesforceUserService.java 5 ●●●●● patch | view | raw | blame | history
src/main/distrib/data/gitblit.properties
@@ -1128,7 +1128,7 @@
# 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.
src/main/java/com/gitblit/Constants.java
@@ -480,7 +480,7 @@
    }
    
    public static enum AccountType {
        LOCAL, LDAP, REDMINE;
        LOCAL, LDAP, REDMINE, SALESFORCE;
        
        public boolean isLocal() {
            return this == LOCAL;
src/main/java/com/gitblit/SalesforceUserService.java
@@ -5,6 +5,7 @@
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;
@@ -19,6 +20,10 @@
            .getLogger(SalesforceUserService.class);
    private IStoredSettings settings;
    protected AccountType getAccountType() {
        return AccountType.SALESFORCE;
    }
    @Override
    public void setup(IStoredSettings settings) {
        this.settings = settings;