本文整理了Java中org.nuxeo.ecm.core.api.security.ACL.addAll()
方法的一些代码示例,展示了ACL.addAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ACL.addAll()
方法的具体详情如下:
包路径:org.nuxeo.ecm.core.api.security.ACL
类名称:ACL
方法名:addAll
暂无
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
@Override
public ACL getMergedACLs(String name) {
ACL mergedAcl = new ACLImpl(name, true);
for (ACL acl : acls) {
mergedAcl.addAll(acl);
}
return mergedAcl;
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-api
oldACL.addAll(acl);
} else {
String name = acl.getName();
代码示例来源:origin: opentoutatice-ecm.platform/opentoutatice-ecm-platform-automation
/**
* Gets default local ACL, i.e. when inheritance
* is blocked.
*
* @return default local ACL
*/
public static ACL buildDefaultLocalACL(CoreSession session, DocumentModel document) {
ACL acl = new ACLImpl();
String currentUser = session.getPrincipal().getName();
acl.add(new ACE(currentUser, SecurityConstants.EVERYTHING));
// acl.addAll(ACEsOperationHelper.getAdminEverythingACEs());
acl.addAll(getMasterOwnerACEs(session, document));
return acl;
}
代码示例来源:origin: org.nuxeo.ecm.platform/nuxeo-platform-ws
@Override
@WebMethod
public WsACE[] getDocumentLocalACL(@WebParam(name = "sessionId") String sid, @WebParam(name = "uuid") String uuid)
{
logDeprecation();
WSRemotingSession rs = initSession(sid);
ACP acp = rs.getDocumentManager().getACP(new IdRef(uuid));
if (acp != null) {
ACL mergedAcl = new ACLImpl("MergedACL", true);
for (ACL acl : acp.getACLs()) {
if (!ACL.INHERITED_ACL.equals(acl.getName())) {
mergedAcl.addAll(acl);
}
}
return WsACE.wrap(mergedAcl.toArray(new ACE[mergedAcl.size()]));
} else {
return null;
}
}
代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-storage-sql
protected ACL getInheritedACLs(Document doc) {
doc = doc.getParent();
ACL merged = null;
while (doc != null) {
ACP acp = getACP(doc);
if (acp != null) {
ACL acl = acp.getMergedACLs(ACL.INHERITED_ACL);
if (merged == null) {
merged = acl;
} else {
merged.addAll(acl);
}
if (acp.getAccess(SecurityConstants.EVERYONE, SecurityConstants.EVERYTHING) == Access.DENY) {
break;
}
}
doc = doc.getParent();
}
return merged;
}
代码示例来源:origin: org.nuxeo.ecm.routing/nuxeo-routing-core
/**
* Finds the first domain by name, and creates under it the root container for the structure containing the route
* instances.
*/
protected DocumentModel createDocumentRoutesStructure(String routeStructureDocType, String id, CoreSession session)
{
DocumentModel root = session.createDocumentModel(session.getRootDocument().getPathAsString(), id,
routeStructureDocType);
root.setPropertyValue(DC_TITLE, routeStructureDocType);
root = session.createDocument(root);
ACP acp = session.getACP(root.getRef());
ACL acl = acp.getOrCreateACL(ACL.LOCAL_ACL);
acl.addAll(getACEs());
session.setACP(root.getRef(), acp, true);
return root;
}
内容来源于网络,如有侵权,请联系作者删除!