alluxio.security.authorization.Mode.applyDirectoryUMask()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中alluxio.security.authorization.Mode.applyDirectoryUMask()方法的一些代码示例,展示了Mode.applyDirectoryUMask()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Mode.applyDirectoryUMask()方法的具体详情如下:
包路径:alluxio.security.authorization.Mode
类名称:Mode
方法名:applyDirectoryUMask

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();
  }
 }
}

相关文章