本文整理了Java中alluxio.security.authorization.Mode.createFullAccess()
方法的一些代码示例,展示了Mode.createFullAccess()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mode.createFullAccess()
方法的具体详情如下:
包路径:alluxio.security.authorization.Mode
类名称:Mode
方法名:createFullAccess
[英]Creates the "full access" mode.
[中]创建“完全访问”模式。
代码示例来源:origin: Alluxio/alluxio
SecurityUtils.getOwnerFromLoginModule(ServerConfiguration.global()),
SecurityUtils.getGroupFromLoginModule(ServerConfiguration.global()),
ModeUtils.applyDirectoryUMask(Mode.createFullAccess(),
ServerConfiguration.get(PropertyKey.SECURITY_AUTHORIZATION_PERMISSION_UMASK)),
context);
代码示例来源:origin: Alluxio/alluxio
private AlluxioURI createTestFile() throws Exception {
AlluxioURI path = new AlluxioURI("/" + CommonUtils.randomAlphaNumString(10));
String owner = SecurityUtils.getOwnerFromGrpcClient(ServerConfiguration.global());
String group = SecurityUtils.getGroupFromGrpcClient(ServerConfiguration.global());
mFileSystemMaster.createFile(path,
CreateFileContext
.defaults(
CreateFilePOptions.newBuilder().setMode(Mode.createFullAccess().toProto()))
.setOwner(owner).setGroup(group));
mFileSystemMaster.completeFile(path, CompleteFileContext.defaults());
return path;
}
代码示例来源:origin: Alluxio/alluxio
short mode = context.isMetadataLoad() ? Mode.createFullAccess().toShort()
: newDir.getMode();
DefaultAccessControlList dAcl = currentInodeDirectory.getDefaultACL();
short mode = context.isMetadataLoad() ? Mode.createFullAccess().toShort()
: newDir.getMode();
DefaultAccessControlList dAcl = currentInodeDirectory.getDefaultACL();
short mode = context.isMetadataLoad() ? Mode.createFullAccess().toShort() : newFile.getMode();
if (!dAcl.isEmpty()) {
AccessControlList acl = dAcl.generateChildFileACL(mode);
代码示例来源:origin: org.alluxio/alluxio-core-server-master
mInodeTree.initializeRoot(SecurityUtils.getOwnerFromLoginModule(),
SecurityUtils.getGroupFromLoginModule(),
Mode.createFullAccess().applyDirectoryUMask(), context);
context.append(mInodeTree.getRoot().toJournalEntry());
内容来源于网络,如有侵权,请联系作者删除!