Liking cljdoc? Tell your friends :D

clj-jargon.permissions


collection-perm-mapclj

(collection-perm-map cm user coll-path)

Uses (user-collection-perms) to grab the 'raw' permissions for the user for the collection at coll-path and returns a map with the keys :read, :write, and :own. The values are booleans.

Uses (user-collection-perms) to grab the 'raw' permissions for
the user for the collection at coll-path and returns a map with
the keys :read, :write, and :own. The values are booleans.
sourceraw docstring

collection-perms-rsclj

(collection-perms-rs cm user coll-path)
source

contains-accessible-obj?clj

(contains-accessible-obj? cm user dpath)
source

dataobject-perm-mapclj

(dataobject-perm-map cm user data-path)

Uses (user-dataobject-perms) to grab the 'raw' permissions for the user for the dataobject at data-path, and returns a map with the keys :read :write and :own. The values are booleans.

Uses (user-dataobject-perms) to grab the 'raw' permissions for
the user for the dataobject at data-path, and returns a map with
the keys :read :write and :own. The values are booleans.
sourceraw docstring

dataobject-perms-rsclj

(dataobject-perms-rs cm user-id data-path)
source

fix-ownersclj

(fix-owners cm abs-path & owners)
source

fix-permsclj

(fix-perms cm src dst user admin-users skip-source-perms?)
source

fmt-permcljmultimethod

Translates a jargonesque permission to a keyword permission.

Parameter: jargon-perm - the jargon permission

Returns: The keyword representation, :own, :write, :read or nil.

Translates a jargonesque permission to a keyword permission.

Parameter:
  jargon-perm - the jargon permission

Returns:
  The keyword representation, :own, :write, :read or nil.
sourceraw docstring

inherit-permsclj

(inherit-perms cm path user admin-users)
source

is-readable?clj

(is-readable? cm user path & {:keys [known-type] :or {known-type nil}})

Returns true if 'user' can read 'path'.

Parameters: cm - The iRODS context map user - String containing a username. path - String containing an path for something in iRODS.

Returns true if 'user' can read 'path'.

Parameters:
  cm - The iRODS context map
  user - String containing a username.
  path - String containing an path for something in iRODS.
sourceraw docstring

is-writeable?clj

(is-writeable? cm user path & {:keys [known-type] :or {known-type nil}})

Returns true if 'user' can write to 'path'.

Parameters: cm - The iRODS context map user - String containign a username. path - String containing an absolute path for something in iRODS.

Returns true if 'user' can write to 'path'.

Parameters:
  cm - The iRODS context map
  user - String containign a username.
  path - String containing an absolute path for something in iRODS.
sourceraw docstring

list-pathsclj

(list-paths {cm-ao :fileSystemAO :as cm} parent-path & flags)

Returns a list of paths for the entries under the parent path. This is not recursive .

Parameters: cm - The context map parent-path - The path of the parrent collection (directory). :ignore-child-exns - When this flag is provided, child names that are too long will not cause an exception to be thrown. If they are not ignored, an exception will be thrown, causing no paths to be listed. An ignored child will be replaced with a nil in the returned list.

Returns: It returns a list path names for the entries under the parent.

Throws: FileNotFoundException - This is thrown if parent-path is not in iRODS. See validate-path-lengths for path-related exceptions.

Returns a list of paths for the entries under the parent path.  This is not
recursive .

Parameters:
  cm - The context map
  parent-path - The path of the parrent collection (directory).
  :ignore-child-exns - When this flag is provided, child names that are too
    long will not cause an exception to be thrown.  If they are not ignored,
    an exception will be thrown, causing no paths to be listed.  An ignored
    child will be replaced with a nil in the returned list.

Returns:
  It returns a list path names for the entries under the parent.

Throws:
  FileNotFoundException - This is thrown if parent-path is not in iRODS.
  See validate-path-lengths for path-related exceptions.
sourceraw docstring

list-user-permclj

(list-user-perm cm abs-path & {:keys [known-type] :or {known-type nil}})
source

list-user-permsclj

(list-user-perms cm abs-path & {:keys [known-type] :or {known-type nil}})
source

make-file-accessibleclj

(make-file-accessible cm path user admin-users)

Ensures that a file is accessible to all users that have access to the file.

Ensures that a file is accessible to all users that have access to the file.
sourceraw docstring

none-permclj

source

one-user-to-rule-them-all?clj

(one-user-to-rule-them-all? {lister :lister :as cm} user)
source

own-permclj

source

owns?clj

(owns? cm user fpath & {:keys [known-type] :or {known-type nil}})
source

paths-writeable?clj

(paths-writeable? cm user paths)

Returns true if all of the paths in 'paths' are writeable by 'user'.

Parameters: cm - The iRODS context map user - A string containing the username of the user requesting the check. paths - A sequence of strings containing the paths to be checked.

