(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.
(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.
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.
(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.
(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.
(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.
(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.
(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.
(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.
(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.
(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
(remove-access-permissions cm user abs-path)
Remove permissions, non-recursively where applicable
Remove permissions, non-recursively where applicable
(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.
(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.
(remove-permissions cm user fpath)
Remove permissions, recursively where applicable
Remove permissions, recursively where applicable
(set-coll-perms {coll :collectionAO zone :zone :as cm}
user
fpath
read?
write?
own?
recursive?)
(set-dataobj-perms {dataobj :dataObjectAO zone :zone :as cm}
user
fpath
read?
write?
own?)
(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.
(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'.
(set-permission cm user fpath permission)
(set-permission cm user fpath permission recursive?)
(set-permissions cm user fpath read? write? own?)
(set-permissions cm user fpath read? write? own? recursive?)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close