Package com.gitblit.Constants

Examples of com.gitblit.Constants.AuthorizationControl


    AccessRestrictionType defaultRestriction = AccessRestrictionType.fromName(
        app().settings().getString(Keys.git.defaultAccessRestriction, AccessRestrictionType.PUSH.name()));
    if (AccessRestrictionType.NONE == defaultRestriction) {
      defaultRestriction = AccessRestrictionType.PUSH;
    }
    AuthorizationControl defaultControl = AuthorizationControl.fromName(
        app().settings().getString(Keys.git.defaultAuthorizationControl, AuthorizationControl.NAMED.name()));

    if (AuthorizationControl.AUTHENTICATED == defaultControl) {
      defaultRestriction = AccessRestrictionType.PUSH;
    }
View Full Code Here


    if (defaultRestriction == null) {
      defaultRestriction = AccessRestrictionType.fromName(app().settings().getString(Keys.git.defaultAccessRestriction,
          AccessRestrictionType.PUSH.name()));
    }

    AuthorizationControl defaultControl = repository.authorizationControl;
    if (defaultControl == null) {
      defaultControl = AuthorizationControl.fromName(app().settings().getString(Keys.git.defaultAuthorizationControl,
          AuthorizationControl.NAMED.name()));
    }
View Full Code Here

TOP

Related Classes of com.gitblit.Constants.AuthorizationControl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.