@Override public Validator childNodeDeleted(String name, NodeState before) throws CommitFailedException { if (moveCtx.processDelete(getParentBefore(), name, this)) { return null; } else { return super.childNodeDeleted(name, before); } }
@Override public Validator childNodeAdded(String name, NodeState after) throws CommitFailedException { if (moveCtx.processAdd(getParentAfter(), name, this)) { return null; } else { return super.childNodeAdded(name, after); } }
private CompiledPermissions getCompiledPermissions() { CompiledPermissions cp = compiledPermissions; if (cp == null) { if (PermissionUtil.isAdminOrSystem(principals, options)) { cp = AllPermissions.getInstance(); } else { cp = CompiledPermissionImpl.create(immutableRoot, workspaceName, getPermissionStore(immutableRoot, workspaceName, restrictionProvider), principals, options, ctx, providerCtx); } compiledPermissions = cp; } return cp; }
@NotNull @Override public TreePermission getTreePermission(@NotNull Tree tree, @NotNull TreePermission parentPermission) { return getCompiledPermissions().getTreePermission(PermissionUtil.getReadOnlyTree(tree, immutableRoot), parentPermission); }
@Nonnull @Override public TreePermission getTreePermission(@Nonnull Tree tree, @Nonnull TreePermission parentPermission) { return getCompiledPermissions().getTreePermission(PermissionUtil.getImmutableTree(tree, immutableRoot), parentPermission); }
@Override public boolean canReadAll() { return getReadStatus().allowsAll(); }
@Override public boolean canRead() { return getReadStatus().allowsThis(); }
@Override public boolean canReadProperties() { return getReadStatus().allowsProperties(); }
private CompiledPermissions getCompiledPermissions() { CompiledPermissions cp = compiledPermissions; if (cp == null) { if (PermissionUtil.isAdminOrSystem(principals, options)) { cp = AllPermissions.getInstance(); } else { cp = CompiledPermissionImpl.create(immutableRoot, workspaceName, getPermissionStore(immutableRoot, workspaceName, restrictionProvider), principals, options, ctx, providerCtx); } compiledPermissions = cp; } return cp; }
@NotNull @Override public TreePermission getTreePermission(@NotNull Tree tree, @NotNull TreeType type, @NotNull TreePermission parentPermission) { return getCompiledPermissions().getTreePermission(PermissionUtil.getReadOnlyTree(tree, immutableRoot), type, parentPermission); }
@Override public Validator childNodeDeleted(String name, NodeState before) throws CommitFailedException { if (moveCtx.processDelete(getParentBefore(), name, this)) { return null; } else { return super.childNodeDeleted(name, before); } }
@Override public Validator childNodeAdded(String name, NodeState after) throws CommitFailedException { if (moveCtx.processAdd(getParentAfter(), name, this)) { return null; } else { return super.childNodeAdded(name, after); } }
@Override public boolean canReadAll() { return getReadStatus().allowsAll(); }
@Override public boolean canRead() { return getReadStatus().allowsThis(); }
@Override public boolean canReadProperties() { return getReadStatus().allowsProperties(); }
private CompiledPermissions getCompiledPermissions() { CompiledPermissions cp = compiledPermissions; if (cp == null) { if (PermissionUtil.isAdminOrSystem(principals, options)) { cp = AllPermissions.getInstance(); } else { cp = CompiledPermissionImpl.create(immutableRoot, workspaceName, getPermissionStore(immutableRoot, workspaceName, restrictionProvider), principals, restrictionProvider, options, ctx); } compiledPermissions = cp; } return cp; }
@Override public Validator childNodeDeleted(String name, NodeState before) throws CommitFailedException { if (moveCtx.processDelete(getParentBefore(), name, this)) { return null; } else { return super.childNodeDeleted(name, before); } }
@Override public Validator childNodeAdded(String name, NodeState after) throws CommitFailedException { if (moveCtx.processAdd(getParentAfter(), name, this)) { return null; } else { return super.childNodeAdded(name, after); } }
@Override public boolean canReadAll() { return getReadStatus().allowsAll(); }