Allow users to register new contributor agreements in Gerrit

The HTML text shown in the body of an agreement is read from a
static HTML file in the site path, under "static/", but may also
come from any other location on the Internet.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2008-12-30 17:26:31 -08:00
parent af3e0d6bc6
commit 363e7c2984
22 changed files with 802 additions and 24 deletions

View File

@@ -106,6 +106,10 @@ public final class AccountAgreement {
status = Status.NEW.getCode();
}
public AccountAgreement.Key getKey() {
return key;
}
public ContributorAgreement.Id getAgreementId() {
return key.claId;
}

View File

@@ -68,9 +68,9 @@ public final class ContributorAgreement {
@Column(notNull = false)
protected String shortDescription;
/** Text of the agreement, in formatted HTML */
@Column(length = Integer.MAX_VALUE)
protected String agreementHtml;
/** Web address of the agreement documentation. */
@Column
protected String agreementUrl;
protected ContributorAgreement() {
}
@@ -127,11 +127,11 @@ public final class ContributorAgreement {
shortDescription = d;
}
public String getAgreementHtml() {
return agreementHtml;
public String getAgreementUrl() {
return agreementUrl;
}
public void setAgreementHtml(final String h) {
agreementHtml = h;
public void setAgreementUrl(final String h) {
agreementUrl = h;
}
}