本文整理了Java中alluxio.security.authorization.Mode.applyDirectoryUMask()
方法的一些代码示例,展示了Mode.applyDirectoryUMask()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mode.applyDirectoryUMask()
方法的具体详情如下:
包路径:alluxio.security.authorization.Mode
类名称:Mode
方法名:applyDirectoryUMask
[英]Applies the default umask for newly created directories to this mode.
[中]将新创建目录的默认umask应用于此模式。
代码示例来源:origin: org.alluxio/alluxio-core-server-master
private CreateDirectoryOptions() {
super();
mAllowExists = false;
mTtl = Constants.NO_TTL;
mTtlAction = TtlAction.DELETE;
mMode.applyDirectoryUMask();
mUfsStatus = null;
}
代码示例来源:origin: org.alluxio/alluxio-core-common
/**
* Constructs a default {@link MkdirsOptions}.
*/
private MkdirsOptions() {
// By default create parent is true.
mCreateParent = true;
// default owner and group are null (unset)
mOwner = null;
mGroup = null;
mMode = Mode.defaults().applyDirectoryUMask();
}
代码示例来源:origin: org.alluxio/alluxio-core-server-master
mInodeTree.initializeRoot(SecurityUtils.getOwnerFromLoginModule(),
SecurityUtils.getGroupFromLoginModule(),
Mode.createFullAccess().applyDirectoryUMask(), context);
context.append(mInodeTree.getRoot().toJournalEntry());
代码示例来源:origin: org.alluxio/alluxio-core-server-master
/**
* Constructs an instance of {@link CreateDirectoryOptions} from {@link CreateDirectoryTOptions}.
* The option of permission is constructed with the username obtained from thrift
* transport.
*
* @param options the {@link CreateDirectoryTOptions} to use
*/
public CreateDirectoryOptions(CreateDirectoryTOptions options) {
this();
if (options != null) {
if (options.isSetCommonOptions()) {
mCommonOptions = new CommonOptions(options.getCommonOptions());
}
mAllowExists = options.isAllowExists();
mPersisted = options.isPersisted();
mRecursive = options.isRecursive();
mTtl = options.getTtl();
mTtlAction = TtlAction.fromThrift(options.getTtlAction());
if (SecurityUtils.isAuthenticationEnabled()) {
mOwner = SecurityUtils.getOwnerFromThriftClient();
mGroup = SecurityUtils.getGroupFromThriftClient();
}
if (options.isSetMode()) {
mMode = new Mode(options.getMode());
} else {
mMode.applyDirectoryUMask();
}
}
}
内容来源于网络,如有侵权,请联系作者删除!