public void AttachLifecycle(ObjectIdentity objId, ObjectIdentity policyId, String aliasSetName)
        {
            AttachLifecycleInfo attachLcInfo = new AttachLifecycleInfo();

            // this must be the name of an alias set listed in
            // the alias_set_ids attribute of the dm_policy (lifecycle) object
            // if null or empty the content server will set the policy scope
            attachLcInfo.PolicyScope = aliasSetName;

            attachLcInfo.PolicyId = policyId;
            attachLcInfo.ObjectId = objId;
            OperationOptions operationOptions = null;
            List<AttachLifecycleInfo> attachLcInfoList = new List<AttachLifecycleInfo>();
            attachLcInfoList.Add(attachLcInfo);

            lifecycleService.Attach(attachLcInfoList, operationOptions);
        }
Example #2
0
        public void AttachLifecycle(ObjectIdentity objId, ObjectIdentity policyId, String aliasSetName)
        {
            AttachLifecycleInfo attachLcInfo = new AttachLifecycleInfo();

            // this must be the name of an alias set listed in
            // the alias_set_ids attribute of the dm_policy (lifecycle) object
            // if null or empty the content server will set the policy scope
            attachLcInfo.PolicyScope = aliasSetName;

            attachLcInfo.PolicyId = policyId;
            attachLcInfo.ObjectId = objId;
            OperationOptions           operationOptions = null;
            List <AttachLifecycleInfo> attachLcInfoList = new List <AttachLifecycleInfo>();

            attachLcInfoList.Add(attachLcInfo);

            lifecycleService.Attach(attachLcInfoList, operationOptions);
        }