Liking cljdoc? Tell your friends :D

clj-icat-direct.icat


file-permissions-for-userclj

(file-permissions-for-user user file-path)

Returns the highest permission value for the specified user on the file.

Returns the highest permission value for the specified user on the file.
sourceraw docstring

folder-path-listingclj

(folder-path-listing user zone folder-path)

Returns a complete folder listing for everything visible to a given user.

Parameters: user - the name of the user zone - the authentication zone of the user folder-path - the absolute path to the folder

Returns: It returns a sequence of paths.

Returns a complete folder listing for everything visible to a given user.

Parameters:
  user        - the name of the user
  zone        - the authentication zone of the user
  folder-path - the absolute path to the folder

Returns:
  It returns a sequence of paths.
sourceraw docstring

folder-permissions-for-userclj

(folder-permissions-for-user user folder-path)

Returns the highest permission value for the specified user on the folder.

Returns the highest permission value for the specified user on the folder.
sourceraw docstring

get-itemclj

(get-item dirname basename group-ids)
(get-item dirname basename user zone)
source

icatclj

source

icat-db-specclj

(icat-db-spec hostname user pass & {:keys [port db] :or {port 5432 db "ICAT"}})

Creates a Korma db spec for the ICAT.

Creates a Korma db spec for the ICAT.
sourceraw docstring

list-files-under-folderclj

(list-files-under-folder folder-path)

Lists all of the files in the current folder and all descendants, without regard to file or folder permissions. Use of this function should be restricted to administrative endpoints.

Lists all of the files in the current folder and all descendants, without regard to file or folder permissions. Use
of this function should be restricted to administrative endpoints.
sourceraw docstring

list-folders-in-folderclj

(list-folders-in-folder user zone folder-path)

Returns a listing of the folders contained in the specified folder that the user has access to.

Returns a listing of the folders contained in the specified folder that the user has access to.
sourceraw docstring

list-perms-for-itemclj

(list-perms-for-item path)
source

number-of-all-items-under-folderclj

(number-of-all-items-under-folder user zone folder-path)

Returns the total number of files and folders in the specified folder and all sub-folders that the user has access to.

Returns the total number of files and folders in the specified folder and all
sub-folders that the user has access to.
sourceraw docstring

number-of-bad-items-in-folderclj

(number-of-bad-items-in-folder &
                               {:keys [user zone folder-path entity-type
                                       info-types bad-chars bad-names
                                       bad-paths]})

Returns the total number of files and folders in the specified folder that the user has access to and where the files have the given info types, but should be marked as having a bad name in the client.

Parameters: user - the username of the authorized user zone - the user's authentication zone folder-path - The absolute path to the folder of interest entity-type - the type of entities to return (:any|:file|:folder), :any means both files and folders info-types - the info-types of the files to count, if empty, all files are considered bad-chars - If a name contains one or more of these characters, the item will be marked as bad bad-names - This is a sequence of names that are bad bad-paths - This is an array of paths to items that will be marked as badr.

Returns: It returns the total.

Returns the total number of files and folders in the specified folder that the user has access to
and where the files have the given info types, but should be marked as having a bad name in the
client.

Parameters:
  user        - the username of the authorized user
  zone        - the user's authentication zone
  folder-path - The absolute path to the folder of interest
  entity-type - the type of entities to return (:any|:file|:folder), :any means both files and
                folders
  info-types  - the info-types of the files to count, if empty, all files are considered
  bad-chars   - If a name contains one or more of these characters, the item will be marked as
                bad
  bad-names   - This is a sequence of names that are bad
  bad-paths   - This is an array of paths to items that will be marked as badr.

Returns:
  It returns the total.
sourceraw docstring

number-of-files-in-folderclj

(number-of-files-in-folder user zone folder-path)

Returns the number of files in a folder that the user has access to.

Returns the number of files in a folder that the user has access to.
sourceraw docstring

number-of-folders-in-folderclj

(number-of-folders-in-folder user zone folder-path)

Returns the number of folders in the specified folder that the user has access to.

Returns the number of folders in the specified folder that the user has access to.
sourceraw docstring

number-of-items-in-folderclj

(number-of-items-in-folder user zone folder-path entity-type & [info-types])

Returns the total number of files and folders in the specified folder that the user has access to and where the files have the given info types.

Parameters: user - the username of the user zone - the user's authentication zone folder-path - the absolute path to the folder being inspected entity-type - the type of entities to return (:any|:file|:folder), :any means both files and folders info-types - the info-types of the files to count, if empty, all files are counted

Returns: It returns the total number of folders combined with the total number of files with the given info types.

Returns the total number of files and folders in the specified folder that the user has access
to and where the files have the given info types.

Parameters:
  user        - the username of the user
  zone        - the user's authentication zone
  folder-path - the absolute path to the folder being inspected
  entity-type - the type of entities to return (:any|:file|:folder), :any means both files and
                folders
  info-types  - the info-types of the files to count, if empty, all files are counted

