mirror of
				https://github.com/lacerta-doc/Lacerta.git
				synced 2025-10-31 07:20:48 +00:00 
			
		
		
		
	Tags, DefaultBranch削除 WIP
This commit is contained in:
		
							parent
							
								
									57ec698b78
								
							
						
					
					
						commit
						cf60bc3423
					
				| @ -32,17 +32,10 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 | |||||||
|      */ |      */ | ||||||
|     Date createdAt; |     Date createdAt; | ||||||
| 
 | 
 | ||||||
|     /** |  | ||||||
|      * ドキュメントのタグ(DocumentTagインスタンスのリスト) |  | ||||||
|      */ |  | ||||||
|     List<DocumentTag> tags; |  | ||||||
| 
 |  | ||||||
|     String parentId; |     String parentId; | ||||||
| 
 | 
 | ||||||
|     String author; |     String author; | ||||||
| 
 | 
 | ||||||
|     String defaultBranch; |  | ||||||
| 
 |  | ||||||
|     // Constructor |     // Constructor | ||||||
| 
 | 
 | ||||||
|     public DocumentMeta() { |     public DocumentMeta() { | ||||||
| @ -51,49 +44,33 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 | |||||||
|     public DocumentMeta(String title) { |     public DocumentMeta(String title) { | ||||||
|         this.id = UUID.randomUUID().toString(); |         this.id = UUID.randomUUID().toString(); | ||||||
|         this.title = title; |         this.title = title; | ||||||
|         this.tags = new ArrayList<>(); |         this.author = ""; // TODO-rca: 作者のデフォルト値を指定できるように | ||||||
|         this.author = ""; // TODO-rca: 作者のデフォルト値を設定できるようにする |  | ||||||
|         this.defaultBranch = "main"; // TODO-rca: デフォルトブランチのデフォルト値を設定できるようにする |  | ||||||
|         this.parentId = null; |         this.parentId = null; | ||||||
|         this.updatedAt = new Date(); |         this.updatedAt = new Date(); | ||||||
|         this.createdAt = new Date(); |         this.createdAt = new Date(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public DocumentMeta(String title, List<DocumentTag> tags, String author, String defaultBranch) { |     public DocumentMeta(String title, String author) { | ||||||
|         this.id = UUID.randomUUID().toString(); |         this.id = UUID.randomUUID().toString(); | ||||||
|         this.title = title; |         this.title = title; | ||||||
|         this.tags = tags; |  | ||||||
|         this.author = author; |         this.author = author; | ||||||
|         this.defaultBranch = defaultBranch; |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public DocumentMeta(String id, String title, List<DocumentTag> tags, String author, String defaultBranch) { |     public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, String author) { | ||||||
|         this.id = id; |  | ||||||
|         this.title = title; |  | ||||||
|         this.tags = tags; |  | ||||||
|         this.author = author; |  | ||||||
|         this.defaultBranch = defaultBranch; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, List<DocumentTag> tags, String author, String defaultBranch) { |  | ||||||
|         this.id = id; |         this.id = id; | ||||||
|         this.title = title; |         this.title = title; | ||||||
|         this.updatedAt = updatedAt; |         this.updatedAt = updatedAt; | ||||||
|         this.createdAt = createdAt; |         this.createdAt = createdAt; | ||||||
|         this.tags = tags; |  | ||||||
|         this.author = author; |         this.author = author; | ||||||
|         this.defaultBranch = defaultBranch; |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, List<DocumentTag> tags, String parentId, String author, String defaultBranch) { |     public DocumentMeta(String id, String title, Date updatedAt, Date createdAt, String parentId, String author) { | ||||||
|         this.id = id; |         this.id = id; | ||||||
|         this.title = title; |         this.title = title; | ||||||
|         this.updatedAt = updatedAt; |         this.updatedAt = updatedAt; | ||||||
|         this.createdAt = createdAt; |         this.createdAt = createdAt; | ||||||
|         this.tags = tags; |  | ||||||
|         this.parentId = parentId; |         this.parentId = parentId; | ||||||
|         this.author = author; |         this.author = author; | ||||||
|         this.defaultBranch = defaultBranch; |  | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     // Getter |     // Getter | ||||||
| @ -126,24 +103,6 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 | |||||||
|         return createdAt; |         return createdAt; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |  | ||||||
|      * ドキュメントのタグ(DocumentTagインスタンスのリスト)を取得する |  | ||||||
|      */ |  | ||||||
|     public List<DocumentTag> getTags() { |  | ||||||
|         return tags; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     /** |  | ||||||
|      * ドキュメントのタグ(DocumentTagインスタンスのリスト)のID(String)を取得する |  | ||||||
|      */ |  | ||||||
|     public List<String> getTagIds() { |  | ||||||
|         List<String> tagIds = new ArrayList<>(); |  | ||||||
|         for (DocumentTag tag : tags) { |  | ||||||
|             tagIds.add(tag.getId()); |  | ||||||
|         } |  | ||||||
|         return tagIds; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     /** |     /** | ||||||
|      * ドキュメントの親フォルダのID(String)を取得する |      * ドキュメントの親フォルダのID(String)を取得する | ||||||
|      */ |      */ | ||||||
| @ -158,13 +117,6 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 | |||||||
|         return author; |         return author; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |  | ||||||
|      * ドキュメントのデフォルトブランチ(String)を取得する |  | ||||||
|      */ |  | ||||||
|     public String getDefaultBranch() { |  | ||||||
|         return defaultBranch; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     // Setter |     // Setter | ||||||
| 
 | 
 | ||||||
|     /** |     /** | ||||||
| @ -199,14 +151,6 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 | |||||||
|         this.createdAt = createdAt; |         this.createdAt = createdAt; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |  | ||||||
|      * ドキュメントのタグ(DocumentTagインスタンスのリスト)を設定する |  | ||||||
|      * @param tags ドキュメントのタグ(DocumentTagインスタンスのリスト) |  | ||||||
|      */ |  | ||||||
|     public void setTags(List<DocumentTag> tags) { |  | ||||||
|         this.tags = tags; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     /** |     /** | ||||||
|      * ドキュメントの親フォルダのID(String)を設定する |      * ドキュメントの親フォルダのID(String)を設定する | ||||||
|      * @param parentId ドキュメントの親フォルダのID |      * @param parentId ドキュメントの親フォルダのID | ||||||
| @ -223,14 +167,6 @@ public class DocumentMeta { // TODO-rca: JavaDoc対応 | |||||||
|         this.author = author; |         this.author = author; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     /** |  | ||||||
|      * ドキュメントのデフォルトブランチ(String)を設定する |  | ||||||
|      * @param defaultBranch ドキュメントのデフォルトブランチ |  | ||||||
|      */ |  | ||||||
|     public void setDefaultBranch(String defaultBranch) { |  | ||||||
|         this.defaultBranch = defaultBranch; |  | ||||||
|     } |  | ||||||
| 
 |  | ||||||
|     /** |     /** | ||||||
|      * updatedAtを現在時刻に設定する |      * updatedAtを現在時刻に設定する | ||||||
|      */ |      */ | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user