Record Class SiteContext
java.lang.Object
java.lang.Record
network.ike.plugin.reconcile.SiteContext
- Record Components:
gitRoot- the git root of the project whose site is being reconciledprojectId- the project's Maven artifact idprojectVersion- the current POM version (SNAPSHOT stripped where relevant)projectName- the human-readable project name (POM<name>) or nullprojectDescription- the project description (POM<description>) or nullprojectSiteUrl- the canonical site URL (e.g. https://ike.network/ike-tooling/)githubUrl- the project's GitHub repository URLsrcRepoUrl- git URL of the org-site SOURCE reposrcBranch- branch in the org-site source repopubRepoUrl- git URL of the org-site PUBLISH repopubBranch- branch in the org-site publish repooptions- user-supplied flag valueslog- Maven logger for reconciler output
public record SiteContext(File gitRoot, String projectId, String projectVersion, String projectName, String projectDescription, String projectSiteUrl, String githubUrl, String srcRepoUrl, String srcBranch, String pubRepoUrl, String pubBranch, SiteReconcilerOptions options, org.apache.maven.api.plugin.Log log)
extends Record
Context handed to each
SiteReconciler for detect and
apply. Bundles the per-repo identity (git root, artifact id,
project version), org-site coordinates, user-supplied flags, and a
logger.
Parallels network.ike.plugin.ws.reconcile.WorkspaceContext
but at the per-repo scope rather than the workspace-wide scope. The
two are intentionally kept separate — see SiteReconciler for
the rationale.
-
Constructor Summary
ConstructorsConstructorDescriptionSiteContext(File gitRoot, String projectId, String projectVersion, String projectName, String projectDescription, String projectSiteUrl, String githubUrl, String srcRepoUrl, String srcBranch, String pubRepoUrl, String pubBranch, SiteReconcilerOptions options, org.apache.maven.api.plugin.Log log) Creates an instance of aSiteContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegithubUrlrecord component.gitRoot()Returns the value of thegitRootrecord component.final inthashCode()Returns a hash code value for this object.org.apache.maven.api.plugin.Loglog()Returns the value of thelogrecord component.options()Returns the value of theoptionsrecord component.Returns the value of theprojectDescriptionrecord component.Returns the value of theprojectIdrecord component.Returns the value of theprojectNamerecord component.Returns the value of theprojectSiteUrlrecord component.Returns the value of theprojectVersionrecord component.Returns the value of thepubBranchrecord component.Returns the value of thepubRepoUrlrecord component.Returns the value of thesrcBranchrecord component.Returns the value of thesrcRepoUrlrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SiteContext
public SiteContext(File gitRoot, String projectId, String projectVersion, String projectName, String projectDescription, String projectSiteUrl, String githubUrl, String srcRepoUrl, String srcBranch, String pubRepoUrl, String pubBranch, SiteReconcilerOptions options, org.apache.maven.api.plugin.Log log) Creates an instance of aSiteContextrecord class.- Parameters:
gitRoot- the value for thegitRootrecord componentprojectId- the value for theprojectIdrecord componentprojectVersion- the value for theprojectVersionrecord componentprojectName- the value for theprojectNamerecord componentprojectDescription- the value for theprojectDescriptionrecord componentprojectSiteUrl- the value for theprojectSiteUrlrecord componentgithubUrl- the value for thegithubUrlrecord componentsrcRepoUrl- the value for thesrcRepoUrlrecord componentsrcBranch- the value for thesrcBranchrecord componentpubRepoUrl- the value for thepubRepoUrlrecord componentpubBranch- the value for thepubBranchrecord componentoptions- the value for theoptionsrecord componentlog- the value for thelogrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
gitRoot
-
projectId
-
projectVersion
Returns the value of theprojectVersionrecord component.- Returns:
- the value of the
projectVersionrecord component
-
projectName
Returns the value of theprojectNamerecord component.- Returns:
- the value of the
projectNamerecord component
-
projectDescription
Returns the value of theprojectDescriptionrecord component.- Returns:
- the value of the
projectDescriptionrecord component
-
projectSiteUrl
Returns the value of theprojectSiteUrlrecord component.- Returns:
- the value of the
projectSiteUrlrecord component
-
githubUrl
-
srcRepoUrl
Returns the value of thesrcRepoUrlrecord component.- Returns:
- the value of the
srcRepoUrlrecord component
-
srcBranch
-
pubRepoUrl
Returns the value of thepubRepoUrlrecord component.- Returns:
- the value of the
pubRepoUrlrecord component
-
pubBranch
-
options
-
log
-