Klasse CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder
java.lang.Object
io.github.primelib.confluence4j.rest.v1.spec.CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder
- Umschließende Klasse:
CreateRelationshipOperationSpec
public static class CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder
extends Object
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungbuild()relationName(@NotNull String relationName) The name of the relationship.- The identifier for the source entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key.sourceStatus(@Nullable String sourceStatus) The status of the source.sourceType(@NotNull String sourceType) The source entity type of the relationship.sourceVersion(@Nullable Integer sourceVersion) The version of the source.- The identifier for the target entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key.targetStatus(@Nullable String targetStatus) The status of the target.targetType(@NotNull String targetType) The target entity type of the relationship.targetVersion(@Nullable Integer targetVersion) The version of the target.toString()
-
Methodendetails
-
relationName
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder relationName(@NotNull @NotNull String relationName) The name of the relationship. This method supports the 'favourite' (i.e. 'save for later') relationship. You can also specify any other value for this parameter to create a custom relationship type.- Gibt zurück:
this.
-
sourceType
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder sourceType(@NotNull @NotNull String sourceType) The source entity type of the relationship. This must be 'user', if therelationNameis 'favourite'.- Gibt zurück:
this.
-
sourceKey
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder sourceKey(@NotNull @NotNull String sourceKey) - The identifier for the source entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key. - IfsourceTypeis 'content', then specify the content ID. - IfsourceTypeis 'space', then specify the space key.- Gibt zurück:
this.
-
targetType
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder targetType(@NotNull @NotNull String targetType) The target entity type of the relationship. This must be 'space' or 'content', if therelationNameis 'favourite'.- Gibt zurück:
this.
-
targetKey
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder targetKey(@NotNull @NotNull String targetKey) - The identifier for the target entity: - IfsourceTypeis 'user', then specify either 'current' (logged-in user) or the user key. - IfsourceTypeis 'content', then specify the content ID. - IfsourceTypeis 'space', then specify the space key.- Gibt zurück:
this.
-
sourceStatus
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder sourceStatus(@Nullable @Nullable String sourceStatus) The status of the source. This parameter is only used when thesourceTypeis 'content'.- Gibt zurück:
this.
-
targetStatus
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder targetStatus(@Nullable @Nullable String targetStatus) The status of the target. This parameter is only used when thetargetTypeis 'content'.- Gibt zurück:
this.
-
sourceVersion
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder sourceVersion(@Nullable @Nullable Integer sourceVersion) The version of the source. This parameter is only used when thesourceTypeis 'content' and thesourceStatusis 'historical'.- Gibt zurück:
this.
-
targetVersion
public CreateRelationshipOperationSpec.CreateRelationshipOperationSpecBuilder targetVersion(@Nullable @Nullable Integer targetVersion) The version of the target. This parameter is only used when thetargetTypeis 'content' and thetargetStatusis 'historical'.- Gibt zurück:
this.
-
build
-
toString
-