Returns true if all of the paths in 'paths' are writeable by 'user'.

Parameters:
  cm - The iRODS context map
  user - A string containing the username of the user requesting the check.
  paths - A sequence of strings containing the paths to be checked.
sourceraw docstring

perm-mapclj

(perm-map [perm-id username])
source

perm-map-forclj

(perm-map-for perms-code)
source

perm-order-mapclj

source

perm-user->mapclj

(perm-user->map [perm-id username])
source

permission-forclj

(permission-for cm user fpath & {:keys [known-type] :or {known-type nil}})

Determines a given user's permission for a given collection or data object.

Parameters: cm - The context for an open connection to iRODS. user - the user name fpath - the logical path of the collection or data object.

Returns: It returns the aggregated permission.

Determines a given user's permission for a given collection or data object.

Parameters:
  cm - The context for an open connection to iRODS.
  user - the user name
  fpath - the logical path of the collection or data object.

Returns:
  It returns the aggregated permission.
sourceraw docstring

permissionsclj

(permissions cm user fpath & {:keys [known-type] :or {known-type nil}})
source

permissions-inherited?clj

(permissions-inherited? {collection-ao :collectionAO :as cm} path)

Determines whether the inheritance attribute of a collection is true.

Parameters: cm - The iRODS context map path - The path being checked.

Determines whether the inheritance attribute of a collection is true.

Parameters:
  cm - The iRODS context map
  path - The path being checked.
sourceraw docstring

process-parent-dirsclj

(process-parent-dirs f process? path)
source

process-permsclj

(process-perms f cm path user admin-users)

Fetches the permissions on path, remove anything relating to admin users or user or the context-map user, then map f over the permissions

Fetches the permissions on `path`, remove anything relating to admin users
or `user` or the context-map user, then map `f` over the permissions
sourceraw docstring

read-permclj

source

remove-access-permissionsclj

(remove-access-permissions cm user abs-path)

Remove permissions, non-recursively where applicable

Remove permissions, non-recursively where applicable
sourceraw docstring

remove-inheritsclj

(remove-inherits {collection-ao :collectionAO zone :zone :as cm} path)

Sets the inheritance attribute of a collection to false (recursively).

Parameters: cm - The iRODS context map path - the path being altered.

Sets the inheritance attribute of a collection to false (recursively).

Parameters:
  cm - The iRODS context map
  path - the path being altered.
sourceraw docstring

remove-obsolete-permsclj

(remove-obsolete-perms cm path user admin-users)

Removes permissions that are no longer required for a directory that isn't shared. Read permissions are no longer required for any user who no longer has access to any file or subdirectory.

Removes permissions that are no longer required for a directory that isn't shared.  Read
permissions are no longer required for any user who no longer has access to any file or
subdirectory.
sourceraw docstring

remove-permissionsclj

(remove-permissions cm user fpath)

Remove permissions, recursively where applicable

Remove permissions, recursively where applicable
sourceraw docstring

removed-ownersclj

(removed-owners curr-user-perms set-of-new-owners)
source

reset-permsclj

(reset-perms cm path user admin-users)
source

set-coll-permsclj

(set-coll-perms {coll :collectionAO zone :zone :as cm}
                user
                fpath
                read?
                write?
                own?
                recursive?)
source

set-dataobj-permsclj

(set-dataobj-perms {dataobj :dataObjectAO zone :zone :as cm}
                   user
                   fpath
                   read?
                   write?
                   own?)
source

set-inheritsclj

(set-inherits {collection-ao :collectionAO zone :zone :as cm} path)

Sets the inheritance attribute of a collection to true (recursively).

Parameters: cm - The iRODS context map path - The path being altered.

Sets the inheritance attribute of a collection to true (recursively).

Parameters:
  cm - The iRODS context map
  path - The path being altered.
sourceraw docstring

set-ownerclj

(set-owner {data-ao :dataObjectAO collection-ao :collectionAO zone :zone :as cm}
           path
           owner
           &
           {:keys [known-type] :or {known-type nil}})

Sets the owner of 'path' to the username 'owner'.

Parameters: cm - The iRODS context map path - The path whose owner is being set. owner - The username of the user who will be the owner of 'path'.

Sets the owner of 'path' to the username 'owner'.

Parameters:
  cm - The iRODS context map
  path - The path whose owner is being set.
  owner - The username of the user who will be the owner of 'path'.
sourceraw docstring

set-permissionclj

(set-permission cm user fpath permission)
(set-permission cm user fpath permission recursive?)
source

set-permissionsclj

(set-permissions cm user fpath read? write? own?)
(set-permissions cm user fpath read? write? own? recursive?)
source

set-readableclj

(set-readable cm username readable? path)
source

str->perm-constclj

(str->perm-const s)
source

write-permclj

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close