Package com.volantis.mcs.project

Examples of com.volantis.mcs.project.Project


        String projectName = values[0].stringValue().asJavaString();

        // retrieve the asset name
        String componentName = values[1].stringValue().asJavaString();

        Project project = application.getPredefinedProject(projectName);

        if (project == null) {
            throw new ExpressionException(
                    exceptionLocalizer.format("mcsi-policy-project-not-defined",
                                              projectName));
View Full Code Here


        String projectName = values[0].stringValue().asJavaString();

        // retrieve the asset name
        String componentName = values[1].stringValue().asJavaString();

        Project project = application.getPredefinedProject(projectName);

        if (project == null) {
            throw new ExpressionException(
                    exceptionLocalizer.format("mcsi-policy-project-not-defined",
                                              projectName));
View Full Code Here

        MarinerServletRequestContext requestContext;
        HttpServletRequest servletRequest = new MockHTTPServletRequest();

        requestContext = new MockMarinerServletRequestContext(servletRequest, new MockHTTPServletResponse());

        Project project = new RuntimeProjectMock("projectMock", expectations);
//        requestContext.pushProject(project);

        EnvironmentContext environmentContext = new ServletEnvironmentContext(
                requestContext);
        ContextInternals.setEnvironmentContext(requestContext,
View Full Code Here

        // This must be set at the time the expression is about to be evaluated
        // as either the MRC current project (for XDIME/PAPI) or the related
        // owning policy project (for themes/layouts containing expressions)
        CurrentProjectProvider projectProvider = (CurrentProjectProvider)
                context.getProperty(CurrentProjectProvider.class);
        Project currentProject = projectProvider.getCurrentProject();
        if (currentProject == null) {
            // This should never happen.
            throw new IllegalStateException("No current project found to " +
                    "resolve against.");
        }
View Full Code Here

            printValue(cmd, REPOSITORY);
            String repositoryString = cmd.getOptionValue(REPOSITORY);
            LocalRepository destinationRepository =
                    createDestinationRepository();

            Project project = createProject(destinationRepository,
                    repositoryString);

            printValue(cmd, DEVICE_REPOSITORY);
            String deviceRepositoryString = cmd.getOptionValue(DEVICE_REPOSITORY);
            DeviceRepository deviceRepository = createDeviceRepository(
View Full Code Here

    public RuntimePolicyReferenceExpression parsePolicyOrUnquotedExpression(
            String expressionAsString, PolicyType expectedPolicyType) {

        if (PolicyExpressionParserImpl.isPolicyName(expressionAsString)) {
            Project project = projectProvider.getCurrentProject();
            PolicyIdentity identity = new PolicyIdentity(project,
                    expressionAsString, expectedPolicyType);
            IdentityValueExpression valueExpression =
                    new IdentityValueExpression(identity);
            String brandName = getCurrentBrandName();
View Full Code Here

    public boolean addScript(final ScriptAssetReference scriptReference) {
        checkClosed();
        final String name = ((DefaultComponentScriptAssetReference) scriptReference).
            getPolicyReference().getName();
        final ScriptAsset scriptAsset = scriptReference.getScriptAsset();
        final Project project = scriptAsset.getProject();
        final boolean isNew = policyKeys.add(new PolicyKey(project, name));
        if (isNew) {
            if (markerElement == null) {
                scriptReferences.add(scriptReference);
            } else {
View Full Code Here

TOP

Related Classes of com.volantis.mcs.project.Project

Copyright © 2018 www.massapicom. 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.