deleteinvisible

The deleteinvisible command line tool can be used to remove not visible data inside a context. Before calling this CLT the module access for all users in the context should be changed to the according permissions. This CLT uses the changed permissions to determine what data is not visible for the context users anymore. Changing permissions can be done by either changing the module access for every single user in the context through the CLT changeuser or by the CLT for changing the module access for an entire context.

Be careful because the deleted data is lost completely and can not be restored anymore.

Parameters

-h,--help

Prints a help text for this CLT

--environment

Shows information about environment variables

--nonl

Removes all newlines (\n) from output

--responsetimeout <integer>

response timeout in seconds for reading response from the backend (default 0s; infinite) Available with v7.8.0

-c,--contextid <contextid>

The unique identifier of the context that invisible data should be deleted.

-N,--contextname <contextname>

A name that is assigned to the context.

Either the unique context identifier must be given or a name that is assigned to it.

Extra parameters

Master adminstrator user name that is defined for managing contexts.

Master adminstrator user password.

Return value

0 on success

>0 on failure

Mandatory parameters

(contextid or contextname) {adminuser adminpass}

Command output

On success:

context <contextid or contextname> invisible data deleted

On failure:

context <contextid or contextname> invisible data could not be deleted: <reason from server>

Example

root@oxhe~# /opt/open-xchange/sbin/deleteinvisible -N default

context default invisible data deleted

getpublication

This information is valid from 7.6.2 on.

The getpublication command line tool can be used to list publications inside a context.

Parameters

response timeout in seconds for reading response from the backend (default 0s; infinite) Available with v7.8.0

-c,--contextid <contextid>

The unique identifier of the context that publications reside

-A,--adminuser <adminuser>

The context's admin

-P,--adminpass <adminpass>

The context's admin password

-u,--publication-url <publication-url>

The publication URL

-m,--module <module-name>

The module name

-e,--entity-id <entity-id>

The entity's unique identifier

-i,--userid <user-id>

The user's unique identifier

-f,--force

Flag to force deletion

-v,--verbose

Flag to enable printing verbose information about the publications that are deleted

Examples

Delete a publication via the publication URL. As described in 'getpublication' there are two variations of a publication URL. Both variations can be used to delete a specific publication. Elements within the publication cannot be deleted. The extra flag '-f' must be specified in every delete operation, in order for the operation to execute. This is just a precaution, to inform the admin that the operation is irreversible and the publications subject to be removed, they will be lost completely and won't be able to restored anymore. So, the following invocation will yield: