James Moger
2012-11-01 3dec957f01b1e6b0af31476361efbb5767d0303d
src/com/gitblit/models/RegistrantAccessPermission.java
@@ -35,20 +35,37 @@
   public AccessPermission permission;
   public RegistrantType registrantType;
   public PermissionType permissionType;
   public boolean isEditable;
   public boolean mutable;
   public String source;
   public RegistrantAccessPermission() {
   }
   public RegistrantAccessPermission(RegistrantType registrantType) {
      this.registrantType = registrantType;
      this.permissionType = PermissionType.EXPLICIT;
      this.isEditable = true;
      this.mutable = true;
   }
   
   public RegistrantAccessPermission(String registrant, AccessPermission permission, PermissionType permissionType, RegistrantType registrantType, boolean isEditable) {
   public RegistrantAccessPermission(String registrant, AccessPermission permission, PermissionType permissionType, RegistrantType registrantType, String source, boolean mutable) {
      this.registrant = registrant;
      this.permission = permission;
      this.permissionType = permissionType;
      this.registrantType = registrantType;
      this.isEditable = isEditable;
      this.source = source;
      this.mutable = mutable;
   }
   public boolean isAdmin() {
      return PermissionType.ADMINISTRATOR.equals(permissionType);
   }
   public boolean isOwner() {
      return PermissionType.OWNER.equals(permissionType);
   }
   public boolean isMissing() {
      return PermissionType.MISSING.equals(permissionType);
   }
   
   @Override