org.hibernate.validator.constraints.NotEmpty Java Examples

The following examples show how to use org.hibernate.validator.constraints.NotEmpty. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: ScriptingDefaultValue.java    From onedev with MIT License 5 votes vote down vote up
@Editable(description="Groovy script to be evaluated. It should return login name of an user. "
		+ "Check <a href='$docRoot/pages/scripting.md' target='_blank'>scripting help</a> for details")
@ScriptChoice
@OmitName
@NotEmpty
public String getScriptName() {
	return scriptName;
}
 
Example #2
Source File: OpenIdConnector.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=100, description="Name of the provider will serve two purpose: "
		+ "<ul>"
		+ "<li>Display on login button"
		+ "<li>Form the authorization callback url which will be <i>&lt;server url&gt;/" + SsoProcessPage.MOUNTED_PATH + "/" + SsoProcessPage.STAGE_CALLBACK + "/&lt;name&gt;</i>"
		+ "</ul>")
@UrlSegment // will be used as part of callback url
@NotEmpty
@Override
public String getName() {
	return super.getName();
}
 
Example #3
Source File: CreateIssueAction.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=1000, name="Title", group="Issue Detail", description="Specify title of the issue. "
		+ "<b>Note:</b> Type <tt>@</tt> to <a href='$docRoot/pages/variable-substitution.md' target='_blank' tabindex='-1'>insert variable</a>, use <tt>\\</tt> to escape normal occurrences of <tt>@</tt> or <tt>\\</tt>")
@Interpolative(variableSuggester="suggestVariables")
@NotEmpty
public String getIssueTitle() {
	return issueTitle;
}
 
Example #4
Source File: ScriptingDefaultValue.java    From onedev with MIT License 5 votes vote down vote up
@Editable(description="Groovy script to be evaluated. It should return a <i>String</i> value. "
		+ "Check <a href='$docRoot/pages/scripting.md' target='_blank'>scripting help</a> for details")
@ScriptChoice
@OmitName
@NotEmpty
public String getScriptName() {
	return scriptName;
}
 
Example #5
Source File: SpecifiedDefaultValue.java    From onedev with MIT License 5 votes vote down vote up
@Editable(name="Specified default value")
@Password
@NotEmpty
@OmitName
public String getValue() {
	return value;
}
 
Example #6
Source File: SearchGroupsUsingFilter.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=200, description=""
		+ "In case user group relationship maintained at group side, this filter is used to determine belonging "
		+ "groups of current user. For example: <i>(&(uniqueMember={0})(objectclass=groupOfUniqueNames))</i>. In "
		+ "this example, <i>{0}</i> represents DN of current user")
@NotEmpty
public String getGroupSearchFilter() {
	return groupSearchFilter;
}
 
Example #7
Source File: JobService.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=400, description="Specify command to check readiness of the service. This command will "
		+ "be interpretated by cmd.exe on Windows images, and by shell on Linux images. It will be "
		+ "executed repeatedly until a zero code is returned to indicate service ready. "
		+ "<b>Note:</b> Type <tt>@</tt> to <a href='$docRoot/pages/variable-substitution.md' target='_blank' tabindex='-1'>insert variable</a>, use <tt>\\</tt> to escape normal occurrences of <tt>@</tt> or <tt>\\</tt>")
@Interpolative(variableSuggester="suggestVariables")
@NotEmpty
public String getReadinessCheckCommand() {
	return readinessCheckCommand;
}
 
Example #8
Source File: CacheSpec.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=100, description="Specify key of the cache. Caches with same key can be reused by different jobs. "
		+ "Note: Type @ to insert variable, use \\ to escape normal occurrences of @ or \\")
@Interpolative(variableSuggester="suggestVariables")
@NotEmpty
@RegEx(interpolative=true, pattern="[a-zA-Z0-9\\-_\\.]+", message="Can only contain alphanumeric, dash, dot and underscore")
public String getKey() {
	return key;
}
 
