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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user