本文整理了Java中org.eclipse.kapua.service.account.Account.getExpirationDate()
方法的一些代码示例,展示了Account.getExpirationDate()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Account.getExpirationDate()
方法的具体详情如下:
包路径:org.eclipse.kapua.service.account.Account
类名称:Account
方法名:getExpirationDate
[英]Gets the current Account expiration date
[中]获取当前帐户的到期日期
代码示例来源:origin: org.eclipse.kapua/kapua-account-internal
parentAccount = KapuaSecurityUtils.doPrivileged(() -> find(oldAccount.getScopeId()));
if (parentAccount != null && parentAccount.getExpirationDate() != null) {
if (account.getExpirationDate() == null || parentAccount.getExpirationDate().before(account.getExpirationDate())) {
throw new KapuaIllegalArgumentException("expirationDate", account.getExpirationDate() != null ? account.getExpirationDate().toString() : "no expiration date set");
if (account.getExpirationDate() != null) {
return childAccount.getExpirationDate() == null || childAccount.getExpirationDate().after(account.getExpirationDate());
})) {
throw new KapuaIllegalArgumentException("expirationDate", account.getExpirationDate() != null ? account.getExpirationDate().toString() : "no expiration date set");
代码示例来源:origin: eclipse/kapua
parentAccount = KapuaSecurityUtils.doPrivileged(() -> find(oldAccount.getScopeId()));
if (parentAccount != null && parentAccount.getExpirationDate() != null) {
if (account.getExpirationDate() == null || parentAccount.getExpirationDate().before(account.getExpirationDate())) {
throw new KapuaIllegalArgumentException("expirationDate", account.getExpirationDate() != null ? account.getExpirationDate().toString() : "no expiration date set");
if (account.getExpirationDate() != null) {
SystemSetting setting = SystemSetting.getInstance();
throw new KapuaIllegalArgumentException("notAllowedExpirationDate", account.getExpirationDate().toString());
if (childrenAccounts.getItems().stream().anyMatch(childAccount -> {
return childAccount.getExpirationDate() == null || childAccount.getExpirationDate().after(account.getExpirationDate());
})) {
throw new KapuaIllegalArgumentException("expirationDate", account.getExpirationDate() != null ? account.getExpirationDate().toString() : "no expiration date set");
代码示例来源:origin: org.eclipse.kapua/kapua-security-shiro
if (account.getExpirationDate() != null && !account.getExpirationDate().after(new Date())) {
throw new ExpiredAccountException(account.getExpirationDate());
代码示例来源:origin: eclipse/kapua
if (account.getExpirationDate() != null && !account.getExpirationDate().after(new Date())) {
throw new ExpiredAccountException(account.getExpirationDate());
代码示例来源:origin: org.eclipse.kapua/kapua-security-shiro
if (account.getExpirationDate() != null && !account.getExpirationDate().after(new Date())) {
throw new ExpiredAccountException(account.getExpirationDate());
代码示例来源:origin: eclipse/kapua
if (account.getExpirationDate() != null && !account.getExpirationDate().after(new Date())) {
throw new ExpiredAccountException(account.getExpirationDate());
代码示例来源:origin: eclipse/kapua
if (account.getExpirationDate() != null && !account.getExpirationDate().after(new Date())) {
throw new ExpiredAccountException(account.getExpirationDate());
代码示例来源:origin: org.eclipse.kapua/kapua-security-shiro
if (account.getExpirationDate() != null && !account.getExpirationDate().after(new Date())) {
throw new ExpiredAccountException(account.getExpirationDate());
代码示例来源:origin: org.eclipse.kapua/kapua-security-shiro
if (account.getExpirationDate() != null && !account.getExpirationDate().after(new Date())) {
throw new ExpiredAccountException(account.getExpirationDate());
代码示例来源:origin: eclipse/kapua
if (account.getExpirationDate() != null && !account.getExpirationDate().after(new Date())) {
throw new ExpiredAccountException(account.getExpirationDate());
代码示例来源:origin: eclipse/kapua
if (parentAccount != null && parentAccount.getExpirationDate() != null) {
if (accountCreator.getExpirationDate() == null || parentAccount.getExpirationDate().before(accountCreator.getExpirationDate())) {
代码示例来源:origin: org.eclipse.kapua/kapua-account-internal
if (parentAccount != null && parentAccount.getExpirationDate() != null) {
if (accountCreator.getExpirationDate() == null || parentAccount.getExpirationDate().before(accountCreator.getExpirationDate())) {
内容来源于网络,如有侵权,请联系作者删除!