Example #9
Source File: ActiveDirectoryAuthenticator.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=300, description=""
		+ "To authenticate user against Active Directory and retrieve associated attributes and groups, OneDev "
		+ "would have to first authenticate itself against the Active Directory server and OneDev does that by "
		+ "sending 'manager' DN and password. The manager DN should be specified in form of "
		+ "<i>&lt;account name&gt;@&lt;domain&gt;</i>, for instance: <i>[email protected]</i>")
@NotEmpty
@Override
public String getManagerDN() {
	return super.getManagerDN();
}
 
Example #10
Source File: ActiveDirectoryAuthenticator.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=100, name="LDAP URL", description=
   	"Specifies LDAP URL of the Active Directory server, for example: <i>ldap://ad-server</i>, or <i>ldaps://ad-server</i>")
   @NotEmpty
@Override
public String getLdapUrl() {
	return super.getLdapUrl();
}
 
Example #11
Source File: ParamSpec.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=10)
@ParamName
@NotEmpty
@Override
public String getName() {
	return super.getName();
}
 
Example #12
Source File: SpecifiedDefaultValue.java    From onedev with MIT License 5 votes vote down vote up
@Editable(name="Literal default value")
@GroupChoice("getValueChoices")
@NotEmpty
@OmitName
public String getValue() {
	return value;
}
 
Example #13
Source File: JobHtmlReport.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=1100, description="Specify start page of the report relative to <a href='$docRoot/pages/concepts.md#job-workspace' target='_blank'>job workspace</a>, for instance: api/index.html. "
		+ "<b>Note:</b> Type <tt>@</tt> to <a href='$docRoot/pages/variable-substitution.md' target='_blank' tabindex='-1'>insert variable</a>, use <tt>\\</tt> to escape normal occurrences of <tt>@</tt> or <tt>\\</tt>")
@Interpolative(variableSuggester="suggestVariables")
@NotEmpty
public String getStartPage() {
	return startPage;
}
 
Example #14
Source File: JobExecutor.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=10000, name="Job Match Condition", description="Jobs applicable for this executor must match "
		+ "condition specified here")
@JobMatch
@NotEmpty
public String getJobMatch() {
	return jobMatch;
}
 
Example #15
Source File: ScriptingChoices.java    From onedev with MIT License 5 votes vote down vote up
@Editable(description="Groovy script to be evaluated. The return value should be a value to color map, "
		+ "for instance:<br>"
		+ "<code>return [\"Successful\":\"#00ff00\", \"Failed\":\"#ff0000\"]</code>, "
		+ "Use <tt>null</tt> if the value does not have a color. Check <a href='$docRoot/pages/scripting.md' target='_blank'>scripting help</a> for details")
@ScriptChoice
@OmitName
@NotEmpty
public String getScriptName() {
	return scriptName;
}
 
Example #16
Source File: SshSetting.java    From onedev with MIT License 5 votes vote down vote up
@Editable(name="Server Private Key", order=100, description="Specify the private key (in PEM format) used "
		+ "by ssh server to establish connections with client")
@Multiline
@NotEmpty
public String getPemPrivateKey() {
    return pemPrivateKey;
}
 
Example #17
Source File: ScriptingChoices.java    From onedev with MIT License 5 votes vote down vote up
@Editable(description="Groovy script to be evaluated. The return value should be a list of user login names to "
		+ "be used as choices. Check <a href='$docRoot/pages/scripting.md' target='_blank'>scripting help</a> for details")
@ScriptChoice
@OmitName
@NotEmpty
public String getScriptName() {
	return scriptName;
}
 
Example #18
Source File: JobService.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=200, description="Specify docker image of the service. "
		+ "<b>Note:</b> Type <tt>@</tt> to <a href='$docRoot/pages/variable-substitution.md' target='_blank' tabindex='-1'>insert variable</a>, use <tt>\\</tt> to escape normal occurrences of <tt>@</tt> or <tt>\\</tt>")
@Interpolative(variableSuggester="suggestVariables")
@NotEmpty
public String getImage() {
	return image;
}
 
