-
Notifications
You must be signed in to change notification settings - Fork 285
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add isParent field + address comments
- Loading branch information
Yingjian Wu
committed
Jun 28, 2024
1 parent
7096045
commit 399354c
Showing
8 changed files
with
243 additions
and
149 deletions.
There are no files selected for viewing
22 changes: 4 additions & 18 deletions
22
...ommon-server/src/main/java/com/netflix/metacat/common/server/model/BaseRelEntityInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,21 @@ | ||
package com.netflix.metacat.common.server.model; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.io.Serializable; | ||
|
||
/** | ||
* Base class to represent relation entity. | ||
*/ | ||
@Data | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public abstract class BaseRelEntityInfo implements Serializable { | ||
private static final long serialVersionUID = 9121109874202888889L; | ||
private String name; | ||
private String relationType; | ||
private String uuid; | ||
|
||
/** | ||
Empty Constructor. | ||
*/ | ||
public BaseRelEntityInfo() { | ||
|
||
} | ||
|
||
/** | ||
Constructor with all params. | ||
@param name name of the entity | ||
@param relationType type of the relation | ||
@param uuid uuid of the entity | ||
*/ | ||
public BaseRelEntityInfo(final String name, final String relationType, final String uuid) { | ||
this.name = name; | ||
this.relationType = relationType; | ||
this.uuid = uuid; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...n/java/com/netflix/metacat/common/server/usermetadata/ParentChildRelServiceException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package com.netflix.metacat.common.server.usermetadata; | ||
|
||
/** | ||
* Parent Child Rel Service exception. | ||
*/ | ||
public class ParentChildRelServiceException extends RuntimeException { | ||
/** | ||
* Constructor. | ||
* | ||
* @param m message | ||
*/ | ||
public ParentChildRelServiceException(final String m) { | ||
super(m); | ||
} | ||
|
||
/** | ||
* Constructor. | ||
* | ||
* @param m message | ||
* @param e exception | ||
*/ | ||
public ParentChildRelServiceException(final String m, final Exception e) { | ||
super(m, e); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.