Creates a dynamic view.

@param key           the key for the view (must be unique)
@param description   a description of the view
@return              a DynamicView object
@throws              IllegalArgumentException if the key is not unique
775014
public DynamicView createDynamicView(String key, String description) {
        assertThatTheViewKeyIsSpecifiedAndUnique(key);

        DynamicView view = new DynamicView(model, key, description);
        view.setViewSet(this);
        dynamicViews.add(view);
        return view;
    }
984293
@Override
	public CPDisplayLayout create(long CPDisplayLayoutId) {
		CPDisplayLayout cpDisplayLayout = new CPDisplayLayoutImpl();

		cpDisplayLayout.setNew(true);
		cpDisplayLayout.setPrimaryKey(CPDisplayLayoutId);

		String uuid = PortalUUIDUtil.generate();

		cpDisplayLayout.setUuid(uuid);

		cpDisplayLayout.setCompanyId(companyProvider.getCompanyId());

		return cpDisplayLayout;
	}
1023184
private ModelAndView generateErrorView(final String code, final Object[] args) {
        val modelAndView = new ModelAndView(this.failureView);
        val convertedDescription = getMessageSourceAccessor().getMessage(code, args, code);
        modelAndView.addObject("code", StringEscapeUtils.escapeHtml4(code));
        modelAndView.addObject("description", StringEscapeUtils.escapeHtml4(convertedDescription));
        return modelAndView;
    }
72183
public View newDropDownView(LayoutInflater inflater, int position, ViewGroup container) {
        return newView(inflater, position, container);
    }
491243
public String getAnnotationDescription(String key) {
        try {
            return annotationDescriptionBundle.getString(key);
        } catch (MissingResourceException mre) {
            if (DEBUG) {
                return "TRANSLATE(" + key + ") (param={0}}";
            } else {
                try {
                    return englishAnnotationDescriptionBundle.getString(key);
                } catch (MissingResourceException mre2) {
                    return key + " {0}";
                }
            }
        }
    }
1210521
@Programmatic
    public ApplicationSettingJdo newLong(
            final String key,
            final String description,
            final Long value) {
        return newSetting(key, description, SettingType.LONG, value.toString());
    }
245890
@Override
    public View newView(Context context, Cursor cursor, ViewGroup parent) {
        View v = super.newView(context, cursor, parent);
        v.setTag(new ChildViewCache(v));
        return v;
    }
310865
@Override
    public void setDescription(final String description) {
        if (this.description == null) {
            this.description = new SyndContentImpl();
        }
        this.description.setValue(description);
    }
357900
@SuppressWarnings("unchecked")
    public void addKey(StorableKey<S> key) {
        if (key == null) {
            throw new IllegalArgumentException();
        }
        add(new StorableIndex<S>(key, Direction.UNSPECIFIED));
    }
1094549
public MethodDescriptor<KEY> getServiceDescriptorByKey(KEY key) throws IllegalStateException {
        Preconditions.checkNotNull(key, "Key cannot be null");
        Preconditions.checkState(instance != null, "ServiceRegistry not init yet");
        return serviceDescriptors.get(key);
    }
497502
public DescriptionBuilder frameworkMapping(final String key, final String name) {
        fwkmapping.put(key, name);
        return this;
    }
347400
@Override
	public void setDescriptionMap(
		Map<java.util.Locale, String> descriptionMap,
		java.util.Locale defaultLocale) {
		_cpOption.setDescriptionMap(descriptionMap, defaultLocale);
	}
59733
@Override
    protected AbstractMvcView createMvcView(View view, RequestContext context) {
        final ExternalContext externalContext = context.getExternalContext();
        final Object nativeRequest = externalContext.getNativeRequest();
        if (nativeRequest instanceof PortletRequest) {
            return new PortletMvcView(view, context);
        }

        return new ServletMvcView(view, context);
    }
912469
@Override
    public final V view() {
        if (this.view == null) {
            try {
                this.view = buildView();
            } catch (final CoreException ce) {
                LOGGER.log(UIMessages.CREATION_FAILURE, ce, this.getClass().getName());
                throw new CoreRuntimeException(ce);
            }
        }
        return this.view;
    }
449147
@SuppressWarnings("unchecked")
    protected <E extends R> List<E> buildComponentList(final UniqueKey<E> uniqueKey) throws CoreException {

        // Build a new instance of the component
        final List<E> readyObjectList = globalFacade().componentFactory().buildComponents(uniqueKey.classField());

        for (final E readyObject : readyObjectList) {
            // Retrieve the right event type to track
            JRebirthEventType type = JRebirthEventType.NONE;
            if (readyObject instanceof Model) {
                type = JRebirthEventType.CREATE_MODEL;
            } else if (readyObject instanceof Service) {
                type = JRebirthEventType.CREATE_SERVICE;
            } else if (readyObject instanceof Command) {
                type = JRebirthEventType.CREATE_COMMAND;
            }

            // Track this instantiation event
            globalFacade().trackEvent(type, this.getClass(), readyObject.getClass());

            // Attach the local facade
            // Already Done by register method
            readyObject.localFacade(this);

            UniqueKey<E> readyKey = null;
            if (uniqueKey instanceof MultitonKey) {
                final Object keyPart = ((MultitonKey<?>) uniqueKey).value();
                readyKey = (UniqueKey<E>) Key.createMulti(readyObject.getClass(),
                                                          keyPart instanceof List ? ((List<?>) keyPart).toArray() : new Object[] { keyPart },
                                                          uniqueKey.optionalData().toArray());
            } else if (uniqueKey instanceof ClassKey) {
                readyKey = (UniqueKey<E>) Key.createSingle(readyObject.getClass(), uniqueKey.optionalData().toArray());
            }
            readyKey.registrationKey(uniqueKey);

            // Create the unique key
            readyObject.key((UniqueKey<R>) readyKey);

        }

        // EnhancedComponent Ready !
        return readyObjectList;
    }
463116
protected IModel<String> newIModel(final String key)
	{
		return ResourceModelFactory
			.newResourceModel(ResourceBundleKey.builder().key(key).defaultValue("").build(), this);
	}
717724
@NonNull
  public static CreateMaterializedViewStart createMaterializedView(@NonNull String viewName) {
    return createMaterializedView(CqlIdentifier.fromCql(viewName));
  }