TrashItem

URL

https://api.primatime.com/v1/trash

Properties

Name Type Access Required Description
createdAt Date read only no Date of creation.
deletedObjectClass Class read write YES Identifies the type of deleted entity.
deletedObjectId String read write YES Identifies a deleted object.
displayName String read only no Describes an object in human readable form.
groupId String read write no Groups all the objects which were deleted together.
id String read write no Unique object identifier.
trashItem TrashItem read write no Informs whether an object is in the trash. An object is in the trash if a trash item was specified.
updatedAt Date read only no Last modified date.
version Long read write no Object version number.

Metadata

{
    "type" : "TrashItem",
    "path" : "/v1/trash",
    "fields" : [
        {
            "type" : "Date",
            "name" : "createdAt",
            "description" : "Date of creation.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "Class",
            "name" : "deletedObjectClass",
            "description" : "Identifies the type of deleted entity.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "NotNull"
                }
            ]
        },
        {
            "type" : "String",
            "name" : "deletedObjectId",
            "description" : "Identifies a deleted object.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "NotNull"
                }
            ]
        },
        {
            "type" : "String",
            "name" : "displayName",
            "description" : "Describes an object in human readable form.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "String",
            "name" : "groupId",
            "description" : "Groups all the objects which were deleted together.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "String",
            "name" : "id",
            "description" : "Unique object identifier.",
            "access" : "READ_WRITE",
            "constraints" : [
                {
                    "type" : "Pattern",
                    "details" : "regexp [0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}"
                },
                {
                    "type" : "NotNull"
                }
            ]
        },
        {
            "type" : "TrashItem",
            "path" : "/v1/trash",
            "name" : "trashItem",
            "description" : "Informs whether an object is in the trash. An object is in the trash if a trash item was specified.",
            "access" : "READ_WRITE"
        },
        {
            "type" : "Date",
            "name" : "updatedAt",
            "description" : "Last modified date.",
            "access" : "READ_ONLY"
        },
        {
            "type" : "Long",
            "name" : "version",
            "description" : "Object version number.",
            "access" : "READ_WRITE"
        }
    ],
    "cascades" : [
        {
            "cascadeType" : "REMOVE",
            "objectTypes" : [
                "TrashItem"
            ]
        }
    ]
}

Dummy data

{
    "id" : "c676d10b-b25b-4141-949f-1992d28b37a2",
    "createdAt" : "/Date(1651049427293)/",
    "updatedAt" : "/Date(1651111707293)/",
    "version" : 5,
    "deletedObjectClass" : "eu.abra.primatime.api.beans.core.User",
    "deletedObjectId" : "0165e7d3-c99f-41b5-bf8c-03222edcf681",
    "groupId" : "ffaf67e7-051d-4a58-a71a-8e39353a93b4",
    "displayName" : "class eu.abra.primatime.api.beans.core.User (0165e7d3-c99f-41b5-bf8c-03222edcf681)"
}

results matching ""

    No results matching ""