Search Results for

    Show / Hide Table of Contents

    Method CreateLifeCycleState

    CreateLifeCycleState(String, LifeCycleStateContract)

    Create a life cycle state

    Declaration
    string CreateLifeCycleState(string connectionId, LifeCycleStateContract lifeCycleState)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    LifeCycleStateContract lifeCycleState

    LifeCycleState to be created

    Returns
    Type Description
    System.String

    the created life cycle state id

    Remarks
    • You need "Access to scheme" access right (01002060-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
    • You need "Access to life cycles" access right (CA3558B8-F52F-447F-B2C3-2050176475FC). See also GetUserAdminAccessRights(String, String)
    • You need "Create life cycle" access right (52E1A891-243E-4329-8791-D0FF966AE338). See also GetUserAdminAccessRights(String, String)
    Examples

    POST http://YourServerName/InfoShare/Json/Common/CreateLifeCycleState

    Example for create a life cycle state.

    {
       "connectionId": "eb5718e6-8fd6-460b-9da3-4fb0434e81a8",
       "lifeCycleState": {
         "LifeCycleProtections": [{
           "ProtectCheckOut": false,
           "ProtectContentChange": true,
           "ProtectPropertyChange": true,
           "ProtectAnnotationChange": true,
           "ProtectProtectionDomainChange": true,
           "ProtectDelete": false,
           "DeleteAfterExpiration": false,
           "Index": 0,
           "ProtectionDurationTicks": 1576800000000000,
           "ProtectionDurationTimeInYears": 5,
           "ProtectionDurationTimeInDays": 1825,
           "ProtectionDurationTimeInMinutes": 2628000,
           "ProtectionDurationInputSelection": "0",
           "ProtectionDurationOutputValue": "5 Jahre" }],
         "NextAllowedLifeCycleStateIds": [],
         "Name": {
           "Values": [{
             "Text": "Lifecycle_test",
             "Culture": "de" }, {
             "Text": "Lifecycle_test",
             "Culture": "en" }, {
             "Text": "Lifecycle_test",
             "Culture": "fr" }] },
         "Key": "Lifecycle_test",
         "NextInfoStoreId": "e46bc061-b7cf-e911-a939-00155d290a08" }
    }

    Response:

    {
       "CreateLifeCycleStateResult": "81e75c5b-e9e0-e911-a94b-00155d290a08"
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Name is not unique for culture ({culture}): {name} (10066)

    ServiceException

    Object with id {id} already exists (10078)

    ServiceException

    Not enough rights ({accessOperationName}, {accessOperationId}) (10071)

    ServiceException

    The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox