001// --------------------------------------------------------------------------------
002// Copyright 2002-2025 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016
017package com.echothree.control.user.content.server;
018
019import com.echothree.control.user.content.common.ContentRemote;
020import com.echothree.control.user.content.common.form.*;
021import com.echothree.control.user.content.server.command.*;
022import com.echothree.model.data.user.common.pk.UserVisitPK;
023import com.echothree.util.common.command.CommandResult;
024import javax.ejb.Stateless;
025import javax.enterprise.inject.spi.CDI;
026
027@Stateless
028public class ContentBean
029        extends ContentFormsImpl
030        implements ContentRemote, ContentLocal {
031    
032    // -------------------------------------------------------------------------
033    //   Testing
034    // -------------------------------------------------------------------------
035    
036    @Override
037    public String ping() {
038        return "ContentBean is alive!";
039    }
040    
041    // --------------------------------------------------------------------------------
042    //   Content Page Area Types
043    // --------------------------------------------------------------------------------
044    
045    @Override
046    public CommandResult createContentPageAreaType(UserVisitPK userVisitPK, CreateContentPageAreaTypeForm form) {
047        return CDI.current().select(CreateContentPageAreaTypeCommand.class).get().run(userVisitPK, form);
048    }
049    
050    // --------------------------------------------------------------------------------
051    //   Content Page Area Type Descriptions
052    // --------------------------------------------------------------------------------
053    
054    @Override
055    public CommandResult createContentPageAreaTypeDescription(UserVisitPK userVisitPK, CreateContentPageAreaTypeDescriptionForm form) {
056        return CDI.current().select(CreateContentPageAreaTypeDescriptionCommand.class).get().run(userVisitPK, form);
057    }
058
059    @Override
060    public CommandResult getContentPageAreaTypeChoices(UserVisitPK userVisitPK, GetContentPageAreaTypeChoicesForm form) {
061        return CDI.current().select(GetContentPageAreaTypeChoicesCommand.class).get().run(userVisitPK, form);
062    }
063
064    @Override
065    public CommandResult getContentPageAreaType(UserVisitPK userVisitPK, GetContentPageAreaTypeForm form) {
066        return CDI.current().select(GetContentPageAreaTypeCommand.class).get().run(userVisitPK, form);
067    }
068
069    @Override
070    public CommandResult getContentPageAreaTypes(UserVisitPK userVisitPK, GetContentPageAreaTypesForm form) {
071        return CDI.current().select(GetContentPageAreaTypesCommand.class).get().run(userVisitPK, form);
072    }
073    
074    // --------------------------------------------------------------------------------
075    //   Content Page Layouts
076    // --------------------------------------------------------------------------------
077    
078    @Override
079    public CommandResult createContentPageLayout(UserVisitPK userVisitPK, CreateContentPageLayoutForm form) {
080        return CDI.current().select(CreateContentPageLayoutCommand.class).get().run(userVisitPK, form);
081    }
082
083    @Override
084    public CommandResult getContentPageLayoutChoices(UserVisitPK userVisitPK, GetContentPageLayoutChoicesForm form) {
085        return CDI.current().select(GetContentPageLayoutChoicesCommand.class).get().run(userVisitPK, form);
086    }
087
088    @Override
089    public CommandResult getContentPageLayout(UserVisitPK userVisitPK, GetContentPageLayoutForm form) {
090        return CDI.current().select(GetContentPageLayoutCommand.class).get().run(userVisitPK, form);
091    }
092
093    @Override
094    public CommandResult getContentPageLayouts(UserVisitPK userVisitPK, GetContentPageLayoutsForm form) {
095        return CDI.current().select(GetContentPageLayoutsCommand.class).get().run(userVisitPK, form);
096    }
097
098    @Override
099    public CommandResult setDefaultContentPageLayout(UserVisitPK userVisitPK, SetDefaultContentPageLayoutForm form) {
100        return CDI.current().select(SetDefaultContentPageLayoutCommand.class).get().run(userVisitPK, form);
101    }
102
103    @Override
104    public CommandResult editContentPageLayout(UserVisitPK userVisitPK, EditContentPageLayoutForm form) {
105        return CDI.current().select(EditContentPageLayoutCommand.class).get().run(userVisitPK, form);
106    }
107
108    @Override
109    public CommandResult deleteContentPageLayout(UserVisitPK userVisitPK, DeleteContentPageLayoutForm form) {
110        return CDI.current().select(DeleteContentPageLayoutCommand.class).get().run(userVisitPK, form);
111    }
112    
113    // --------------------------------------------------------------------------------
114    //   Content Page Layout Descriptions
115    // --------------------------------------------------------------------------------
116    
117    @Override
118    public CommandResult createContentPageLayoutDescription(UserVisitPK userVisitPK, CreateContentPageLayoutDescriptionForm form) {
119        return CDI.current().select(CreateContentPageLayoutDescriptionCommand.class).get().run(userVisitPK, form);
120    }
121
122    @Override
123    public CommandResult getContentPageLayoutDescription(UserVisitPK userVisitPK, GetContentPageLayoutDescriptionForm form) {
124        return CDI.current().select(GetContentPageLayoutDescriptionCommand.class).get().run(userVisitPK, form);
125    }
126
127    @Override
128    public CommandResult getContentPageLayoutDescriptions(UserVisitPK userVisitPK, GetContentPageLayoutDescriptionsForm form) {
129        return CDI.current().select(GetContentPageLayoutDescriptionsCommand.class).get().run(userVisitPK, form);
130    }
131
132    @Override
133    public CommandResult editContentPageLayoutDescription(UserVisitPK userVisitPK, EditContentPageLayoutDescriptionForm form) {
134        return CDI.current().select(EditContentPageLayoutDescriptionCommand.class).get().run(userVisitPK, form);
135    }
136
137    @Override
138    public CommandResult deleteContentPageLayoutDescription(UserVisitPK userVisitPK, DeleteContentPageLayoutDescriptionForm form) {
139        return CDI.current().select(DeleteContentPageLayoutDescriptionCommand.class).get().run(userVisitPK, form);
140    }
141    
142    // --------------------------------------------------------------------------------
143    //   Content Page Layout Areas
144    // --------------------------------------------------------------------------------
145    
146    @Override
147    public CommandResult createContentPageLayoutArea(UserVisitPK userVisitPK, CreateContentPageLayoutAreaForm form) {
148        return CDI.current().select(CreateContentPageLayoutAreaCommand.class).get().run(userVisitPK, form);
149    }
150    
151    @Override
152    public CommandResult getContentPageLayoutArea(UserVisitPK userVisitPK, GetContentPageLayoutAreaForm form) {
153        return CDI.current().select(GetContentPageLayoutAreaCommand.class).get().run(userVisitPK, form);
154    }
155    
156    @Override
157    public CommandResult getContentPageLayoutAreas(UserVisitPK userVisitPK, GetContentPageLayoutAreasForm form) {
158        return CDI.current().select(GetContentPageLayoutAreasCommand.class).get().run(userVisitPK, form);
159    }
160    
161    // --------------------------------------------------------------------------------
162    //   Content Page Layout Area Descriptions
163    // --------------------------------------------------------------------------------
164    
165    @Override
166    public CommandResult createContentPageLayoutAreaDescription(UserVisitPK userVisitPK, CreateContentPageLayoutAreaDescriptionForm form) {
167        return CDI.current().select(CreateContentPageLayoutAreaDescriptionCommand.class).get().run(userVisitPK, form);
168    }
169    
170    // --------------------------------------------------------------------------------
171    //   Content Collections
172    // --------------------------------------------------------------------------------
173    
174    @Override
175    public CommandResult createContentCollection(UserVisitPK userVisitPK, CreateContentCollectionForm form) {
176        return CDI.current().select(CreateContentCollectionCommand.class).get().run(userVisitPK, form);
177    }
178    
179    @Override
180    public CommandResult getContentCollection(UserVisitPK userVisitPK, GetContentCollectionForm form) {
181        return CDI.current().select(GetContentCollectionCommand.class).get().run(userVisitPK, form);
182    }
183    
184    @Override
185    public CommandResult getContentCollections(UserVisitPK userVisitPK, GetContentCollectionsForm form) {
186        return CDI.current().select(GetContentCollectionsCommand.class).get().run(userVisitPK, form);
187    }
188    
189    @Override
190    public CommandResult editContentCollection(UserVisitPK userVisitPK, EditContentCollectionForm form) {
191        return CDI.current().select(EditContentCollectionCommand.class).get().run(userVisitPK, form);
192    }
193    
194    @Override
195    public CommandResult deleteContentCollection(UserVisitPK userVisitPK, DeleteContentCollectionForm form) {
196        return CDI.current().select(DeleteContentCollectionCommand.class).get().run(userVisitPK, form);
197    }
198    
199    @Override
200    public CommandResult getContentCollectionChoices(UserVisitPK userVisitPK, GetContentCollectionChoicesForm form) {
201        return CDI.current().select(GetContentCollectionChoicesCommand.class).get().run(userVisitPK, form);
202    }
203    
204    // --------------------------------------------------------------------------------
205    //   Content Collection Descriptions
206    // --------------------------------------------------------------------------------
207    
208    @Override
209    public CommandResult createContentCollectionDescription(UserVisitPK userVisitPK, CreateContentCollectionDescriptionForm form) {
210        return CDI.current().select(CreateContentCollectionDescriptionCommand.class).get().run(userVisitPK, form);
211    }
212
213    @Override
214    public CommandResult getContentCollectionDescription(UserVisitPK userVisitPK, GetContentCollectionDescriptionForm form) {
215        return CDI.current().select(GetContentCollectionDescriptionCommand.class).get().run(userVisitPK, form);
216    }
217
218    @Override
219    public CommandResult getContentCollectionDescriptions(UserVisitPK userVisitPK, GetContentCollectionDescriptionsForm form) {
220        return CDI.current().select(GetContentCollectionDescriptionsCommand.class).get().run(userVisitPK, form);
221    }
222    
223    @Override
224    public CommandResult editContentCollectionDescription(UserVisitPK userVisitPK, EditContentCollectionDescriptionForm form) {
225        return CDI.current().select(EditContentCollectionDescriptionCommand.class).get().run(userVisitPK, form);
226    }
227    
228    
229    @Override
230    public CommandResult deleteContentCollectionDescription(UserVisitPK userVisitPK, DeleteContentCollectionDescriptionForm form) {
231        return CDI.current().select(DeleteContentCollectionDescriptionCommand.class).get().run(userVisitPK, form);
232    }
233    
234    // --------------------------------------------------------------------------------
235    //   Content Sections
236    // --------------------------------------------------------------------------------
237    
238    @Override
239    public CommandResult createContentSection(UserVisitPK userVisitPK, CreateContentSectionForm form) {
240        return CDI.current().select(CreateContentSectionCommand.class).get().run(userVisitPK, form);
241    }
242    
243    @Override
244    public CommandResult getContentSection(UserVisitPK userVisitPK, GetContentSectionForm form) {
245        return CDI.current().select(GetContentSectionCommand.class).get().run(userVisitPK, form);
246    }
247    
248    @Override
249    public CommandResult getContentSections(UserVisitPK userVisitPK, GetContentSectionsForm form) {
250        return CDI.current().select(GetContentSectionsCommand.class).get().run(userVisitPK, form);
251    }
252    
253    @Override
254    public CommandResult setDefaultContentSection(UserVisitPK userVisitPK, SetDefaultContentSectionForm form) {
255        return CDI.current().select(SetDefaultContentSectionCommand.class).get().run(userVisitPK, form);
256    }
257    
258    @Override
259    public CommandResult editContentSection(UserVisitPK userVisitPK, EditContentSectionForm form) {
260        return CDI.current().select(EditContentSectionCommand.class).get().run(userVisitPK, form);
261    }
262    
263    @Override
264    public CommandResult deleteContentSection(UserVisitPK userVisitPK, DeleteContentSectionForm form) {
265        return CDI.current().select(DeleteContentSectionCommand.class).get().run(userVisitPK, form);
266    }
267    
268    @Override
269    public CommandResult getContentSectionChoices(UserVisitPK userVisitPK, GetContentSectionChoicesForm form) {
270        return CDI.current().select(GetContentSectionChoicesCommand.class).get().run(userVisitPK, form);
271    }
272    
273    // --------------------------------------------------------------------------------
274    //   Content Section Description
275    // --------------------------------------------------------------------------------
276    
277    @Override
278    public CommandResult createContentSectionDescription(UserVisitPK userVisitPK, CreateContentSectionDescriptionForm form) {
279        return CDI.current().select(CreateContentSectionDescriptionCommand.class).get().run(userVisitPK, form);
280    }
281    
282    @Override
283    public CommandResult getContentSectionDescription(UserVisitPK userVisitPK, GetContentSectionDescriptionForm form) {
284        return CDI.current().select(GetContentSectionDescriptionCommand.class).get().run(userVisitPK, form);
285    }
286
287    @Override
288    public CommandResult getContentSectionDescriptions(UserVisitPK userVisitPK, GetContentSectionDescriptionsForm form) {
289        return CDI.current().select(GetContentSectionDescriptionsCommand.class).get().run(userVisitPK, form);
290    }
291
292    @Override
293    public CommandResult editContentSectionDescription(UserVisitPK userVisitPK, EditContentSectionDescriptionForm form) {
294        return CDI.current().select(EditContentSectionDescriptionCommand.class).get().run(userVisitPK, form);
295    }
296    
297    @Override
298    public CommandResult deleteContentSectionDescription(UserVisitPK userVisitPK, DeleteContentSectionDescriptionForm form) {
299        return CDI.current().select(DeleteContentSectionDescriptionCommand.class).get().run(userVisitPK, form);
300    }
301    
302    // --------------------------------------------------------------------------------
303    //  Content Pages
304    // --------------------------------------------------------------------------------
305    
306    @Override
307    public CommandResult createContentPage(UserVisitPK userVisitPK, CreateContentPageForm form) {
308        return CDI.current().select(CreateContentPageCommand.class).get().run(userVisitPK, form);
309    }
310    
311    @Override
312    public CommandResult getContentPage(UserVisitPK userVisitPK, GetContentPageForm form) {
313        return CDI.current().select(GetContentPageCommand.class).get().run(userVisitPK, form);
314    }
315    
316    @Override
317    public CommandResult getContentPages(UserVisitPK userVisitPK, GetContentPagesForm form) {
318        return CDI.current().select(GetContentPagesCommand.class).get().run(userVisitPK, form);
319    }
320    
321    @Override
322    public CommandResult setDefaultContentPage(UserVisitPK userVisitPK, SetDefaultContentPageForm form) {
323        return CDI.current().select(SetDefaultContentPageCommand.class).get().run(userVisitPK, form);
324    }
325    
326    @Override
327    public CommandResult editContentPage(UserVisitPK userVisitPK, EditContentPageForm form) {
328        return CDI.current().select(EditContentPageCommand.class).get().run(userVisitPK, form);
329    }
330    
331    @Override
332    public CommandResult deleteContentPage(UserVisitPK userVisitPK, DeleteContentPageForm form) {
333        return CDI.current().select(DeleteContentPageCommand.class).get().run(userVisitPK, form);
334    }
335    
336    // --------------------------------------------------------------------------------
337    //   Content Page Descriptions
338    // --------------------------------------------------------------------------------
339    
340    @Override
341    public CommandResult createContentPageDescription(UserVisitPK userVisitPK, CreateContentPageDescriptionForm form) {
342        return CDI.current().select(CreateContentPageDescriptionCommand.class).get().run(userVisitPK, form);
343    }
344    
345    @Override
346    public CommandResult getContentPageDescription(UserVisitPK userVisitPK, GetContentPageDescriptionForm form) {
347        return CDI.current().select(GetContentPageDescriptionCommand.class).get().run(userVisitPK, form);
348    }
349
350    @Override
351    public CommandResult getContentPageDescriptions(UserVisitPK userVisitPK, GetContentPageDescriptionsForm form) {
352        return CDI.current().select(GetContentPageDescriptionsCommand.class).get().run(userVisitPK, form);
353    }
354
355    @Override
356    public CommandResult editContentPageDescription(UserVisitPK userVisitPK, EditContentPageDescriptionForm form) {
357        return CDI.current().select(EditContentPageDescriptionCommand.class).get().run(userVisitPK, form);
358    }
359    
360    @Override
361    public CommandResult deleteContentPageDescription(UserVisitPK userVisitPK, DeleteContentPageDescriptionForm form) {
362        return CDI.current().select(DeleteContentPageDescriptionCommand.class).get().run(userVisitPK, form);
363    }
364    
365    // --------------------------------------------------------------------------------
366    //   Content Catalogs
367    // --------------------------------------------------------------------------------
368    
369    @Override
370    public CommandResult createContentCatalog(UserVisitPK userVisitPK, CreateContentCatalogForm form) {
371        return CDI.current().select(CreateContentCatalogCommand.class).get().run(userVisitPK, form);
372    }
373    
374    @Override
375    public CommandResult getContentCatalog(UserVisitPK userVisitPK, GetContentCatalogForm form) {
376        return CDI.current().select(GetContentCatalogCommand.class).get().run(userVisitPK, form);
377    }
378    
379    @Override
380    public CommandResult getContentCatalogs(UserVisitPK userVisitPK, GetContentCatalogsForm form) {
381        return CDI.current().select(GetContentCatalogsCommand.class).get().run(userVisitPK, form);
382    }
383    
384    @Override
385    public CommandResult setDefaultContentCatalog(UserVisitPK userVisitPK, SetDefaultContentCatalogForm form) {
386        return CDI.current().select(SetDefaultContentCatalogCommand.class).get().run(userVisitPK, form);
387    }
388    
389    @Override
390    public CommandResult editContentCatalog(UserVisitPK userVisitPK, EditContentCatalogForm form) {
391        return CDI.current().select(EditContentCatalogCommand.class).get().run(userVisitPK, form);
392    }
393    
394    @Override
395    public CommandResult deleteContentCatalog(UserVisitPK userVisitPK, DeleteContentCatalogForm form) {
396        return CDI.current().select(DeleteContentCatalogCommand.class).get().run(userVisitPK, form);
397    }
398    
399    // --------------------------------------------------------------------------------
400    //   Content Catalog Descriptions
401    // --------------------------------------------------------------------------------
402    
403    @Override
404    public CommandResult createContentCatalogDescription(UserVisitPK userVisitPK, CreateContentCatalogDescriptionForm form) {
405        return CDI.current().select(CreateContentCatalogDescriptionCommand.class).get().run(userVisitPK, form);
406    }
407    
408    @Override
409    public CommandResult getContentCatalogDescription(UserVisitPK userVisitPK, GetContentCatalogDescriptionForm form) {
410        return CDI.current().select(GetContentCatalogDescriptionCommand.class).get().run(userVisitPK, form);
411    }
412
413    @Override
414    public CommandResult getContentCatalogDescriptions(UserVisitPK userVisitPK, GetContentCatalogDescriptionsForm form) {
415        return CDI.current().select(GetContentCatalogDescriptionsCommand.class).get().run(userVisitPK, form);
416    }
417
418    @Override
419    public CommandResult editContentCatalogDescription(UserVisitPK userVisitPK, EditContentCatalogDescriptionForm form) {
420        return CDI.current().select(EditContentCatalogDescriptionCommand.class).get().run(userVisitPK, form);
421    }
422    
423    @Override
424    public CommandResult deleteContentCatalogDescription(UserVisitPK userVisitPK, DeleteContentCatalogDescriptionForm form) {
425        return CDI.current().select(DeleteContentCatalogDescriptionCommand.class).get().run(userVisitPK, form);
426    }
427    
428    // --------------------------------------------------------------------------------
429    //   Content Catalog Items
430    // --------------------------------------------------------------------------------
431
432    @Override
433    public CommandResult getContentCatalogItem(UserVisitPK userVisitPK, GetContentCatalogItemForm form) {
434        return CDI.current().select(GetContentCatalogItemCommand.class).get().run(userVisitPK, form);
435    }
436
437    @Override
438    public CommandResult getContentCatalogItems(UserVisitPK userVisitPK, GetContentCatalogItemsForm form) {
439        return CDI.current().select(GetContentCatalogItemsCommand.class).get().run(userVisitPK, form);
440    }
441
442    // --------------------------------------------------------------------------------
443    //   Content Categories
444    // --------------------------------------------------------------------------------
445    
446    @Override
447    public CommandResult createContentCategory(UserVisitPK userVisitPK, CreateContentCategoryForm form) {
448        return CDI.current().select(CreateContentCategoryCommand.class).get().run(userVisitPK, form);
449    }
450    
451    @Override
452    public CommandResult getContentCategory(UserVisitPK userVisitPK, GetContentCategoryForm form) {
453        return CDI.current().select(GetContentCategoryCommand.class).get().run(userVisitPK, form);
454    }
455    
456    @Override
457    public CommandResult getContentCategories(UserVisitPK userVisitPK, GetContentCategoriesForm form) {
458        return CDI.current().select(GetContentCategoriesCommand.class).get().run(userVisitPK, form);
459    }
460    
461    @Override
462    public CommandResult setDefaultContentCategory(UserVisitPK userVisitPK, SetDefaultContentCategoryForm form) {
463        return CDI.current().select(SetDefaultContentCategoryCommand.class).get().run(userVisitPK, form);
464    }
465    
466    @Override
467    public CommandResult editContentCategory(UserVisitPK userVisitPK, EditContentCategoryForm form) {
468        return CDI.current().select(EditContentCategoryCommand.class).get().run(userVisitPK, form);
469    }
470    
471    @Override
472    public CommandResult deleteContentCategory(UserVisitPK userVisitPK, DeleteContentCategoryForm form) {
473        return CDI.current().select(DeleteContentCategoryCommand.class).get().run(userVisitPK, form);
474    }
475    
476    @Override
477    public CommandResult getContentCategoryChoices(UserVisitPK userVisitPK, GetContentCategoryChoicesForm form) {
478        return CDI.current().select(GetContentCategoryChoicesCommand.class).get().run(userVisitPK, form);
479    }
480    
481    // --------------------------------------------------------------------------------
482    //   Content Category Descriptions
483    // --------------------------------------------------------------------------------
484    
485    @Override
486    public CommandResult createContentCategoryDescription(UserVisitPK userVisitPK, CreateContentCategoryDescriptionForm form) {
487        return CDI.current().select(CreateContentCategoryDescriptionCommand.class).get().run(userVisitPK, form);
488    }
489    
490    @Override
491    public CommandResult getContentCategoryDescription(UserVisitPK userVisitPK, GetContentCategoryDescriptionForm form) {
492        return CDI.current().select(GetContentCategoryDescriptionCommand.class).get().run(userVisitPK, form);
493    }
494
495    @Override
496    public CommandResult getContentCategoryDescriptions(UserVisitPK userVisitPK, GetContentCategoryDescriptionsForm form) {
497        return CDI.current().select(GetContentCategoryDescriptionsCommand.class).get().run(userVisitPK, form);
498    }
499
500    @Override
501    public CommandResult editContentCategoryDescription(UserVisitPK userVisitPK, EditContentCategoryDescriptionForm form) {
502        return CDI.current().select(EditContentCategoryDescriptionCommand.class).get().run(userVisitPK, form);
503    }
504    
505    @Override
506    public CommandResult deleteContentCategoryDescription(UserVisitPK userVisitPK, DeleteContentCategoryDescriptionForm form) {
507        return CDI.current().select(DeleteContentCategoryDescriptionCommand.class).get().run(userVisitPK, form);
508    }
509    
510    // --------------------------------------------------------------------------------
511    //   Content Category Items
512    // --------------------------------------------------------------------------------
513    
514    @Override
515    public CommandResult createContentCategoryItem(UserVisitPK userVisitPK, CreateContentCategoryItemForm form) {
516        return CDI.current().select(CreateContentCategoryItemCommand.class).get().run(userVisitPK, form);
517    }
518    
519    @Override
520    public CommandResult getContentCategoryItem(UserVisitPK userVisitPK, GetContentCategoryItemForm form) {
521        return CDI.current().select(GetContentCategoryItemCommand.class).get().run(userVisitPK, form);
522    }
523    
524    @Override
525    public CommandResult getContentCategoryItems(UserVisitPK userVisitPK, GetContentCategoryItemsForm form) {
526        return CDI.current().select(GetContentCategoryItemsCommand.class).get().run(userVisitPK, form);
527    }
528    
529    @Override
530    public CommandResult setDefaultContentCategoryItem(UserVisitPK userVisitPK, SetDefaultContentCategoryItemForm form) {
531        return CDI.current().select(SetDefaultContentCategoryItemCommand.class).get().run(userVisitPK, form);
532    }
533    
534    @Override
535    public CommandResult editContentCategoryItem(UserVisitPK userVisitPK, EditContentCategoryItemForm form) {
536        return CDI.current().select(EditContentCategoryItemCommand.class).get().run(userVisitPK, form);
537    }
538    
539    @Override
540    public CommandResult deleteContentCategoryItem(UserVisitPK userVisitPK, DeleteContentCategoryItemForm form) {
541        return CDI.current().select(DeleteContentCategoryItemCommand.class).get().run(userVisitPK, form);
542    }
543    
544    // --------------------------------------------------------------------------------
545    //   Content Forums
546    // --------------------------------------------------------------------------------
547    
548    @Override
549    public CommandResult createContentForum(UserVisitPK userVisitPK, CreateContentForumForm form) {
550        return CDI.current().select(CreateContentForumCommand.class).get().run(userVisitPK, form);
551    }
552    
553    @Override
554    public CommandResult getContentForum(UserVisitPK userVisitPK, GetContentForumForm form) {
555        return CDI.current().select(GetContentForumCommand.class).get().run(userVisitPK, form);
556    }
557    
558    @Override
559    public CommandResult getContentForums(UserVisitPK userVisitPK, GetContentForumsForm form) {
560        return CDI.current().select(GetContentForumsCommand.class).get().run(userVisitPK, form);
561    }
562    
563    @Override
564    public CommandResult setDefaultContentForum(UserVisitPK userVisitPK, SetDefaultContentForumForm form) {
565        return CDI.current().select(SetDefaultContentForumCommand.class).get().run(userVisitPK, form);
566    }
567    
568    @Override
569    public CommandResult deleteContentForum(UserVisitPK userVisitPK, DeleteContentForumForm form) {
570        return CDI.current().select(DeleteContentForumCommand.class).get().run(userVisitPK, form);
571    }
572    
573    // --------------------------------------------------------------------------------
574    //   Content Web Addresses
575    // --------------------------------------------------------------------------------
576    
577    @Override
578    public CommandResult createContentWebAddress(UserVisitPK userVisitPK, CreateContentWebAddressForm form) {
579        return CDI.current().select(CreateContentWebAddressCommand.class).get().run(userVisitPK, form);
580    }
581    
582    @Override
583    public CommandResult getContentWebAddress(UserVisitPK userVisitPK, GetContentWebAddressForm form) {
584        return CDI.current().select(GetContentWebAddressCommand.class).get().run(userVisitPK, form);
585    }
586    
587    @Override
588    public CommandResult getContentWebAddresses(UserVisitPK userVisitPK, GetContentWebAddressesForm form) {
589        return CDI.current().select(GetContentWebAddressesCommand.class).get().run(userVisitPK, form);
590    }
591    
592    @Override
593    public CommandResult editContentWebAddress(UserVisitPK userVisitPK, EditContentWebAddressForm form) {
594        return CDI.current().select(EditContentWebAddressCommand.class).get().run(userVisitPK, form);
595    }
596    
597    @Override
598    public CommandResult deleteContentWebAddress(UserVisitPK userVisitPK, DeleteContentWebAddressForm form) {
599        return CDI.current().select(DeleteContentWebAddressCommand.class).get().run(userVisitPK, form);
600    }
601    
602    // --------------------------------------------------------------------------------
603    //   Content Web Address Descriptions
604    // --------------------------------------------------------------------------------
605    
606    @Override
607    public CommandResult createContentWebAddressDescription(UserVisitPK userVisitPK, CreateContentWebAddressDescriptionForm form) {
608        return CDI.current().select(CreateContentWebAddressDescriptionCommand.class).get().run(userVisitPK, form);
609    }
610    
611    @Override
612    public CommandResult getContentWebAddressDescription(UserVisitPK userVisitPK, GetContentWebAddressDescriptionForm form) {
613        return CDI.current().select(GetContentWebAddressDescriptionCommand.class).get().run(userVisitPK, form);
614    }
615
616    @Override
617    public CommandResult getContentWebAddressDescriptions(UserVisitPK userVisitPK, GetContentWebAddressDescriptionsForm form) {
618        return CDI.current().select(GetContentWebAddressDescriptionsCommand.class).get().run(userVisitPK, form);
619    }
620
621    @Override
622    public CommandResult editContentWebAddressDescription(UserVisitPK userVisitPK, EditContentWebAddressDescriptionForm form) {
623        return CDI.current().select(EditContentWebAddressDescriptionCommand.class).get().run(userVisitPK, form);
624    }
625    
626    @Override
627    public CommandResult deleteContentWebAddressDescription(UserVisitPK userVisitPK, DeleteContentWebAddressDescriptionForm form) {
628        return CDI.current().select(DeleteContentWebAddressDescriptionCommand.class).get().run(userVisitPK, form);
629    }
630    
631    // --------------------------------------------------------------------------------
632    //   Content Web Address Servers
633    // --------------------------------------------------------------------------------
634    
635    @Override
636    public CommandResult createContentWebAddressServer(UserVisitPK userVisitPK, CreateContentWebAddressServerForm form) {
637        return CDI.current().select(CreateContentWebAddressServerCommand.class).get().run(userVisitPK, form);
638    }
639    
640    // --------------------------------------------------------------------------------
641    //  Content Page Areas
642    // --------------------------------------------------------------------------------
643    
644    @Override
645    public CommandResult createContentPageArea(UserVisitPK userVisitPK, CreateContentPageAreaForm form) {
646        return CDI.current().select(CreateContentPageAreaCommand.class).get().run(userVisitPK, form);
647    }
648    
649    @Override
650    public CommandResult getContentPageArea(UserVisitPK userVisitPK, GetContentPageAreaForm form) {
651        return CDI.current().select(GetContentPageAreaCommand.class).get().run(userVisitPK, form);
652    }
653
654    @Override
655    public CommandResult getContentPageAreas(UserVisitPK userVisitPK, GetContentPageAreasForm form) {
656        return CDI.current().select(GetContentPageAreasCommand.class).get().run(userVisitPK, form);
657    }
658
659    @Override
660    public CommandResult editContentPageArea(UserVisitPK userVisitPK, EditContentPageAreaForm form) {
661        return CDI.current().select(EditContentPageAreaCommand.class).get().run(userVisitPK, form);
662    }
663    
664    @Override
665    public CommandResult deleteContentPageArea(UserVisitPK userVisitPK, DeleteContentPageAreaForm form) {
666        return CDI.current().select(DeleteContentPageAreaCommand.class).get().run(userVisitPK, form);
667    }
668    
669}