Apply states for projects (active, readonly and hidden)
This feature is the result of the discussion about issue 349 which the project can assume one of the states mentioned above. Active state indicates the project is regular and is the default value. Read Only means that users can see the project if read permission is granted, but all modification operations are disabled. Hidden means the project is not visible for those who are not owners Bug: issue 349 Change-Id: I2a8972701359c3792331712efc93cb6ded2065f5
This commit is contained in:
		 carloseduardo.baldacin
					carloseduardo.baldacin
				
			
				
					committed by
					
						 Gustaf Lundh
						Gustaf Lundh
					
				
			
			
				
	
			
			
			 Gustaf Lundh
						Gustaf Lundh
					
				
			
						parent
						
							a3b3e95ae7
						
					
				
				
					commit
					acbf134d54
				
			| @@ -41,6 +41,7 @@ public class ChangeDetail { | ||||
|   protected List<ChangeMessage> messages; | ||||
|   protected PatchSet.Id currentPatchSetId; | ||||
|   protected PatchSetDetail currentDetail; | ||||
|   protected boolean canEdit; | ||||
|  | ||||
|   public ChangeDetail() { | ||||
|   } | ||||
| @@ -190,4 +191,12 @@ public class ChangeDetail { | ||||
|   public String getDescription() { | ||||
|     return currentDetail != null ? currentDetail.getInfo().getMessage() : ""; | ||||
|   } | ||||
|  | ||||
|   public void setCanEdit(boolean a) { | ||||
|     canEdit = a; | ||||
|   } | ||||
|  | ||||
|   public boolean canEdit() { | ||||
|     return canEdit; | ||||
|   } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user