Example #19
Source File: CacheSpec.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=200, description="Specify path to cache. Non-absolute path is considered to be relative to job workspace. "
		+ "Specify \".\" (without quote) to cache workspace itself. "
		+ "Note: Type @ to insert variable, use \\ to escape normal occurrences of @ or \\")
@Interpolative(variableSuggester="suggestVariables")
@Path
@NotEmpty
public String getPath() {
	return path;
}
 
Example #20
Source File: ScriptingDefaultValue.java    From onedev with MIT License 5 votes vote down vote up
@Editable(description="Groovy script to be evaluated. It should return a <i>string</i> value. "
		+ "Check <a href='$docRoot/pages/scripting.md' target='_blank'>scripting help</a> for details")
@ScriptChoice
@OmitName
@NotEmpty
public String getScriptName() {
	return scriptName;
}
 
Example #21
Source File: Role.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=100, description="Specify name of the role. <b class='red'>NOTE: </b> "
		+ "Permission to view issues will be granted implicitly even if no other permissions "
		+ "are specified here")
@NotEmpty
public String getName() {
	return name;
}
 
Example #22
Source File: UndefinedFieldValueResolution.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=100)
@ChoiceProvider("getValueChoices")
@ShowCondition("isNewValueVisible")
@OmitName
@NotEmpty
public String getNewValue() {
	return newValue;
}
 
Example #23
Source File: UndefinedFieldResolution.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=100, name="new field")
@ChoiceProvider("getFieldChoices")
@ShowCondition("isNewFieldVisible")
@NotEmpty
@OmitName
public String getNewField() {
	return newField;
}
 
Example #24
Source File: EnvVar.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=200, description="Specify value of the environment variable. "
		+ "<b>Note:</b> Type <tt>@</tt> to <a href='$docRoot/pages/variable-substitution.md' target='_blank' tabindex='-1'>insert variable</a>, use <tt>\\</tt> to escape normal occurrences of <tt>@</tt> or <tt>\\</tt>")
@Interpolative(variableSuggester="suggestVariables")
@NotEmpty
public String getValue() {
	return value;
}
 
Example #25
Source File: ScriptingDefaultMultiValue.java    From onedev with MIT License 5 votes vote down vote up
@Editable(description="Groovy script to be evaluated. It should return list of string. "
		+ "Check <a href='$docRoot/pages/scripting.md' target='_blank'>scripting help</a> for details")
@ScriptChoice
@OmitName
@NotEmpty
public String getScriptName() {
	return scriptName;
}
 
Example #26
Source File: ScriptingDefaultValue.java    From onedev with MIT License 5 votes vote down vote up
@Editable(description="Groovy script to be evaluated. It should return a <i>Date</i> value. "
		+ "Check <a href='$docRoot/pages/scripting.md' target='_blank'>scripting help</a> for details")
@ScriptChoice
@OmitName
@NotEmpty
public String getScriptName() {
	return scriptName;
}
 
Example #27
Source File: FieldSpec.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=10)
@FieldName
@NotEmpty
@Override
public String getName() {
	return super.getName();
}
 
Example #28
Source File: ScriptingDefaultValue.java    From onedev with MIT License 5 votes vote down vote up
@Editable(description="Groovy script to be evaluated. It should return a <i>boolean</i> value. "
		+ "Check <a href='$docRoot/pages/scripting.md' target='_blank'>scripting help</a> for details")
@ScriptChoice
@OmitName
@NotEmpty
public String getScriptName() {
	return scriptName;
}
 
Example #29
Source File: BranchBeanWithRevision.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=1000)
@RevisionPick
@NotEmpty(message="Please choose revision to create branch from")
@OmitName
public String getRevision() {
	return revision;
}
 
Example #30
Source File: SecuritySetting.java    From onedev with MIT License 5 votes vote down vote up
@Editable(order=150, description="Specify the group to grant permissions for anonymous access")
@GroupChoice
@ShowCondition("isAnonymousGroupVisible")
@NotEmpty
public String getAnonymousGroup() {
	return anonymousGroup;
}