001// -------------------------------------------------------------------------------- 002// Copyright 2002-2026 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.party.server; 018 019import com.echothree.control.user.party.common.PartyRemote; 020import com.echothree.control.user.party.common.form.*; 021import com.echothree.control.user.party.common.result.*; 022import com.echothree.control.user.party.server.command.*; 023import com.echothree.model.data.user.common.pk.UserVisitPK; 024import com.echothree.util.common.command.CommandResult; 025import com.echothree.util.common.command.VoidResult; 026import javax.ejb.Stateless; 027import javax.enterprise.inject.spi.CDI; 028 029@Stateless 030public class PartyBean 031 extends PartyFormsImpl 032 implements PartyRemote, PartyLocal { 033 034 // ------------------------------------------------------------------------- 035 // Testing 036 // ------------------------------------------------------------------------- 037 038 @Override 039 public String ping() { 040 return "PartyBean is alive!"; 041 } 042 043 // ------------------------------------------------------------------------- 044 // Party Types 045 // ------------------------------------------------------------------------- 046 047 @Override 048 public CommandResult<VoidResult> createPartyType(UserVisitPK userVisitPK, CreatePartyTypeForm form) { 049 return CDI.current().select(CreatePartyTypeCommand.class).get().run(userVisitPK, form); 050 } 051 052 @Override 053 public CommandResult<GetPartyTypeResult> getPartyType(UserVisitPK userVisitPK, GetPartyTypeForm form) { 054 return CDI.current().select(GetPartyTypeCommand.class).get().run(userVisitPK, form); 055 } 056 057 @Override 058 public CommandResult<GetPartyTypesResult> getPartyTypes(UserVisitPK userVisitPK, GetPartyTypesForm form) { 059 return CDI.current().select(GetPartyTypesCommand.class).get().run(userVisitPK, form); 060 } 061 062 @Override 063 public CommandResult<GetPartyTypeChoicesResult> getPartyTypeChoices(UserVisitPK userVisitPK, GetPartyTypeChoicesForm form) { 064 return CDI.current().select(GetPartyTypeChoicesCommand.class).get().run(userVisitPK, form); 065 } 066 067 // ------------------------------------------------------------------------- 068 // Party Type Descriptions 069 // ------------------------------------------------------------------------- 070 071 @Override 072 public CommandResult<VoidResult> createPartyTypeDescription(UserVisitPK userVisitPK, CreatePartyTypeDescriptionForm form) { 073 return CDI.current().select(CreatePartyTypeDescriptionCommand.class).get().run(userVisitPK, form); 074 } 075 076 // ------------------------------------------------------------------------- 077 // Party Type Use Types 078 // ------------------------------------------------------------------------- 079 080 @Override 081 public CommandResult<VoidResult> createPartyTypeUseType(UserVisitPK userVisitPK, CreatePartyTypeUseTypeForm form) { 082 return CDI.current().select(CreatePartyTypeUseTypeCommand.class).get().run(userVisitPK, form); 083 } 084 085 // ------------------------------------------------------------------------- 086 // Party Type Use Type Descriptions 087 // ------------------------------------------------------------------------- 088 089 @Override 090 public CommandResult<VoidResult> createPartyTypeUseTypeDescription(UserVisitPK userVisitPK, CreatePartyTypeUseTypeDescriptionForm form) { 091 return CDI.current().select(CreatePartyTypeUseTypeDescriptionCommand.class).get().run(userVisitPK, form); 092 } 093 094 // ------------------------------------------------------------------------- 095 // Party Type Uses 096 // ------------------------------------------------------------------------- 097 098 @Override 099 public CommandResult<VoidResult> createPartyTypeUse(UserVisitPK userVisitPK, CreatePartyTypeUseForm form) { 100 return CDI.current().select(CreatePartyTypeUseCommand.class).get().run(userVisitPK, form); 101 } 102 103 // ------------------------------------------------------------------------- 104 // Languages 105 // ------------------------------------------------------------------------- 106 107 @Override 108 public CommandResult<VoidResult> createLanguage(UserVisitPK userVisitPK, CreateLanguageForm form) { 109 return CDI.current().select(CreateLanguageCommand.class).get().run(userVisitPK, form); 110 } 111 112 @Override 113 public CommandResult<GetLanguageChoicesResult> getLanguageChoices(UserVisitPK userVisitPK, GetLanguageChoicesForm form) { 114 return CDI.current().select(GetLanguageChoicesCommand.class).get().run(userVisitPK, form); 115 } 116 117 @Override 118 public CommandResult<GetLanguagesResult> getLanguages(UserVisitPK userVisitPK, GetLanguagesForm form) { 119 return CDI.current().select(GetLanguagesCommand.class).get().run(userVisitPK, form); 120 } 121 122 @Override 123 public CommandResult<GetLanguageResult> getLanguage(UserVisitPK userVisitPK, GetLanguageForm form) { 124 return CDI.current().select(GetLanguageCommand.class).get().run(userVisitPK, form); 125 } 126 127 @Override 128 public CommandResult<GetPreferredLanguageResult> getPreferredLanguage(UserVisitPK userVisitPK, GetPreferredLanguageForm form) { 129 return CDI.current().select(GetPreferredLanguageCommand.class).get().run(userVisitPK, form); 130 } 131 132 // ------------------------------------------------------------------------- 133 // Language Descriptions 134 // ------------------------------------------------------------------------- 135 136 @Override 137 public CommandResult<VoidResult> createLanguageDescription(UserVisitPK userVisitPK, CreateLanguageDescriptionForm form) { 138 return CDI.current().select(CreateLanguageDescriptionCommand.class).get().run(userVisitPK, form); 139 } 140 141 // ------------------------------------------------------------------------- 142 // Party Type Password String Policies 143 // ------------------------------------------------------------------------- 144 145 @Override 146 public CommandResult<VoidResult> createPartyTypePasswordStringPolicy(UserVisitPK userVisitPK, CreatePartyTypePasswordStringPolicyForm form) { 147 return CDI.current().select(CreatePartyTypePasswordStringPolicyCommand.class).get().run(userVisitPK, form); 148 } 149 150 @Override 151 public CommandResult<EditPartyTypePasswordStringPolicyResult> editPartyTypePasswordStringPolicy(UserVisitPK userVisitPK, EditPartyTypePasswordStringPolicyForm form) { 152 return CDI.current().select(EditPartyTypePasswordStringPolicyCommand.class).get().run(userVisitPK, form); 153 } 154 155 @Override 156 public CommandResult<VoidResult> deletePartyTypePasswordStringPolicy(UserVisitPK userVisitPK, DeletePartyTypePasswordStringPolicyForm form) { 157 return CDI.current().select(DeletePartyTypePasswordStringPolicyCommand.class).get().run(userVisitPK, form); 158 } 159 160 // ------------------------------------------------------------------------- 161 // Party Type Lockout Policies 162 // ------------------------------------------------------------------------- 163 164 @Override 165 public CommandResult<VoidResult> createPartyTypeLockoutPolicy(UserVisitPK userVisitPK, CreatePartyTypeLockoutPolicyForm form) { 166 return CDI.current().select(CreatePartyTypeLockoutPolicyCommand.class).get().run(userVisitPK, form); 167 } 168 169 @Override 170 public CommandResult<EditPartyTypeLockoutPolicyResult> editPartyTypeLockoutPolicy(UserVisitPK userVisitPK, EditPartyTypeLockoutPolicyForm form) { 171 return CDI.current().select(EditPartyTypeLockoutPolicyCommand.class).get().run(userVisitPK, form); 172 } 173 174 @Override 175 public CommandResult<VoidResult> deletePartyTypeLockoutPolicy(UserVisitPK userVisitPK, DeletePartyTypeLockoutPolicyForm form) { 176 return CDI.current().select(DeletePartyTypeLockoutPolicyCommand.class).get().run(userVisitPK, form); 177 } 178 179 // ------------------------------------------------------------------------- 180 // Party Type Audit Policies 181 // ------------------------------------------------------------------------- 182 183 @Override 184 public CommandResult<VoidResult> createPartyTypeAuditPolicy(UserVisitPK userVisitPK, CreatePartyTypeAuditPolicyForm form) { 185 return CDI.current().select(CreatePartyTypeAuditPolicyCommand.class).get().run(userVisitPK, form); 186 } 187 188 @Override 189 public CommandResult<EditPartyTypeAuditPolicyResult> editPartyTypeAuditPolicy(UserVisitPK userVisitPK, EditPartyTypeAuditPolicyForm form) { 190 return CDI.current().select(EditPartyTypeAuditPolicyCommand.class).get().run(userVisitPK, form); 191 } 192 193 @Override 194 public CommandResult<VoidResult> deletePartyTypeAuditPolicy(UserVisitPK userVisitPK, DeletePartyTypeAuditPolicyForm form) { 195 return CDI.current().select(DeletePartyTypeAuditPolicyCommand.class).get().run(userVisitPK, form); 196 } 197 198 // ------------------------------------------------------------------------- 199 // Personal Titles 200 // ------------------------------------------------------------------------- 201 202 @Override 203 public CommandResult<CreatePersonalTitleResult> createPersonalTitle(UserVisitPK userVisitPK, CreatePersonalTitleForm form) { 204 return CDI.current().select(CreatePersonalTitleCommand.class).get().run(userVisitPK, form); 205 } 206 207 @Override 208 public CommandResult<GetPersonalTitleChoicesResult> getPersonalTitleChoices(UserVisitPK userVisitPK, GetPersonalTitleChoicesForm form) { 209 return CDI.current().select(GetPersonalTitleChoicesCommand.class).get().run(userVisitPK, form); 210 } 211 212 @Override 213 public CommandResult<GetPersonalTitlesResult> getPersonalTitles(UserVisitPK userVisitPK, GetPersonalTitlesForm form) { 214 return CDI.current().select(GetPersonalTitlesCommand.class).get().run(userVisitPK, form); 215 } 216 217 @Override 218 public CommandResult<VoidResult> setDefaultPersonalTitle(UserVisitPK userVisitPK, SetDefaultPersonalTitleForm form) { 219 return CDI.current().select(SetDefaultPersonalTitleCommand.class).get().run(userVisitPK, form); 220 } 221 222 @Override 223 public CommandResult<EditPersonalTitleResult> editPersonalTitle(UserVisitPK userVisitPK, EditPersonalTitleForm form) { 224 return CDI.current().select(EditPersonalTitleCommand.class).get().run(userVisitPK, form); 225 } 226 227 @Override 228 public CommandResult<VoidResult> deletePersonalTitle(UserVisitPK userVisitPK, DeletePersonalTitleForm form) { 229 return CDI.current().select(DeletePersonalTitleCommand.class).get().run(userVisitPK, form); 230 } 231 232 // ------------------------------------------------------------------------- 233 // Name Suffixes 234 // ------------------------------------------------------------------------- 235 236 @Override 237 public CommandResult<CreateNameSuffixResult> createNameSuffix(UserVisitPK userVisitPK, CreateNameSuffixForm form) { 238 return CDI.current().select(CreateNameSuffixCommand.class).get().run(userVisitPK, form); 239 } 240 241 @Override 242 public CommandResult<GetNameSuffixChoicesResult> getNameSuffixChoices(UserVisitPK userVisitPK, GetNameSuffixChoicesForm form) { 243 return CDI.current().select(GetNameSuffixChoicesCommand.class).get().run(userVisitPK, form); 244 } 245 246 @Override 247 public CommandResult<GetNameSuffixesResult> getNameSuffixes(UserVisitPK userVisitPK, GetNameSuffixesForm form) { 248 return CDI.current().select(GetNameSuffixesCommand.class).get().run(userVisitPK, form); 249 } 250 251 @Override 252 public CommandResult<VoidResult> setDefaultNameSuffix(UserVisitPK userVisitPK, SetDefaultNameSuffixForm form) { 253 return CDI.current().select(SetDefaultNameSuffixCommand.class).get().run(userVisitPK, form); 254 } 255 256 @Override 257 public CommandResult<EditNameSuffixResult> editNameSuffix(UserVisitPK userVisitPK, EditNameSuffixForm form) { 258 return CDI.current().select(EditNameSuffixCommand.class).get().run(userVisitPK, form); 259 } 260 261 @Override 262 public CommandResult<VoidResult> deleteNameSuffix(UserVisitPK userVisitPK, DeleteNameSuffixForm form) { 263 return CDI.current().select(DeleteNameSuffixCommand.class).get().run(userVisitPK, form); 264 } 265 266 // ------------------------------------------------------------------------- 267 // Date Time Formats 268 // ------------------------------------------------------------------------- 269 270 @Override 271 public CommandResult<VoidResult> createDateTimeFormat(UserVisitPK userVisitPK, CreateDateTimeFormatForm form) { 272 return CDI.current().select(CreateDateTimeFormatCommand.class).get().run(userVisitPK, form); 273 } 274 275 @Override 276 public CommandResult<GetDateTimeFormatChoicesResult> getDateTimeFormatChoices(UserVisitPK userVisitPK, GetDateTimeFormatChoicesForm form) { 277 return CDI.current().select(GetDateTimeFormatChoicesCommand.class).get().run(userVisitPK, form); 278 } 279 280 @Override 281 public CommandResult<GetDateTimeFormatResult> getDateTimeFormat(UserVisitPK userVisitPK, GetDateTimeFormatForm form) { 282 return CDI.current().select(GetDateTimeFormatCommand.class).get().run(userVisitPK, form); 283 } 284 285 @Override 286 public CommandResult<GetPreferredDateTimeFormatResult> getPreferredDateTimeFormat(UserVisitPK userVisitPK, GetPreferredDateTimeFormatForm form) { 287 return CDI.current().select(GetPreferredDateTimeFormatCommand.class).get().run(userVisitPK, form); 288 } 289 290 @Override 291 public CommandResult<GetDateTimeFormatsResult> getDateTimeFormats(UserVisitPK userVisitPK, GetDateTimeFormatsForm form) { 292 return CDI.current().select(GetDateTimeFormatsCommand.class).get().run(userVisitPK, form); 293 } 294 295 // ------------------------------------------------------------------------- 296 // Date Time Format Descriptions 297 // ------------------------------------------------------------------------- 298 299 @Override 300 public CommandResult<VoidResult> createDateTimeFormatDescription(UserVisitPK userVisitPK, CreateDateTimeFormatDescriptionForm form) { 301 return CDI.current().select(CreateDateTimeFormatDescriptionCommand.class).get().run(userVisitPK, form); 302 } 303 304 @Override 305 public CommandResult<GetDateTimeFormatDescriptionsResult> getDateTimeFormatDescriptions(UserVisitPK userVisitPK, GetDateTimeFormatDescriptionsForm form) { 306 return CDI.current().select(GetDateTimeFormatDescriptionsCommand.class).get().run(userVisitPK, form); 307 } 308 309 @Override 310 public CommandResult<EditDateTimeFormatDescriptionResult> editDateTimeFormatDescription(UserVisitPK userVisitPK, EditDateTimeFormatDescriptionForm form) { 311 return CDI.current().select(EditDateTimeFormatDescriptionCommand.class).get().run(userVisitPK, form); 312 } 313 314 @Override 315 public CommandResult<VoidResult> deleteDateTimeFormatDescription(UserVisitPK userVisitPK, DeleteDateTimeFormatDescriptionForm form) { 316 return CDI.current().select(DeleteDateTimeFormatDescriptionCommand.class).get().run(userVisitPK, form); 317 } 318 319 // ------------------------------------------------------------------------- 320 // Time Zones 321 // ------------------------------------------------------------------------- 322 323 @Override 324 public CommandResult<VoidResult> createTimeZone(UserVisitPK userVisitPK, CreateTimeZoneForm form) { 325 return CDI.current().select(CreateTimeZoneCommand.class).get().run(userVisitPK, form); 326 } 327 328 @Override 329 public CommandResult<GetTimeZoneChoicesResult> getTimeZoneChoices(UserVisitPK userVisitPK, GetTimeZoneChoicesForm form) { 330 return CDI.current().select(GetTimeZoneChoicesCommand.class).get().run(userVisitPK, form); 331 } 332 333 @Override 334 public CommandResult<GetTimeZoneResult> getTimeZone(UserVisitPK userVisitPK, GetTimeZoneForm form) { 335 return CDI.current().select(GetTimeZoneCommand.class).get().run(userVisitPK, form); 336 } 337 338 @Override 339 public CommandResult<GetPreferredTimeZoneResult> getPreferredTimeZone(UserVisitPK userVisitPK, GetPreferredTimeZoneForm form) { 340 return CDI.current().select(GetPreferredTimeZoneCommand.class).get().run(userVisitPK, form); 341 } 342 343 @Override 344 public CommandResult<GetTimeZonesResult> getTimeZones(UserVisitPK userVisitPK, GetTimeZonesForm form) { 345 return CDI.current().select(GetTimeZonesCommand.class).get().run(userVisitPK, form); 346 } 347 348 // ------------------------------------------------------------------------- 349 // Time Zone Descriptions 350 // ------------------------------------------------------------------------- 351 352 @Override 353 public CommandResult<VoidResult> createTimeZoneDescription(UserVisitPK userVisitPK, CreateTimeZoneDescriptionForm form) { 354 return CDI.current().select(CreateTimeZoneDescriptionCommand.class).get().run(userVisitPK, form); 355 } 356 357 @Override 358 public CommandResult<GetTimeZoneDescriptionsResult> getTimeZoneDescriptions(UserVisitPK userVisitPK, GetTimeZoneDescriptionsForm form) { 359 return CDI.current().select(GetTimeZoneDescriptionsCommand.class).get().run(userVisitPK, form); 360 } 361 362 @Override 363 public CommandResult<EditTimeZoneDescriptionResult> editTimeZoneDescription(UserVisitPK userVisitPK, EditTimeZoneDescriptionForm form) { 364 return CDI.current().select(EditTimeZoneDescriptionCommand.class).get().run(userVisitPK, form); 365 } 366 367 @Override 368 public CommandResult<VoidResult> deleteTimeZoneDescription(UserVisitPK userVisitPK, DeleteTimeZoneDescriptionForm form) { 369 return CDI.current().select(DeleteTimeZoneDescriptionCommand.class).get().run(userVisitPK, form); 370 } 371 372 // ------------------------------------------------------------------------- 373 // Companies 374 // ------------------------------------------------------------------------- 375 376 @Override 377 public CommandResult<CreateCompanyResult> createCompany(UserVisitPK userVisitPK, CreateCompanyForm form) { 378 return CDI.current().select(CreateCompanyCommand.class).get().run(userVisitPK, form); 379 } 380 381 @Override 382 public CommandResult<GetCompanyChoicesResult> getCompanyChoices(UserVisitPK userVisitPK, GetCompanyChoicesForm form) { 383 return CDI.current().select(GetCompanyChoicesCommand.class).get().run(userVisitPK, form); 384 } 385 386 @Override 387 public CommandResult<GetCompaniesResult> getCompanies(UserVisitPK userVisitPK, GetCompaniesForm form) { 388 return CDI.current().select(GetCompaniesCommand.class).get().run(userVisitPK, form); 389 } 390 391 @Override 392 public CommandResult<GetCompanyResult> getCompany(UserVisitPK userVisitPK, GetCompanyForm form) { 393 return CDI.current().select(GetCompanyCommand.class).get().run(userVisitPK, form); 394 } 395 396 @Override 397 public CommandResult<VoidResult> setDefaultCompany(UserVisitPK userVisitPK, SetDefaultCompanyForm form) { 398 return CDI.current().select(SetDefaultCompanyCommand.class).get().run(userVisitPK, form); 399 } 400 401 @Override 402 public CommandResult<EditCompanyResult> editCompany(UserVisitPK userVisitPK, EditCompanyForm form) { 403 return CDI.current().select(EditCompanyCommand.class).get().run(userVisitPK, form); 404 } 405 406 @Override 407 public CommandResult<VoidResult> deleteCompany(UserVisitPK userVisitPK, DeleteCompanyForm form) { 408 return CDI.current().select(DeleteCompanyCommand.class).get().run(userVisitPK, form); 409 } 410 411 // ------------------------------------------------------------------------- 412 // Divisions 413 // ------------------------------------------------------------------------- 414 415 @Override 416 public CommandResult<CreateDivisionResult> createDivision(UserVisitPK userVisitPK, CreateDivisionForm form) { 417 return CDI.current().select(CreateDivisionCommand.class).get().run(userVisitPK, form); 418 } 419 420 @Override 421 public CommandResult<GetDivisionChoicesResult> getDivisionChoices(UserVisitPK userVisitPK, GetDivisionChoicesForm form) { 422 return CDI.current().select(GetDivisionChoicesCommand.class).get().run(userVisitPK, form); 423 } 424 425 @Override 426 public CommandResult<GetDivisionsResult> getDivisions(UserVisitPK userVisitPK, GetDivisionsForm form) { 427 return CDI.current().select(GetDivisionsCommand.class).get().run(userVisitPK, form); 428 } 429 430 @Override 431 public CommandResult<GetDivisionResult> getDivision(UserVisitPK userVisitPK, GetDivisionForm form) { 432 return CDI.current().select(GetDivisionCommand.class).get().run(userVisitPK, form); 433 } 434 435 @Override 436 public CommandResult<VoidResult> setDefaultDivision(UserVisitPK userVisitPK, SetDefaultDivisionForm form) { 437 return CDI.current().select(SetDefaultDivisionCommand.class).get().run(userVisitPK, form); 438 } 439 440 @Override 441 public CommandResult<EditDivisionResult> editDivision(UserVisitPK userVisitPK, EditDivisionForm form) { 442 return CDI.current().select(EditDivisionCommand.class).get().run(userVisitPK, form); 443 } 444 445 @Override 446 public CommandResult<VoidResult> deleteDivision(UserVisitPK userVisitPK, DeleteDivisionForm form) { 447 return CDI.current().select(DeleteDivisionCommand.class).get().run(userVisitPK, form); 448 } 449 450 // ------------------------------------------------------------------------- 451 // Departments 452 // ------------------------------------------------------------------------- 453 454 @Override 455 public CommandResult<CreateDepartmentResult> createDepartment(UserVisitPK userVisitPK, CreateDepartmentForm form) { 456 return CDI.current().select(CreateDepartmentCommand.class).get().run(userVisitPK, form); 457 } 458 459 @Override 460 public CommandResult<GetDepartmentChoicesResult> getDepartmentChoices(UserVisitPK userVisitPK, GetDepartmentChoicesForm form) { 461 return CDI.current().select(GetDepartmentChoicesCommand.class).get().run(userVisitPK, form); 462 } 463 464 @Override 465 public CommandResult<GetDepartmentsResult> getDepartments(UserVisitPK userVisitPK, GetDepartmentsForm form) { 466 return CDI.current().select(GetDepartmentsCommand.class).get().run(userVisitPK, form); 467 } 468 469 @Override 470 public CommandResult<GetDepartmentResult> getDepartment(UserVisitPK userVisitPK, GetDepartmentForm form) { 471 return CDI.current().select(GetDepartmentCommand.class).get().run(userVisitPK, form); 472 } 473 474 @Override 475 public CommandResult<VoidResult> setDefaultDepartment(UserVisitPK userVisitPK, SetDefaultDepartmentForm form) { 476 return CDI.current().select(SetDefaultDepartmentCommand.class).get().run(userVisitPK, form); 477 } 478 479 @Override 480 public CommandResult<EditDepartmentResult> editDepartment(UserVisitPK userVisitPK, EditDepartmentForm form) { 481 return CDI.current().select(EditDepartmentCommand.class).get().run(userVisitPK, form); 482 } 483 484 @Override 485 public CommandResult<VoidResult> deleteDepartment(UserVisitPK userVisitPK, DeleteDepartmentForm form) { 486 return CDI.current().select(DeleteDepartmentCommand.class).get().run(userVisitPK, form); 487 } 488 489 // ------------------------------------------------------------------------- 490 // Party Relationship Types 491 // ------------------------------------------------------------------------- 492 493 @Override 494 public CommandResult<VoidResult> createPartyRelationshipType(UserVisitPK userVisitPK, CreatePartyRelationshipTypeForm form) { 495 return CDI.current().select(CreatePartyRelationshipTypeCommand.class).get().run(userVisitPK, form); 496 } 497 498 // ------------------------------------------------------------------------- 499 // Party Relationship Type Descriptions 500 // ------------------------------------------------------------------------- 501 502 @Override 503 public CommandResult<VoidResult> createPartyRelationshipTypeDescription(UserVisitPK userVisitPK, CreatePartyRelationshipTypeDescriptionForm form) { 504 return CDI.current().select(CreatePartyRelationshipTypeDescriptionCommand.class).get().run(userVisitPK, form); 505 } 506 507 // -------------------------------------------------------------------------------- 508 // Party Relationships 509 // -------------------------------------------------------------------------------- 510 511 @Override 512 public CommandResult<GetPartyRelationshipsResult> getPartyRelationships(UserVisitPK userVisitPK, GetPartyRelationshipsForm form) { 513 return CDI.current().select(GetPartyRelationshipsCommand.class).get().run(userVisitPK, form); 514 } 515 516 @Override 517 public CommandResult<GetPartyRelationshipResult> getPartyRelationship(UserVisitPK userVisitPK, GetPartyRelationshipForm form) { 518 return CDI.current().select(GetPartyRelationshipCommand.class).get().run(userVisitPK, form); 519 } 520 521 // ------------------------------------------------------------------------- 522 // Role Types 523 // ------------------------------------------------------------------------- 524 525 @Override 526 public CommandResult<VoidResult> createRoleType(UserVisitPK userVisitPK, CreateRoleTypeForm form) { 527 return CDI.current().select(CreateRoleTypeCommand.class).get().run(userVisitPK, form); 528 } 529 530 @Override 531 public CommandResult<GetRoleTypeResult> getRoleType(UserVisitPK userVisitPK, GetRoleTypeForm form) { 532 return CDI.current().select(GetRoleTypeCommand.class).get().run(userVisitPK, form); 533 } 534 535 @Override 536 public CommandResult<GetRoleTypesResult> getRoleTypes(UserVisitPK userVisitPK, GetRoleTypesForm form) { 537 return CDI.current().select(GetRoleTypesCommand.class).get().run(userVisitPK, form); 538 } 539 540 // ------------------------------------------------------------------------- 541 // Role Type Descriptions 542 // ------------------------------------------------------------------------- 543 544 @Override 545 public CommandResult<VoidResult> createRoleTypeDescription(UserVisitPK userVisitPK, CreateRoleTypeDescriptionForm form) { 546 return CDI.current().select(CreateRoleTypeDescriptionCommand.class).get().run(userVisitPK, form); 547 } 548 549 // ------------------------------------------------------------------------- 550 // Customers 551 // ------------------------------------------------------------------------- 552 553 @Override 554 public CommandResult<CreateCustomerResult> createCustomer(UserVisitPK userVisitPK, CreateCustomerForm form) { 555 return CDI.current().select(CreateCustomerCommand.class).get().run(userVisitPK, form); 556 } 557 558 @Override 559 public CommandResult<CreateCustomerWithLoginResult> createCustomerWithLogin(UserVisitPK userVisitPK, CreateCustomerWithLoginForm form) { 560 return CDI.current().select(CreateCustomerWithLoginCommand.class).get().run(userVisitPK, form); 561 } 562 563 // ------------------------------------------------------------------------- 564 // Employees 565 // ------------------------------------------------------------------------- 566 567 @Override 568 public CommandResult<CreateEmployeeResult> createEmployee(UserVisitPK userVisitPK, CreateEmployeeForm form) { 569 return CDI.current().select(CreateEmployeeCommand.class).get().run(userVisitPK, form); 570 } 571 572 @Override 573 public CommandResult<VoidResult> addEmployeeToCompany(UserVisitPK userVisitPK, AddEmployeeToCompanyForm form) { 574 return CDI.current().select(AddEmployeeToCompanyCommand.class).get().run(userVisitPK, form); 575 } 576 577 @Override 578 public CommandResult<VoidResult> addEmployeeToDivision(UserVisitPK userVisitPK, AddEmployeeToDivisionForm form) { 579 return CDI.current().select(AddEmployeeToDivisionCommand.class).get().run(userVisitPK, form); 580 } 581 582 @Override 583 public CommandResult<VoidResult> addEmployeeToDepartment(UserVisitPK userVisitPK, AddEmployeeToDepartmentForm form) { 584 return CDI.current().select(AddEmployeeToDepartmentCommand.class).get().run(userVisitPK, form); 585 } 586 587 @Override 588 public CommandResult<VoidResult> removeEmployeeFromCompany(UserVisitPK userVisitPK, RemoveEmployeeFromCompanyForm form) { 589 return CDI.current().select(RemoveEmployeeFromCompanyCommand.class).get().run(userVisitPK, form); 590 } 591 592 @Override 593 public CommandResult<VoidResult> removeEmployeeFromDivision(UserVisitPK userVisitPK, RemoveEmployeeFromDivisionForm form) { 594 return CDI.current().select(RemoveEmployeeFromDivisionCommand.class).get().run(userVisitPK, form); 595 } 596 597 @Override 598 public CommandResult<VoidResult> removeEmployeeFromDepartment(UserVisitPK userVisitPK, RemoveEmployeeFromDepartmentForm form) { 599 return CDI.current().select(RemoveEmployeFromDepartmentCommand.class).get().run(userVisitPK, form); 600 } 601 602 @Override 603 public CommandResult<GetEmployeeStatusChoicesResult> getEmployeeStatusChoices(UserVisitPK userVisitPK, GetEmployeeStatusChoicesForm form) { 604 return CDI.current().select(GetEmployeeStatusChoicesCommand.class).get().run(userVisitPK, form); 605 } 606 607 @Override 608 public CommandResult<VoidResult> setEmployeeStatus(UserVisitPK userVisitPK, SetEmployeeStatusForm form) { 609 return CDI.current().select(SetEmployeeStatusCommand.class).get().run(userVisitPK, form); 610 } 611 612 @Override 613 public CommandResult<GetEmployeeAvailabilityChoicesResult> getEmployeeAvailabilityChoices(UserVisitPK userVisitPK, GetEmployeeAvailabilityChoicesForm form) { 614 return CDI.current().select(GetEmployeeAvailabilityChoicesCommand.class).get().run(userVisitPK, form); 615 } 616 617 @Override 618 public CommandResult<VoidResult> setEmployeeAvailability(UserVisitPK userVisitPK, SetEmployeeAvailabilityForm form) { 619 return CDI.current().select(SetEmployeeAvailabilityCommand.class).get().run(userVisitPK, form); 620 } 621 622 @Override 623 public CommandResult<EditEmployeeResult> editEmployee(UserVisitPK userVisitPK, EditEmployeeForm form) { 624 return CDI.current().select(EditEmployeeCommand.class).get().run(userVisitPK, form); 625 } 626 627 // -------------------------------------------------------------------------------- 628 // Vendors 629 // -------------------------------------------------------------------------------- 630 631 @Override 632 public CommandResult<CreateVendorResult> createVendor(UserVisitPK userVisitPK, CreateVendorForm form) { 633 return CDI.current().select(CreateVendorCommand.class).get().run(userVisitPK, form); 634 } 635 636 @Override 637 public CommandResult<GetVendorStatusChoicesResult> getVendorStatusChoices(UserVisitPK userVisitPK, GetVendorStatusChoicesForm form) { 638 return CDI.current().select(GetVendorStatusChoicesCommand.class).get().run(userVisitPK, form); 639 } 640 641 @Override 642 public CommandResult<VoidResult> setVendorStatus(UserVisitPK userVisitPK, SetVendorStatusForm form) { 643 return CDI.current().select(SetVendorStatusCommand.class).get().run(userVisitPK, form); 644 } 645 646 // -------------------------------------------------------------------------------- 647 // Genders 648 // -------------------------------------------------------------------------------- 649 650 @Override 651 public CommandResult<VoidResult> createGender(UserVisitPK userVisitPK, CreateGenderForm form) { 652 return CDI.current().select(CreateGenderCommand.class).get().run(userVisitPK, form); 653 } 654 655 @Override 656 public CommandResult<GetGenderChoicesResult> getGenderChoices(UserVisitPK userVisitPK, GetGenderChoicesForm form) { 657 return CDI.current().select(GetGenderChoicesCommand.class).get().run(userVisitPK, form); 658 } 659 660 @Override 661 public CommandResult<GetGenderResult> getGender(UserVisitPK userVisitPK, GetGenderForm form) { 662 return CDI.current().select(GetGenderCommand.class).get().run(userVisitPK, form); 663 } 664 665 @Override 666 public CommandResult<GetGendersResult> getGenders(UserVisitPK userVisitPK, GetGendersForm form) { 667 return CDI.current().select(GetGendersCommand.class).get().run(userVisitPK, form); 668 } 669 670 @Override 671 public CommandResult<VoidResult> setDefaultGender(UserVisitPK userVisitPK, SetDefaultGenderForm form) { 672 return CDI.current().select(SetDefaultGenderCommand.class).get().run(userVisitPK, form); 673 } 674 675 @Override 676 public CommandResult<EditGenderResult> editGender(UserVisitPK userVisitPK, EditGenderForm form) { 677 return CDI.current().select(EditGenderCommand.class).get().run(userVisitPK, form); 678 } 679 680 @Override 681 public CommandResult<VoidResult> deleteGender(UserVisitPK userVisitPK, DeleteGenderForm form) { 682 return CDI.current().select(DeleteGenderCommand.class).get().run(userVisitPK, form); 683 } 684 685 // -------------------------------------------------------------------------------- 686 // Gender Descriptions 687 // -------------------------------------------------------------------------------- 688 689 @Override 690 public CommandResult<VoidResult> createGenderDescription(UserVisitPK userVisitPK, CreateGenderDescriptionForm form) { 691 return CDI.current().select(CreateGenderDescriptionCommand.class).get().run(userVisitPK, form); 692 } 693 694 @Override 695 public CommandResult<GetGenderDescriptionsResult> getGenderDescriptions(UserVisitPK userVisitPK, GetGenderDescriptionsForm form) { 696 return CDI.current().select(GetGenderDescriptionsCommand.class).get().run(userVisitPK, form); 697 } 698 699 @Override 700 public CommandResult<EditGenderDescriptionResult> editGenderDescription(UserVisitPK userVisitPK, EditGenderDescriptionForm form) { 701 return CDI.current().select(EditGenderDescriptionCommand.class).get().run(userVisitPK, form); 702 } 703 704 @Override 705 public CommandResult<VoidResult> deleteGenderDescription(UserVisitPK userVisitPK, DeleteGenderDescriptionForm form) { 706 return CDI.current().select(DeleteGenderDescriptionCommand.class).get().run(userVisitPK, form); 707 } 708 709 // -------------------------------------------------------------------------------- 710 // Birthday Formats 711 // -------------------------------------------------------------------------------- 712 713 @Override 714 public CommandResult<VoidResult> createBirthdayFormat(UserVisitPK userVisitPK, CreateBirthdayFormatForm form) { 715 return CDI.current().select(CreateBirthdayFormatCommand.class).get().run(userVisitPK, form); 716 } 717 718 @Override 719 public CommandResult<GetBirthdayFormatChoicesResult> getBirthdayFormatChoices(UserVisitPK userVisitPK, GetBirthdayFormatChoicesForm form) { 720 return CDI.current().select(GetBirthdayFormatChoicesCommand.class).get().run(userVisitPK, form); 721 } 722 723 @Override 724 public CommandResult<GetBirthdayFormatResult> getBirthdayFormat(UserVisitPK userVisitPK, GetBirthdayFormatForm form) { 725 return CDI.current().select(GetBirthdayFormatCommand.class).get().run(userVisitPK, form); 726 } 727 728 @Override 729 public CommandResult<GetBirthdayFormatsResult> getBirthdayFormats(UserVisitPK userVisitPK, GetBirthdayFormatsForm form) { 730 return CDI.current().select(GetBirthdayFormatsCommand.class).get().run(userVisitPK, form); 731 } 732 733 @Override 734 public CommandResult<VoidResult> setDefaultBirthdayFormat(UserVisitPK userVisitPK, SetDefaultBirthdayFormatForm form) { 735 return CDI.current().select(SetDefaultBirthdayFormatCommand.class).get().run(userVisitPK, form); 736 } 737 738 @Override 739 public CommandResult<EditBirthdayFormatResult> editBirthdayFormat(UserVisitPK userVisitPK, EditBirthdayFormatForm form) { 740 return CDI.current().select(EditBirthdayFormatCommand.class).get().run(userVisitPK, form); 741 } 742 743 @Override 744 public CommandResult<VoidResult> deleteBirthdayFormat(UserVisitPK userVisitPK, DeleteBirthdayFormatForm form) { 745 return CDI.current().select(DeleteBirthdayFormatCommand.class).get().run(userVisitPK, form); 746 } 747 748 // -------------------------------------------------------------------------------- 749 // Birthday Format Descriptions 750 // -------------------------------------------------------------------------------- 751 752 @Override 753 public CommandResult<VoidResult> createBirthdayFormatDescription(UserVisitPK userVisitPK, CreateBirthdayFormatDescriptionForm form) { 754 return CDI.current().select(CreateBirthdayFormatDescriptionCommand.class).get().run(userVisitPK, form); 755 } 756 757 @Override 758 public CommandResult<GetBirthdayFormatDescriptionResult> getBirthdayFormatDescription(UserVisitPK userVisitPK, GetBirthdayFormatDescriptionForm form) { 759 return CDI.current().select(GetBirthdayFormatDescriptionCommand.class).get().run(userVisitPK, form); 760 } 761 762 @Override 763 public CommandResult<GetBirthdayFormatDescriptionsResult> getBirthdayFormatDescriptions(UserVisitPK userVisitPK, GetBirthdayFormatDescriptionsForm form) { 764 return CDI.current().select(GetBirthdayFormatDescriptionsCommand.class).get().run(userVisitPK, form); 765 } 766 767 @Override 768 public CommandResult<EditBirthdayFormatDescriptionResult> editBirthdayFormatDescription(UserVisitPK userVisitPK, EditBirthdayFormatDescriptionForm form) { 769 return CDI.current().select(EditBirthdayFormatDescriptionCommand.class).get().run(userVisitPK, form); 770 } 771 772 @Override 773 public CommandResult<VoidResult> deleteBirthdayFormatDescription(UserVisitPK userVisitPK, DeleteBirthdayFormatDescriptionForm form) { 774 return CDI.current().select(DeleteBirthdayFormatDescriptionCommand.class).get().run(userVisitPK, form); 775 } 776 777 // -------------------------------------------------------------------------------- 778 // Profiles 779 // -------------------------------------------------------------------------------- 780 781 @Override 782 public CommandResult<VoidResult> createProfile(UserVisitPK userVisitPK, CreateProfileForm form) { 783 return CDI.current().select(CreateProfileCommand.class).get().run(userVisitPK, form); 784 } 785 786 @Override 787 public CommandResult<EditProfileResult> editProfile(UserVisitPK userVisitPK, EditProfileForm form) { 788 return CDI.current().select(EditProfileCommand.class).get().run(userVisitPK, form); 789 } 790 791 // -------------------------------------------------------------------------------- 792 // Party Alias Types 793 // -------------------------------------------------------------------------------- 794 795 @Override 796 public CommandResult<CreatePartyAliasTypeResult> createPartyAliasType(UserVisitPK userVisitPK, CreatePartyAliasTypeForm form) { 797 return CDI.current().select(CreatePartyAliasTypeCommand.class).get().run(userVisitPK, form); 798 } 799 800 @Override 801 public CommandResult<GetPartyAliasTypeChoicesResult> getPartyAliasTypeChoices(UserVisitPK userVisitPK, GetPartyAliasTypeChoicesForm form) { 802 return CDI.current().select(GetPartyAliasTypeChoicesCommand.class).get().run(userVisitPK, form); 803 } 804 805 @Override 806 public CommandResult<GetPartyAliasTypeResult> getPartyAliasType(UserVisitPK userVisitPK, GetPartyAliasTypeForm form) { 807 return CDI.current().select(GetPartyAliasTypeCommand.class).get().run(userVisitPK, form); 808 } 809 810 @Override 811 public CommandResult<GetPartyAliasTypesResult> getPartyAliasTypes(UserVisitPK userVisitPK, GetPartyAliasTypesForm form) { 812 return CDI.current().select(GetPartyAliasTypesCommand.class).get().run(userVisitPK, form); 813 } 814 815 @Override 816 public CommandResult<VoidResult> setDefaultPartyAliasType(UserVisitPK userVisitPK, SetDefaultPartyAliasTypeForm form) { 817 return CDI.current().select(SetDefaultPartyAliasTypeCommand.class).get().run(userVisitPK, form); 818 } 819 820 @Override 821 public CommandResult<EditPartyAliasTypeResult> editPartyAliasType(UserVisitPK userVisitPK, EditPartyAliasTypeForm form) { 822 return CDI.current().select(EditPartyAliasTypeCommand.class).get().run(userVisitPK, form); 823 } 824 825 @Override 826 public CommandResult<VoidResult> deletePartyAliasType(UserVisitPK userVisitPK, DeletePartyAliasTypeForm form) { 827 return CDI.current().select(DeletePartyAliasTypeCommand.class).get().run(userVisitPK, form); 828 } 829 830 // -------------------------------------------------------------------------------- 831 // Party Alias Type Descriptions 832 // -------------------------------------------------------------------------------- 833 834 @Override 835 public CommandResult<VoidResult> createPartyAliasTypeDescription(UserVisitPK userVisitPK, CreatePartyAliasTypeDescriptionForm form) { 836 return CDI.current().select(CreatePartyAliasTypeDescriptionCommand.class).get().run(userVisitPK, form); 837 } 838 839 @Override 840 public CommandResult<GetPartyAliasTypeDescriptionResult> getPartyAliasTypeDescription(UserVisitPK userVisitPK, GetPartyAliasTypeDescriptionForm form) { 841 return CDI.current().select(GetPartyAliasTypeDescriptionCommand.class).get().run(userVisitPK, form); 842 } 843 844 @Override 845 public CommandResult<GetPartyAliasTypeDescriptionsResult> getPartyAliasTypeDescriptions(UserVisitPK userVisitPK, GetPartyAliasTypeDescriptionsForm form) { 846 return CDI.current().select(GetPartyAliasTypeDescriptionsCommand.class).get().run(userVisitPK, form); 847 } 848 849 @Override 850 public CommandResult<EditPartyAliasTypeDescriptionResult> editPartyAliasTypeDescription(UserVisitPK userVisitPK, EditPartyAliasTypeDescriptionForm form) { 851 return CDI.current().select(EditPartyAliasTypeDescriptionCommand.class).get().run(userVisitPK, form); 852 } 853 854 @Override 855 public CommandResult<VoidResult> deletePartyAliasTypeDescription(UserVisitPK userVisitPK, DeletePartyAliasTypeDescriptionForm form) { 856 return CDI.current().select(DeletePartyAliasTypeDescriptionCommand.class).get().run(userVisitPK, form); 857 } 858 859 // -------------------------------------------------------------------------------- 860 // Party Aliases 861 // -------------------------------------------------------------------------------- 862 863 @Override 864 public CommandResult<VoidResult> createPartyAlias(UserVisitPK userVisitPK, CreatePartyAliasForm form) { 865 return CDI.current().select(CreatePartyAliasCommand.class).get().run(userVisitPK, form); 866 } 867 868 @Override 869 public CommandResult<GetPartyAliasResult> getPartyAlias(UserVisitPK userVisitPK, GetPartyAliasForm form) { 870 return CDI.current().select(GetPartyAliasCommand.class).get().run(userVisitPK, form); 871 } 872 873 @Override 874 public CommandResult<GetPartyAliasesResult> getPartyAliases(UserVisitPK userVisitPK, GetPartyAliasesForm form) { 875 return CDI.current().select(GetPartyAliasesCommand.class).get().run(userVisitPK, form); 876 } 877 878 @Override 879 public CommandResult<EditPartyAliasResult> editPartyAlias(UserVisitPK userVisitPK, EditPartyAliasForm form) { 880 return CDI.current().select(EditPartyAliasCommand.class).get().run(userVisitPK, form); 881 } 882 883 @Override 884 public CommandResult<VoidResult> deletePartyAlias(UserVisitPK userVisitPK, DeletePartyAliasForm form) { 885 return CDI.current().select(DeletePartyAliasCommand.class).get().run(userVisitPK, form); 886 } 887 888 // ------------------------------------------------------------------------- 889 // Parties 890 // ------------------------------------------------------------------------- 891 892 @Override 893 public CommandResult<GetPartyResult> getParty(UserVisitPK userVisitPK, GetPartyForm form) { 894 return CDI.current().select(GetPartyCommand.class).get().run(userVisitPK, form); 895 } 896 897 @Override 898 public CommandResult<GetPartiesResult> getParties(UserVisitPK userVisitPK, GetPartiesForm form) { 899 return CDI.current().select(GetPartiesCommand.class).get().run(userVisitPK, form); 900 } 901 902 // ------------------------------------------------------------------------- 903 // Party Entity Types 904 // ------------------------------------------------------------------------- 905 906 @Override 907 public CommandResult<VoidResult> createPartyEntityType(UserVisitPK userVisitPK, CreatePartyEntityTypeForm form) { 908 return CDI.current().select(CreatePartyEntityTypeCommand.class).get().run(userVisitPK, form); 909 } 910 911 @Override 912 public CommandResult<EditPartyEntityTypeResult> editPartyEntityType(UserVisitPK userVisitPK, EditPartyEntityTypeForm form) { 913 return CDI.current().select(EditPartyEntityTypeCommand.class).get().run(userVisitPK, form); 914 } 915 916 @Override 917 public CommandResult<GetPartyEntityTypeResult> getPartyEntityType(UserVisitPK userVisitPK, GetPartyEntityTypeForm form) { 918 return CDI.current().select(GetPartyEntityTypeCommand.class).get().run(userVisitPK, form); 919 } 920 921 @Override 922 public CommandResult<GetPartyEntityTypesResult> getPartyEntityTypes(UserVisitPK userVisitPK, GetPartyEntityTypesForm form) { 923 return CDI.current().select(GetPartyEntityTypesCommand.class).get().run(userVisitPK, form); 924 } 925 926 @Override 927 public CommandResult<VoidResult> deletePartyEntityType(UserVisitPK userVisitPK, DeletePartyEntityTypeForm form) { 928 return CDI.current().select(DeletePartyEntityTypeCommand.class).get().run(userVisitPK, form); 929 } 930 931 // -------------------------------------------------------------------------------- 932 // Party Application Editor Uses 933 // -------------------------------------------------------------------------------- 934 935 @Override 936 public CommandResult<VoidResult> createPartyApplicationEditorUse(UserVisitPK userVisitPK, CreatePartyApplicationEditorUseForm form) { 937 return CDI.current().select(CreatePartyApplicationEditorUseCommand.class).get().run(userVisitPK, form); 938 } 939 940 @Override 941 public CommandResult<GetPartyApplicationEditorUseResult> getPartyApplicationEditorUse(UserVisitPK userVisitPK, GetPartyApplicationEditorUseForm form) { 942 return CDI.current().select(GetPartyApplicationEditorUseCommand.class).get().run(userVisitPK, form); 943 } 944 945 @Override 946 public CommandResult<GetPartyApplicationEditorUsesResult> getPartyApplicationEditorUses(UserVisitPK userVisitPK, GetPartyApplicationEditorUsesForm form) { 947 return CDI.current().select(GetPartyApplicationEditorUsesCommand.class).get().run(userVisitPK, form); 948 } 949 950 @Override 951 public CommandResult<EditPartyApplicationEditorUseResult> editPartyApplicationEditorUse(UserVisitPK userVisitPK, EditPartyApplicationEditorUseForm form) { 952 return CDI.current().select(EditPartyApplicationEditorUseCommand.class).get().run(userVisitPK, form); 953 } 954 955 @Override 956 public CommandResult<VoidResult> deletePartyApplicationEditorUse(UserVisitPK userVisitPK, DeletePartyApplicationEditorUseForm form) { 957 return CDI.current().select(DeletePartyApplicationEditorUseCommand.class).get().run(userVisitPK, form); 958 } 959 960}