Examples of prepareAddModelItemOperation()


Examples of com.volantis.mcs.interaction.ListProxy.prepareAddModelItemOperation()

                            if (newAsset instanceof VariantBuilder) {
                                BeanProxy theme = (BeanProxy) context.getInteractionModel();
                                ListProxy variants = (ListProxy)
                                        theme.getPropertyProxy(PolicyModel.VARIANTS);
                                // TODO better We should probably check that we have the right sort of variant (or at least a compatible one)
                                Operation addOperation = variants.prepareAddModelItemOperation(newAsset);
                                context.executeOperation(addOperation);
                            }
                        }
                    }
                } finally {
View Full Code Here

Examples of com.volantis.mcs.interaction.ListProxy.prepareAddModelItemOperation()

                        InternalPolicyFactory.getInternalInstance().
                            createThemeContentBuilder();
                    newVariant.setContentBuilder(contentBuilder);
                }
                Operation addOperation =
                        variants.prepareAddModelItemOperation(newVariant);
                context.executeOperation(addOperation);
            }
        };
        addAction.setText(EditorMessages.getString(RESOURCE_PREFIX +
                "add.action"));
View Full Code Here

Examples of com.volantis.mcs.interaction.ListProxy.prepareAddModelItemOperation()

        // Do not add an empty policy value as this is illlegal
        if (policy != null && policy.trim().length() > 0) {
            PolicyReference newReference = PolicyFactory.getDefaultInstance().
                    createPolicyReference(policy, type);
            Operation addOp =
                    alternatePolicies
                            .prepareAddModelItemOperation(newReference);
            context.executeOperation(addOp);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.