Returns:
  It returns the total number of folders combined with the total number of files with the given
  info types.
sourceraw docstring

number-of-uuids-in-folderclj

(number-of-uuids-in-folder user zone uuids file-types)

Returns the number of entities that have provided UUIDs, are visible to the given user and are a folder or have one of the given file types.

Parameters: user - the name of the user determining visibility zone - the authentication zone of the user uuids - the list of UUIDS to look up. file-types - the info types of interest

Returns: The result set

Returns the number of entities that have provided UUIDs, are visible to the given user and are a
folder or have one of the given file types.

Parameters:
  user       - the name of the user determining visibility
  zone       - the authentication zone of the user
  uuids       - the list of UUIDS to look up.
  file-types  - the info types of interest

Returns:
  The result set
sourceraw docstring

paged-folder-listingclj

(paged-folder-listing &
                      {:keys [user zone folder-path entity-type sort-column
                              sort-direction limit offset info-types
                              transaction? user-group-ids]
                       :or {transaction? true}})

Returns a page from a folder listing.

Parameters: user - the name of the user determining access privileges zone - the authentication zone of the user folder-path - the folder to list the contents of entity-type - the type of entities to return (:any|:file|:folder), :any means both files and folders sort-column - the column to sort by (:type|:modify-ts|:create-ts|:data-size|:base-name|:full-path) sort-direction - the sorting direction (:asc|:desc) limit - the maximum number of results to return offset - the number of results to skip after sorting and before returning results file-types - the info types of interest

Returns: It returns a page of results.

Throws: It throws an exception if a validation fails.

Returns a page from a folder listing.

Parameters:
  user           - the name of the user determining access privileges
  zone           - the authentication zone of the user
  folder-path    - the folder to list the contents of
  entity-type    - the type of entities to return (:any|:file|:folder), :any means both files and
                   folders
  sort-column    - the column to sort by
                   (:type|:modify-ts|:create-ts|:data-size|:base-name|:full-path)
  sort-direction - the sorting direction (:asc|:desc)
  limit          - the maximum number of results to return
  offset         - the number of results to skip after sorting and before returning results
  file-types     - the info types of interest

Returns:
  It returns a page of results.

Throws:
  It throws an exception if a validation fails.
sourceraw docstring

paged-uuid-listingclj

(paged-uuid-listing user
                    zone
                    sort-column
                    sort-order
                    limit
                    offset
                    uuids
                    file-types)

Returns a page of filesystem entries corresponding to a list a set of UUIDs.

Parameters: user - the name of the user determining access privileges zone - the authentication zone of the user sort-column - the column to sort by (type|modify-ts|create-ts|data-size|base-name|full-path) sort-order - the sorting direction (asc|desc) limit - the maximum number of results to return offset - the number of results to skip after sorting and before returning results uuids - the list of UUIDS to look up. file-types - the info types of interest

Returns: The result set

Returns a page of filesystem entries corresponding to a list a set of UUIDs.

Parameters:
  user        - the name of the user determining access privileges
  zone        - the authentication zone of the user
  sort-column - the column to sort by (type|modify-ts|create-ts|data-size|base-name|full-path)
  sort-order  - the sorting direction (asc|desc)
  limit       - the maximum number of results to return
  offset      - the number of results to skip after sorting and before returning results
  uuids       - the list of UUIDS to look up.
  file-types  - the info types of interest

Returns:
  The result set
sourceraw docstring

path-for-uuidclj

(path-for-uuid uuid)
source

paths-for-uuidsclj

(paths-for-uuids uuids)
source

prefixed-files-without-attrclj

(prefixed-files-without-attr uuid-prefix attr)
source

select-files-with-uuidsclj

(select-files-with-uuids uuids)

Given a set of UUIDs, it returns a list of UUID-path pairs for each UUID that corresponds to a file.

Given a set of UUIDs, it returns a list of UUID-path pairs for each UUID that corresponds to a
file.
sourceraw docstring

select-folders-with-uuidsclj

(select-folders-with-uuids uuids)

Given a set of UUIDs, it returns a list of UUID-path pairs for each UUID that corresponds to a folder.

Given a set of UUIDs, it returns a list of UUID-path pairs for each UUID that corresponds to a
folder.
sourceraw docstring

setup-icatclj

(setup-icat icat-db-spec)

Defines the icat database. Pass in the return value of icat-db-spec.

Defines the icat database. Pass in the return value of icat-db-spec.
sourceraw docstring

userclj

(user username zone)

Get a representation of a user with their ID, username, type name, zone, 'info', 'comment', and create/modify timestamps.

Get a representation of a user with their ID, username, type name, zone, 'info', 'comment', and create/modify timestamps.
sourceraw docstring

user-group-idsclj

(user-group-ids user zone)

Get user group IDs, including the user's ID

Get user group IDs, including the user's ID
sourceraw docstring

with-icat-transactioncljmacro

(with-icat-transaction & body)
source

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

× close