本文整理了Java中org.nuxeo.ecm.core.api.security.ACE.equals()
方法的一些代码示例,展示了ACE.equals()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ACE.equals()
方法的具体详情如下:
包路径:org.nuxeo.ecm.core.api.security.ACE
类名称:ACE
方法名:equals
暂无
代码示例来源:origin: toutatice-services.carto-nat/toutatice-carto-nat-ecm
/**
* @param docCtx
* @param sourceDocument
*/
public void removePublicAce(CoreSession session, DocumentModel sourceDocument) {
// Get proxy
DocumentModel proxy = ToutaticeDocumentHelper.getProxy(session, sourceDocument, SecurityConstants.READ);
// Get local ACL
ACP acp = session.getACP(sourceDocument.getRef());
ACL acl = acp.getOrCreateACL(ACL.LOCAL_ACL);
// Remove public ACE (iteraot for dirty doublon case)
ACE publicAce = new ACE(SecurityConstants.EVERYONE, SecurityConstants.READ);
Iterator<ACE> iterator = acl.iterator();
while (iterator.hasNext()) {
ACE ace = iterator.next();
if (publicAce.equals(ace)) {
iterator.remove();
}
}
UnrestrictedAcpSetter setter = new UnrestrictedAcpSetter(session, proxy, acp);
setter.runUnrestricted();
}
代码示例来源:origin: toutatice-services.dafpic/toutatice-dafpic-import-compatibility
if(ACE.BLOCK.equals(ace)){
acesList.add(currentUserAce);
acesList.add(ACE.BLOCK);
内容来源于网络,如有侵权,请联系作者删除!