本文整理了Java中org.nuxeo.ecm.core.api.security.ACE.setEnd()
方法的一些代码示例,展示了ACE.setEnd()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ACE.setEnd()
方法的具体详情如下:
包路径:org.nuxeo.ecm.core.api.security.ACE
类名称:ACE
方法名:setEnd
[英]Sets the end date of this ACE.
Sets the Calendar.MILLISECOND part of the Calendar to 0.
[中]设置此ACE的结束日期。
设置日历。将日历的毫秒部分设置为0。
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
/**
* Constructs an ACE for a given username, permission, specifying whether to grant or deny it, creator user, begin
* and end date.
*
* @since 7.4
*/
ACE(String username, String permission, boolean isGranted, String creator, Calendar begin, Calendar end,
Map<String, Serializable> contextData) {
this.username = username;
this.permission = permission;
this.isGranted = isGranted;
this.creator = creator;
setBegin(begin);
setEnd(end);
if (contextData != null) {
this.contextData = new HashMap<>(contextData);
}
if (begin != null && end != null) {
if (begin.after(end)) {
throw new IllegalArgumentException("'begin' date cannot be after 'end' date");
}
}
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-admin-center-core
if (username.equals(ace.getUsername())) {
Calendar now = new GregorianCalendar();
ace.setEnd(now);
changed = true;
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-admin-center
if (username.equals(ace.getUsername())) {
Calendar now = new GregorianCalendar();
ace.setEnd(now);
changed = true;
内容来源于网络,如有侵权,请联系作者删除!