From 0fdc31246c5a8766246c5b3b78f9b34255090c4f Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1s=C3=A1ry=20D=C3=A1niel?= Date: Fri, 12 Jun 2020 13:54:18 +0000 Subject: [PATCH] git-tfs-id: [http://tfs.userrendszerhaz.hu:8080/tfs/DefaultCollection]$/MediaCube;C31859 --- .../mediacube-dev-user.properties | 3 +- server/-configuration/scheduledjobs.json | 15 - .../mediacube/executors/tests/Support.java | 3 +- .../mediacube/executors/tests/SupportTSM.java | 62 + .../config/config-worker.xml | 11 +- .../fork-validate-and-archive.xml | 8 +- .../jobtemplates/generic-archive-checker.xml | 34 + ...-checker.xml => nexio-archive-checker.xml} | 2 +- .../nexio-missingmaterial-checker.xml | 30 + .../jobtemplates/validate-and-archive.xml | 77 +- .../server/steps/DownloadableMedia.java | 7 - .../jobengine/server/steps/EscortFiles.java | 24 + .../server/steps/FileCleanupStep.java | 38 + .../server/steps/FileValidatorStep.java | 73 + .../steps/ForkValidateAndArchiveStep.java | 114 + .../server/steps/FrameNumberReaderStep.java | 36 - .../steps/GenericArchiveCheckerStep.java | 91 + .../jobengine/server/steps/MediaToolStep.java | 6 +- .../server/steps/MetadataPersisterStep.java | 57 + ...Step.java => NEXIOArchiveCheckerStep.java} | 61 +- .../NEXIOMissingMaterialCheckerStep.java | 84 + .../steps/PBMissingMaterialCheckerStep.java | 74 + .../jobengine/server/steps/TransferStep.java | 33 + .../steps/ValidateAndArchiveForkStep.java | 104 - .../META-INF/MANIFEST.MF | 1 + .../pb/wsclient/ActionScheduleProperties.java | 91 + .../src/pb/wsclient/AsRunActionEvent.java | 93 + .../src/pb/wsclient/AsRunData.java | 823 +++++++ .../src/pb/wsclient/AsRunEventTemplate.java | 269 +++ .../src/pb/wsclient/AsRunJob.java | 215 ++ .../src/pb/wsclient/AsRunJobList.java | 69 + .../src/pb/wsclient/AsRunJobProperties.java | 412 ++++ .../src/pb/wsclient/AsRunPrimaryEvent.java | 93 + .../pb/wsclient/AsRunPrimaryEventList.java | 79 + .../src/pb/wsclient/AsRunSecondaryEvent.java | 93 + .../pb/wsclient/AsRunSecondaryEventList.java | 79 + .../src/pb/wsclient/AsRunUserObservation.java | 160 ++ .../pb/wsclient/AspectRatioProperties.java | 60 + .../src/pb/wsclient/Audio.java | 1005 +++++++++ .../src/pb/wsclient/AudioTrack.java | 216 ++ .../src/pb/wsclient/AudioTracks.java | 71 + .../src/pb/wsclient/AutomationStateType.java | 118 + .../src/pb/wsclient/CGTransitionEnum.java | 51 + .../src/pb/wsclient/CgProperties.java | 652 ++++++ .../src/pb/wsclient/ChangeCounts.java | 113 + .../src/pb/wsclient/ChannelProperties.java | 175 ++ .../src/pb/wsclient/Classification.java | 132 ++ .../src/pb/wsclient/Classifications.java | 75 + .../src/pb/wsclient/Component.java | 198 ++ .../src/pb/wsclient/ComponentHealth.java | 83 + .../src/pb/wsclient/ComponentList.java | 71 + .../pb/wsclient/ComponentListContainer.java | 64 + .../src/pb/wsclient/ComponentTag.java | 50 + .../pb/wsclient/ComponentTagContainer.java | 66 + .../src/pb/wsclient/Config.java | 212 ++ .../src/pb/wsclient/ConfigContainer.java | 64 + .../wsclient/ConfigRequestListContainer.java | 131 ++ .../src/pb/wsclient/ConfigType.java | 36 + .../src/pb/wsclient/DateTimecodeRange.java | 87 + .../wsclient/DateTimecodeRangeContainer.java | 64 + .../src/pb/wsclient/DeleteMedia.java | 189 ++ .../src/pb/wsclient/DeleteMediaInstance.java | 87 + .../DeleteMediaInstanceContainer.java | 64 + .../DeleteMediaInstanceKeyContainer.java | 64 + .../src/pb/wsclient/Direction.java | 51 + .../src/pb/wsclient/DolphinCGProperties.java | 357 +++ .../pb/wsclient/DolphinGraphicProperties.java | 244 +++ .../src/pb/wsclient/EffectProperties.java | 1493 +++++++++++++ .../src/pb/wsclient/EventClassification.java | 34 + .../src/pb/wsclient/EventClassifications.java | 37 + .../src/pb/wsclient/EventContainer.java | 64 + .../src/pb/wsclient/EventId.java | 85 + .../src/pb/wsclient/EventIdList.java | 71 + .../src/pb/wsclient/EventIdListContainer.java | 64 + .../wsclient/EventIdListContainerDeleted.java | 64 + .../EventIdListContainerNonQueried.java | 64 + .../src/pb/wsclient/EventIdPositionEnum.java | 40 + .../src/pb/wsclient/EventIdType.java | 40 + .../src/pb/wsclient/EventListContainer.java | 64 + .../src/pb/wsclient/EventProperties.java | 213 ++ .../src/pb/wsclient/EventType.java | 60 + .../src/pb/wsclient/FeaturesProperties.java | 610 ++++++ .../GetContiguousListEventsOutput.java | 132 ++ .../GetCustomViewRequestContainer.java | 124 ++ .../GetCustomViewResponseContainer.java | 64 + .../pb/wsclient/GetJobRequestContainer.java | 64 + .../GetJobsForMediaRequestContainer.java | 64 + .../GetListEventChangesAuxXMLOutput.java | 132 ++ .../wsclient/GetListEventChangesOutput.java | 84 + .../GetNonContiguousListEventsOutput.java | 180 ++ .../GetScheduledJobRequestContainer.java | 64 + ...ScheduledJobsForMediaRequestContainer.java | 64 + .../src/pb/wsclient/HealthFlag.java | 60 + .../src/pb/wsclient/HealthList.java | 71 + .../src/pb/wsclient/Heartbeat.java | 136 ++ .../src/pb/wsclient/HistoryProperties.java | 377 ++++ .../src/pb/wsclient/IngestProperties.java | 117 + .../src/pb/wsclient/Job.java | 156 ++ .../src/pb/wsclient/JobContainer.java | 64 + .../src/pb/wsclient/JobList.java | 69 + .../src/pb/wsclient/JobListContainer.java | 83 + .../src/pb/wsclient/JobListProperties.java | 92 + .../src/pb/wsclient/JobProperties.java | 362 +++ .../src/pb/wsclient/JobState.java | 114 + .../JobStateDateTimecodeRangeContainer.java | 64 + .../src/pb/wsclient/KeepItem.java | 94 + .../src/pb/wsclient/KeepItemProperties.java | 502 +++++ .../src/pb/wsclient/KeepList.java | 71 + .../src/pb/wsclient/KeepListProperties.java | 34 + .../src/pb/wsclient/Languages.java | 69 + .../wsclient/LastModifiedDateTimeRange.java | 87 + .../LastModifiedDateTimeRangeContainer.java | 64 + .../src/pb/wsclient/Layers.java | 78 + .../src/pb/wsclient/ListStreamAllocation.java | 100 + .../ListStreamAllocationProperties.java | 96 + .../src/pb/wsclient/MacroProperties.java | 62 + .../src/pb/wsclient/Markup.java | 123 ++ .../src/pb/wsclient/MarkupItem.java | 241 ++ .../src/pb/wsclient/Markups.java | 71 + .../src/pb/wsclient/Media.java | 625 ++++++ .../src/pb/wsclient/MediaInstance.java | 610 ++++++ .../wsclient/MediaInstanceKeyContainer.java | 186 ++ .../src/pb/wsclient/MediaInstanceList.java | 71 + .../pb/wsclient/MediaInstanceProperties.java | 116 + .../src/pb/wsclient/MediaInstanceUsage.java | 275 +++ .../src/pb/wsclient/MediaKeyContainer.java | 64 + .../src/pb/wsclient/MediaList.java | 69 + .../src/pb/wsclient/MediaListContainer.java | 83 + .../pb/wsclient/MediaMetadataContainer.java | 64 + .../src/pb/wsclient/MediaProperties.java | 89 + .../wsclient/MediaSegmentationProperites.java | 230 ++ .../src/pb/wsclient/MediaSet.java | 757 +++++++ .../src/pb/wsclient/MediaSetType.java | 65 + .../src/pb/wsclient/MediaSimple.java | 87 + .../src/pb/wsclient/MediaSimpleLoose.java | 91 + .../wsclient/MediaStreamIngestProperties.java | 62 + .../pb/wsclient/MediaStreamProperties.java | 204 ++ .../src/pb/wsclient/MediaType.java | 58 + .../src/pb/wsclient/MediaUsage.java | 189 ++ .../src/pb/wsclient/MediaUsageContainer.java | 64 + .../src/pb/wsclient/MediaUsageList.java | 69 + .../pb/wsclient/MediaUsageListContainer.java | 64 + .../wsclient/MediaUsageMediaKeyContainer.java | 64 + .../src/pb/wsclient/ObjectFactory.java | 1945 +++++++++++++++++ .../src/pb/wsclient/ObjectType.java | 120 + .../src/pb/wsclient/PBClientTest.java | 73 + .../src/pb/wsclient/PBSMarinaAPI.java | 332 +++ .../src/pb/wsclient/PBSMarinaAPIService.java | 87 + .../src/pb/wsclient/PlaylistActionEvent.java | 251 +++ .../PlaylistActionEventEffectProperties.java | 62 + .../PlaylistActionEventProperties.java | 246 +++ .../PlaylistEventXMLConfigurableFields.java | 40 + .../src/pb/wsclient/PlaylistPrimaryEvent.java | 251 +++ .../pb/wsclient/PlaylistPrimaryEventList.java | 71 + .../PlaylistPrimaryEventProperties.java | 360 +++ .../src/pb/wsclient/PlaylistProperties.java | 166 ++ .../pb/wsclient/PlaylistSecondaryEvent.java | 251 +++ .../wsclient/PlaylistSecondaryEventList.java | 79 + .../PlaylistSecondaryEventProperties.java | 246 +++ .../wsclient/PrimaryScheduleProperties.java | 89 + .../src/pb/wsclient/Priority.java | 258 +++ .../pb/wsclient/RecordSourceProperties.java | 166 ++ .../src/pb/wsclient/RedundancyRole.java | 51 + .../src/pb/wsclient/RequestProperties.java | 670 ++++++ .../pb/wsclient/RestrictionProperties.java | 66 + .../src/pb/wsclient/ScheduledJob.java | 152 ++ .../pb/wsclient/ScheduledJobContainer.java | 64 + .../src/pb/wsclient/ScheduledJobList.java | 69 + .../wsclient/ScheduledJobListContainer.java | 83 + .../pb/wsclient/ScheduledJobProperties.java | 806 +++++++ .../ScheduledJobScheduleProperties.java | 141 ++ ...ledJobStateDateTimecodeRangeContainer.java | 64 + .../src/pb/wsclient/Secondaries.java | 69 + .../wsclient/SecondaryScheduleProperties.java | 141 ++ .../src/pb/wsclient/SlotEnum.java | 69 + .../src/pb/wsclient/StartTimeState.java | 42 + .../src/pb/wsclient/State.java | 112 + .../src/pb/wsclient/StatusEnum.java | 51 + .../src/pb/wsclient/StatusProperties.java | 252 +++ .../src/pb/wsclient/SubtitleCaptionMode.java | 59 + .../src/pb/wsclient/SubtitleProperties.java | 251 +++ .../src/pb/wsclient/SwitchAllocation.java | 423 ++++ .../src/pb/wsclient/SwitchProperties.java | 221 ++ .../src/pb/wsclient/SwitchRate.java | 63 + .../src/pb/wsclient/SwitchTransition.java | 87 + .../src/pb/wsclient/System.java | 79 + .../src/pb/wsclient/TimecodeProperties.java | 85 + .../src/pb/wsclient/Transfer.java | 106 + .../src/pb/wsclient/TransferDestination.java | 106 + .../src/pb/wsclient/TriggerProperties.java | 362 +++ .../src/pb/wsclient/UsageTypeEnum.java | 81 + .../src/pb/wsclient/User.java | 326 +++ .../src/pb/wsclient/UserGroup.java | 164 ++ .../src/pb/wsclient/ValidationMode.java | 54 + .../src/pb/wsclient/VideoProperties.java | 217 ++ .../src/pb/wsclient/VpsProperties.java | 218 ++ .../src/user/commons/DownloadableMedia.java | 23 + .../src/user/commons/UploadableMedia.java | 16 + .../src/user/commons/harris/HarrisRecord.java | 72 + .../user/commons/harris/VICFileParser.java | 126 ++ .../src/user/commons/mediatool/MediaInfo.java | 4 + .../remotestore/FtpDirectoryLister.java | 61 +- .../common/harris/test/VICParserTest.java | 28 + .../migrations/20190916130000_ft.sql | 213 -- .../sql/3-EnableJSON.db2 | 7 +- .../sql/5-CreateFTIndex.db2 | 38 - .../src/user/jobengine/db/IItemManager.java | 6 + .../src/user/jobengine/db/ItemManager.java | 57 +- .../src/user/jobengine/db/Store.java | 20 +- .../src/user/jobengine/server/JobRuntime.java | 7 +- .../jobengine/server/JobStepExecutor.java | 2 +- .../user/jobengine/server/IT/AMCTests.java | 268 ++- 212 files changed, 31320 insertions(+), 587 deletions(-) create mode 100644 server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/SupportTSM.java create mode 100644 server/user.jobengine.executors/jobtemplates/generic-archive-checker.xml rename server/user.jobengine.executors/jobtemplates/{nexio-checker.xml => nexio-archive-checker.xml} (88%) create mode 100644 server/user.jobengine.executors/jobtemplates/nexio-missingmaterial-checker.xml delete mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/DownloadableMedia.java create mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/FileCleanupStep.java create mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/FileValidatorStep.java create mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/ForkValidateAndArchiveStep.java delete mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/FrameNumberReaderStep.java create mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/GenericArchiveCheckerStep.java create mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/MetadataPersisterStep.java rename server/user.jobengine.executors/src/user/jobengine/server/steps/{NEXIOCheckerStep.java => NEXIOArchiveCheckerStep.java} (50%) create mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOMissingMaterialCheckerStep.java create mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/PBMissingMaterialCheckerStep.java create mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/TransferStep.java delete mode 100644 server/user.jobengine.executors/src/user/jobengine/server/steps/ValidateAndArchiveForkStep.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ActionScheduleProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunActionEvent.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunData.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunEventTemplate.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJob.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJobList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJobProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunPrimaryEvent.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunPrimaryEventList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunSecondaryEvent.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunSecondaryEventList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunUserObservation.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AspectRatioProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Audio.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AudioTrack.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AudioTracks.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/AutomationStateType.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/CGTransitionEnum.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/CgProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ChangeCounts.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ChannelProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Classification.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Classifications.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Component.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentHealth.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentListContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentTag.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentTagContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Config.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigRequestListContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigType.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/DateTimecodeRange.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/DateTimecodeRangeContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMedia.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstance.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstanceContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstanceKeyContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Direction.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/DolphinCGProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/DolphinGraphicProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EffectProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventClassification.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventClassifications.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventId.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainerDeleted.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainerNonQueried.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdPositionEnum.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdType.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventListContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/EventType.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/FeaturesProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetContiguousListEventsOutput.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetCustomViewRequestContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetCustomViewResponseContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetJobRequestContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetJobsForMediaRequestContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetListEventChangesAuxXMLOutput.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetListEventChangesOutput.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetNonContiguousListEventsOutput.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetScheduledJobRequestContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/GetScheduledJobsForMediaRequestContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/HealthFlag.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/HealthList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Heartbeat.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/HistoryProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/IngestProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Job.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/JobContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/JobList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/JobListContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/JobListProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/JobProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/JobState.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/JobStateDateTimecodeRangeContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/KeepItem.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/KeepItemProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/KeepList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/KeepListProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Languages.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/LastModifiedDateTimeRange.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/LastModifiedDateTimeRangeContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Layers.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ListStreamAllocation.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ListStreamAllocationProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MacroProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Markup.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MarkupItem.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Markups.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Media.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstance.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceKeyContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceUsage.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaKeyContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaListContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaMetadataContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSegmentationProperites.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSet.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSetType.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSimple.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSimpleLoose.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaStreamIngestProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaStreamProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaType.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsage.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageListContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageMediaKeyContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ObjectFactory.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ObjectType.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PBClientTest.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PBSMarinaAPI.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PBSMarinaAPIService.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEvent.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEventEffectProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEventProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistEventXMLConfigurableFields.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEvent.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEventList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEventProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEvent.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEventList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEventProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/PrimaryScheduleProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Priority.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/RecordSourceProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/RedundancyRole.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/RequestProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/RestrictionProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJob.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobList.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobListContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobScheduleProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobStateDateTimecodeRangeContainer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Secondaries.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/SecondaryScheduleProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/SlotEnum.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/StartTimeState.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/State.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/StatusEnum.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/StatusProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/SubtitleCaptionMode.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/SubtitleProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchAllocation.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchRate.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchTransition.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/System.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/TimecodeProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/Transfer.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/TransferDestination.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/TriggerProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/UsageTypeEnum.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/User.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/UserGroup.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/ValidationMode.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/VideoProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/pb/wsclient/VpsProperties.java create mode 100644 server/user.jobengine.osgi.commons/src/user/commons/DownloadableMedia.java create mode 100644 server/user.jobengine.osgi.commons/src/user/commons/UploadableMedia.java create mode 100644 server/user.jobengine.osgi.commons/src/user/commons/harris/HarrisRecord.java create mode 100644 server/user.jobengine.osgi.commons/src/user/commons/harris/VICFileParser.java create mode 100644 server/user.jobengine.osgi.commons/test/user/common/harris/test/VICParserTest.java delete mode 100644 server/user.jobengine.osgi.db/migrations/20190916130000_ft.sql diff --git a/server/-configuration/mediacube-dev-user.properties b/server/-configuration/mediacube-dev-user.properties index bd090ceb..f3078e43 100644 --- a/server/-configuration/mediacube-dev-user.properties +++ b/server/-configuration/mediacube-dev-user.properties @@ -17,4 +17,5 @@ jobengine.nosql.db.password=blobtest #jobengine.master.server=http://localhost:8888 javax.ws.rs.ext.RuntimeDelegate=org.jboss.resteasy.spi.ResteasyProviderFactory -nexio.host=10.10.1.55 \ No newline at end of file +nexio.host=10.10.1.55 +test.simulate.transfer.tsm=true \ No newline at end of file diff --git a/server/-configuration/scheduledjobs.json b/server/-configuration/scheduledjobs.json index 5e048a7b..35fa1db5 100644 --- a/server/-configuration/scheduledjobs.json +++ b/server/-configuration/scheduledjobs.json @@ -1,20 +1,5 @@ {"joblist":[ { - "template": "copy-from-nexio.xml", - "parameters": [ - {"name": "servers", "value": ["NEXIO1", "NEXIO2"], "type": "java.lang.Iterable"}, - - {"name": "globalRetrievePath", "value": "file://isilon.intra.echotv.hu", "type": "java.lang.String"}, - {"name": "localRetrievePath", "value": "/mnt/ISILON", "type": "java.lang.String"}, - {"name": "localHiresPath", "value": "/mediacube/data/lowres/", "type": "java.lang.String" }, - {"name": "globalHiresPath", "value": "L:\\", "type": "java.lang.String" }, - {"name": "localLowresPath", "value": "/mnt/FIXTRANSCODER/OUTPUT", "type": "java.lang.String" }, - {"name": "transcoderAddress", "value": "http://10.10.1.74:65445/api/json/v1/", "type": "java.lang.String"}, - {"name": "transcoderTemplateName", "value": "MAM_proxy", "type": "java.lang.String"}, - {"name": "webPath", "value": "/mediacube/data/lowres/www/video/", "type": "java.lang.String" } - ] - }, - { "active": false, "executeimmediate": false, "cronexpression": "0/10 * * * * ? *", diff --git a/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/Support.java b/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/Support.java index 31743295..c5f9aa44 100644 --- a/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/Support.java +++ b/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/Support.java @@ -50,7 +50,7 @@ public class Support { protected static IItemManager manager = null; @BeforeClass - static public void setUpConnection() { + static public void setUpConnection() throws TSMException { // System.setProperty("jobengine.octopus.rundowns.name", "test_rundowns"); // System.setProperty("jobengine.octopus.stories.name", "test_stories"); // System.setProperty("jobengine.octopus.storyfolders.name", "test_storyfolders"); @@ -73,6 +73,7 @@ public class Support { manager = new ItemManager(); manager.connect(); + } @AfterClass diff --git a/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/SupportTSM.java b/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/SupportTSM.java new file mode 100644 index 00000000..b2f9a270 --- /dev/null +++ b/server/hu.user.mediacube.executors.tests/src/hu/user/mediacube/executors/tests/SupportTSM.java @@ -0,0 +1,62 @@ +package hu.user.mediacube.executors.tests; + +import java.io.FileInputStream; +import java.net.URL; +import java.util.Properties; + +import org.junit.AfterClass; +import org.junit.BeforeClass; +import org.junit.Test; + +import user.tsm.client.TSMBackupFileObject; +import user.tsm.client.TSMClient; +import user.tsm.client.TSMException; + +public class SupportTSM { + + @BeforeClass + static public void setUpConnection() throws Exception { + Properties properties = new Properties(); + URL srcLocation = SupportTSM.class.getProtectionDomain().getCodeSource().getLocation(); + URL location = new URL(srcLocation, "../../-configuration/mediacube-dev-user.properties"); + properties.load(new FileInputStream(location.toURI().getPath().toString())); + System.getProperties().putAll(properties); + TSMClient.SetUpMultithread(); + } + + @AfterClass + static public void tearDownConnection() throws Exception { + TSMClient.CleanUpMultithread(); + } + + @Test + public void testTSMListFiles() throws Exception { + System.out.println(System.getProperty("user.dir")); + TSMClient client = null; + try { + client = new TSMClient("JOBENGINE"); + client.connect("mediacube", "password", "/"); + + TSMBackupFileObject[] objects = null; + try { + objects = client.queryActiveBackupObjects("/JOBENGINE", "/JOBENGINE", "/A*"); + } catch (TSMException e) { + e.printStackTrace(); + } + + if (objects != null) { + System.out.println(objects.length); + + for (TSMBackupFileObject f : objects) + System.out.println(f.getLowLevelName() + " : " + f.getSizeEstimate()); + } + } catch (Exception e) { + System.out.println(e.getMessage()); + } finally { + if (client != null) + client.disconnect(); + } + + } + +} diff --git a/server/user.jobengine.executors/config/config-worker.xml b/server/user.jobengine.executors/config/config-worker.xml index c3d9854d..8dcc0d3a 100644 --- a/server/user.jobengine.executors/config/config-worker.xml +++ b/server/user.jobengine.executors/config/config-worker.xml @@ -2,6 +2,13 @@ - - + + + + + + + + + \ No newline at end of file diff --git a/server/user.jobengine.executors/jobtemplates/fork-validate-and-archive.xml b/server/user.jobengine.executors/jobtemplates/fork-validate-and-archive.xml index d9ad1edc..a612bf78 100644 --- a/server/user.jobengine.executors/jobtemplates/fork-validate-and-archive.xml +++ b/server/user.jobengine.executors/jobtemplates/fork-validate-and-archive.xml @@ -2,19 +2,19 @@ + - - + - + - + diff --git a/server/user.jobengine.executors/jobtemplates/generic-archive-checker.xml b/server/user.jobengine.executors/jobtemplates/generic-archive-checker.xml new file mode 100644 index 00000000..1252a67b --- /dev/null +++ b/server/user.jobengine.executors/jobtemplates/generic-archive-checker.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/server/user.jobengine.executors/jobtemplates/nexio-checker.xml b/server/user.jobengine.executors/jobtemplates/nexio-archive-checker.xml similarity index 88% rename from server/user.jobengine.executors/jobtemplates/nexio-checker.xml rename to server/user.jobengine.executors/jobtemplates/nexio-archive-checker.xml index a2d4d047..6d9240b2 100644 --- a/server/user.jobengine.executors/jobtemplates/nexio-checker.xml +++ b/server/user.jobengine.executors/jobtemplates/nexio-archive-checker.xml @@ -9,7 +9,7 @@ - + diff --git a/server/user.jobengine.executors/jobtemplates/nexio-missingmaterial-checker.xml b/server/user.jobengine.executors/jobtemplates/nexio-missingmaterial-checker.xml new file mode 100644 index 00000000..19cddfec --- /dev/null +++ b/server/user.jobengine.executors/jobtemplates/nexio-missingmaterial-checker.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/server/user.jobengine.executors/jobtemplates/validate-and-archive.xml b/server/user.jobengine.executors/jobtemplates/validate-and-archive.xml index 7344ef50..099aeb1a 100644 --- a/server/user.jobengine.executors/jobtemplates/validate-and-archive.xml +++ b/server/user.jobengine.executors/jobtemplates/validate-and-archive.xml @@ -1,89 +1,84 @@ - + - - + - - - - - + + + + + - - - - + - + - + + + + + + + + - + - + - + - + - + - + - + + + + + + + - - - - - - + - - - - + - - - - - - + - + - + - + - \ No newline at end of file diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/DownloadableMedia.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/DownloadableMedia.java deleted file mode 100644 index a42dec19..00000000 --- a/server/user.jobengine.executors/src/user/jobengine/server/steps/DownloadableMedia.java +++ /dev/null @@ -1,7 +0,0 @@ -package user.jobengine.server.steps; - -import com.ibm.nosql.json.api.BasicDBObject; - -public class DownloadableMedia extends BasicDBObject { - -} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/EscortFiles.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/EscortFiles.java index 0662e64f..6cb3dfb3 100644 --- a/server/user.jobengine.executors/src/user/jobengine/server/steps/EscortFiles.java +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/EscortFiles.java @@ -32,6 +32,8 @@ import org.w3c.dom.DOMImplementation; import org.w3c.dom.Document; import org.w3c.dom.Element; +import com.ibm.nosql.json.util.JSON; + import user.commons.CalendarUtils; import user.commons.StoreUri; import user.commons.remotestore.FtpDirectoryLister; @@ -73,6 +75,15 @@ public class EscortFiles { Files.write(metadataPath, metadata.getBytes()); } + public static boolean createMetadataIfNotExists(String filePath, String fileName, String metadata) throws IOException { + boolean result = false; + if (!EscortFiles.isMetadataExists(filePath, fileName)) { + EscortFiles.createMetadata(filePath, fileName, metadata); + result = true; + } + return result; + } + public static void createMorpheusXML(String filePath, String fileName, String content) throws IOException { ensureUNCFolder(filePath, STATUSFOLDER); Path xmlPath = Paths.get(filePath, fileName); @@ -126,6 +137,19 @@ public class EscortFiles { Files.createFile(killDatePath); } + @SuppressWarnings("unchecked") + public static T decode(Path escortFile) { + T result = null; + try { + byte[] bytes = Files.readAllBytes(escortFile); + String content = new String(bytes); + result = (T) JSON.parse(content); + } catch (Exception e) { + logger.error(e.getMessage()); + } + return result; + } + public static void ensureUNCFolder(Path filePath) throws IOException { File folder = filePath.toFile(); if (!folder.exists() || !folder.isDirectory()) { diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/FileCleanupStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/FileCleanupStep.java new file mode 100644 index 00000000..7fc3440a --- /dev/null +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/FileCleanupStep.java @@ -0,0 +1,38 @@ +package user.jobengine.server.steps; + +import java.nio.file.Path; +import java.nio.file.Paths; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import user.commons.StoreUri; + +public class FileCleanupStep extends JobStep { + private static final Logger logger = LogManager.getLogger(); + + private void deleteSilently(Path file) { + try { + file.toFile().delete(); + } catch (Exception e) { + logger.error("Unable to delete {}", file.toAbsolutePath().toString()); + } + } + + @StepEntry + public Object[] execute(StoreUri sourceStoreUri, String fileName, String escortFile) throws Exception { + try { + Path filePath = Paths.get(sourceStoreUri.toString(true), fileName); + deleteSilently(filePath); + if (escortFile != null) { + Path escortFilePath = Paths.get(escortFile); + deleteSilently(escortFilePath); + } + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + return null; + } + +} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/FileValidatorStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/FileValidatorStep.java new file mode 100644 index 00000000..b5cbd158 --- /dev/null +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/FileValidatorStep.java @@ -0,0 +1,73 @@ +package user.jobengine.server.steps; + +import java.io.FileNotFoundException; +import java.nio.file.Path; +import java.nio.file.Paths; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import user.commons.StoreUri; +import user.commons.mediatool.MediaInfo; +import user.commons.remotestore.RemoteStoreProtocol; + +public class FileValidatorStep extends JobStep { + private static final Logger logger = LogManager.getLogger(); + + private void deleteSilently(Path file) { + try { + file.toFile().delete(); + } catch (Exception e) { + logger.error("Unable to delete {}", file.toAbsolutePath().toString()); + } + } + + @StepEntry + public Object[] execute(StoreUri sourceStoreUri, String fileName, long expectedFrameNumber, long expectedSize, String escortFile) throws Exception { + if (!RemoteStoreProtocol.LOCAL.equals(sourceStoreUri.getProtocol())) + throw new Exception("Store URI protocol must be local."); + Path filePath = Paths.get(sourceStoreUri.toString(true), fileName); + if (!filePath.toFile().exists()) + throw new FileNotFoundException("File not exists: " + filePath.toString()); + + if (expectedFrameNumber > 0) + validateFrameNumber(filePath, expectedFrameNumber, escortFile); + if (expectedSize > 0) + validateSize(filePath, expectedSize, escortFile); + return null; + } + + private void validateFrameNumber(Path filePath, long expectedFrameNumber, String escortFile) throws Exception { + MediaInfo mi = null; + try { + mi = new MediaInfo(filePath); + mi.process(); + long frames = mi.getFrames(); + if (frames != expectedFrameNumber) { + deleteSilently(filePath); + if (escortFile != null) { + Path escortFilePath = Paths.get(escortFile); + deleteSilently(escortFilePath); + } + throw new Exception("Length mismatch. Expected: " + expectedFrameNumber + ", found: " + frames); + } + + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + } + + private void validateSize(Path filePath, long expectedSize, String escortFile) throws Exception { + try { + long length = filePath.toFile().length(); + if (length != expectedSize) + throw new Exception("Size mismatch. Expected: " + expectedSize + ", found: " + length); + + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + } + +} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/ForkValidateAndArchiveStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/ForkValidateAndArchiveStep.java new file mode 100644 index 00000000..2ac8fc82 --- /dev/null +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/ForkValidateAndArchiveStep.java @@ -0,0 +1,114 @@ +package user.jobengine.server.steps; + +import java.io.IOException; +import java.nio.file.DirectoryStream; +import java.nio.file.Files; +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.HashMap; +import java.util.Map; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import user.commons.DownloadableMedia; +import user.commons.StoreUri; +import user.commons.remotestore.RemoteStoreProtocol; +import user.jobengine.db.Store; +import user.jobengine.server.IJobRuntime; + +public class ForkValidateAndArchiveStep extends JobStep { + private static final Logger logger = LogManager.getLogger(); + + @StepEntry + public Object[] execute(String storeName, String template, int limit) { + DirectoryStream directoryStream = null; + int count = limit; + try { + Store store = getManager().getStore(storeName); + if (store == null) + throw new NullPointerException("Store not exists: " + storeName); + StoreUri sourceStoreUri = store.getTargetStoreUri(RemoteStoreProtocol.LOCAL); + if (sourceStoreUri == null) + throw new NullPointerException("LOCAL store URI not available on: " + storeName); + + Store systemStore = getManager().getSystemStore(false); + StoreUri tsmStoreUri = systemStore.getTargetStoreUri(RemoteStoreProtocol.TSM); + + if (getJobRuntime().forkPrepare()) { + Path path = Paths.get(sourceStoreUri.toString(true), ".STATUS"); + directoryStream = Files.newDirectoryStream(path); + if (directoryStream != null) { + for (Path escortFile : directoryStream) { + + if (getJobRuntime().isWaitingCancel()) { + cancel(); + break; + } + + if (processPathItem(sourceStoreUri, tsmStoreUri, template, escortFile)) + count--; + + if (count == 0) + break; + } + } + + if (count == limit) + getJobRuntime().cancelForkPrepare(); + else + getJobRuntime().forkWaitComplete(); + } + + setProgress(100); + } catch (Exception e) { + logger.error(getSessionMarker(), e.getMessage()); + } finally { + if (directoryStream != null) { + try { + directoryStream.close(); + } catch (IOException e) { + } + } + } + + return null; + } + + private boolean processPathItem(StoreUri tempStoreUri, StoreUri tsmStoreUri, String template, Path escortFile) throws IOException { + if (escortFile.toFile().isDirectory()) + return false; + + String fileName = escortFile.getFileName().toString(); + //minimum 3 karakter: STORENAME.FILENAME.MXF.JSON + long dotCount = fileName.chars().filter(ch -> ch == '.').count(); + if (dotCount < 3) + return false; + + try { + DownloadableMedia downloadable = EscortFiles.decode(escortFile); + logger.info("Starting {}", template); + + StoreUri sourceStoreUri = getManager().getStoreUri(downloadable.getLong("storeUriId")); + + Map parameters = new HashMap<>(); + parameters.put("sourceStoreUri", sourceStoreUri); + parameters.put("tempStoreUri", tempStoreUri); + parameters.put("tsmStoreUri", tsmStoreUri); + parameters.put("sourceFileName", downloadable.getString("fileName")); + parameters.put("tsmFileName", downloadable.getString("fileName")); + parameters.put("expectedFrameNumber", downloadable.getLong("frames")); + parameters.put("escortFile", escortFile.toAbsolutePath().toString()); + + IJobRuntime child = getEngine().submit(template, "Archiválás", parameters); + if (child == null) + throw new Exception("Submit error."); + + } catch (Exception e) { + logger.error(e.getMessage()); + return false; + } + + return true; + } +} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/FrameNumberReaderStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/FrameNumberReaderStep.java deleted file mode 100644 index 031a80b6..00000000 --- a/server/user.jobengine.executors/src/user/jobengine/server/steps/FrameNumberReaderStep.java +++ /dev/null @@ -1,36 +0,0 @@ -package user.jobengine.server.steps; - -import java.io.FileNotFoundException; -import java.nio.file.Path; -import java.nio.file.Paths; -import java.util.Arrays; - -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; - -import user.commons.mediatool.MediaInfo; -import user.jobengine.server.steps.JobStep; -import user.jobengine.server.steps.StepEntry; - -public class FrameNumberReaderStep extends JobStep { - private static final Logger logger = LogManager.getLogger(); - - @StepEntry - public Object[] execute(String sourcePath, String fileName) throws Exception { - Object result[] = null; - Path filePath = Paths.get(sourcePath, fileName); - MediaInfo mi = new MediaInfo(filePath); - try { - if (!filePath.toFile().exists()) - throw new FileNotFoundException("File not exists: " + filePath.toString()); - mi.process(); - long frames = mi.getFrames(); - result = Arrays.asList(frames).toArray(); - } catch (Exception e) { - logger.error(e.getMessage()); - throw e; - } - return result; - } - -} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/GenericArchiveCheckerStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/GenericArchiveCheckerStep.java new file mode 100644 index 00000000..8fd14dc8 --- /dev/null +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/GenericArchiveCheckerStep.java @@ -0,0 +1,91 @@ +package user.jobengine.server.steps; + +import java.io.IOException; +import java.sql.Timestamp; +import java.util.List; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import user.commons.DownloadableMedia; +import user.commons.RemoteFile; +import user.commons.StoreUri; +import user.commons.remotestore.RemoteStoreProtocol; +import user.jobengine.db.Media; +import user.jobengine.db.Store; + +public class GenericArchiveCheckerStep extends JobStep { + private static final String DOT_MXF = ".MXF"; + private static final Logger logger = LogManager.getLogger(); + + private boolean check(Timestamp modified, Timestamp created, Media media) { + boolean create = media == null; + create |= create || !media.getModified().equals(modified); + create |= create || !media.getCreated().equals(created); + return create; + } + + @StepEntry + public Object[] execute(String storeName, String protocol, String wildCard, String outputPath, int limit) throws Exception { + Store store = getManager().getStore(storeName); + if (store == null) + throw new NullPointerException("Store not available: " + storeName); + + StoreUri storeUri = store.getSourceStoreUri(Enum.valueOf(RemoteStoreProtocol.class, protocol)); + if (storeUri == null) + throw new NullPointerException("StoreUri not available on " + storeName + " for protocol " + protocol); + + int count = limit; + + try { + //az FTP store nem tamogatja az asszinkron listazast + List remoteFiles = storeUri.getRemoteFiles(wildCard); + for (RemoteFile remoteFile : remoteFiles) { + if (processClip(storeName, remoteFile, storeUri.getId(), outputPath)) + count--; + + if (count == 0) { + logger.info("Limit reached: {}", limit); + break; + } + + } + } catch (Exception e) { + throw e; + } finally { + } + + return null; + } + + private boolean processClip(String storeName, RemoteFile remoteFile, long storeUriId, String outputPath) { + boolean result = false; + String title = remoteFile.getName(); + Timestamp modified = Timestamp.from(remoteFile.getModify().toInstant()); + Timestamp created = Timestamp.from(remoteFile.getCreated().toInstant()); + + //TODO a masolas alatt allo klippeket kiszurni + if (title.contains(".")) + title = title.substring(0, title.indexOf(".")); + long size = remoteFile.getSize(); + + Media media = getManager().getMedia(title); + + boolean createEscort = check(modified, created, media); + + if (createEscort) { + long mediaId = media == null ? 0 : media.getId(); + String fileName = title + DOT_MXF; + DownloadableMedia archive = DownloadableMedia.create(title, fileName, modified, created, 0, size, storeUriId, mediaId); + String escortFileName = storeName + "." + remoteFile.getName(); + try { + result = EscortFiles.createMetadataIfNotExists(outputPath, escortFileName, archive.toPrettyString("")); + } catch (IOException e) { + logger.error("Escort file creation error.", e); + } + } + + return result; + } + +} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/MediaToolStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/MediaToolStep.java index ad6b5136..c0c56f68 100644 --- a/server/user.jobengine.executors/src/user/jobengine/server/steps/MediaToolStep.java +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/MediaToolStep.java @@ -18,8 +18,9 @@ public class MediaToolStep extends JobStep { public Object[] execute(ArchiveItem archiveItem, Media mediaCubeMedia) throws Exception { marker = getSessionMarker(); - if (mediaCubeMedia.getLength() > 0) - return null; + //TODO ez most minden esetben ujranezi + // if (mediaCubeMedia.getLength() > 0) + // return null; Path filePath = Paths.get(archiveItem.getMediaFile()); MediaInfo mi = new MediaInfo(filePath); @@ -33,7 +34,6 @@ public class MediaToolStep extends JobStep { } catch (Exception e) { logger.catching(e); logger.error(marker, "A '{}' média analizálása sikertelen. A rendszer üzenete: {}", filePath, e.getMessage()); - throw e; } return null; } diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/MetadataPersisterStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/MetadataPersisterStep.java new file mode 100644 index 00000000..769c5df6 --- /dev/null +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/MetadataPersisterStep.java @@ -0,0 +1,57 @@ +package user.jobengine.server.steps; + +import java.nio.file.Path; +import java.nio.file.Paths; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import user.commons.DownloadableMedia; +import user.jobengine.db.IItemManager; +import user.jobengine.db.Item; +import user.jobengine.db.Media; +import user.jobengine.db.MediaFile; + +public class MetadataPersisterStep extends JobStep { + private static final String GENERIC = "Generic"; + private static final Logger logger = LogManager.getLogger(); + + @StepEntry + public Object[] execute(String escortFile) throws Exception { + try { + + Path escortFilePath = Paths.get(escortFile); + //ha nem ment at a letoltott file az ellenorzesen, akkor már torolve lett + if (escortFilePath.toFile().exists()) { + String escortFileName = escortFilePath.getFileName().toString(); + String storeName = escortFileName.substring(0, escortFileName.indexOf(".")); + DownloadableMedia downloadable = EscortFiles.decode(escortFilePath); + String title = downloadable.getString("title"); + String fileName = downloadable.getString("fileName"); + String fileTypeName = fileName.substring(fileName.lastIndexOf(".") + 1).toUpperCase(); + + IItemManager manager = getManager(); + + //ez elszallhat, mert nincs filetype vagy store + MediaFile mediaFile = manager.createMediaFile(fileName, fileTypeName, storeName); + //ez elszallhat, mert nincs itemtype + Item item = manager.createItem(GENERIC, title, storeName, null); + //ez elszallhat, mert nincs itemtype + Media media = manager.createMedia(GENERIC, title, storeName, null); + + //TODO megoldani egy tranzakcioban + item.add(); + media.setItemId(item.getId()); + media.add(); + mediaFile.setMediaId(media.getId()); + mediaFile.add(); + + } + } catch (Exception e) { + logger.error(e.getMessage()); + throw e; + } + return null; + } + +} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOCheckerStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOArchiveCheckerStep.java similarity index 50% rename from server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOCheckerStep.java rename to server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOArchiveCheckerStep.java index c7ac4c94..f6b6a5ae 100644 --- a/server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOCheckerStep.java +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOArchiveCheckerStep.java @@ -7,6 +7,7 @@ import java.util.Iterator; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; +import user.commons.DownloadableMedia; import user.commons.StoreUri; import user.commons.nexio.api.Clip; import user.commons.nexio.api.ClipNotFoundException; @@ -15,31 +16,23 @@ import user.commons.nexio.api.Mediabase; import user.commons.nexio.server.protocol.ProtocolException; import user.commons.remotestore.RemoteStoreProtocol; import user.jobengine.db.Media; -import user.jobengine.db.Store; -public class NEXIOCheckerStep extends JobStep { +public class NEXIOArchiveCheckerStep extends JobStep { private static final String DOT_MXF = ".MXF"; private static final Logger logger = LogManager.getLogger(); - private DownloadableMedia createArchive(String title, Timestamp modified, Timestamp created, int duration) { - DownloadableMedia archive = new DownloadableMedia(); - archive.append("title", title); - archive.append("fileName", title + DOT_MXF); - archive.append("modified", modified); - archive.append("created", created); - return archive; + private boolean check(Timestamp modified, Timestamp created, int duration, Media media) { + boolean create = media == null; + create |= create || !media.getModified().equals(modified); + create |= create || !media.getCreated().equals(created); + //a regi moziknal nincs hossz mentve + create |= create || (media.getLength() > 0 && media.getLength() != duration); + return create; } @StepEntry public Object[] execute(String storeName, String outputPath, int limit) throws Exception { - Store store = getManager().getStore(storeName); - if (store == null) - throw new NullPointerException("Store not available: " + storeName); - - StoreUri storeUri = store.getSourceStoreUri(RemoteStoreProtocol.NEXIO); - if (storeUri == null) - throw new NullPointerException("NEXIO StoreUri not available on: " + storeName); - + StoreUri storeUri = getManager().getStoreUri(storeName, RemoteStoreProtocol.NEXIO); Controller controller = null; try { @@ -50,7 +43,7 @@ public class NEXIOCheckerStep extends JobStep { controller.connect(); Mediabase mediabase = controller.getMediabase(); Iterator clips = mediabase.getClips(); - processClips(storeName, outputPath, limit, clips); + processClips(storeName, storeUri.getId(), outputPath, limit, clips); } catch (Exception e) { logger.error(getSessionMarker(), e.getMessage()); throw e; @@ -62,7 +55,7 @@ public class NEXIOCheckerStep extends JobStep { return null; } - private void processClips(String storeName, String outputPath, int limit, Iterator clips) + private void processClips(String storeName, long storeUriId, String outputPath, int limit, Iterator clips) throws ClipNotFoundException, IOException, ProtocolException { int count = limit; while (clips.hasNext()) { @@ -76,22 +69,22 @@ public class NEXIOCheckerStep extends JobStep { String title = clip.getXid().get(); Timestamp modified = Timestamp.from(clip.getModifiedTimestamp().toInstant()); Timestamp created = Timestamp.from(clip.getRecordDateTimestamp().toInstant()); - int duration = clip.getDuration(); + int frames = clip.getDuration(); //TODO a rogzites alatt allo klippeket kiszurni Media media = getManager().getMedia(title); - boolean create = media == null; - create |= create || !media.getModified().equals(modified); - create |= create || !media.getCreated().equals(created); - //a regi moziknal nincs hossz mentve - create |= create || (media.getLength() > 0 && media.getLength() != duration); + boolean createEscort = check(modified, created, frames, media); - if (create) { - DownloadableMedia archive = createArchive(title, modified, created, duration); + if (createEscort) { + long mediaId = media == null ? 0 : media.getId(); + String fileName = title + DOT_MXF; + DownloadableMedia downloadable = DownloadableMedia.create(title, fileName, modified, created, frames, 0, storeUriId, mediaId); //letezik : mar hozzadva - if (tryAdd(storeName, outputPath, archive, media)) + + String escortFileName = storeName + "." + downloadable.getString("fileName"); + if (EscortFiles.createMetadataIfNotExists(outputPath, escortFileName, downloadable.toPrettyString(""))) count--; } @@ -104,16 +97,4 @@ public class NEXIOCheckerStep extends JobStep { } } - private boolean tryAdd(String storeName, String outputPath, DownloadableMedia archive, Media media) throws IOException { - boolean result = false; - String fileName = storeName + "." + archive.getString("fileName"); - - if (!EscortFiles.isMetadataExists(outputPath, fileName)) { - String metadata = archive.toPrettyString(""); - EscortFiles.createMetadata(outputPath, fileName, metadata); - result = true; - } - return result; - } - } diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOMissingMaterialCheckerStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOMissingMaterialCheckerStep.java new file mode 100644 index 00000000..ff4d2a07 --- /dev/null +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/NEXIOMissingMaterialCheckerStep.java @@ -0,0 +1,84 @@ +package user.jobengine.server.steps; + +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.List; + +import org.apache.commons.lang.StringUtils; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import user.commons.StoreUri; +import user.commons.UploadableMedia; +import user.commons.harris.HarrisRecord; +import user.commons.harris.VICFileParser; +import user.commons.remotestore.RemoteStoreProtocol; +import user.jobengine.db.Media; + +public class NEXIOMissingMaterialCheckerStep extends JobStep { + private static final Logger logger = LogManager.getLogger(); + private static final String lineFormat = System.getProperty("harris.vic.lineformat", + "A TTTTTTTT LLLLLLLLLLL MMMMMMMMMMMMMMMMMMMMMMM X DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"); + private static final String validTypeCodes = System.getProperty("harris.vic.validtypecodes", "SPACE,E"); + private static final String appendExtension = System.getProperty("harris.vic.appendextension", ".mxf"); + + @StepEntry + public Object[] execute(String[] vicFiles, String escortStoreName, String targetStoreName, String targetProtocol) throws Exception { + StoreUri escortStoreUri = null; + try { + escortStoreUri = getManager().getStoreUri(escortStoreName, RemoteStoreProtocol.LOCAL); + StoreUri targetStoreUri = getManager().getStoreUri(targetStoreName, Enum.valueOf(RemoteStoreProtocol.class, targetProtocol)); + List records = null; + for (String vicFile : vicFiles) { + Path vicFilePath = Paths.get(vicFile); + VICFileParser parser = new VICFileParser(vicFilePath, lineFormat, validTypeCodes); + if (records == null) + records = parser.getRecords(); + else + records.addAll(parser.getRecords()); + } + + int i = 0; + for (HarrisRecord record : records) { + processRecord(record, targetStoreName, targetStoreUri, escortStoreUri); + i++; + int progress = i * 100 / records.size(); + setProgress(progress); + } + + } catch (Exception e) { + logger.error(getSessionMarker(), e.getMessage()); + throw e; + } finally { + if (escortStoreUri != null) + escortStoreUri.cleanUp(); + } + + return null; + } + + private void processRecord(HarrisRecord record, String targetStoreName, StoreUri targetStoreUri, StoreUri escortStoreUri) { + Media media = getManager().getMedia(record.getFileName()); + + String fileName = record.getFileName(); + if (StringUtils.isNotBlank(appendExtension)) + fileName += appendExtension; + + if (media == null) { + logger.error(getSessionMarker(), "File {} not archived yet", fileName); + return; + } + + UploadableMedia uploadable = UploadableMedia.create(record.getFileName(), fileName, targetStoreUri.getId(), media.getId()); + String escortFileName = targetStoreName + "." + uploadable.getString("fileName"); + String outputPath = null; + try { + outputPath = Paths.get(escortStoreUri.toString(true)).toString(); + EscortFiles.createMetadataIfNotExists(outputPath, escortFileName, uploadable.toPrettyString("")); + } catch (Exception e) { + logger.error("Can't create escort file {}", Paths.get(outputPath.toString(), escortFileName)); + } + + } + +} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/PBMissingMaterialCheckerStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/PBMissingMaterialCheckerStep.java new file mode 100644 index 00000000..b5249063 --- /dev/null +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/PBMissingMaterialCheckerStep.java @@ -0,0 +1,74 @@ +package user.jobengine.server.steps; + +import java.nio.file.Path; +import java.nio.file.Paths; +import java.util.List; + +import org.apache.commons.lang.StringUtils; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import user.commons.StoreUri; +import user.commons.UploadableMedia; +import user.commons.harris.HarrisRecord; +import user.commons.harris.VICFileParser; +import user.commons.remotestore.RemoteStoreProtocol; +import user.jobengine.db.Media; + +public class PBMissingMaterialCheckerStep extends JobStep { + private static final Logger logger = LogManager.getLogger(); + private static final String lineFormat = System.getProperty("harris.vic.lineformat", + "A TTTTTTTT LLLLLLLLLLL MMMMMMMMMMMMMMMMMMMMMMM X DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"); + private static final String validTypeCodes = System.getProperty("harris.vic.validtypecodes", "SPACE,E"); + private static final String appendExtension = System.getProperty("harris.vic.appendextension", ".mxf"); + + @StepEntry + public Object[] execute(String[] vicFiles, String escortStoreName, String targetStoreName, String targetProtocol) throws Exception { + StoreUri escortStoreUri = null; + try { + escortStoreUri = getManager().getStoreUri(escortStoreName, RemoteStoreProtocol.LOCAL); + StoreUri targetStoreUri = getManager().getStoreUri(targetStoreName, Enum.valueOf(RemoteStoreProtocol.class, targetProtocol)); + for (String vicFile : vicFiles) { + Path vicFilePath = Paths.get(vicFile); + VICFileParser parser = new VICFileParser(vicFilePath, lineFormat, validTypeCodes); + List records = parser.getRecords(); + for (HarrisRecord record : records) + processRecord(record, targetStoreName, targetStoreUri, escortStoreUri); + + } + } catch (Exception e) { + logger.error(getSessionMarker(), e.getMessage()); + throw e; + } finally { + if (escortStoreUri != null) + escortStoreUri.cleanUp(); + } + + return null; + } + + private void processRecord(HarrisRecord record, String targetStoreName, StoreUri targetStoreUri, StoreUri escortStoreUri) { + Media media = getManager().getMedia(record.getFileName()); + + String fileName = record.getFileName(); + if (StringUtils.isNotBlank(appendExtension)) + fileName += appendExtension; + + if (media == null) { + logger.error(getSessionMarker(), "File {} not archived yet", fileName); + return; + } + + UploadableMedia uploadable = UploadableMedia.create(record.getFileName(), fileName, targetStoreUri.getId(), media.getId()); + String escortFileName = targetStoreName + "." + uploadable.getString("fileName"); + String outputPath = null; + try { + outputPath = Paths.get(escortStoreUri.toString(true)).toString(); + EscortFiles.createMetadataIfNotExists(outputPath, escortFileName, uploadable.toPrettyString("")); + } catch (Exception e) { + logger.error("Can't create escort file {}", Paths.get(outputPath.toString(), escortFileName)); + } + + } + +} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/TransferStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/TransferStep.java new file mode 100644 index 00000000..eb7ce500 --- /dev/null +++ b/server/user.jobengine.executors/src/user/jobengine/server/steps/TransferStep.java @@ -0,0 +1,33 @@ +package user.jobengine.server.steps; + +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +import user.commons.StoreUri; +import user.commons.remotestore.RemoteStoreProtocol; + +public class TransferStep extends JobStep { + private static final Logger logger = LogManager.getLogger(); + private static final boolean symulateTransferToTSM = Boolean.parseBoolean(System.getProperty("test.simulate.transfer.tsm", "false")); + + @StepEntry + public Object[] execute(StoreUri sourceStoreUri, String sourceFileName, StoreUri targetStoreUri, String targetFileName) throws Exception { + try { + logger.info("Transfering {} from {} to {}", sourceFileName, sourceStoreUri, targetStoreUri); + if (!(symulateTransferToTSM && RemoteStoreProtocol.TSM.equals(targetStoreUri.getProtocol()))) { + sourceStoreUri.addProgressListener(e -> setProgress(e.getProgress())); + sourceStoreUri.transferFrom(targetStoreUri, sourceFileName, targetFileName); + } + logger.info("Transfer completed"); + } catch (Exception e) { + logger.catching(e); + throw e; + } finally { + if (sourceStoreUri != null) + sourceStoreUri.cleanUp(); + if (targetStoreUri != null) + targetStoreUri.cleanUp(); + } + return null; + } +} diff --git a/server/user.jobengine.executors/src/user/jobengine/server/steps/ValidateAndArchiveForkStep.java b/server/user.jobengine.executors/src/user/jobengine/server/steps/ValidateAndArchiveForkStep.java deleted file mode 100644 index cd55002a..00000000 --- a/server/user.jobengine.executors/src/user/jobengine/server/steps/ValidateAndArchiveForkStep.java +++ /dev/null @@ -1,104 +0,0 @@ -package user.jobengine.server.steps; - -import java.io.IOException; -import java.nio.file.DirectoryStream; -import java.nio.file.Files; -import java.nio.file.Path; -import java.nio.file.Paths; - -import org.apache.logging.log4j.LogManager; -import org.apache.logging.log4j.Logger; - -import com.ibm.nosql.json.util.JSON; - -import user.jobengine.db.ArchivedMedia; -import user.jobengine.server.IJobEngine; -import user.jobengine.server.IJobRuntime; - -public class ValidateAndArchiveForkStep extends JobStep { - private static final Logger logger = LogManager.getLogger(); - private static final String JOB_TEMPLATE = "validate-and-archive.xml"; - - @StepEntry - public Object[] execute(String template, String sourcePath, int limit) { - DirectoryStream directoryStream = null; - int count = limit; - try { - if (getJobRuntime().forkPrepare()) { - directoryStream = Files.newDirectoryStream(Paths.get(sourcePath)); - if (directoryStream != null) { - for (Path p : directoryStream) { - - if (getJobRuntime().isWaitingCancel()) { - cancel(); - break; - } - - if (processPathItem(template, p)) - count--; - - if (count == 0) - break; - } - } - - getJobRuntime().forkWaitComplete(); - } - - setProgress(100); - } catch (Exception e) { - logger.error(getSessionMarker(), e.getMessage()); - } finally { - if (directoryStream != null) { - try { - directoryStream.close(); - } catch (IOException e) { - } - } - } - - return null; - } - - private boolean processPathItem(String template, Path escortFile) throws IOException { - if (escortFile.toFile().isDirectory()) - return false; - - String fileName = escortFile.getFileName().toString(); - //minimum 3 karakter: STORENAME.FILENAME.MXF.JSON - long dotCount = fileName.chars().filter(ch -> ch == '.').count(); - if (dotCount < 4) - return false; - - byte[] bytes = Files.readAllBytes(escortFile); - String content = new String(bytes); - if (content != null) { - try { - DownloadableMedia archive = (DownloadableMedia) JSON.parse(content); - logger.info("Starting {}", template); - } catch (Exception e) { - logger.error(e.getMessage()); - } - - } - - return true; - } - - public void submit(ArchivedMedia archivedMedia, String recipient, String houseId, String targetPathType, IJobEngine jobEngine, IJobRuntime jobRuntime) - throws Exception { - // try { - // ScheduledJob scheduledJob = jobEngine.getScheduledJob(CHILD_TEMPLATE); - // Map parameters = scheduledJob.getJobParameters(); - // parameters.put(ARCHIVEDMEDIA, archivedMedia); - // parameters.put(HOUSEID, houseId); - // parameters.put(RECIPIENT, recipient); - // parameters.put(TARGET_PATH_TYPE, targetPathType); - // IJobRuntime child = jobEngine.submit(jobRuntime, null, CHILD_TEMPLATE, String.format("Visszatöltés %s részére", recipient), parameters); - // ((MediaCubeMarker) child.getMarker()).setTo(recipient); - // } catch (Exception e) { - // logger.catching(e); - // logger.error(marker, "Hiba a kötegelt visszatöltésben. A rendszer üzenete: {}", e.getMessage()); - // } - } -} diff --git a/server/user.jobengine.osgi.commons/META-INF/MANIFEST.MF b/server/user.jobengine.osgi.commons/META-INF/MANIFEST.MF index b04cd544..8237d82e 100644 --- a/server/user.jobengine.osgi.commons/META-INF/MANIFEST.MF +++ b/server/user.jobengine.osgi.commons/META-INF/MANIFEST.MF @@ -24,6 +24,7 @@ Export-Package: user.commons, user.commons.cluster, user.commons.config, user.commons.ftp, + user.commons.harris, user.commons.logging, user.commons.mediatool, user.commons.morpheus, diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ActionScheduleProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ActionScheduleProperties.java new file mode 100644 index 00000000..05a18c64 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ActionScheduleProperties.java @@ -0,0 +1,91 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * Scheduling properties for an action. + * + *

Java class for actionScheduleProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="actionScheduleProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="startType" use="required" type="{}scheduledStartType" />
+ *       <attribute name="startOffset" type="{}dateTimecodeOrTimecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "actionScheduleProperties") +@XmlSeeAlso({ + PrimaryScheduleProperties.class +}) +public class ActionScheduleProperties { + + @XmlAttribute(name = "startType", required = true) + protected String startType; + @XmlAttribute(name = "startOffset") + protected String startOffset; + + /** + * Gets the value of the startType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStartType() { + return startType; + } + + /** + * Sets the value of the startType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartType(String value) { + this.startType = value; + } + + /** + * Gets the value of the startOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStartOffset() { + return startOffset; + } + + /** + * Sets the value of the startOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartOffset(String value) { + this.startOffset = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunActionEvent.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunActionEvent.java new file mode 100644 index 00000000..a15e8926 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunActionEvent.java @@ -0,0 +1,93 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * AsRun Action Event + * + *

Java class for asRunActionEvent complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunActionEvent">
+ *   <complexContent>
+ *     <extension base="{}asRunEventTemplate">
+ *       <sequence>
+ *         <element name="properties" type="{}playlistActionEventProperties"/>
+ *         <element name="childEvents" type="{}asRunSecondaryEventList" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunActionEvent", propOrder = { + "properties", + "childEvents" +}) +public class AsRunActionEvent + extends AsRunEventTemplate +{ + + @XmlElement(required = true) + protected PlaylistActionEventProperties properties; + protected AsRunSecondaryEventList childEvents; + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link PlaylistActionEventProperties } + * + */ + public PlaylistActionEventProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link PlaylistActionEventProperties } + * + */ + public void setProperties(PlaylistActionEventProperties value) { + this.properties = value; + } + + /** + * Gets the value of the childEvents property. + * + * @return + * possible object is + * {@link AsRunSecondaryEventList } + * + */ + public AsRunSecondaryEventList getChildEvents() { + return childEvents; + } + + /** + * Sets the value of the childEvents property. + * + * @param value + * allowed object is + * {@link AsRunSecondaryEventList } + * + */ + public void setChildEvents(AsRunSecondaryEventList value) { + this.childEvents = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunData.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunData.java new file mode 100644 index 00000000..9ac6f23f --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunData.java @@ -0,0 +1,823 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * AsRun related values + * + *

Java class for asRunData complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunData">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="errors" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="error" maxOccurs="unbounded" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="name" use="required">
+ *                             <simpleType>
+ *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                 <enumeration value="Lost OnAir Job"/>
+ *                                 <enumeration value="Missing Media"/>
+ *                                 <enumeration value="Lost XPoint Path"/>
+ *                                 <enumeration value="Media Stream Error"/>
+ *                                 <enumeration value="Macro Not Found"/>
+ *                                 <enumeration value="Invalid Trigger Parameter"/>
+ *                                 <enumeration value="Lost Switch Effect"/>
+ *                                 <enumeration value="Slave Processor Error"/>
+ *                                 <enumeration value="Media Stream Error"/>
+ *                                 <enumeration value="Media Already Exists"/>
+ *                                 <enumeration value="Dependency Error"/>
+ *                                 <enumeration value="Cue Timeout"/>
+ *                                 <enumeration value="End Timeout"/>
+ *                                 <enumeration value="Lost Switch Effect"/>
+ *                                 <enumeration value="Invalid Media Segment"/>
+ *                                 <enumeration value="Invalid Audio Shuffle"/>
+ *                                 <enumeration value="Invalid Media Metadata"/>
+ *                                 <enumeration value="SOM Extent"/>
+ *                               </restriction>
+ *                             </simpleType>
+ *                           </attribute>
+ *                           <attribute name="time" use="required" type="{}dateTimecode" />
+ *                           <attribute name="state" use="required">
+ *                             <simpleType>
+ *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                 <enumeration value="On"/>
+ *                                 <enumeration value="Off"/>
+ *                               </restriction>
+ *                             </simpleType>
+ *                           </attribute>
+ *                           <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="startTime" type="{}dateTimecode" />
+ *       <attribute name="endTime" type="{}dateTimecode" />
+ *       <attribute name="duration" type="{}timecode" />
+ *       <attribute name="result" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Completed"/>
+ *             <enumeration value="Descheduled"/>
+ *             <enumeration value="Missed"/>
+ *             <enumeration value="User Next"/>
+ *             <enumeration value="List Next"/>
+ *             <enumeration value="User Abort"/>
+ *             <enumeration value="List Abort"/>
+ *             <enumeration value="List Preempt"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="state">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Done"/>
+ *             <enumeration value="Disabled"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="activeRedundancyRole" type="{}redundancyRole" />
+ *       <attribute name="allocatedDevice" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="allocatedSourceDevice" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="allocatedSourcePort" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="allocatedDestinationDevice" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="allocatedDestinationPort" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="txList">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="txListID" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="channel" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="channelID" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunData", propOrder = { + "errors" +}) +@XmlSeeAlso({ + pb.wsclient.AsRunJob.AsRun.class, + pb.wsclient.AsRunEventTemplate.AsRun.class +}) +public class AsRunData { + + protected AsRunData.Errors errors; + @XmlAttribute(name = "startTime") + protected String startTime; + @XmlAttribute(name = "endTime") + protected String endTime; + @XmlAttribute(name = "duration") + protected String duration; + @XmlAttribute(name = "result", required = true) + protected String result; + @XmlAttribute(name = "state") + protected String state; + @XmlAttribute(name = "activeRedundancyRole") + protected RedundancyRole activeRedundancyRole; + @XmlAttribute(name = "allocatedDevice") + protected String allocatedDevice; + @XmlAttribute(name = "allocatedSourceDevice") + @XmlSchemaType(name = "anySimpleType") + protected String allocatedSourceDevice; + @XmlAttribute(name = "allocatedSourcePort") + @XmlSchemaType(name = "anySimpleType") + protected String allocatedSourcePort; + @XmlAttribute(name = "allocatedDestinationDevice") + @XmlSchemaType(name = "anySimpleType") + protected String allocatedDestinationDevice; + @XmlAttribute(name = "allocatedDestinationPort") + @XmlSchemaType(name = "anySimpleType") + protected String allocatedDestinationPort; + @XmlAttribute(name = "txList") + protected String txList; + @XmlAttribute(name = "txListID") + @XmlSchemaType(name = "anySimpleType") + protected String txListID; + @XmlAttribute(name = "channel") + @XmlSchemaType(name = "anySimpleType") + protected String channel; + @XmlAttribute(name = "channelID") + @XmlSchemaType(name = "anySimpleType") + protected String channelID; + + /** + * Gets the value of the errors property. + * + * @return + * possible object is + * {@link AsRunData.Errors } + * + */ + public AsRunData.Errors getErrors() { + return errors; + } + + /** + * Sets the value of the errors property. + * + * @param value + * allowed object is + * {@link AsRunData.Errors } + * + */ + public void setErrors(AsRunData.Errors value) { + this.errors = value; + } + + /** + * Gets the value of the startTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStartTime() { + return startTime; + } + + /** + * Sets the value of the startTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartTime(String value) { + this.startTime = value; + } + + /** + * Gets the value of the endTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEndTime() { + return endTime; + } + + /** + * Sets the value of the endTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndTime(String value) { + this.endTime = value; + } + + /** + * Gets the value of the duration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDuration() { + return duration; + } + + /** + * Sets the value of the duration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDuration(String value) { + this.duration = value; + } + + /** + * Gets the value of the result property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResult() { + return result; + } + + /** + * Sets the value of the result property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResult(String value) { + this.result = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setState(String value) { + this.state = value; + } + + /** + * Gets the value of the activeRedundancyRole property. + * + * @return + * possible object is + * {@link RedundancyRole } + * + */ + public RedundancyRole getActiveRedundancyRole() { + return activeRedundancyRole; + } + + /** + * Sets the value of the activeRedundancyRole property. + * + * @param value + * allowed object is + * {@link RedundancyRole } + * + */ + public void setActiveRedundancyRole(RedundancyRole value) { + this.activeRedundancyRole = value; + } + + /** + * Gets the value of the allocatedDevice property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAllocatedDevice() { + return allocatedDevice; + } + + /** + * Sets the value of the allocatedDevice property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAllocatedDevice(String value) { + this.allocatedDevice = value; + } + + /** + * Gets the value of the allocatedSourceDevice property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAllocatedSourceDevice() { + return allocatedSourceDevice; + } + + /** + * Sets the value of the allocatedSourceDevice property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAllocatedSourceDevice(String value) { + this.allocatedSourceDevice = value; + } + + /** + * Gets the value of the allocatedSourcePort property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAllocatedSourcePort() { + return allocatedSourcePort; + } + + /** + * Sets the value of the allocatedSourcePort property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAllocatedSourcePort(String value) { + this.allocatedSourcePort = value; + } + + /** + * Gets the value of the allocatedDestinationDevice property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAllocatedDestinationDevice() { + return allocatedDestinationDevice; + } + + /** + * Sets the value of the allocatedDestinationDevice property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAllocatedDestinationDevice(String value) { + this.allocatedDestinationDevice = value; + } + + /** + * Gets the value of the allocatedDestinationPort property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAllocatedDestinationPort() { + return allocatedDestinationPort; + } + + /** + * Sets the value of the allocatedDestinationPort property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAllocatedDestinationPort(String value) { + this.allocatedDestinationPort = value; + } + + /** + * Gets the value of the txList property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTxList() { + return txList; + } + + /** + * Sets the value of the txList property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTxList(String value) { + this.txList = value; + } + + /** + * Gets the value of the txListID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTxListID() { + return txListID; + } + + /** + * Sets the value of the txListID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTxListID(String value) { + this.txListID = value; + } + + /** + * Gets the value of the channel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChannel() { + return channel; + } + + /** + * Sets the value of the channel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChannel(String value) { + this.channel = value; + } + + /** + * Gets the value of the channelID property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChannelID() { + return channelID; + } + + /** + * Sets the value of the channelID property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChannelID(String value) { + this.channelID = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="error" maxOccurs="unbounded" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="name" use="required">
+     *                   <simpleType>
+     *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                       <enumeration value="Lost OnAir Job"/>
+     *                       <enumeration value="Missing Media"/>
+     *                       <enumeration value="Lost XPoint Path"/>
+     *                       <enumeration value="Media Stream Error"/>
+     *                       <enumeration value="Macro Not Found"/>
+     *                       <enumeration value="Invalid Trigger Parameter"/>
+     *                       <enumeration value="Lost Switch Effect"/>
+     *                       <enumeration value="Slave Processor Error"/>
+     *                       <enumeration value="Media Stream Error"/>
+     *                       <enumeration value="Media Already Exists"/>
+     *                       <enumeration value="Dependency Error"/>
+     *                       <enumeration value="Cue Timeout"/>
+     *                       <enumeration value="End Timeout"/>
+     *                       <enumeration value="Lost Switch Effect"/>
+     *                       <enumeration value="Invalid Media Segment"/>
+     *                       <enumeration value="Invalid Audio Shuffle"/>
+     *                       <enumeration value="Invalid Media Metadata"/>
+     *                       <enumeration value="SOM Extent"/>
+     *                     </restriction>
+     *                   </simpleType>
+     *                 </attribute>
+     *                 <attribute name="time" use="required" type="{}dateTimecode" />
+     *                 <attribute name="state" use="required">
+     *                   <simpleType>
+     *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                       <enumeration value="On"/>
+     *                       <enumeration value="Off"/>
+     *                     </restriction>
+     *                   </simpleType>
+     *                 </attribute>
+     *                 <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "error" + }) + public static class Errors { + + protected List error; + + /** + * Gets the value of the error property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the error property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getError().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AsRunData.Errors.Error } + * + * + */ + public List getError() { + if (error == null) { + error = new ArrayList(); + } + return this.error; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="name" use="required">
+         *         <simpleType>
+         *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *             <enumeration value="Lost OnAir Job"/>
+         *             <enumeration value="Missing Media"/>
+         *             <enumeration value="Lost XPoint Path"/>
+         *             <enumeration value="Media Stream Error"/>
+         *             <enumeration value="Macro Not Found"/>
+         *             <enumeration value="Invalid Trigger Parameter"/>
+         *             <enumeration value="Lost Switch Effect"/>
+         *             <enumeration value="Slave Processor Error"/>
+         *             <enumeration value="Media Stream Error"/>
+         *             <enumeration value="Media Already Exists"/>
+         *             <enumeration value="Dependency Error"/>
+         *             <enumeration value="Cue Timeout"/>
+         *             <enumeration value="End Timeout"/>
+         *             <enumeration value="Lost Switch Effect"/>
+         *             <enumeration value="Invalid Media Segment"/>
+         *             <enumeration value="Invalid Audio Shuffle"/>
+         *             <enumeration value="Invalid Media Metadata"/>
+         *             <enumeration value="SOM Extent"/>
+         *           </restriction>
+         *         </simpleType>
+         *       </attribute>
+         *       <attribute name="time" use="required" type="{}dateTimecode" />
+         *       <attribute name="state" use="required">
+         *         <simpleType>
+         *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *             <enumeration value="On"/>
+         *             <enumeration value="Off"/>
+         *           </restriction>
+         *         </simpleType>
+         *       </attribute>
+         *       <attribute name="message" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Error { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "time", required = true) + protected String time; + @XmlAttribute(name = "state", required = true) + protected String state; + @XmlAttribute(name = "message") + protected String message; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTime(String value) { + this.time = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setState(String value) { + this.state = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunEventTemplate.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunEventTemplate.java new file mode 100644 index 00000000..24c8faf5 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunEventTemplate.java @@ -0,0 +1,269 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * Template for an asrun event. + * + *

Java class for asRunEventTemplate complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunEventTemplate">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="asRun">
+ *           <complexType>
+ *             <complexContent>
+ *               <extension base="{}asRunData">
+ *                 <sequence minOccurs="0">
+ *                   <element name="jobs" type="{}asRunJobList" minOccurs="0"/>
+ *                 </sequence>
+ *               </extension>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attGroup ref="{}playlistEventAttributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunEventTemplate", propOrder = { + "asRun" +}) +@XmlSeeAlso({ + AsRunActionEvent.class, + AsRunPrimaryEvent.class, + AsRunSecondaryEvent.class +}) +public class AsRunEventTemplate { + + @XmlElement(required = true) + protected AsRunEventTemplate.AsRun asRun; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "enabled") + protected Boolean enabled; + @XmlAttribute(name = "timerMarker") + protected Boolean timerMarker; + @XmlAttribute(name = "uid") + protected BigInteger uid; + @XmlAttribute(name = "manualSecondary") + protected Boolean manualSecondary; + + /** + * Gets the value of the asRun property. + * + * @return + * possible object is + * {@link AsRunEventTemplate.AsRun } + * + */ + public AsRunEventTemplate.AsRun getAsRun() { + return asRun; + } + + /** + * Sets the value of the asRun property. + * + * @param value + * allowed object is + * {@link AsRunEventTemplate.AsRun } + * + */ + public void setAsRun(AsRunEventTemplate.AsRun value) { + this.asRun = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the enabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isEnabled() { + return enabled; + } + + /** + * Sets the value of the enabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnabled(Boolean value) { + this.enabled = value; + } + + /** + * Gets the value of the timerMarker property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isTimerMarker() { + return timerMarker; + } + + /** + * Sets the value of the timerMarker property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTimerMarker(Boolean value) { + this.timerMarker = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setUid(BigInteger value) { + this.uid = value; + } + + /** + * Gets the value of the manualSecondary property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isManualSecondary() { + return manualSecondary; + } + + /** + * Sets the value of the manualSecondary property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setManualSecondary(Boolean value) { + this.manualSecondary = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <extension base="{}asRunData">
+     *       <sequence minOccurs="0">
+     *         <element name="jobs" type="{}asRunJobList" minOccurs="0"/>
+     *       </sequence>
+     *     </extension>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "jobs" + }) + public static class AsRun + extends AsRunData + { + + protected AsRunJobList jobs; + + /** + * Gets the value of the jobs property. + * + * @return + * possible object is + * {@link AsRunJobList } + * + */ + public AsRunJobList getJobs() { + return jobs; + } + + /** + * Sets the value of the jobs property. + * + * @param value + * allowed object is + * {@link AsRunJobList } + * + */ + public void setJobs(AsRunJobList value) { + this.jobs = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJob.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJob.java new file mode 100644 index 00000000..b69ad5d8 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJob.java @@ -0,0 +1,215 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Information about a job that was created to service a list event. + * + *

Java class for asRunJob complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunJob">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="asRun">
+ *           <complexType>
+ *             <complexContent>
+ *               <extension base="{}asRunData">
+ *               </extension>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="properties" type="{}asRunJobProperties" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="redundancyRole" type="{}redundancyRole" />
+ *       <attribute name="featurePath" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunJob", propOrder = { + "asRun", + "properties" +}) +public class AsRunJob { + + @XmlElement(required = true) + protected AsRunJob.AsRun asRun; + protected AsRunJobProperties properties; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "redundancyRole") + protected RedundancyRole redundancyRole; + @XmlAttribute(name = "featurePath") + @XmlSchemaType(name = "anySimpleType") + protected String featurePath; + + /** + * Gets the value of the asRun property. + * + * @return + * possible object is + * {@link AsRunJob.AsRun } + * + */ + public AsRunJob.AsRun getAsRun() { + return asRun; + } + + /** + * Sets the value of the asRun property. + * + * @param value + * allowed object is + * {@link AsRunJob.AsRun } + * + */ + public void setAsRun(AsRunJob.AsRun value) { + this.asRun = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link AsRunJobProperties } + * + */ + public AsRunJobProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link AsRunJobProperties } + * + */ + public void setProperties(AsRunJobProperties value) { + this.properties = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the redundancyRole property. + * + * @return + * possible object is + * {@link RedundancyRole } + * + */ + public RedundancyRole getRedundancyRole() { + return redundancyRole; + } + + /** + * Sets the value of the redundancyRole property. + * + * @param value + * allowed object is + * {@link RedundancyRole } + * + */ + public void setRedundancyRole(RedundancyRole value) { + this.redundancyRole = value; + } + + /** + * Gets the value of the featurePath property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFeaturePath() { + return featurePath; + } + + /** + * Sets the value of the featurePath property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFeaturePath(String value) { + this.featurePath = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <extension base="{}asRunData">
+     *     </extension>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class AsRun + extends AsRunData + { + + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJobList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJobList.java new file mode 100644 index 00000000..e64b6a25 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJobList.java @@ -0,0 +1,69 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * A list of all the jobs created to service a list event. + * + *

Java class for asRunJobList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunJobList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="job" type="{}asRunJob"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunJobList", propOrder = { + "job" +}) +public class AsRunJobList { + + protected List job; + + /** + * Gets the value of the job property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the job property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getJob().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AsRunJob } + * + * + */ + public List getJob() { + if (job == null) { + job = new ArrayList(); + } + return this.job; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJobProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJobProperties.java new file mode 100644 index 00000000..a031f419 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunJobProperties.java @@ -0,0 +1,412 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of an asrun job. + * + *

Java class for asRunJobProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunJobProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="schedule" type="{}secondaryScheduleProperties" minOccurs="0"/>
+ *         <element name="mediaStream" type="{}mediaStreamProperties" minOccurs="0"/>
+ *         <element name="event" type="{}eventProperties" minOccurs="0"/>
+ *         <element name="switch" type="{}switchProperties" minOccurs="0"/>
+ *         <element name="trigger" type="{}triggerProperties" minOccurs="0"/>
+ *         <element name="effect" type="{}effectProperties" minOccurs="0"/>
+ *         <element name="media" type="{}mediaSimple" minOccurs="0"/>
+ *         <element name="features" type="{}featuresProperties" minOccurs="0"/>
+ *         <element name="block" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="macro" type="{}macroProperties" minOccurs="0"/>
+ *         <element name="dolphinGraphic" type="{}dolphinGraphicProperties" minOccurs="0"/>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunJobProperties", propOrder = { + +}) +public class AsRunJobProperties { + + protected SecondaryScheduleProperties schedule; + protected MediaStreamProperties mediaStream; + protected EventProperties event; + @XmlElement(name = "switch") + protected SwitchProperties _switch; + protected TriggerProperties trigger; + protected EffectProperties effect; + protected MediaSimple media; + protected FeaturesProperties features; + protected AsRunJobProperties.Block block; + protected MacroProperties macro; + protected DolphinGraphicProperties dolphinGraphic; + protected Object auxData; + + /** + * Gets the value of the schedule property. + * + * @return + * possible object is + * {@link SecondaryScheduleProperties } + * + */ + public SecondaryScheduleProperties getSchedule() { + return schedule; + } + + /** + * Sets the value of the schedule property. + * + * @param value + * allowed object is + * {@link SecondaryScheduleProperties } + * + */ + public void setSchedule(SecondaryScheduleProperties value) { + this.schedule = value; + } + + /** + * Gets the value of the mediaStream property. + * + * @return + * possible object is + * {@link MediaStreamProperties } + * + */ + public MediaStreamProperties getMediaStream() { + return mediaStream; + } + + /** + * Sets the value of the mediaStream property. + * + * @param value + * allowed object is + * {@link MediaStreamProperties } + * + */ + public void setMediaStream(MediaStreamProperties value) { + this.mediaStream = value; + } + + /** + * Gets the value of the event property. + * + * @return + * possible object is + * {@link EventProperties } + * + */ + public EventProperties getEvent() { + return event; + } + + /** + * Sets the value of the event property. + * + * @param value + * allowed object is + * {@link EventProperties } + * + */ + public void setEvent(EventProperties value) { + this.event = value; + } + + /** + * Gets the value of the switch property. + * + * @return + * possible object is + * {@link SwitchProperties } + * + */ + public SwitchProperties getSwitch() { + return _switch; + } + + /** + * Sets the value of the switch property. + * + * @param value + * allowed object is + * {@link SwitchProperties } + * + */ + public void setSwitch(SwitchProperties value) { + this._switch = value; + } + + /** + * Gets the value of the trigger property. + * + * @return + * possible object is + * {@link TriggerProperties } + * + */ + public TriggerProperties getTrigger() { + return trigger; + } + + /** + * Sets the value of the trigger property. + * + * @param value + * allowed object is + * {@link TriggerProperties } + * + */ + public void setTrigger(TriggerProperties value) { + this.trigger = value; + } + + /** + * Gets the value of the effect property. + * + * @return + * possible object is + * {@link EffectProperties } + * + */ + public EffectProperties getEffect() { + return effect; + } + + /** + * Sets the value of the effect property. + * + * @param value + * allowed object is + * {@link EffectProperties } + * + */ + public void setEffect(EffectProperties value) { + this.effect = value; + } + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link MediaSimple } + * + */ + public MediaSimple getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link MediaSimple } + * + */ + public void setMedia(MediaSimple value) { + this.media = value; + } + + /** + * Gets the value of the features property. + * + * @return + * possible object is + * {@link FeaturesProperties } + * + */ + public FeaturesProperties getFeatures() { + return features; + } + + /** + * Sets the value of the features property. + * + * @param value + * allowed object is + * {@link FeaturesProperties } + * + */ + public void setFeatures(FeaturesProperties value) { + this.features = value; + } + + /** + * Gets the value of the block property. + * + * @return + * possible object is + * {@link AsRunJobProperties.Block } + * + */ + public AsRunJobProperties.Block getBlock() { + return block; + } + + /** + * Sets the value of the block property. + * + * @param value + * allowed object is + * {@link AsRunJobProperties.Block } + * + */ + public void setBlock(AsRunJobProperties.Block value) { + this.block = value; + } + + /** + * Gets the value of the macro property. + * + * @return + * possible object is + * {@link MacroProperties } + * + */ + public MacroProperties getMacro() { + return macro; + } + + /** + * Sets the value of the macro property. + * + * @param value + * allowed object is + * {@link MacroProperties } + * + */ + public void setMacro(MacroProperties value) { + this.macro = value; + } + + /** + * Gets the value of the dolphinGraphic property. + * + * @return + * possible object is + * {@link DolphinGraphicProperties } + * + */ + public DolphinGraphicProperties getDolphinGraphic() { + return dolphinGraphic; + } + + /** + * Sets the value of the dolphinGraphic property. + * + * @param value + * allowed object is + * {@link DolphinGraphicProperties } + * + */ + public void setDolphinGraphic(DolphinGraphicProperties value) { + this.dolphinGraphic = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Block { + + @XmlAttribute(name = "name", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunPrimaryEvent.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunPrimaryEvent.java new file mode 100644 index 00000000..ce4c73c4 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunPrimaryEvent.java @@ -0,0 +1,93 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * AsRun Primary Event + * + *

Java class for asRunPrimaryEvent complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunPrimaryEvent">
+ *   <complexContent>
+ *     <extension base="{}asRunEventTemplate">
+ *       <sequence>
+ *         <element name="properties" type="{}playlistPrimaryEventProperties"/>
+ *         <element name="childEvents" type="{}asRunSecondaryEventList" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunPrimaryEvent", propOrder = { + "properties", + "childEvents" +}) +public class AsRunPrimaryEvent + extends AsRunEventTemplate +{ + + @XmlElement(required = true) + protected PlaylistPrimaryEventProperties properties; + protected AsRunSecondaryEventList childEvents; + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link PlaylistPrimaryEventProperties } + * + */ + public PlaylistPrimaryEventProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link PlaylistPrimaryEventProperties } + * + */ + public void setProperties(PlaylistPrimaryEventProperties value) { + this.properties = value; + } + + /** + * Gets the value of the childEvents property. + * + * @return + * possible object is + * {@link AsRunSecondaryEventList } + * + */ + public AsRunSecondaryEventList getChildEvents() { + return childEvents; + } + + /** + * Sets the value of the childEvents property. + * + * @param value + * allowed object is + * {@link AsRunSecondaryEventList } + * + */ + public void setChildEvents(AsRunSecondaryEventList value) { + this.childEvents = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunPrimaryEventList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunPrimaryEventList.java new file mode 100644 index 00000000..b9917b1f --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunPrimaryEventList.java @@ -0,0 +1,79 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlType; + + +/** + * AsRun Event List - contains multiple asRunEvents + * + *

Java class for asRunPrimaryEventList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunPrimaryEventList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <choice maxOccurs="unbounded" minOccurs="0">
+ *           <element name="event" type="{}asRunPrimaryEvent"/>
+ *           <element name="userObservation" type="{}asRunUserObservation"/>
+ *         </choice>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunPrimaryEventList", propOrder = { + "eventOrUserObservation" +}) +public class AsRunPrimaryEventList { + + @XmlElements({ + @XmlElement(name = "event", type = AsRunPrimaryEvent.class), + @XmlElement(name = "userObservation", type = AsRunUserObservation.class) + }) + protected List eventOrUserObservation; + + /** + * Gets the value of the eventOrUserObservation property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eventOrUserObservation property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEventOrUserObservation().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AsRunPrimaryEvent } + * {@link AsRunUserObservation } + * + * + */ + public List getEventOrUserObservation() { + if (eventOrUserObservation == null) { + eventOrUserObservation = new ArrayList(); + } + return this.eventOrUserObservation; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunSecondaryEvent.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunSecondaryEvent.java new file mode 100644 index 00000000..b081c9c1 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunSecondaryEvent.java @@ -0,0 +1,93 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * AsRun Secondary Event + * + *

Java class for asRunSecondaryEvent complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunSecondaryEvent">
+ *   <complexContent>
+ *     <extension base="{}asRunEventTemplate">
+ *       <sequence>
+ *         <element name="properties" type="{}playlistSecondaryEventProperties"/>
+ *         <element name="childEvents" type="{}asRunSecondaryEventList" minOccurs="0"/>
+ *       </sequence>
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunSecondaryEvent", propOrder = { + "properties", + "childEvents" +}) +public class AsRunSecondaryEvent + extends AsRunEventTemplate +{ + + @XmlElement(required = true) + protected PlaylistSecondaryEventProperties properties; + protected AsRunSecondaryEventList childEvents; + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link PlaylistSecondaryEventProperties } + * + */ + public PlaylistSecondaryEventProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link PlaylistSecondaryEventProperties } + * + */ + public void setProperties(PlaylistSecondaryEventProperties value) { + this.properties = value; + } + + /** + * Gets the value of the childEvents property. + * + * @return + * possible object is + * {@link AsRunSecondaryEventList } + * + */ + public AsRunSecondaryEventList getChildEvents() { + return childEvents; + } + + /** + * Sets the value of the childEvents property. + * + * @param value + * allowed object is + * {@link AsRunSecondaryEventList } + * + */ + public void setChildEvents(AsRunSecondaryEventList value) { + this.childEvents = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunSecondaryEventList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunSecondaryEventList.java new file mode 100644 index 00000000..ce6e7d87 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunSecondaryEventList.java @@ -0,0 +1,79 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlType; + + +/** + * AsRun Secondary Event List + * + *

Java class for asRunSecondaryEventList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunSecondaryEventList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded">
+ *         <choice>
+ *           <element name="event" type="{}asRunSecondaryEvent"/>
+ *           <element name="action" type="{}asRunActionEvent"/>
+ *         </choice>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunSecondaryEventList", propOrder = { + "eventOrAction" +}) +public class AsRunSecondaryEventList { + + @XmlElements({ + @XmlElement(name = "event", type = AsRunSecondaryEvent.class), + @XmlElement(name = "action", type = AsRunActionEvent.class) + }) + protected List eventOrAction; + + /** + * Gets the value of the eventOrAction property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eventOrAction property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEventOrAction().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AsRunSecondaryEvent } + * {@link AsRunActionEvent } + * + * + */ + public List getEventOrAction() { + if (eventOrAction == null) { + eventOrAction = new ArrayList(); + } + return this.eventOrAction; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunUserObservation.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunUserObservation.java new file mode 100644 index 00000000..9e65e8ac --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AsRunUserObservation.java @@ -0,0 +1,160 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Observations by operators or users. + * + *

Java class for asRunUserObservation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="asRunUserObservation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="comment" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       </sequence>
+ *       <attribute name="time" use="required" type="{}dateTimecode" />
+ *       <attribute name="userName" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="client" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "asRunUserObservation", propOrder = { + "comment" +}) +public class AsRunUserObservation { + + @XmlElement(required = true) + protected String comment; + @XmlAttribute(name = "time", required = true) + protected String time; + @XmlAttribute(name = "userName", required = true) + protected String userName; + @XmlAttribute(name = "client", required = true) + protected String client; + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTime(String value) { + this.time = value; + } + + /** + * Gets the value of the userName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUserName() { + return userName; + } + + /** + * Sets the value of the userName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUserName(String value) { + this.userName = value; + } + + /** + * Gets the value of the client property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClient() { + return client; + } + + /** + * Sets the value of the client property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClient(String value) { + this.client = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AspectRatioProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AspectRatioProperties.java new file mode 100644 index 00000000..805ac8e8 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AspectRatioProperties.java @@ -0,0 +1,60 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for Aspect Ratio + * + *

Java class for aspectRatioProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="aspectRatioProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="type" use="required" type="{}aspectRatio" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "aspectRatioProperties") +public class AspectRatioProperties { + + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Audio.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Audio.java new file mode 100644 index 00000000..a797f5cd --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Audio.java @@ -0,0 +1,1005 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyAttribute; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.namespace.QName; + + +/** + * Supersedes audioTracks, represents both groups and tracks. + * + *

Java class for audio complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="audio">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="tracks">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="track" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence minOccurs="0">
+ *                             <element name="encodingConfig" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <anyAttribute processContents='skip'/>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                             <element name="tags" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence minOccurs="0">
+ *                                       <element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                           <attribute name="encoding" use="required">
+ *                             <simpleType>
+ *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                 <enumeration value="UNKNOWN"/>
+ *                                 <enumeration value="ADPCM"/>
+ *                                 <enumeration value="DOL_E"/>
+ *                                 <enumeration value="DOL_D"/>
+ *                                 <enumeration value="DOL_D_PLUS"/>
+ *                                 <enumeration value="MP1L1"/>
+ *                                 <enumeration value="MP1L2"/>
+ *                                 <enumeration value="MP1L3"/>
+ *                                 <enumeration value="MP2P3"/>
+ *                                 <enumeration value="AAC"/>
+ *                                 <enumeration value="PCM"/>
+ *                                 <enumeration value="OGG"/>
+ *                                 <enumeration value="WMA"/>
+ *                               </restriction>
+ *                             </simpleType>
+ *                           </attribute>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="groups" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="group" maxOccurs="unbounded" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="tags" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence minOccurs="0">
+ *                                       <element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                             <element name="tracks">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence>
+ *                                       <element name="track" maxOccurs="255">
+ *                                         <complexType>
+ *                                           <complexContent>
+ *                                             <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                               <attribute name="index" use="required">
+ *                                                 <simpleType>
+ *                                                   <restriction base="{http://www.w3.org/2001/XMLSchema}unsignedByte">
+ *                                                     <minInclusive value="1"/>
+ *                                                     <maxInclusive value="255"/>
+ *                                                   </restriction>
+ *                                                 </simpleType>
+ *                                               </attribute>
+ *                                             </restriction>
+ *                                           </complexContent>
+ *                                         </complexType>
+ *                                       </element>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "audio", propOrder = { + "tracks", + "groups" +}) +public class Audio { + + @XmlElement(required = true) + protected Audio.Tracks tracks; + protected Audio.Groups groups; + + /** + * Gets the value of the tracks property. + * + * @return + * possible object is + * {@link Audio.Tracks } + * + */ + public Audio.Tracks getTracks() { + return tracks; + } + + /** + * Sets the value of the tracks property. + * + * @param value + * allowed object is + * {@link Audio.Tracks } + * + */ + public void setTracks(Audio.Tracks value) { + this.tracks = value; + } + + /** + * Gets the value of the groups property. + * + * @return + * possible object is + * {@link Audio.Groups } + * + */ + public Audio.Groups getGroups() { + return groups; + } + + /** + * Sets the value of the groups property. + * + * @param value + * allowed object is + * {@link Audio.Groups } + * + */ + public void setGroups(Audio.Groups value) { + this.groups = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="group" maxOccurs="unbounded" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="tags" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence minOccurs="0">
+     *                             <element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                   <element name="tracks">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence>
+     *                             <element name="track" maxOccurs="255">
+     *                               <complexType>
+     *                                 <complexContent>
+     *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                                     <attribute name="index" use="required">
+     *                                       <simpleType>
+     *                                         <restriction base="{http://www.w3.org/2001/XMLSchema}unsignedByte">
+     *                                           <minInclusive value="1"/>
+     *                                           <maxInclusive value="255"/>
+     *                                         </restriction>
+     *                                       </simpleType>
+     *                                     </attribute>
+     *                                   </restriction>
+     *                                 </complexContent>
+     *                               </complexType>
+     *                             </element>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "group" + }) + public static class Groups { + + protected List group; + + /** + * Gets the value of the group property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the group property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getGroup().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Audio.Groups.Group } + * + * + */ + public List getGroup() { + if (group == null) { + group = new ArrayList(); + } + return this.group; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <element name="tags" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence minOccurs="0">
+         *                   <element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *         <element name="tracks">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence>
+         *                   <element name="track" maxOccurs="255">
+         *                     <complexType>
+         *                       <complexContent>
+         *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                           <attribute name="index" use="required">
+         *                             <simpleType>
+         *                               <restriction base="{http://www.w3.org/2001/XMLSchema}unsignedByte">
+         *                                 <minInclusive value="1"/>
+         *                                 <maxInclusive value="255"/>
+         *                               </restriction>
+         *                             </simpleType>
+         *                           </attribute>
+         *                         </restriction>
+         *                       </complexContent>
+         *                     </complexType>
+         *                   </element>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tags", + "tracks" + }) + public static class Group { + + protected Audio.Groups.Group.Tags tags; + @XmlElement(required = true) + protected Audio.Groups.Group.Tracks tracks; + @XmlAttribute(name = "name", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String name; + + /** + * Gets the value of the tags property. + * + * @return + * possible object is + * {@link Audio.Groups.Group.Tags } + * + */ + public Audio.Groups.Group.Tags getTags() { + return tags; + } + + /** + * Sets the value of the tags property. + * + * @param value + * allowed object is + * {@link Audio.Groups.Group.Tags } + * + */ + public void setTags(Audio.Groups.Group.Tags value) { + this.tags = value; + } + + /** + * Gets the value of the tracks property. + * + * @return + * possible object is + * {@link Audio.Groups.Group.Tracks } + * + */ + public Audio.Groups.Group.Tracks getTracks() { + return tracks; + } + + /** + * Sets the value of the tracks property. + * + * @param value + * allowed object is + * {@link Audio.Groups.Group.Tracks } + * + */ + public void setTracks(Audio.Groups.Group.Tracks value) { + this.tracks = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence minOccurs="0">
+             *         <element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tag" + }) + public static class Tags { + + protected List tag; + + /** + * Gets the value of the tag property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tag property. + * + *

+ * For example, to add a new item, do as follows: + *

+                 *    getTag().add(newItem);
+                 * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getTag() { + if (tag == null) { + tag = new ArrayList(); + } + return this.tag; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence>
+             *         <element name="track" maxOccurs="255">
+             *           <complexType>
+             *             <complexContent>
+             *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *                 <attribute name="index" use="required">
+             *                   <simpleType>
+             *                     <restriction base="{http://www.w3.org/2001/XMLSchema}unsignedByte">
+             *                       <minInclusive value="1"/>
+             *                       <maxInclusive value="255"/>
+             *                     </restriction>
+             *                   </simpleType>
+             *                 </attribute>
+             *               </restriction>
+             *             </complexContent>
+             *           </complexType>
+             *         </element>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "track" + }) + public static class Tracks { + + @XmlElement(required = true) + protected List track; + + /** + * Gets the value of the track property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the track property. + * + *

+ * For example, to add a new item, do as follows: + *

+                 *    getTrack().add(newItem);
+                 * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Audio.Groups.Group.Tracks.Track } + * + * + */ + public List getTrack() { + if (track == null) { + track = new ArrayList(); + } + return this.track; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+                 * <complexType>
+                 *   <complexContent>
+                 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+                 *       <attribute name="index" use="required">
+                 *         <simpleType>
+                 *           <restriction base="{http://www.w3.org/2001/XMLSchema}unsignedByte">
+                 *             <minInclusive value="1"/>
+                 *             <maxInclusive value="255"/>
+                 *           </restriction>
+                 *         </simpleType>
+                 *       </attribute>
+                 *     </restriction>
+                 *   </complexContent>
+                 * </complexType>
+                 * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Track { + + @XmlAttribute(name = "index", required = true) + protected short index; + + /** + * Gets the value of the index property. + * + */ + public short getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + */ + public void setIndex(short value) { + this.index = value; + } + + } + + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="track" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence minOccurs="0">
+     *                   <element name="encodingConfig" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <anyAttribute processContents='skip'/>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                   <element name="tags" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence minOccurs="0">
+     *                             <element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *                 <attribute name="encoding" use="required">
+     *                   <simpleType>
+     *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                       <enumeration value="UNKNOWN"/>
+     *                       <enumeration value="ADPCM"/>
+     *                       <enumeration value="DOL_E"/>
+     *                       <enumeration value="DOL_D"/>
+     *                       <enumeration value="DOL_D_PLUS"/>
+     *                       <enumeration value="MP1L1"/>
+     *                       <enumeration value="MP1L2"/>
+     *                       <enumeration value="MP1L3"/>
+     *                       <enumeration value="MP2P3"/>
+     *                       <enumeration value="AAC"/>
+     *                       <enumeration value="PCM"/>
+     *                       <enumeration value="OGG"/>
+     *                       <enumeration value="WMA"/>
+     *                     </restriction>
+     *                   </simpleType>
+     *                 </attribute>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "track" + }) + public static class Tracks { + + @XmlElement(required = true) + protected List track; + + /** + * Gets the value of the track property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the track property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getTrack().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Audio.Tracks.Track } + * + * + */ + public List getTrack() { + if (track == null) { + track = new ArrayList(); + } + return this.track; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence minOccurs="0">
+         *         <element name="encodingConfig" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <anyAttribute processContents='skip'/>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *         <element name="tags" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence minOccurs="0">
+         *                   <element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *       <attribute name="encoding" use="required">
+         *         <simpleType>
+         *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *             <enumeration value="UNKNOWN"/>
+         *             <enumeration value="ADPCM"/>
+         *             <enumeration value="DOL_E"/>
+         *             <enumeration value="DOL_D"/>
+         *             <enumeration value="DOL_D_PLUS"/>
+         *             <enumeration value="MP1L1"/>
+         *             <enumeration value="MP1L2"/>
+         *             <enumeration value="MP1L3"/>
+         *             <enumeration value="MP2P3"/>
+         *             <enumeration value="AAC"/>
+         *             <enumeration value="PCM"/>
+         *             <enumeration value="OGG"/>
+         *             <enumeration value="WMA"/>
+         *           </restriction>
+         *         </simpleType>
+         *       </attribute>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "encodingConfig", + "tags" + }) + public static class Track { + + protected Audio.Tracks.Track.EncodingConfig encodingConfig; + protected Audio.Tracks.Track.Tags tags; + @XmlAttribute(name = "encoding", required = true) + protected String encoding; + + /** + * Gets the value of the encodingConfig property. + * + * @return + * possible object is + * {@link Audio.Tracks.Track.EncodingConfig } + * + */ + public Audio.Tracks.Track.EncodingConfig getEncodingConfig() { + return encodingConfig; + } + + /** + * Sets the value of the encodingConfig property. + * + * @param value + * allowed object is + * {@link Audio.Tracks.Track.EncodingConfig } + * + */ + public void setEncodingConfig(Audio.Tracks.Track.EncodingConfig value) { + this.encodingConfig = value; + } + + /** + * Gets the value of the tags property. + * + * @return + * possible object is + * {@link Audio.Tracks.Track.Tags } + * + */ + public Audio.Tracks.Track.Tags getTags() { + return tags; + } + + /** + * Sets the value of the tags property. + * + * @param value + * allowed object is + * {@link Audio.Tracks.Track.Tags } + * + */ + public void setTags(Audio.Tracks.Track.Tags value) { + this.tags = value; + } + + /** + * Gets the value of the encoding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEncoding() { + return encoding; + } + + /** + * Sets the value of the encoding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEncoding(String value) { + this.encoding = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <anyAttribute processContents='skip'/>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class EncodingConfig { + + @XmlAnyAttribute + private Map otherAttributes = new HashMap(); + + /** + * Gets a map that contains attributes that aren't bound to any typed property on this class. + * + *

+ * the map is keyed by the name of the attribute and + * the value is the string value of the attribute. + * + * the map returned by this method is live, and you can add new attribute + * by updating the map directly. Because of this design, there's no setter. + * + * + * @return + * always non-null + */ + public Map getOtherAttributes() { + return otherAttributes; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence minOccurs="0">
+             *         <element name="tag" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "tag" + }) + public static class Tags { + + protected List tag; + + /** + * Gets the value of the tag property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the tag property. + * + *

+ * For example, to add a new item, do as follows: + *

+                 *    getTag().add(newItem);
+                 * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getTag() { + if (tag == null) { + tag = new ArrayList(); + } + return this.tag; + } + + } + + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AudioTrack.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AudioTrack.java new file mode 100644 index 00000000..6eb436dc --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AudioTrack.java @@ -0,0 +1,216 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of an audio track + * + *

Java class for audioTrack complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="audioTrack">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="trackNum" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="channels" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
+ *       <attribute name="sampleRate" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="format">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="32"/>
+ *             <enumeration value="PCM"/>
+ *             <enumeration value="DolbyDigital"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="bits" type="{http://www.w3.org/2001/XMLSchema}unsignedShort" />
+ *       <attribute name="lang">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="32"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "audioTrack") +public class AudioTrack { + + @XmlAttribute(name = "trackNum") + @XmlSchemaType(name = "unsignedShort") + protected Integer trackNum; + @XmlAttribute(name = "channels") + @XmlSchemaType(name = "unsignedByte") + protected Short channels; + @XmlAttribute(name = "sampleRate") + @XmlSchemaType(name = "unsignedShort") + protected Integer sampleRate; + @XmlAttribute(name = "format") + protected String format; + @XmlAttribute(name = "bits") + @XmlSchemaType(name = "unsignedShort") + protected Integer bits; + @XmlAttribute(name = "lang") + protected String lang; + + /** + * Gets the value of the trackNum property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getTrackNum() { + return trackNum; + } + + /** + * Sets the value of the trackNum property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setTrackNum(Integer value) { + this.trackNum = value; + } + + /** + * Gets the value of the channels property. + * + * @return + * possible object is + * {@link Short } + * + */ + public Short getChannels() { + return channels; + } + + /** + * Sets the value of the channels property. + * + * @param value + * allowed object is + * {@link Short } + * + */ + public void setChannels(Short value) { + this.channels = value; + } + + /** + * Gets the value of the sampleRate property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getSampleRate() { + return sampleRate; + } + + /** + * Sets the value of the sampleRate property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSampleRate(Integer value) { + this.sampleRate = value; + } + + /** + * Gets the value of the format property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormat() { + return format; + } + + /** + * Sets the value of the format property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormat(String value) { + this.format = value; + } + + /** + * Gets the value of the bits property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getBits() { + return bits; + } + + /** + * Sets the value of the bits property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setBits(Integer value) { + this.bits = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AudioTracks.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AudioTracks.java new file mode 100644 index 00000000..0a0c1221 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AudioTracks.java @@ -0,0 +1,71 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Collection of audio tracks + * + *

Java class for audioTracks complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="audioTracks">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="audioTrack" type="{}audioTrack" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "audioTracks", propOrder = { + "audioTrack" +}) +public class AudioTracks { + + @XmlElement(required = true) + protected List audioTrack; + + /** + * Gets the value of the audioTrack property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the audioTrack property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAudioTrack().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link AudioTrack } + * + * + */ + public List getAudioTrack() { + if (audioTrack == null) { + audioTrack = new ArrayList(); + } + return this.audioTrack; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/AutomationStateType.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/AutomationStateType.java new file mode 100644 index 00000000..57052f25 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/AutomationStateType.java @@ -0,0 +1,118 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for automationStateType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="automationStateType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Null"/>
+ *     <enumeration value="Initialising"/>
+ *     <enumeration value="Initialised"/>
+ *     <enumeration value="Cueing"/>
+ *     <enumeration value="Allocating Device"/>
+ *     <enumeration value="Device Allocated"/>
+ *     <enumeration value="Waiting Validation"/>
+ *     <enumeration value="Validation Succeeded"/>
+ *     <enumeration value="Validation Failed"/>
+ *     <enumeration value="Allocating Stream"/>
+ *     <enumeration value="Stream Allocated"/>
+ *     <enumeration value="Stream Cueing"/>
+ *     <enumeration value="Cued"/>
+ *     <enumeration value="Preroll"/>
+ *     <enumeration value="Running"/>
+ *     <enumeration value="Overrunning"/>
+ *     <enumeration value="Pausing"/>
+ *     <enumeration value="Paused"/>
+ *     <enumeration value="Ending"/>
+ *     <enumeration value="Running"/>
+ *     <enumeration value="Aborting"/>
+ *     <enumeration value="Aborted"/>
+ *     <enumeration value="Postroll"/>
+ *     <enumeration value="Done"/>
+ *     <enumeration value="Disabled"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "automationStateType") +@XmlEnum +public enum AutomationStateType { + + @XmlEnumValue("Null") + NULL("Null"), + @XmlEnumValue("Initialising") + INITIALISING("Initialising"), + @XmlEnumValue("Initialised") + INITIALISED("Initialised"), + @XmlEnumValue("Cueing") + CUEING("Cueing"), + @XmlEnumValue("Allocating Device") + ALLOCATING_DEVICE("Allocating Device"), + @XmlEnumValue("Device Allocated") + DEVICE_ALLOCATED("Device Allocated"), + @XmlEnumValue("Waiting Validation") + WAITING_VALIDATION("Waiting Validation"), + @XmlEnumValue("Validation Succeeded") + VALIDATION_SUCCEEDED("Validation Succeeded"), + @XmlEnumValue("Validation Failed") + VALIDATION_FAILED("Validation Failed"), + @XmlEnumValue("Allocating Stream") + ALLOCATING_STREAM("Allocating Stream"), + @XmlEnumValue("Stream Allocated") + STREAM_ALLOCATED("Stream Allocated"), + @XmlEnumValue("Stream Cueing") + STREAM_CUEING("Stream Cueing"), + @XmlEnumValue("Cued") + CUED("Cued"), + @XmlEnumValue("Preroll") + PREROLL("Preroll"), + @XmlEnumValue("Running") + RUNNING("Running"), + @XmlEnumValue("Overrunning") + OVERRUNNING("Overrunning"), + @XmlEnumValue("Pausing") + PAUSING("Pausing"), + @XmlEnumValue("Paused") + PAUSED("Paused"), + @XmlEnumValue("Ending") + ENDING("Ending"), + @XmlEnumValue("Aborting") + ABORTING("Aborting"), + @XmlEnumValue("Aborted") + ABORTED("Aborted"), + @XmlEnumValue("Postroll") + POSTROLL("Postroll"), + @XmlEnumValue("Done") + DONE("Done"), + @XmlEnumValue("Disabled") + DISABLED("Disabled"); + private final String value; + + AutomationStateType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AutomationStateType fromValue(String v) { + for (AutomationStateType c: AutomationStateType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/CGTransitionEnum.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/CGTransitionEnum.java new file mode 100644 index 00000000..8beffe2f --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/CGTransitionEnum.java @@ -0,0 +1,51 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for CGTransitionEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="CGTransitionEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Cut"/>
+ *     <enumeration value="Fade"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "CGTransitionEnum") +@XmlEnum +public enum CGTransitionEnum { + + @XmlEnumValue("Cut") + CUT("Cut"), + @XmlEnumValue("Fade") + FADE("Fade"); + private final String value; + + CGTransitionEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static CGTransitionEnum fromValue(String v) { + for (CGTransitionEnum c: CGTransitionEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/CgProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/CgProperties.java new file mode 100644 index 00000000..068b518e --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/CgProperties.java @@ -0,0 +1,652 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + * Properties used by CG media devices + * + *

Java class for cgProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="cgProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="f" maxOccurs="30" minOccurs="0">
+ *           <complexType>
+ *             <simpleContent>
+ *               <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *               </extension>
+ *             </simpleContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="passThrough" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="command" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="transition" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="type" use="required" type="{}CGTransitionUnion" />
+ *                 <attribute name="rate" type="{}switchRate" />
+ *                 <attribute name="direction" type="{}direction" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="stopAnimation" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="stopTimeType" type="{}CGTPATimeTypeEnum" />
+ *                 <attribute name="stopTimeOffset" type="{}timecode" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="PBSDolphinGraphicElement" type="{}dolphinCGProperties" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Page"/>
+ *             <enumeration value="Sequence"/>
+ *             <enumeration value="Template"/>
+ *             <enumeration value="Transition"/>
+ *             <enumeration value="PassThrough"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="layer" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="loadOnly" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "cgProperties", propOrder = { + "f", + "passThrough", + "transition", + "stopAnimation", + "pbsDolphinGraphicElement" +}) +public class CgProperties { + + protected List f; + protected CgProperties.PassThrough passThrough; + protected CgProperties.Transition transition; + protected CgProperties.StopAnimation stopAnimation; + @XmlElement(name = "PBSDolphinGraphicElement") + protected DolphinCGProperties pbsDolphinGraphicElement; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "layer") + @XmlSchemaType(name = "anySimpleType") + protected String layer; + @XmlAttribute(name = "loadOnly") + protected Boolean loadOnly; + + /** + * Gets the value of the f property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the f property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getF().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link CgProperties.F } + * + * + */ + public List getF() { + if (f == null) { + f = new ArrayList(); + } + return this.f; + } + + /** + * Gets the value of the passThrough property. + * + * @return + * possible object is + * {@link CgProperties.PassThrough } + * + */ + public CgProperties.PassThrough getPassThrough() { + return passThrough; + } + + /** + * Sets the value of the passThrough property. + * + * @param value + * allowed object is + * {@link CgProperties.PassThrough } + * + */ + public void setPassThrough(CgProperties.PassThrough value) { + this.passThrough = value; + } + + /** + * Gets the value of the transition property. + * + * @return + * possible object is + * {@link CgProperties.Transition } + * + */ + public CgProperties.Transition getTransition() { + return transition; + } + + /** + * Sets the value of the transition property. + * + * @param value + * allowed object is + * {@link CgProperties.Transition } + * + */ + public void setTransition(CgProperties.Transition value) { + this.transition = value; + } + + /** + * Gets the value of the stopAnimation property. + * + * @return + * possible object is + * {@link CgProperties.StopAnimation } + * + */ + public CgProperties.StopAnimation getStopAnimation() { + return stopAnimation; + } + + /** + * Sets the value of the stopAnimation property. + * + * @param value + * allowed object is + * {@link CgProperties.StopAnimation } + * + */ + public void setStopAnimation(CgProperties.StopAnimation value) { + this.stopAnimation = value; + } + + /** + * Gets the value of the pbsDolphinGraphicElement property. + * + * @return + * possible object is + * {@link DolphinCGProperties } + * + */ + public DolphinCGProperties getPBSDolphinGraphicElement() { + return pbsDolphinGraphicElement; + } + + /** + * Sets the value of the pbsDolphinGraphicElement property. + * + * @param value + * allowed object is + * {@link DolphinCGProperties } + * + */ + public void setPBSDolphinGraphicElement(DolphinCGProperties value) { + this.pbsDolphinGraphicElement = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the layer property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLayer() { + return layer; + } + + /** + * Sets the value of the layer property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLayer(String value) { + this.layer = value; + } + + /** + * Gets the value of the loadOnly property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isLoadOnly() { + return loadOnly; + } + + /** + * Sets the value of the loadOnly property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLoadOnly(Boolean value) { + this.loadOnly = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <simpleContent>
+     *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *     </extension>
+     *   </simpleContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "value" + }) + public static class F { + + @XmlValue + protected String value; + @XmlAttribute(name = "name") + @XmlSchemaType(name = "anySimpleType") + protected String name; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="command" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class PassThrough { + + @XmlAttribute(name = "command", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String command; + + /** + * Gets the value of the command property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCommand() { + return command; + } + + /** + * Sets the value of the command property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCommand(String value) { + this.command = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="enabled" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="stopTimeType" type="{}CGTPATimeTypeEnum" />
+     *       <attribute name="stopTimeOffset" type="{}timecode" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class StopAnimation { + + @XmlAttribute(name = "enabled") + protected Boolean enabled; + @XmlAttribute(name = "stopTimeType") + protected String stopTimeType; + @XmlAttribute(name = "stopTimeOffset") + protected String stopTimeOffset; + + /** + * Gets the value of the enabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isEnabled() { + return enabled; + } + + /** + * Sets the value of the enabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnabled(Boolean value) { + this.enabled = value; + } + + /** + * Gets the value of the stopTimeType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStopTimeType() { + return stopTimeType; + } + + /** + * Sets the value of the stopTimeType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStopTimeType(String value) { + this.stopTimeType = value; + } + + /** + * Gets the value of the stopTimeOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStopTimeOffset() { + return stopTimeOffset; + } + + /** + * Sets the value of the stopTimeOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStopTimeOffset(String value) { + this.stopTimeOffset = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="type" use="required" type="{}CGTransitionUnion" />
+     *       <attribute name="rate" type="{}switchRate" />
+     *       <attribute name="direction" type="{}direction" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Transition { + + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "rate") + protected SwitchRate rate; + @XmlAttribute(name = "direction") + protected Direction direction; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the rate property. + * + * @return + * possible object is + * {@link SwitchRate } + * + */ + public SwitchRate getRate() { + return rate; + } + + /** + * Sets the value of the rate property. + * + * @param value + * allowed object is + * {@link SwitchRate } + * + */ + public void setRate(SwitchRate value) { + this.rate = value; + } + + /** + * Gets the value of the direction property. + * + * @return + * possible object is + * {@link Direction } + * + */ + public Direction getDirection() { + return direction; + } + + /** + * Sets the value of the direction property. + * + * @param value + * allowed object is + * {@link Direction } + * + */ + public void setDirection(Direction value) { + this.direction = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ChangeCounts.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ChangeCounts.java new file mode 100644 index 00000000..e8324e02 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ChangeCounts.java @@ -0,0 +1,113 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for changeCounts complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="changeCounts">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="del" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="update" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="add" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "changeCounts") +public class ChangeCounts { + + @XmlAttribute(name = "del") + protected BigInteger del; + @XmlAttribute(name = "update") + protected BigInteger update; + @XmlAttribute(name = "add") + protected BigInteger add; + + /** + * Gets the value of the del property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getDel() { + return del; + } + + /** + * Sets the value of the del property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setDel(BigInteger value) { + this.del = value; + } + + /** + * Gets the value of the update property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getUpdate() { + return update; + } + + /** + * Sets the value of the update property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setUpdate(BigInteger value) { + this.update = value; + } + + /** + * Gets the value of the add property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getAdd() { + return add; + } + + /** + * Sets the value of the add property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setAdd(BigInteger value) { + this.add = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ChannelProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ChannelProperties.java new file mode 100644 index 00000000..ef74620f --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ChannelProperties.java @@ -0,0 +1,175 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for a transmission channel. + * + *

Java class for channelProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="channelProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="txTime" type="{}dateTimecode" />
+ *       <attribute name="timeOffset" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="timeOffsetValue" type="{}dateTimecodeOrTimecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "channelProperties") +public class ChannelProperties { + + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "comment") + protected String comment; + @XmlAttribute(name = "txTime") + protected String txTime; + @XmlAttribute(name = "timeOffset") + protected String timeOffset; + @XmlAttribute(name = "timeOffsetValue") + protected String timeOffsetValue; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the txTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTxTime() { + return txTime; + } + + /** + * Sets the value of the txTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTxTime(String value) { + this.txTime = value; + } + + /** + * Gets the value of the timeOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTimeOffset() { + return timeOffset; + } + + /** + * Sets the value of the timeOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTimeOffset(String value) { + this.timeOffset = value; + } + + /** + * Gets the value of the timeOffsetValue property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTimeOffsetValue() { + return timeOffsetValue; + } + + /** + * Sets the value of the timeOffsetValue property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTimeOffsetValue(String value) { + this.timeOffsetValue = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Classification.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Classification.java new file mode 100644 index 00000000..b5cf3c46 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Classification.java @@ -0,0 +1,132 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a classification of an "object" (e.g. media, mediaInstance, mediaSet) + * + *

Java class for classification complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="classification">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="autoAssociate" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="classification" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="category" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "classification") +@XmlSeeAlso({ + EventClassification.class +}) +public class Classification { + + @XmlAttribute(name = "autoAssociate") + protected Boolean autoAssociate; + @XmlAttribute(name = "classification", required = true) + protected String classification; + @XmlAttribute(name = "category", required = true) + protected String category; + + /** + * Gets the value of the autoAssociate property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isAutoAssociate() { + return autoAssociate; + } + + /** + * Sets the value of the autoAssociate property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoAssociate(Boolean value) { + this.autoAssociate = value; + } + + /** + * Gets the value of the classification property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClassification() { + return classification; + } + + /** + * Sets the value of the classification property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClassification(String value) { + this.classification = value; + } + + /** + * Gets the value of the category property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCategory() { + return category; + } + + /** + * Sets the value of the category property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCategory(String value) { + this.category = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Classifications.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Classifications.java new file mode 100644 index 00000000..d499705f --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Classifications.java @@ -0,0 +1,75 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * Collection of classifications + * + *

Java class for classifications complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="classifications">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="classification" type="{}classification" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "classifications", propOrder = { + "classification" +}) +@XmlSeeAlso({ + EventClassifications.class +}) +public class Classifications { + + @XmlElement(required = true) + protected List classification; + + /** + * Gets the value of the classification property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the classification property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getClassification().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Classification } + * + * + */ + public List getClassification() { + if (classification == null) { + classification = new ArrayList(); + } + return this.classification; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Component.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Component.java new file mode 100644 index 00000000..0dff7531 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Component.java @@ -0,0 +1,198 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * A representation of a component. + * + *

Java class for component complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="component">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="health" type="{}healthList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}componentAttributes"/>
+ *       <attribute name="isRedundantObject" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="redundantParentId" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="redundantParentName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "component", propOrder = { + "health" +}) +public class Component { + + protected HealthList health; + @XmlAttribute(name = "isRedundantObject") + protected Boolean isRedundantObject; + @XmlAttribute(name = "redundantParentId") + protected Integer redundantParentId; + @XmlAttribute(name = "redundantParentName") + protected String redundantParentName; + @XmlAttribute(name = "componentId", required = true) + protected BigInteger componentId; + @XmlAttribute(name = "componentName", required = true) + protected String componentName; + + /** + * Gets the value of the health property. + * + * @return + * possible object is + * {@link HealthList } + * + */ + public HealthList getHealth() { + return health; + } + + /** + * Sets the value of the health property. + * + * @param value + * allowed object is + * {@link HealthList } + * + */ + public void setHealth(HealthList value) { + this.health = value; + } + + /** + * Gets the value of the isRedundantObject property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isIsRedundantObject() { + return isRedundantObject; + } + + /** + * Sets the value of the isRedundantObject property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setIsRedundantObject(Boolean value) { + this.isRedundantObject = value; + } + + /** + * Gets the value of the redundantParentId property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getRedundantParentId() { + return redundantParentId; + } + + /** + * Sets the value of the redundantParentId property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setRedundantParentId(Integer value) { + this.redundantParentId = value; + } + + /** + * Gets the value of the redundantParentName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRedundantParentName() { + return redundantParentName; + } + + /** + * Sets the value of the redundantParentName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRedundantParentName(String value) { + this.redundantParentName = value; + } + + /** + * Gets the value of the componentId property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getComponentId() { + return componentId; + } + + /** + * Sets the value of the componentId property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setComponentId(BigInteger value) { + this.componentId = value; + } + + /** + * Gets the value of the componentName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComponentName() { + return componentName; + } + + /** + * Sets the value of the componentName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComponentName(String value) { + this.componentName = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentHealth.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentHealth.java new file mode 100644 index 00000000..7a9ecfa3 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentHealth.java @@ -0,0 +1,83 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for componentHealth. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="componentHealth">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <maxLength value="64"/>
+ *     <minLength value="1"/>
+ *     <enumeration value="Object not found!"/>
+ *     <enumeration value="Proxy exception!"/>
+ *     <enumeration value="Server node not found!"/>
+ *     <enumeration value="Server component not found!"/>
+ *     <enumeration value="Server exception!"/>
+ *     <enumeration value="Device disconnected!"/>
+ *     <enumeration value="Card not found!"/>
+ *     <enumeration value="Unable to open device!"/>
+ *     <enumeration value="Invalid config!"/>
+ *     <enumeration value="Device error!"/>
+ *     <enumeration value="Device automation disabled!"/>
+ *     <enumeration value="API interface failed!"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "componentHealth") +@XmlEnum +public enum ComponentHealth { + + @XmlEnumValue("Object not found!") + OBJECT_NOT_FOUND("Object not found!"), + @XmlEnumValue("Proxy exception!") + PROXY_EXCEPTION("Proxy exception!"), + @XmlEnumValue("Server node not found!") + SERVER_NODE_NOT_FOUND("Server node not found!"), + @XmlEnumValue("Server component not found!") + SERVER_COMPONENT_NOT_FOUND("Server component not found!"), + @XmlEnumValue("Server exception!") + SERVER_EXCEPTION("Server exception!"), + @XmlEnumValue("Device disconnected!") + DEVICE_DISCONNECTED("Device disconnected!"), + @XmlEnumValue("Card not found!") + CARD_NOT_FOUND("Card not found!"), + @XmlEnumValue("Unable to open device!") + UNABLE_TO_OPEN_DEVICE("Unable to open device!"), + @XmlEnumValue("Invalid config!") + INVALID_CONFIG("Invalid config!"), + @XmlEnumValue("Device error!") + DEVICE_ERROR("Device error!"), + @XmlEnumValue("Device automation disabled!") + DEVICE_AUTOMATION_DISABLED("Device automation disabled!"), + @XmlEnumValue("API interface failed!") + API_INTERFACE_FAILED("API interface failed!"); + private final String value; + + ComponentHealth(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ComponentHealth fromValue(String v) { + for (ComponentHealth c: ComponentHealth.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentList.java new file mode 100644 index 00000000..d890aa42 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentList.java @@ -0,0 +1,71 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * A list of components. + * + *

Java class for componentList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="componentList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="component" type="{}component" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "componentList", propOrder = { + "component" +}) +public class ComponentList { + + @XmlElement(required = true) + protected List component; + + /** + * Gets the value of the component property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the component property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getComponent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Component } + * + * + */ + public List getComponent() { + if (component == null) { + component = new ArrayList(); + } + return this.component; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentListContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentListContainer.java new file mode 100644 index 00000000..d39d1643 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentListContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="componentList" type="{}componentList"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "componentList" +}) +@XmlRootElement(name = "componentListContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class ComponentListContainer { + + @XmlElement(required = true) + protected ComponentList componentList; + + /** + * Gets the value of the componentList property. + * + * @return + * possible object is + * {@link ComponentList } + * + */ + public ComponentList getComponentList() { + return componentList; + } + + /** + * Sets the value of the componentList property. + * + * @param value + * allowed object is + * {@link ComponentList } + * + */ + public void setComponentList(ComponentList value) { + this.componentList = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentTag.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentTag.java new file mode 100644 index 00000000..71e60463 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentTag.java @@ -0,0 +1,50 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for componentTag. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="componentTag">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <minLength value="1"/>
+ *     <maxLength value="128"/>
+ *     <enumeration value="TxList"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "componentTag") +@XmlEnum +public enum ComponentTag { + + @XmlEnumValue("TxList") + TX_LIST("TxList"); + private final String value; + + ComponentTag(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ComponentTag fromValue(String v) { + for (ComponentTag c: ComponentTag.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentTagContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentTagContainer.java new file mode 100644 index 00000000..fd4ec7af --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ComponentTagContainer.java @@ -0,0 +1,66 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="componentTag" type="{}componentTag"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "componentTag" +}) +@XmlRootElement(name = "componentTagContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class ComponentTagContainer { + + @XmlElement(required = true) + @XmlSchemaType(name = "string") + protected ComponentTag componentTag; + + /** + * Gets the value of the componentTag property. + * + * @return + * possible object is + * {@link ComponentTag } + * + */ + public ComponentTag getComponentTag() { + return componentTag; + } + + /** + * Sets the value of the componentTag property. + * + * @param value + * allowed object is + * {@link ComponentTag } + * + */ + public void setComponentTag(ComponentTag value) { + this.componentTag = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Config.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Config.java new file mode 100644 index 00000000..8fe07c2e --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Config.java @@ -0,0 +1,212 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="playListEventXML">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="enabledFields">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <choice maxOccurs="unbounded">
+ *                             <element name="field" type="{http://www.pebble.tv/MarinaAPI}PlaylistEventXMLConfigurableFields" maxOccurs="unbounded"/>
+ *                           </choice>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "config", namespace = "http://www.pebble.tv/MarinaAPI") +public class Config { + + @XmlElement(required = true) + protected Config.PlayListEventXML playListEventXML; + + /** + * Gets the value of the playListEventXML property. + * + * @return + * possible object is + * {@link Config.PlayListEventXML } + * + */ + public Config.PlayListEventXML getPlayListEventXML() { + return playListEventXML; + } + + /** + * Sets the value of the playListEventXML property. + * + * @param value + * allowed object is + * {@link Config.PlayListEventXML } + * + */ + public void setPlayListEventXML(Config.PlayListEventXML value) { + this.playListEventXML = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="enabledFields">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <choice maxOccurs="unbounded">
+     *                   <element name="field" type="{http://www.pebble.tv/MarinaAPI}PlaylistEventXMLConfigurableFields" maxOccurs="unbounded"/>
+     *                 </choice>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "enabledFields" + }) + public static class PlayListEventXML { + + @XmlElement(required = true) + protected Config.PlayListEventXML.EnabledFields enabledFields; + + /** + * Gets the value of the enabledFields property. + * + * @return + * possible object is + * {@link Config.PlayListEventXML.EnabledFields } + * + */ + public Config.PlayListEventXML.EnabledFields getEnabledFields() { + return enabledFields; + } + + /** + * Sets the value of the enabledFields property. + * + * @param value + * allowed object is + * {@link Config.PlayListEventXML.EnabledFields } + * + */ + public void setEnabledFields(Config.PlayListEventXML.EnabledFields value) { + this.enabledFields = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <choice maxOccurs="unbounded">
+         *         <element name="field" type="{http://www.pebble.tv/MarinaAPI}PlaylistEventXMLConfigurableFields" maxOccurs="unbounded"/>
+         *       </choice>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "field" + }) + public static class EnabledFields { + + @XmlSchemaType(name = "string") + protected List field; + + /** + * Gets the value of the field property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the field property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getField().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PlaylistEventXMLConfigurableFields } + * + * + */ + public List getField() { + if (field == null) { + field = new ArrayList(); + } + return this.field; + } + + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigContainer.java new file mode 100644 index 00000000..aeda775d --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}config"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "configContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class ConfigContainer { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected Config config; + + /** + * Gets the value of the config property. + * + * @return + * possible object is + * {@link Config } + * + */ + public Config getConfig() { + return config; + } + + /** + * Sets the value of the config property. + * + * @param value + * allowed object is + * {@link Config } + * + */ + public void setConfig(Config value) { + this.config = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigRequestListContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigRequestListContainer.java new file mode 100644 index 00000000..b9979667 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigRequestListContainer.java @@ -0,0 +1,131 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="configRequestList">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element name="configType" type="{http://www.pebble.tv/MarinaAPI}configType"/>
+ *                 </all>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "configRequestList" +}) +@XmlRootElement(name = "configRequestListContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class ConfigRequestListContainer { + + @XmlElement(required = true) + protected ConfigRequestListContainer.ConfigRequestList configRequestList; + + /** + * Gets the value of the configRequestList property. + * + * @return + * possible object is + * {@link ConfigRequestListContainer.ConfigRequestList } + * + */ + public ConfigRequestListContainer.ConfigRequestList getConfigRequestList() { + return configRequestList; + } + + /** + * Sets the value of the configRequestList property. + * + * @param value + * allowed object is + * {@link ConfigRequestListContainer.ConfigRequestList } + * + */ + public void setConfigRequestList(ConfigRequestListContainer.ConfigRequestList value) { + this.configRequestList = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element name="configType" type="{http://www.pebble.tv/MarinaAPI}configType"/>
+     *       </all>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class ConfigRequestList { + + @XmlElement(required = true) + @XmlSchemaType(name = "string") + protected ConfigType configType; + + /** + * Gets the value of the configType property. + * + * @return + * possible object is + * {@link ConfigType } + * + */ + public ConfigType getConfigType() { + return configType; + } + + /** + * Sets the value of the configType property. + * + * @param value + * allowed object is + * {@link ConfigType } + * + */ + public void setConfigType(ConfigType value) { + this.configType = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigType.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigType.java new file mode 100644 index 00000000..3d0ece61 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ConfigType.java @@ -0,0 +1,36 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for configType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="configType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="PLAYLIST_EVENT_XML"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "configType", namespace = "http://www.pebble.tv/MarinaAPI") +@XmlEnum +public enum ConfigType { + + PLAYLIST_EVENT_XML; + + public String value() { + return name(); + } + + public static ConfigType fromValue(String v) { + return valueOf(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/DateTimecodeRange.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/DateTimecodeRange.java new file mode 100644 index 00000000..f9a61ccf --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/DateTimecodeRange.java @@ -0,0 +1,87 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a timecode range (start -> end) + * + *

Java class for dateTimecodeRange complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="dateTimecodeRange">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="start" use="required" type="{}dateTimecode" />
+ *       <attribute name="end" use="required" type="{}dateTimecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dateTimecodeRange") +public class DateTimecodeRange { + + @XmlAttribute(name = "start", required = true) + protected String start; + @XmlAttribute(name = "end", required = true) + protected String end; + + /** + * Gets the value of the start property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStart() { + return start; + } + + /** + * Sets the value of the start property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStart(String value) { + this.start = value; + } + + /** + * Gets the value of the end property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEnd() { + return end; + } + + /** + * Sets the value of the end property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEnd(String value) { + this.end = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/DateTimecodeRangeContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/DateTimecodeRangeContainer.java new file mode 100644 index 00000000..24b69516 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/DateTimecodeRangeContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dateTimecodeRange" type="{}dateTimecodeRange"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dateTimecodeRange" +}) +@XmlRootElement(name = "dateTimecodeRangeContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class DateTimecodeRangeContainer { + + @XmlElement(required = true) + protected DateTimecodeRange dateTimecodeRange; + + /** + * Gets the value of the dateTimecodeRange property. + * + * @return + * possible object is + * {@link DateTimecodeRange } + * + */ + public DateTimecodeRange getDateTimecodeRange() { + return dateTimecodeRange; + } + + /** + * Sets the value of the dateTimecodeRange property. + * + * @param value + * allowed object is + * {@link DateTimecodeRange } + * + */ + public void setDateTimecodeRange(DateTimecodeRange value) { + this.dateTimecodeRange = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMedia.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMedia.java new file mode 100644 index 00000000..1ab1e312 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMedia.java @@ -0,0 +1,189 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a delete media request + * + *

Java class for deleteMedia complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="deleteMedia">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="deleteMediaInstances" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="deleteMediaInstance" type="{}deleteMediaInstance" maxOccurs="unbounded"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attGroup ref="{}mediaKey"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "deleteMedia", propOrder = { + "deleteMediaInstances" +}) +public class DeleteMedia { + + protected DeleteMedia.DeleteMediaInstances deleteMediaInstances; + @XmlAttribute(name = "mediaName", required = true) + protected String mediaName; + @XmlAttribute(name = "mediaType", required = true) + protected MediaType mediaType; + + /** + * Gets the value of the deleteMediaInstances property. + * + * @return + * possible object is + * {@link DeleteMedia.DeleteMediaInstances } + * + */ + public DeleteMedia.DeleteMediaInstances getDeleteMediaInstances() { + return deleteMediaInstances; + } + + /** + * Sets the value of the deleteMediaInstances property. + * + * @param value + * allowed object is + * {@link DeleteMedia.DeleteMediaInstances } + * + */ + public void setDeleteMediaInstances(DeleteMedia.DeleteMediaInstances value) { + this.deleteMediaInstances = value; + } + + /** + * Gets the value of the mediaName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaName() { + return mediaName; + } + + /** + * Sets the value of the mediaName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaName(String value) { + this.mediaName = value; + } + + /** + * Gets the value of the mediaType property. + * + * @return + * possible object is + * {@link MediaType } + * + */ + public MediaType getMediaType() { + return mediaType; + } + + /** + * Sets the value of the mediaType property. + * + * @param value + * allowed object is + * {@link MediaType } + * + */ + public void setMediaType(MediaType value) { + this.mediaType = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="deleteMediaInstance" type="{}deleteMediaInstance" maxOccurs="unbounded"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "deleteMediaInstance" + }) + public static class DeleteMediaInstances { + + @XmlElement(required = true) + protected List deleteMediaInstance; + + /** + * Gets the value of the deleteMediaInstance property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the deleteMediaInstance property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getDeleteMediaInstance().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DeleteMediaInstance } + * + * + */ + public List getDeleteMediaInstance() { + if (deleteMediaInstance == null) { + deleteMediaInstance = new ArrayList(); + } + return this.deleteMediaInstance; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstance.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstance.java new file mode 100644 index 00000000..9fa5bd99 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstance.java @@ -0,0 +1,87 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a delete media instance request + * + *

Java class for deleteMediaInstance complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="deleteMediaInstance">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="mediaSetName" use="required" type="{}mediaSetName" />
+ *       <attribute name="output" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "deleteMediaInstance") +public class DeleteMediaInstance { + + @XmlAttribute(name = "mediaSetName", required = true) + protected String mediaSetName; + @XmlAttribute(name = "output", required = true) + protected String output; + + /** + * Gets the value of the mediaSetName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetName() { + return mediaSetName; + } + + /** + * Sets the value of the mediaSetName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetName(String value) { + this.mediaSetName = value; + } + + /** + * Gets the value of the output property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOutput() { + return output; + } + + /** + * Sets the value of the output property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOutput(String value) { + this.output = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstanceContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstanceContainer.java new file mode 100644 index 00000000..3549dbca --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstanceContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="deleteMedia" type="{}deleteMedia"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "deleteMedia" +}) +@XmlRootElement(name = "deleteMediaInstanceContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class DeleteMediaInstanceContainer { + + @XmlElement(required = true) + protected DeleteMedia deleteMedia; + + /** + * Gets the value of the deleteMedia property. + * + * @return + * possible object is + * {@link DeleteMedia } + * + */ + public DeleteMedia getDeleteMedia() { + return deleteMedia; + } + + /** + * Sets the value of the deleteMedia property. + * + * @param value + * allowed object is + * {@link DeleteMedia } + * + */ + public void setDeleteMedia(DeleteMedia value) { + this.deleteMedia = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstanceKeyContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstanceKeyContainer.java new file mode 100644 index 00000000..9726fca4 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/DeleteMediaInstanceKeyContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="media" type="{}media"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "media" +}) +@XmlRootElement(name = "deleteMediaInstanceKeyContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class DeleteMediaInstanceKeyContainer { + + @XmlElement(required = true) + protected Media media; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link Media } + * + */ + public Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link Media } + * + */ + public void setMedia(Media value) { + this.media = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Direction.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Direction.java new file mode 100644 index 00000000..12183845 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Direction.java @@ -0,0 +1,51 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for direction. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="direction">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Up"/>
+ *     <enumeration value="Down"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "direction") +@XmlEnum +public enum Direction { + + @XmlEnumValue("Up") + UP("Up"), + @XmlEnumValue("Down") + DOWN("Down"); + private final String value; + + Direction(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Direction fromValue(String v) { + for (Direction c: Direction.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/DolphinCGProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/DolphinCGProperties.java new file mode 100644 index 00000000..6dc4b5fc --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/DolphinCGProperties.java @@ -0,0 +1,357 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for Dolphin CG jobs. + * + *

Java class for dolphinCGProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="dolphinCGProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="mediaName" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="0"/>
+ *             <maxLength value="255"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="posX">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="posY">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="scaleX" type="{http://www.w3.org/2001/XMLSchema}float" />
+ *       <attribute name="scaleY" type="{http://www.w3.org/2001/XMLSchema}float" />
+ *       <attribute name="opacity" type="{http://www.w3.org/2001/XMLSchema}float" />
+ *       <attribute name="priority" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="onTransitionType" type="{}switchTransition" />
+ *       <attribute name="onTransitionTime">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}int">
+ *             <minInclusive value="0"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="offTransitionType" type="{}switchTransition" />
+ *       <attribute name="offTransitionTime" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dolphinCGProperties") +public class DolphinCGProperties { + + @XmlAttribute(name = "mediaName", required = true) + protected String mediaName; + @XmlAttribute(name = "posX") + protected String posX; + @XmlAttribute(name = "posY") + protected String posY; + @XmlAttribute(name = "scaleX") + protected Float scaleX; + @XmlAttribute(name = "scaleY") + protected Float scaleY; + @XmlAttribute(name = "opacity") + protected Float opacity; + @XmlAttribute(name = "priority") + protected Integer priority; + @XmlAttribute(name = "onTransitionType") + protected SwitchTransition onTransitionType; + @XmlAttribute(name = "onTransitionTime") + protected Integer onTransitionTime; + @XmlAttribute(name = "offTransitionType") + protected SwitchTransition offTransitionType; + @XmlAttribute(name = "offTransitionTime") + @XmlSchemaType(name = "anySimpleType") + protected String offTransitionTime; + + /** + * Gets the value of the mediaName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaName() { + return mediaName; + } + + /** + * Sets the value of the mediaName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaName(String value) { + this.mediaName = value; + } + + /** + * Gets the value of the posX property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPosX() { + return posX; + } + + /** + * Sets the value of the posX property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPosX(String value) { + this.posX = value; + } + + /** + * Gets the value of the posY property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPosY() { + return posY; + } + + /** + * Sets the value of the posY property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPosY(String value) { + this.posY = value; + } + + /** + * Gets the value of the scaleX property. + * + * @return + * possible object is + * {@link Float } + * + */ + public Float getScaleX() { + return scaleX; + } + + /** + * Sets the value of the scaleX property. + * + * @param value + * allowed object is + * {@link Float } + * + */ + public void setScaleX(Float value) { + this.scaleX = value; + } + + /** + * Gets the value of the scaleY property. + * + * @return + * possible object is + * {@link Float } + * + */ + public Float getScaleY() { + return scaleY; + } + + /** + * Sets the value of the scaleY property. + * + * @param value + * allowed object is + * {@link Float } + * + */ + public void setScaleY(Float value) { + this.scaleY = value; + } + + /** + * Gets the value of the opacity property. + * + * @return + * possible object is + * {@link Float } + * + */ + public Float getOpacity() { + return opacity; + } + + /** + * Sets the value of the opacity property. + * + * @param value + * allowed object is + * {@link Float } + * + */ + public void setOpacity(Float value) { + this.opacity = value; + } + + /** + * Gets the value of the priority property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPriority() { + return priority; + } + + /** + * Sets the value of the priority property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPriority(Integer value) { + this.priority = value; + } + + /** + * Gets the value of the onTransitionType property. + * + * @return + * possible object is + * {@link SwitchTransition } + * + */ + public SwitchTransition getOnTransitionType() { + return onTransitionType; + } + + /** + * Sets the value of the onTransitionType property. + * + * @param value + * allowed object is + * {@link SwitchTransition } + * + */ + public void setOnTransitionType(SwitchTransition value) { + this.onTransitionType = value; + } + + /** + * Gets the value of the onTransitionTime property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getOnTransitionTime() { + return onTransitionTime; + } + + /** + * Sets the value of the onTransitionTime property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setOnTransitionTime(Integer value) { + this.onTransitionTime = value; + } + + /** + * Gets the value of the offTransitionType property. + * + * @return + * possible object is + * {@link SwitchTransition } + * + */ + public SwitchTransition getOffTransitionType() { + return offTransitionType; + } + + /** + * Sets the value of the offTransitionType property. + * + * @param value + * allowed object is + * {@link SwitchTransition } + * + */ + public void setOffTransitionType(SwitchTransition value) { + this.offTransitionType = value; + } + + /** + * Gets the value of the offTransitionTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOffTransitionTime() { + return offTransitionTime; + } + + /** + * Sets the value of the offTransitionTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOffTransitionTime(String value) { + this.offTransitionTime = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/DolphinGraphicProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/DolphinGraphicProperties.java new file mode 100644 index 00000000..40989d79 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/DolphinGraphicProperties.java @@ -0,0 +1,244 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Dolphin graphic properties + * + *

Java class for dolphinGraphicProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="dolphinGraphicProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="param" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="startTime" type="{}timecode" />
+ *       <attribute name="latency" type="{}timecode" />
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="state">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="on"/>
+ *             <enumeration value="off"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dolphinGraphicProperties", propOrder = { + "param" +}) +public class DolphinGraphicProperties { + + protected List param; + @XmlAttribute(name = "startTime") + protected String startTime; + @XmlAttribute(name = "latency") + protected String latency; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "state") + protected String state; + + /** + * Gets the value of the param property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the param property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getParam().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link DolphinGraphicProperties.Param } + * + * + */ + public List getParam() { + if (param == null) { + param = new ArrayList(); + } + return this.param; + } + + /** + * Gets the value of the startTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStartTime() { + return startTime; + } + + /** + * Sets the value of the startTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartTime(String value) { + this.startTime = value; + } + + /** + * Gets the value of the latency property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLatency() { + return latency; + } + + /** + * Sets the value of the latency property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLatency(String value) { + this.latency = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setState(String value) { + this.state = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Param { + + @XmlAttribute(name = "value", required = true) + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EffectProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EffectProperties.java new file mode 100644 index 00000000..8f72324c --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EffectProperties.java @@ -0,0 +1,1493 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for effects + * + *

Java class for effectProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="effectProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="port" type="{}switchAllocation"/>
+ *         <choice>
+ *           <element name="keyer" minOccurs="0">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="transition" use="required" type="{}switchTransition" />
+ *                   <attribute name="rate" use="required" type="{}switchRate" />
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element name="audioOver">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="transition" use="required" type="{}switchTransition" />
+ *                   <attribute name="rate" use="required" type="{}switchRate" />
+ *                   <attribute name="percent" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *                         <minInclusive value="0"/>
+ *                         <maxInclusive value="100"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                   <attribute name="pgmPercent">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *                         <minInclusive value="0"/>
+ *                         <maxInclusive value="100"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element name="logo">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="transition" use="required" type="{}switchTransition" />
+ *                   <attribute name="rate" use="required" type="{}switchRate" />
+ *                   <attribute name="logo" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <minLength value="1"/>
+ *                         <maxLength value="64"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element name="audioMode">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="bus" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <enumeration value="PGM"/>
+ *                         <enumeration value="PST"/>
+ *                         <enumeration value="AP1"/>
+ *                         <enumeration value="AP2"/>
+ *                         <enumeration value="AP3"/>
+ *                         <enumeration value="AP4"/>
+ *                         <enumeration value="AP5"/>
+ *                         <enumeration value="AP6"/>
+ *                         <enumeration value="AP7"/>
+ *                         <enumeration value="AP8"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                   <attribute name="mode" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <enumeration value="NoChange"/>
+ *                         <enumeration value="Stereo"/>
+ *                         <enumeration value="LeftMono"/>
+ *                         <enumeration value="RightMono"/>
+ *                         <enumeration value="Custom1"/>
+ *                         <enumeration value="Custom2"/>
+ *                         <enumeration value="Custom3"/>
+ *                         <enumeration value="Custom4"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                   <attribute name="phase" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <enumeration value="NoChange"/>
+ *                         <enumeration value="Normal"/>
+ *                         <enumeration value="Reverse"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element name="dve">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="effect" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                   <attribute name="duration" type="{}timecode" />
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element name="audioShuffle">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <choice>
+ *                     <element name="macro" type="{}macroProperties"/>
+ *                     <element name="fixed">
+ *                       <complexType>
+ *                         <complexContent>
+ *                           <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                             <sequence>
+ *                               <element name="shuffle" maxOccurs="unbounded">
+ *                                 <complexType>
+ *                                   <complexContent>
+ *                                     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                       <attribute name="output" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                       <attribute name="input" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     </restriction>
+ *                                   </complexContent>
+ *                                 </complexType>
+ *                               </element>
+ *                             </sequence>
+ *                           </restriction>
+ *                         </complexContent>
+ *                       </complexType>
+ *                     </element>
+ *                   </choice>
+ *                   <attribute name="type" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <enumeration value="Macro"/>
+ *                         <enumeration value="Fixed"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                   <attribute name="validationMode" type="{}validationMode" />
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element name="audioClip">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="transition" type="{}switchTransition" />
+ *                   <attribute name="rate" type="{}switchRate" />
+ *                   <attribute name="percent">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *                         <minInclusive value="0"/>
+ *                         <maxInclusive value="100"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                   <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *         </choice>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Keyer"/>
+ *             <enumeration value="Audio Over"/>
+ *             <enumeration value="Logo"/>
+ *             <enumeration value="Audio Mode"/>
+ *             <enumeration value="DVE"/>
+ *             <enumeration value="Audio Shuffle"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="name">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="0"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "effectProperties", propOrder = { + "port", + "keyer", + "audioOver", + "logo", + "audioMode", + "dve", + "audioShuffle", + "audioClip" +}) +@XmlSeeAlso({ + PlaylistActionEventEffectProperties.class +}) +public class EffectProperties { + + @XmlElement(required = true) + protected SwitchAllocation port; + protected EffectProperties.Keyer keyer; + protected EffectProperties.AudioOver audioOver; + protected EffectProperties.Logo logo; + protected EffectProperties.AudioMode audioMode; + protected EffectProperties.Dve dve; + protected EffectProperties.AudioShuffle audioShuffle; + protected EffectProperties.AudioClip audioClip; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "name") + protected String name; + + /** + * Gets the value of the port property. + * + * @return + * possible object is + * {@link SwitchAllocation } + * + */ + public SwitchAllocation getPort() { + return port; + } + + /** + * Sets the value of the port property. + * + * @param value + * allowed object is + * {@link SwitchAllocation } + * + */ + public void setPort(SwitchAllocation value) { + this.port = value; + } + + /** + * Gets the value of the keyer property. + * + * @return + * possible object is + * {@link EffectProperties.Keyer } + * + */ + public EffectProperties.Keyer getKeyer() { + return keyer; + } + + /** + * Sets the value of the keyer property. + * + * @param value + * allowed object is + * {@link EffectProperties.Keyer } + * + */ + public void setKeyer(EffectProperties.Keyer value) { + this.keyer = value; + } + + /** + * Gets the value of the audioOver property. + * + * @return + * possible object is + * {@link EffectProperties.AudioOver } + * + */ + public EffectProperties.AudioOver getAudioOver() { + return audioOver; + } + + /** + * Sets the value of the audioOver property. + * + * @param value + * allowed object is + * {@link EffectProperties.AudioOver } + * + */ + public void setAudioOver(EffectProperties.AudioOver value) { + this.audioOver = value; + } + + /** + * Gets the value of the logo property. + * + * @return + * possible object is + * {@link EffectProperties.Logo } + * + */ + public EffectProperties.Logo getLogo() { + return logo; + } + + /** + * Sets the value of the logo property. + * + * @param value + * allowed object is + * {@link EffectProperties.Logo } + * + */ + public void setLogo(EffectProperties.Logo value) { + this.logo = value; + } + + /** + * Gets the value of the audioMode property. + * + * @return + * possible object is + * {@link EffectProperties.AudioMode } + * + */ + public EffectProperties.AudioMode getAudioMode() { + return audioMode; + } + + /** + * Sets the value of the audioMode property. + * + * @param value + * allowed object is + * {@link EffectProperties.AudioMode } + * + */ + public void setAudioMode(EffectProperties.AudioMode value) { + this.audioMode = value; + } + + /** + * Gets the value of the dve property. + * + * @return + * possible object is + * {@link EffectProperties.Dve } + * + */ + public EffectProperties.Dve getDve() { + return dve; + } + + /** + * Sets the value of the dve property. + * + * @param value + * allowed object is + * {@link EffectProperties.Dve } + * + */ + public void setDve(EffectProperties.Dve value) { + this.dve = value; + } + + /** + * Gets the value of the audioShuffle property. + * + * @return + * possible object is + * {@link EffectProperties.AudioShuffle } + * + */ + public EffectProperties.AudioShuffle getAudioShuffle() { + return audioShuffle; + } + + /** + * Sets the value of the audioShuffle property. + * + * @param value + * allowed object is + * {@link EffectProperties.AudioShuffle } + * + */ + public void setAudioShuffle(EffectProperties.AudioShuffle value) { + this.audioShuffle = value; + } + + /** + * Gets the value of the audioClip property. + * + * @return + * possible object is + * {@link EffectProperties.AudioClip } + * + */ + public EffectProperties.AudioClip getAudioClip() { + return audioClip; + } + + /** + * Sets the value of the audioClip property. + * + * @param value + * allowed object is + * {@link EffectProperties.AudioClip } + * + */ + public void setAudioClip(EffectProperties.AudioClip value) { + this.audioClip = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="transition" type="{}switchTransition" />
+     *       <attribute name="rate" type="{}switchRate" />
+     *       <attribute name="percent">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+     *             <minInclusive value="0"/>
+     *             <maxInclusive value="100"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="file" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class AudioClip { + + @XmlAttribute(name = "transition") + protected SwitchTransition transition; + @XmlAttribute(name = "rate") + protected SwitchRate rate; + @XmlAttribute(name = "percent") + protected Integer percent; + @XmlAttribute(name = "file") + @XmlSchemaType(name = "anySimpleType") + protected String file; + + /** + * Gets the value of the transition property. + * + * @return + * possible object is + * {@link SwitchTransition } + * + */ + public SwitchTransition getTransition() { + return transition; + } + + /** + * Sets the value of the transition property. + * + * @param value + * allowed object is + * {@link SwitchTransition } + * + */ + public void setTransition(SwitchTransition value) { + this.transition = value; + } + + /** + * Gets the value of the rate property. + * + * @return + * possible object is + * {@link SwitchRate } + * + */ + public SwitchRate getRate() { + return rate; + } + + /** + * Sets the value of the rate property. + * + * @param value + * allowed object is + * {@link SwitchRate } + * + */ + public void setRate(SwitchRate value) { + this.rate = value; + } + + /** + * Gets the value of the percent property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPercent() { + return percent; + } + + /** + * Sets the value of the percent property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPercent(Integer value) { + this.percent = value; + } + + /** + * Gets the value of the file property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFile() { + return file; + } + + /** + * Sets the value of the file property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFile(String value) { + this.file = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="bus" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="PGM"/>
+     *             <enumeration value="PST"/>
+     *             <enumeration value="AP1"/>
+     *             <enumeration value="AP2"/>
+     *             <enumeration value="AP3"/>
+     *             <enumeration value="AP4"/>
+     *             <enumeration value="AP5"/>
+     *             <enumeration value="AP6"/>
+     *             <enumeration value="AP7"/>
+     *             <enumeration value="AP8"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="mode" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="NoChange"/>
+     *             <enumeration value="Stereo"/>
+     *             <enumeration value="LeftMono"/>
+     *             <enumeration value="RightMono"/>
+     *             <enumeration value="Custom1"/>
+     *             <enumeration value="Custom2"/>
+     *             <enumeration value="Custom3"/>
+     *             <enumeration value="Custom4"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="phase" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="NoChange"/>
+     *             <enumeration value="Normal"/>
+     *             <enumeration value="Reverse"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class AudioMode { + + @XmlAttribute(name = "bus", required = true) + protected String bus; + @XmlAttribute(name = "mode", required = true) + protected String mode; + @XmlAttribute(name = "phase", required = true) + protected String phase; + + /** + * Gets the value of the bus property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBus() { + return bus; + } + + /** + * Sets the value of the bus property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBus(String value) { + this.bus = value; + } + + /** + * Gets the value of the mode property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMode() { + return mode; + } + + /** + * Sets the value of the mode property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMode(String value) { + this.mode = value; + } + + /** + * Gets the value of the phase property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPhase() { + return phase; + } + + /** + * Sets the value of the phase property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPhase(String value) { + this.phase = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="transition" use="required" type="{}switchTransition" />
+     *       <attribute name="rate" use="required" type="{}switchRate" />
+     *       <attribute name="percent" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+     *             <minInclusive value="0"/>
+     *             <maxInclusive value="100"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="pgmPercent">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+     *             <minInclusive value="0"/>
+     *             <maxInclusive value="100"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class AudioOver { + + @XmlAttribute(name = "transition", required = true) + protected SwitchTransition transition; + @XmlAttribute(name = "rate", required = true) + protected SwitchRate rate; + @XmlAttribute(name = "percent", required = true) + protected int percent; + @XmlAttribute(name = "pgmPercent") + protected Integer pgmPercent; + + /** + * Gets the value of the transition property. + * + * @return + * possible object is + * {@link SwitchTransition } + * + */ + public SwitchTransition getTransition() { + return transition; + } + + /** + * Sets the value of the transition property. + * + * @param value + * allowed object is + * {@link SwitchTransition } + * + */ + public void setTransition(SwitchTransition value) { + this.transition = value; + } + + /** + * Gets the value of the rate property. + * + * @return + * possible object is + * {@link SwitchRate } + * + */ + public SwitchRate getRate() { + return rate; + } + + /** + * Sets the value of the rate property. + * + * @param value + * allowed object is + * {@link SwitchRate } + * + */ + public void setRate(SwitchRate value) { + this.rate = value; + } + + /** + * Gets the value of the percent property. + * + */ + public int getPercent() { + return percent; + } + + /** + * Sets the value of the percent property. + * + */ + public void setPercent(int value) { + this.percent = value; + } + + /** + * Gets the value of the pgmPercent property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPgmPercent() { + return pgmPercent; + } + + /** + * Sets the value of the pgmPercent property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPgmPercent(Integer value) { + this.pgmPercent = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element name="macro" type="{}macroProperties"/>
+     *         <element name="fixed">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="shuffle" maxOccurs="unbounded">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <attribute name="output" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="input" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </choice>
+     *       <attribute name="type" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="Macro"/>
+     *             <enumeration value="Fixed"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="validationMode" type="{}validationMode" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "macro", + "fixed" + }) + public static class AudioShuffle { + + protected MacroProperties macro; + protected EffectProperties.AudioShuffle.Fixed fixed; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "validationMode") + protected ValidationMode validationMode; + + /** + * Gets the value of the macro property. + * + * @return + * possible object is + * {@link MacroProperties } + * + */ + public MacroProperties getMacro() { + return macro; + } + + /** + * Sets the value of the macro property. + * + * @param value + * allowed object is + * {@link MacroProperties } + * + */ + public void setMacro(MacroProperties value) { + this.macro = value; + } + + /** + * Gets the value of the fixed property. + * + * @return + * possible object is + * {@link EffectProperties.AudioShuffle.Fixed } + * + */ + public EffectProperties.AudioShuffle.Fixed getFixed() { + return fixed; + } + + /** + * Sets the value of the fixed property. + * + * @param value + * allowed object is + * {@link EffectProperties.AudioShuffle.Fixed } + * + */ + public void setFixed(EffectProperties.AudioShuffle.Fixed value) { + this.fixed = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the validationMode property. + * + * @return + * possible object is + * {@link ValidationMode } + * + */ + public ValidationMode getValidationMode() { + return validationMode; + } + + /** + * Sets the value of the validationMode property. + * + * @param value + * allowed object is + * {@link ValidationMode } + * + */ + public void setValidationMode(ValidationMode value) { + this.validationMode = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <element name="shuffle" maxOccurs="unbounded">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <attribute name="output" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="input" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "shuffle" + }) + public static class Fixed { + + @XmlElement(required = true) + protected List shuffle; + + /** + * Gets the value of the shuffle property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the shuffle property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getShuffle().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link EffectProperties.AudioShuffle.Fixed.Shuffle } + * + * + */ + public List getShuffle() { + if (shuffle == null) { + shuffle = new ArrayList(); + } + return this.shuffle; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <attribute name="output" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="input" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Shuffle { + + @XmlAttribute(name = "output", required = true) + protected String output; + @XmlAttribute(name = "input", required = true) + protected String input; + + /** + * Gets the value of the output property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOutput() { + return output; + } + + /** + * Sets the value of the output property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOutput(String value) { + this.output = value; + } + + /** + * Gets the value of the input property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInput() { + return input; + } + + /** + * Sets the value of the input property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInput(String value) { + this.input = value; + } + + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="effect" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="duration" type="{}timecode" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Dve { + + @XmlAttribute(name = "effect", required = true) + protected String effect; + @XmlAttribute(name = "duration") + protected String duration; + + /** + * Gets the value of the effect property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEffect() { + return effect; + } + + /** + * Sets the value of the effect property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEffect(String value) { + this.effect = value; + } + + /** + * Gets the value of the duration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDuration() { + return duration; + } + + /** + * Sets the value of the duration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDuration(String value) { + this.duration = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="transition" use="required" type="{}switchTransition" />
+     *       <attribute name="rate" use="required" type="{}switchRate" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Keyer { + + @XmlAttribute(name = "transition", required = true) + protected SwitchTransition transition; + @XmlAttribute(name = "rate", required = true) + protected SwitchRate rate; + + /** + * Gets the value of the transition property. + * + * @return + * possible object is + * {@link SwitchTransition } + * + */ + public SwitchTransition getTransition() { + return transition; + } + + /** + * Sets the value of the transition property. + * + * @param value + * allowed object is + * {@link SwitchTransition } + * + */ + public void setTransition(SwitchTransition value) { + this.transition = value; + } + + /** + * Gets the value of the rate property. + * + * @return + * possible object is + * {@link SwitchRate } + * + */ + public SwitchRate getRate() { + return rate; + } + + /** + * Sets the value of the rate property. + * + * @param value + * allowed object is + * {@link SwitchRate } + * + */ + public void setRate(SwitchRate value) { + this.rate = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="transition" use="required" type="{}switchTransition" />
+     *       <attribute name="rate" use="required" type="{}switchRate" />
+     *       <attribute name="logo" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Logo { + + @XmlAttribute(name = "transition", required = true) + protected SwitchTransition transition; + @XmlAttribute(name = "rate", required = true) + protected SwitchRate rate; + @XmlAttribute(name = "logo", required = true) + protected String logo; + + /** + * Gets the value of the transition property. + * + * @return + * possible object is + * {@link SwitchTransition } + * + */ + public SwitchTransition getTransition() { + return transition; + } + + /** + * Sets the value of the transition property. + * + * @param value + * allowed object is + * {@link SwitchTransition } + * + */ + public void setTransition(SwitchTransition value) { + this.transition = value; + } + + /** + * Gets the value of the rate property. + * + * @return + * possible object is + * {@link SwitchRate } + * + */ + public SwitchRate getRate() { + return rate; + } + + /** + * Sets the value of the rate property. + * + * @param value + * allowed object is + * {@link SwitchRate } + * + */ + public void setRate(SwitchRate value) { + this.rate = value; + } + + /** + * Gets the value of the logo property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLogo() { + return logo; + } + + /** + * Sets the value of the logo property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLogo(String value) { + this.logo = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventClassification.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventClassification.java new file mode 100644 index 00000000..b13576a8 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventClassification.java @@ -0,0 +1,34 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Classification used in a list event where 'AutoAssociate' doesn't make sense. + * + *

Java class for eventClassification complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="eventClassification">
+ *   <complexContent>
+ *     <restriction base="{}classification">
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "eventClassification") +public class EventClassification + extends Classification +{ + + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventClassifications.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventClassifications.java new file mode 100644 index 00000000..fcdee271 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventClassifications.java @@ -0,0 +1,37 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Collection of event classifications + * + *

Java class for eventClassifications complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="eventClassifications">
+ *   <complexContent>
+ *     <restriction base="{}classifications">
+ *       <sequence>
+ *         <element name="classification" type="{}eventClassification" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "eventClassifications") +public class EventClassifications + extends Classifications +{ + + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventContainer.java new file mode 100644 index 00000000..e7ad1c00 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="event" type="{}playlistPrimaryEvent"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "event" +}) +@XmlRootElement(name = "eventContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class EventContainer { + + @XmlElement(required = true) + protected PlaylistPrimaryEvent event; + + /** + * Gets the value of the event property. + * + * @return + * possible object is + * {@link PlaylistPrimaryEvent } + * + */ + public PlaylistPrimaryEvent getEvent() { + return event; + } + + /** + * Sets the value of the event property. + * + * @param value + * allowed object is + * {@link PlaylistPrimaryEvent } + * + */ + public void setEvent(PlaylistPrimaryEvent value) { + this.event = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventId.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventId.java new file mode 100644 index 00000000..c6c14e85 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventId.java @@ -0,0 +1,85 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for eventId complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="eventId">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="type" use="required" type="{http://www.pebble.tv/MarinaAPI}eventIdType" />
+ *       <attribute name="value" use="required" type="{http://www.pebble.tv/MarinaAPI}eventIdValue" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "eventId", namespace = "http://www.pebble.tv/MarinaAPI") +public class EventId { + + @XmlAttribute(name = "type", required = true) + protected EventIdType type; + @XmlAttribute(name = "value", required = true) + protected String value; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link EventIdType } + * + */ + public EventIdType getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link EventIdType } + * + */ + public void setType(EventIdType value) { + this.type = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdList.java new file mode 100644 index 00000000..4c17e212 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdList.java @@ -0,0 +1,71 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventId" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eventId" +}) +@XmlRootElement(name = "eventIdList", namespace = "http://www.pebble.tv/MarinaAPI") +public class EventIdList { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected List eventId; + + /** + * Gets the value of the eventId property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eventId property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEventId().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link EventId } + * + * + */ + public List getEventId() { + if (eventId == null) { + eventId = new ArrayList(); + } + return this.eventId; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainer.java new file mode 100644 index 00000000..b2b4e524 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventIdList" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eventIdList" +}) +@XmlRootElement(name = "eventIdListContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class EventIdListContainer { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected EventIdList eventIdList; + + /** + * Gets the value of the eventIdList property. + * + * @return + * possible object is + * {@link EventIdList } + * + */ + public EventIdList getEventIdList() { + return eventIdList; + } + + /** + * Sets the value of the eventIdList property. + * + * @param value + * allowed object is + * {@link EventIdList } + * + */ + public void setEventIdList(EventIdList value) { + this.eventIdList = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainerDeleted.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainerDeleted.java new file mode 100644 index 00000000..44e71470 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainerDeleted.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventIdList"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eventIdList" +}) +@XmlRootElement(name = "eventIdListContainerDeleted", namespace = "http://www.pebble.tv/MarinaAPI") +public class EventIdListContainerDeleted { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventIdList eventIdList; + + /** + * Gets the value of the eventIdList property. + * + * @return + * possible object is + * {@link EventIdList } + * + */ + public EventIdList getEventIdList() { + return eventIdList; + } + + /** + * Sets the value of the eventIdList property. + * + * @param value + * allowed object is + * {@link EventIdList } + * + */ + public void setEventIdList(EventIdList value) { + this.eventIdList = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainerNonQueried.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainerNonQueried.java new file mode 100644 index 00000000..193ceae4 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdListContainerNonQueried.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventIdList"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eventIdList" +}) +@XmlRootElement(name = "eventIdListContainerNonQueried", namespace = "http://www.pebble.tv/MarinaAPI") +public class EventIdListContainerNonQueried { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventIdList eventIdList; + + /** + * Gets the value of the eventIdList property. + * + * @return + * possible object is + * {@link EventIdList } + * + */ + public EventIdList getEventIdList() { + return eventIdList; + } + + /** + * Sets the value of the eventIdList property. + * + * @param value + * allowed object is + * {@link EventIdList } + * + */ + public void setEventIdList(EventIdList value) { + this.eventIdList = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdPositionEnum.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdPositionEnum.java new file mode 100644 index 00000000..b4cc5959 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdPositionEnum.java @@ -0,0 +1,40 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for eventIdPositionEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="eventIdPositionEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="FIRST"/>
+ *     <enumeration value="LAST"/>
+ *     <enumeration value="FOCUS"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "eventIdPositionEnum", namespace = "http://www.pebble.tv/MarinaAPI") +@XmlEnum +public enum EventIdPositionEnum { + + FIRST, + LAST, + FOCUS; + + public String value() { + return name(); + } + + public static EventIdPositionEnum fromValue(String v) { + return valueOf(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdType.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdType.java new file mode 100644 index 00000000..b3cfcfd2 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventIdType.java @@ -0,0 +1,40 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for eventIdType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="eventIdType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <minLength value="1"/>
+ *     <maxLength value="32"/>
+ *     <enumeration value="SERVER_UID"/>
+ *     <enumeration value="POSITION"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "eventIdType", namespace = "http://www.pebble.tv/MarinaAPI") +@XmlEnum +public enum EventIdType { + + SERVER_UID, + POSITION; + + public String value() { + return name(); + } + + public static EventIdType fromValue(String v) { + return valueOf(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventListContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventListContainer.java new file mode 100644 index 00000000..ada523ab --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventListContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="eventList" type="{}playlistPrimaryEventList"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eventList" +}) +@XmlRootElement(name = "eventListContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class EventListContainer { + + @XmlElement(required = true) + protected PlaylistPrimaryEventList eventList; + + /** + * Gets the value of the eventList property. + * + * @return + * possible object is + * {@link PlaylistPrimaryEventList } + * + */ + public PlaylistPrimaryEventList getEventList() { + return eventList; + } + + /** + * Sets the value of the eventList property. + * + * @param value + * allowed object is + * {@link PlaylistPrimaryEventList } + * + */ + public void setEventList(PlaylistPrimaryEventList value) { + this.eventList = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventProperties.java new file mode 100644 index 00000000..1dfa92dc --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventProperties.java @@ -0,0 +1,213 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for automation list events. + * + *

Java class for eventProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="eventProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all minOccurs="0">
+ *         <element name="comment" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <minLength value="0"/>
+ *               <maxLength value="255"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element name="classifications" type="{}eventClassifications" minOccurs="0"/>
+ *       </all>
+ *       <attribute name="title">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="reconcileKey" type="{}reconcileKey" />
+ *       <attribute name="houseId" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="validationMode" type="{}validationMode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "eventProperties", propOrder = { + +}) +public class EventProperties { + + protected String comment; + protected EventClassifications classifications; + @XmlAttribute(name = "title") + protected String title; + @XmlAttribute(name = "reconcileKey") + protected String reconcileKey; + @XmlAttribute(name = "houseId") + @XmlSchemaType(name = "anySimpleType") + protected String houseId; + @XmlAttribute(name = "validationMode") + protected ValidationMode validationMode; + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the classifications property. + * + * @return + * possible object is + * {@link EventClassifications } + * + */ + public EventClassifications getClassifications() { + return classifications; + } + + /** + * Sets the value of the classifications property. + * + * @param value + * allowed object is + * {@link EventClassifications } + * + */ + public void setClassifications(EventClassifications value) { + this.classifications = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the reconcileKey property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getReconcileKey() { + return reconcileKey; + } + + /** + * Sets the value of the reconcileKey property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setReconcileKey(String value) { + this.reconcileKey = value; + } + + /** + * Gets the value of the houseId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHouseId() { + return houseId; + } + + /** + * Sets the value of the houseId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHouseId(String value) { + this.houseId = value; + } + + /** + * Gets the value of the validationMode property. + * + * @return + * possible object is + * {@link ValidationMode } + * + */ + public ValidationMode getValidationMode() { + return validationMode; + } + + /** + * Sets the value of the validationMode property. + * + * @param value + * allowed object is + * {@link ValidationMode } + * + */ + public void setValidationMode(ValidationMode value) { + this.validationMode = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/EventType.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventType.java new file mode 100644 index 00000000..77716926 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/EventType.java @@ -0,0 +1,60 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for eventType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="eventType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Insert"/>
+ *     <enumeration value="Update"/>
+ *     <enumeration value="Delete"/>
+ *     <enumeration value="Handshake"/>
+ *     <enumeration value="Heartbeat"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "eventType") +@XmlEnum +public enum EventType { + + @XmlEnumValue("Insert") + INSERT("Insert"), + @XmlEnumValue("Update") + UPDATE("Update"), + @XmlEnumValue("Delete") + DELETE("Delete"), + @XmlEnumValue("Handshake") + HANDSHAKE("Handshake"), + @XmlEnumValue("Heartbeat") + HEARTBEAT("Heartbeat"); + private final String value; + + EventType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static EventType fromValue(String v) { + for (EventType c: EventType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/FeaturesProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/FeaturesProperties.java new file mode 100644 index 00000000..f91a8572 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/FeaturesProperties.java @@ -0,0 +1,610 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties allowed for an event feature. + * + *

Java class for featuresProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="featuresProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="feature" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="properties" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <all>
+ *                             <element name="media" type="{}mediaSimple" minOccurs="0"/>
+ *                             <element name="mediaStream" type="{}mediaStreamProperties" minOccurs="0"/>
+ *                             <element name="macro" type="{}macroProperties" minOccurs="0"/>
+ *                             <element name="vps" type="{}vpsProperties" minOccurs="0"/>
+ *                             <element name="aspectRatio" type="{}aspectRatioProperties" minOccurs="0"/>
+ *                             <element name="fieldList" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <sequence maxOccurs="unbounded">
+ *                                       <element name="field">
+ *                                         <complexType>
+ *                                           <complexContent>
+ *                                             <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                               <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                               <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                             </restriction>
+ *                                           </complexContent>
+ *                                         </complexType>
+ *                                       </element>
+ *                                     </sequence>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                             <element name="effect" type="{}effectProperties" minOccurs="0"/>
+ *                           </all>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="type" use="required" type="{}usageType" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "featuresProperties", propOrder = { + "feature" +}) +public class FeaturesProperties { + + @XmlElement(required = true) + protected List feature; + + /** + * Gets the value of the feature property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the feature property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getFeature().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link FeaturesProperties.Feature } + * + * + */ + public List getFeature() { + if (feature == null) { + feature = new ArrayList(); + } + return this.feature; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="properties" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <all>
+     *                   <element name="media" type="{}mediaSimple" minOccurs="0"/>
+     *                   <element name="mediaStream" type="{}mediaStreamProperties" minOccurs="0"/>
+     *                   <element name="macro" type="{}macroProperties" minOccurs="0"/>
+     *                   <element name="vps" type="{}vpsProperties" minOccurs="0"/>
+     *                   <element name="aspectRatio" type="{}aspectRatioProperties" minOccurs="0"/>
+     *                   <element name="fieldList" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <sequence maxOccurs="unbounded">
+     *                             <element name="field">
+     *                               <complexType>
+     *                                 <complexContent>
+     *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                                     <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                                     <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                                   </restriction>
+     *                                 </complexContent>
+     *                               </complexType>
+     *                             </element>
+     *                           </sequence>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                   <element name="effect" type="{}effectProperties" minOccurs="0"/>
+     *                 </all>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="type" use="required" type="{}usageType" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "properties" + }) + public static class Feature { + + protected FeaturesProperties.Feature.Properties properties; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link FeaturesProperties.Feature.Properties } + * + */ + public FeaturesProperties.Feature.Properties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link FeaturesProperties.Feature.Properties } + * + */ + public void setProperties(FeaturesProperties.Feature.Properties value) { + this.properties = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <all>
+         *         <element name="media" type="{}mediaSimple" minOccurs="0"/>
+         *         <element name="mediaStream" type="{}mediaStreamProperties" minOccurs="0"/>
+         *         <element name="macro" type="{}macroProperties" minOccurs="0"/>
+         *         <element name="vps" type="{}vpsProperties" minOccurs="0"/>
+         *         <element name="aspectRatio" type="{}aspectRatioProperties" minOccurs="0"/>
+         *         <element name="fieldList" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <sequence maxOccurs="unbounded">
+         *                   <element name="field">
+         *                     <complexType>
+         *                       <complexContent>
+         *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                           <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                         </restriction>
+         *                       </complexContent>
+         *                     </complexType>
+         *                   </element>
+         *                 </sequence>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *         <element name="effect" type="{}effectProperties" minOccurs="0"/>
+         *       </all>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Properties { + + protected MediaSimple media; + protected MediaStreamProperties mediaStream; + protected MacroProperties macro; + protected VpsProperties vps; + protected AspectRatioProperties aspectRatio; + protected FeaturesProperties.Feature.Properties.FieldList fieldList; + protected EffectProperties effect; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link MediaSimple } + * + */ + public MediaSimple getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link MediaSimple } + * + */ + public void setMedia(MediaSimple value) { + this.media = value; + } + + /** + * Gets the value of the mediaStream property. + * + * @return + * possible object is + * {@link MediaStreamProperties } + * + */ + public MediaStreamProperties getMediaStream() { + return mediaStream; + } + + /** + * Sets the value of the mediaStream property. + * + * @param value + * allowed object is + * {@link MediaStreamProperties } + * + */ + public void setMediaStream(MediaStreamProperties value) { + this.mediaStream = value; + } + + /** + * Gets the value of the macro property. + * + * @return + * possible object is + * {@link MacroProperties } + * + */ + public MacroProperties getMacro() { + return macro; + } + + /** + * Sets the value of the macro property. + * + * @param value + * allowed object is + * {@link MacroProperties } + * + */ + public void setMacro(MacroProperties value) { + this.macro = value; + } + + /** + * Gets the value of the vps property. + * + * @return + * possible object is + * {@link VpsProperties } + * + */ + public VpsProperties getVps() { + return vps; + } + + /** + * Sets the value of the vps property. + * + * @param value + * allowed object is + * {@link VpsProperties } + * + */ + public void setVps(VpsProperties value) { + this.vps = value; + } + + /** + * Gets the value of the aspectRatio property. + * + * @return + * possible object is + * {@link AspectRatioProperties } + * + */ + public AspectRatioProperties getAspectRatio() { + return aspectRatio; + } + + /** + * Sets the value of the aspectRatio property. + * + * @param value + * allowed object is + * {@link AspectRatioProperties } + * + */ + public void setAspectRatio(AspectRatioProperties value) { + this.aspectRatio = value; + } + + /** + * Gets the value of the fieldList property. + * + * @return + * possible object is + * {@link FeaturesProperties.Feature.Properties.FieldList } + * + */ + public FeaturesProperties.Feature.Properties.FieldList getFieldList() { + return fieldList; + } + + /** + * Sets the value of the fieldList property. + * + * @param value + * allowed object is + * {@link FeaturesProperties.Feature.Properties.FieldList } + * + */ + public void setFieldList(FeaturesProperties.Feature.Properties.FieldList value) { + this.fieldList = value; + } + + /** + * Gets the value of the effect property. + * + * @return + * possible object is + * {@link EffectProperties } + * + */ + public EffectProperties getEffect() { + return effect; + } + + /** + * Sets the value of the effect property. + * + * @param value + * allowed object is + * {@link EffectProperties } + * + */ + public void setEffect(EffectProperties value) { + this.effect = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <sequence maxOccurs="unbounded">
+             *         <element name="field">
+             *           <complexType>
+             *             <complexContent>
+             *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *                 <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *               </restriction>
+             *             </complexContent>
+             *           </complexType>
+             *         </element>
+             *       </sequence>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "field" + }) + public static class FieldList { + + @XmlElement(required = true) + protected List field; + + /** + * Gets the value of the field property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the field property. + * + *

+ * For example, to add a new item, do as follows: + *

+                 *    getField().add(newItem);
+                 * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link FeaturesProperties.Feature.Properties.FieldList.Field } + * + * + */ + public List getField() { + if (field == null) { + field = new ArrayList(); + } + return this.field; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+                 * <complexType>
+                 *   <complexContent>
+                 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+                 *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+                 *       <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+                 *     </restriction>
+                 *   </complexContent>
+                 * </complexType>
+                 * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Field { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "value", required = true) + protected String value; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + } + + } + + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetContiguousListEventsOutput.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetContiguousListEventsOutput.java new file mode 100644 index 00000000..51423276 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetContiguousListEventsOutput.java @@ -0,0 +1,132 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}nEventCount"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventListContainer"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}bMoreEventsAvailable"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}nextEventId" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "nEventCount", + "eventListContainer", + "bMoreEventsAvailable", + "nextEventId" +}) +@XmlRootElement(name = "getContiguousListEventsOutput", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetContiguousListEventsOutput { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected int nEventCount; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventListContainer eventListContainer; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected boolean bMoreEventsAvailable; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected EventId nextEventId; + + /** + * The number of events contained in the event list container. + * + */ + public int getNEventCount() { + return nEventCount; + } + + /** + * Sets the value of the nEventCount property. + * + */ + public void setNEventCount(int value) { + this.nEventCount = value; + } + + /** + * A list of events returned using the passed in query parameters. + * + * @return + * possible object is + * {@link EventListContainer } + * + */ + public EventListContainer getEventListContainer() { + return eventListContainer; + } + + /** + * Sets the value of the eventListContainer property. + * + * @param value + * allowed object is + * {@link EventListContainer } + * + */ + public void setEventListContainer(EventListContainer value) { + this.eventListContainer = value; + } + + /** + * A flag to indicate whether there are more events available after the last event returned in the event list container. + * + */ + public boolean isBMoreEventsAvailable() { + return bMoreEventsAvailable; + } + + /** + * Sets the value of the bMoreEventsAvailable property. + * + */ + public void setBMoreEventsAvailable(boolean value) { + this.bMoreEventsAvailable = value; + } + + /** + * The event id key for the next event in the list after the last event contained in the event list container. + * + * @return + * possible object is + * {@link EventId } + * + */ + public EventId getNextEventId() { + return nextEventId; + } + + /** + * Sets the value of the nextEventId property. + * + * @param value + * allowed object is + * {@link EventId } + * + */ + public void setNextEventId(EventId value) { + this.nextEventId = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetCustomViewRequestContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetCustomViewRequestContainer.java new file mode 100644 index 00000000..2f3c8db0 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetCustomViewRequestContainer.java @@ -0,0 +1,124 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="marinaCustomAPI">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="view" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "marinaCustomAPI" +}) +@XmlRootElement(name = "getCustomViewRequestContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetCustomViewRequestContainer { + + @XmlElement(required = true) + protected GetCustomViewRequestContainer.MarinaCustomAPI marinaCustomAPI; + + /** + * Gets the value of the marinaCustomAPI property. + * + * @return + * possible object is + * {@link GetCustomViewRequestContainer.MarinaCustomAPI } + * + */ + public GetCustomViewRequestContainer.MarinaCustomAPI getMarinaCustomAPI() { + return marinaCustomAPI; + } + + /** + * Sets the value of the marinaCustomAPI property. + * + * @param value + * allowed object is + * {@link GetCustomViewRequestContainer.MarinaCustomAPI } + * + */ + public void setMarinaCustomAPI(GetCustomViewRequestContainer.MarinaCustomAPI value) { + this.marinaCustomAPI = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="view" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class MarinaCustomAPI { + + @XmlAttribute(name = "view", required = true) + protected String view; + + /** + * Gets the value of the view property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getView() { + return view; + } + + /** + * Sets the value of the view property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setView(String value) { + this.view = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetCustomViewResponseContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetCustomViewResponseContainer.java new file mode 100644 index 00000000..d04ae2b7 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetCustomViewResponseContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mediaList" type="{}mediaList"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaList" +}) +@XmlRootElement(name = "getCustomViewResponseContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetCustomViewResponseContainer { + + @XmlElement(required = true) + protected MediaList mediaList; + + /** + * Gets the value of the mediaList property. + * + * @return + * possible object is + * {@link MediaList } + * + */ + public MediaList getMediaList() { + return mediaList; + } + + /** + * Sets the value of the mediaList property. + * + * @param value + * allowed object is + * {@link MediaList } + * + */ + public void setMediaList(MediaList value) { + this.mediaList = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetJobRequestContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetJobRequestContainer.java new file mode 100644 index 00000000..5dd55ab3 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetJobRequestContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="job" type="{}job"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "job" +}) +@XmlRootElement(name = "getJobRequestContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetJobRequestContainer { + + @XmlElement(required = true) + protected Job job; + + /** + * Gets the value of the job property. + * + * @return + * possible object is + * {@link Job } + * + */ + public Job getJob() { + return job; + } + + /** + * Sets the value of the job property. + * + * @param value + * allowed object is + * {@link Job } + * + */ + public void setJob(Job value) { + this.job = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetJobsForMediaRequestContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetJobsForMediaRequestContainer.java new file mode 100644 index 00000000..34c5d17d --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetJobsForMediaRequestContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="media" type="{}media"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "media" +}) +@XmlRootElement(name = "getJobsForMediaRequestContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetJobsForMediaRequestContainer { + + @XmlElement(required = true) + protected Media media; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link Media } + * + */ + public Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link Media } + * + */ + public void setMedia(Media value) { + this.media = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetListEventChangesAuxXMLOutput.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetListEventChangesAuxXMLOutput.java new file mode 100644 index 00000000..93d9b5fe --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetListEventChangesAuxXMLOutput.java @@ -0,0 +1,132 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventListContainer"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}nEventCount"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventIdListContainer"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}nEventCountNoAuxXml"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eventListContainer", + "nEventCount", + "eventIdListContainer", + "nEventCountNoAuxXml" +}) +@XmlRootElement(name = "getListEventChangesAuxXMLOutput", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetListEventChangesAuxXMLOutput { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventListContainer eventListContainer; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected int nEventCount; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventIdListContainer eventIdListContainer; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected int nEventCountNoAuxXml; + + /** + * Gets the value of the eventListContainer property. + * + * @return + * possible object is + * {@link EventListContainer } + * + */ + public EventListContainer getEventListContainer() { + return eventListContainer; + } + + /** + * Sets the value of the eventListContainer property. + * + * @param value + * allowed object is + * {@link EventListContainer } + * + */ + public void setEventListContainer(EventListContainer value) { + this.eventListContainer = value; + } + + /** + * Gets the value of the nEventCount property. + * + */ + public int getNEventCount() { + return nEventCount; + } + + /** + * Sets the value of the nEventCount property. + * + */ + public void setNEventCount(int value) { + this.nEventCount = value; + } + + /** + * Gets the value of the eventIdListContainer property. + * + * @return + * possible object is + * {@link EventIdListContainer } + * + */ + public EventIdListContainer getEventIdListContainer() { + return eventIdListContainer; + } + + /** + * Sets the value of the eventIdListContainer property. + * + * @param value + * allowed object is + * {@link EventIdListContainer } + * + */ + public void setEventIdListContainer(EventIdListContainer value) { + this.eventIdListContainer = value; + } + + /** + * Gets the value of the nEventCountNoAuxXml property. + * + */ + public int getNEventCountNoAuxXml() { + return nEventCountNoAuxXml; + } + + /** + * Sets the value of the nEventCountNoAuxXml property. + * + */ + public void setNEventCountNoAuxXml(int value) { + this.nEventCountNoAuxXml = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetListEventChangesOutput.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetListEventChangesOutput.java new file mode 100644 index 00000000..fe97f16f --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetListEventChangesOutput.java @@ -0,0 +1,84 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventIdListContainer"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}nEventCount"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eventIdListContainer", + "nEventCount" +}) +@XmlRootElement(name = "getListEventChangesOutput", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetListEventChangesOutput { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventIdListContainer eventIdListContainer; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected int nEventCount; + + /** + * A list of event id's for events that have changed and meet the filters provided. + * + * @return + * possible object is + * {@link EventIdListContainer } + * + */ + public EventIdListContainer getEventIdListContainer() { + return eventIdListContainer; + } + + /** + * Sets the value of the eventIdListContainer property. + * + * @param value + * allowed object is + * {@link EventIdListContainer } + * + */ + public void setEventIdListContainer(EventIdListContainer value) { + this.eventIdListContainer = value; + } + + /** + * The number of events contained in the returned event id list container. + * + */ + public int getNEventCount() { + return nEventCount; + } + + /** + * Sets the value of the nEventCount property. + * + */ + public void setNEventCount(int value) { + this.nEventCount = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetNonContiguousListEventsOutput.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetNonContiguousListEventsOutput.java new file mode 100644 index 00000000..d37a4452 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetNonContiguousListEventsOutput.java @@ -0,0 +1,180 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventListContainer"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}nEventCount"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventIdListContainerDeleted"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}nEventCountDeleted"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}eventIdListContainerNonQueried"/>
+ *         <element ref="{http://www.pebble.tv/MarinaAPI}nEventCountNonQueried"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eventListContainer", + "nEventCount", + "eventIdListContainerDeleted", + "nEventCountDeleted", + "eventIdListContainerNonQueried", + "nEventCountNonQueried" +}) +@XmlRootElement(name = "getNonContiguousListEventsOutput", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetNonContiguousListEventsOutput { + + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventListContainer eventListContainer; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected int nEventCount; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventIdListContainerDeleted eventIdListContainerDeleted; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected int nEventCountDeleted; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI", required = true) + protected EventIdListContainerNonQueried eventIdListContainerNonQueried; + @XmlElement(namespace = "http://www.pebble.tv/MarinaAPI") + protected int nEventCountNonQueried; + + /** + * A list of events returned using the passed in query parameters. + * + * @return + * possible object is + * {@link EventListContainer } + * + */ + public EventListContainer getEventListContainer() { + return eventListContainer; + } + + /** + * Sets the value of the eventListContainer property. + * + * @param value + * allowed object is + * {@link EventListContainer } + * + */ + public void setEventListContainer(EventListContainer value) { + this.eventListContainer = value; + } + + /** + * The number of events contained in the event list container. + * + */ + public int getNEventCount() { + return nEventCount; + } + + /** + * Sets the value of the nEventCount property. + * + */ + public void setNEventCount(int value) { + this.nEventCount = value; + } + + /** + * A list of event id's for events that have been deleted from the list of events to query. + * + * @return + * possible object is + * {@link EventIdListContainerDeleted } + * + */ + public EventIdListContainerDeleted getEventIdListContainerDeleted() { + return eventIdListContainerDeleted; + } + + /** + * Sets the value of the eventIdListContainerDeleted property. + * + * @param value + * allowed object is + * {@link EventIdListContainerDeleted } + * + */ + public void setEventIdListContainerDeleted(EventIdListContainerDeleted value) { + this.eventIdListContainerDeleted = value; + } + + /** + * The number of events contained in the deleted events event id list container. + * + */ + public int getNEventCountDeleted() { + return nEventCountDeleted; + } + + /** + * Sets the value of the nEventCountDeleted property. + * + */ + public void setNEventCountDeleted(int value) { + this.nEventCountDeleted = value; + } + + /** + * A list of event id's for events that were not queried this will always be a subset of the list of event id's passed in to query. + * + * @return + * possible object is + * {@link EventIdListContainerNonQueried } + * + */ + public EventIdListContainerNonQueried getEventIdListContainerNonQueried() { + return eventIdListContainerNonQueried; + } + + /** + * Sets the value of the eventIdListContainerNonQueried property. + * + * @param value + * allowed object is + * {@link EventIdListContainerNonQueried } + * + */ + public void setEventIdListContainerNonQueried(EventIdListContainerNonQueried value) { + this.eventIdListContainerNonQueried = value; + } + + /** + * The number of events contained in the non-queried events event id list container. + * + */ + public int getNEventCountNonQueried() { + return nEventCountNonQueried; + } + + /** + * Sets the value of the nEventCountNonQueried property. + * + */ + public void setNEventCountNonQueried(int value) { + this.nEventCountNonQueried = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetScheduledJobRequestContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetScheduledJobRequestContainer.java new file mode 100644 index 00000000..e34016f1 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetScheduledJobRequestContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="job" type="{}scheduledJob"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "job" +}) +@XmlRootElement(name = "getScheduledJobRequestContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetScheduledJobRequestContainer { + + @XmlElement(required = true) + protected ScheduledJob job; + + /** + * Gets the value of the job property. + * + * @return + * possible object is + * {@link ScheduledJob } + * + */ + public ScheduledJob getJob() { + return job; + } + + /** + * Sets the value of the job property. + * + * @param value + * allowed object is + * {@link ScheduledJob } + * + */ + public void setJob(ScheduledJob value) { + this.job = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/GetScheduledJobsForMediaRequestContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetScheduledJobsForMediaRequestContainer.java new file mode 100644 index 00000000..38754dd7 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/GetScheduledJobsForMediaRequestContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="media" type="{}media"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "media" +}) +@XmlRootElement(name = "getScheduledJobsForMediaRequestContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class GetScheduledJobsForMediaRequestContainer { + + @XmlElement(required = true) + protected Media media; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link Media } + * + */ + public Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link Media } + * + */ + public void setMedia(Media value) { + this.media = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/HealthFlag.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/HealthFlag.java new file mode 100644 index 00000000..bb20d473 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/HealthFlag.java @@ -0,0 +1,60 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * A instance of a health flag applicable to a component. + * + *

Java class for healthFlag complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="healthFlag">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="name" type="{}componentHealth" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "healthFlag") +public class HealthFlag { + + @XmlAttribute(name = "name") + protected ComponentHealth name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link ComponentHealth } + * + */ + public ComponentHealth getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link ComponentHealth } + * + */ + public void setName(ComponentHealth value) { + this.name = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/HealthList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/HealthList.java new file mode 100644 index 00000000..889b36ef --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/HealthList.java @@ -0,0 +1,71 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * A list of all health flags applicable to a component + * + *

Java class for healthList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="healthList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="healthFlag" type="{}healthFlag" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "healthList", propOrder = { + "healthFlag" +}) +public class HealthList { + + @XmlElement(required = true) + protected List healthFlag; + + /** + * Gets the value of the healthFlag property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the healthFlag property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getHealthFlag().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link HealthFlag } + * + * + */ + public List getHealthFlag() { + if (healthFlag == null) { + healthFlag = new ArrayList(); + } + return this.healthFlag; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Heartbeat.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Heartbeat.java new file mode 100644 index 00000000..8ec1ed58 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Heartbeat.java @@ -0,0 +1,136 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * A representation of a connection heartbeat + * + *

Java class for heartbeat complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="heartbeat">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="auxXML" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "heartbeat", propOrder = { + +}) +public class Heartbeat { + + protected Heartbeat.AuxXML auxXML; + + /** + * Gets the value of the auxXML property. + * + * @return + * possible object is + * {@link Heartbeat.AuxXML } + * + */ + public Heartbeat.AuxXML getAuxXML() { + return auxXML; + } + + /** + * Sets the value of the auxXML property. + * + * @param value + * allowed object is + * {@link Heartbeat.AuxXML } + * + */ + public void setAuxXML(Heartbeat.AuxXML value) { + this.auxXML = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class AuxXML { + + @XmlAnyElement + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAny().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/HistoryProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/HistoryProperties.java new file mode 100644 index 00000000..c29414d9 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/HistoryProperties.java @@ -0,0 +1,377 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + * Properties for keeping track of object history. + * + *

Java class for historyProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="historyProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="created" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="author" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="1"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="time" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *                 <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="modified" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="author" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="1"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="time" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+ *                 <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *       <attribute name="source" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "historyProperties", propOrder = { + +}) +public class HistoryProperties { + + protected HistoryProperties.Created created; + protected HistoryProperties.Modified modified; + @XmlAttribute(name = "source") + @XmlSchemaType(name = "anySimpleType") + protected String source; + + /** + * Gets the value of the created property. + * + * @return + * possible object is + * {@link HistoryProperties.Created } + * + */ + public HistoryProperties.Created getCreated() { + return created; + } + + /** + * Sets the value of the created property. + * + * @param value + * allowed object is + * {@link HistoryProperties.Created } + * + */ + public void setCreated(HistoryProperties.Created value) { + this.created = value; + } + + /** + * Gets the value of the modified property. + * + * @return + * possible object is + * {@link HistoryProperties.Modified } + * + */ + public HistoryProperties.Modified getModified() { + return modified; + } + + /** + * Sets the value of the modified property. + * + * @param value + * allowed object is + * {@link HistoryProperties.Modified } + * + */ + public void setModified(HistoryProperties.Modified value) { + this.modified = value; + } + + /** + * Gets the value of the source property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSource(String value) { + this.source = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="author" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="time" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+     *       <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Created { + + @XmlAttribute(name = "author", required = true) + protected String author; + @XmlAttribute(name = "time", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar time; + @XmlAttribute(name = "comment") + @XmlSchemaType(name = "anySimpleType") + protected String comment; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setTime(XMLGregorianCalendar value) { + this.time = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="author" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="time" use="required" type="{http://www.w3.org/2001/XMLSchema}dateTime" />
+     *       <attribute name="comment" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Modified { + + @XmlAttribute(name = "author", required = true) + protected String author; + @XmlAttribute(name = "time", required = true) + @XmlSchemaType(name = "dateTime") + protected XMLGregorianCalendar time; + @XmlAttribute(name = "comment") + @XmlSchemaType(name = "anySimpleType") + protected String comment; + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setTime(XMLGregorianCalendar value) { + this.time = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/IngestProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/IngestProperties.java new file mode 100644 index 00000000..5b42414b --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/IngestProperties.java @@ -0,0 +1,117 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties used by ingest jobs + * + *

Java class for ingestProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="ingestProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="reviewJob" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="reviewOffset" use="required" type="{}timecode" />
+ *       <attribute name="abortOnReviewFailure" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="switchOnPrepare" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "ingestProperties") +public class IngestProperties { + + @XmlAttribute(name = "reviewJob", required = true) + protected boolean reviewJob; + @XmlAttribute(name = "reviewOffset", required = true) + protected String reviewOffset; + @XmlAttribute(name = "abortOnReviewFailure", required = true) + protected boolean abortOnReviewFailure; + @XmlAttribute(name = "switchOnPrepare", required = true) + protected boolean switchOnPrepare; + + /** + * Gets the value of the reviewJob property. + * + */ + public boolean isReviewJob() { + return reviewJob; + } + + /** + * Sets the value of the reviewJob property. + * + */ + public void setReviewJob(boolean value) { + this.reviewJob = value; + } + + /** + * Gets the value of the reviewOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getReviewOffset() { + return reviewOffset; + } + + /** + * Sets the value of the reviewOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setReviewOffset(String value) { + this.reviewOffset = value; + } + + /** + * Gets the value of the abortOnReviewFailure property. + * + */ + public boolean isAbortOnReviewFailure() { + return abortOnReviewFailure; + } + + /** + * Sets the value of the abortOnReviewFailure property. + * + */ + public void setAbortOnReviewFailure(boolean value) { + this.abortOnReviewFailure = value; + } + + /** + * Gets the value of the switchOnPrepare property. + * + */ + public boolean isSwitchOnPrepare() { + return switchOnPrepare; + } + + /** + * Sets the value of the switchOnPrepare property. + * + */ + public void setSwitchOnPrepare(boolean value) { + this.switchOnPrepare = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Job.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Job.java new file mode 100644 index 00000000..d32f0ee9 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Job.java @@ -0,0 +1,156 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * A single job + * + *

Java class for job complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="job">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="state" type="{}jobState" minOccurs="0"/>
+ *         <element name="properties" type="{}jobProperties" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Transfer"/>
+ *             <enumeration value="Delete"/>
+ *             <enumeration value="Thumbnail"/>
+ *             <enumeration value="Demo"/>
+ *             <enumeration value="Assistant"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "job", propOrder = { + "state", + "properties" +}) +public class Job { + + protected JobState state; + protected JobProperties properties; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "uid") + @XmlSchemaType(name = "anySimpleType") + protected String uid; + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link JobState } + * + */ + public JobState getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link JobState } + * + */ + public void setState(JobState value) { + this.state = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link JobProperties } + * + */ + public JobProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link JobProperties } + * + */ + public void setProperties(JobProperties value) { + this.properties = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUid(String value) { + this.uid = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/JobContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobContainer.java new file mode 100644 index 00000000..a5d461dc --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="job" type="{}job"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "job" +}) +@XmlRootElement(name = "jobContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class JobContainer { + + @XmlElement(required = true) + protected Job job; + + /** + * Gets the value of the job property. + * + * @return + * possible object is + * {@link Job } + * + */ + public Job getJob() { + return job; + } + + /** + * Sets the value of the job property. + * + * @param value + * allowed object is + * {@link Job } + * + */ + public void setJob(Job value) { + this.job = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/JobList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobList.java new file mode 100644 index 00000000..a1cb5b54 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobList.java @@ -0,0 +1,69 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * A List of jobs. + * + *

Java class for jobList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="jobList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="job" type="{}job" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "jobList", propOrder = { + "job" +}) +public class JobList { + + protected List job; + + /** + * Gets the value of the job property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the job property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getJob().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Job } + * + * + */ + public List getJob() { + if (job == null) { + job = new ArrayList(); + } + return this.job; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/JobListContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobListContainer.java new file mode 100644 index 00000000..019a63e6 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobListContainer.java @@ -0,0 +1,83 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="jobList" type="{}jobList"/>
+ *         <element name="moreResults" type="{}moreResults"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "jobList", + "moreResults" +}) +@XmlRootElement(name = "jobListContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class JobListContainer { + + @XmlElement(required = true) + protected JobList jobList; + protected boolean moreResults; + + /** + * Gets the value of the jobList property. + * + * @return + * possible object is + * {@link JobList } + * + */ + public JobList getJobList() { + return jobList; + } + + /** + * Sets the value of the jobList property. + * + * @param value + * allowed object is + * {@link JobList } + * + */ + public void setJobList(JobList value) { + this.jobList = value; + } + + /** + * Gets the value of the moreResults property. + * + */ + public boolean isMoreResults() { + return moreResults; + } + + /** + * Sets the value of the moreResults property. + * + */ + public void setMoreResults(boolean value) { + this.moreResults = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/JobListProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobListProperties.java new file mode 100644 index 00000000..59fa9ad2 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobListProperties.java @@ -0,0 +1,92 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a job list. + * + *

Java class for jobListProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="jobListProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="history" type="{}historyProperties" minOccurs="0"/>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "jobListProperties", propOrder = { + +}) +@XmlSeeAlso({ + KeepListProperties.class +}) +public class JobListProperties { + + protected HistoryProperties history; + protected Object auxData; + + /** + * Gets the value of the history property. + * + * @return + * possible object is + * {@link HistoryProperties } + * + */ + public HistoryProperties getHistory() { + return history; + } + + /** + * Sets the value of the history property. + * + * @param value + * allowed object is + * {@link HistoryProperties } + * + */ + public void setHistory(HistoryProperties value) { + this.history = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/JobProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobProperties.java new file mode 100644 index 00000000..49d68154 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobProperties.java @@ -0,0 +1,362 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a job. + * + *

Java class for jobProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="jobProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="secondaries" type="{}secondaries" minOccurs="0"/>
+ *         <element name="media" type="{}media" minOccurs="0"/>
+ *         <element name="transfer" type="{}transfer" minOccurs="0"/>
+ *         <element name="delete" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="confirmed" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="global" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="deleteMediaRecord" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="crossDomain" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="priority" type="{}priority" minOccurs="0"/>
+ *         <element name="mediaStream" type="{}mediaStreamIngestProperties" minOccurs="0"/>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "jobProperties", propOrder = { + +}) +public class JobProperties { + + protected Secondaries secondaries; + protected Media media; + protected Transfer transfer; + protected JobProperties.Delete delete; + protected Priority priority; + protected MediaStreamIngestProperties mediaStream; + protected Object auxData; + + /** + * Gets the value of the secondaries property. + * + * @return + * possible object is + * {@link Secondaries } + * + */ + public Secondaries getSecondaries() { + return secondaries; + } + + /** + * Sets the value of the secondaries property. + * + * @param value + * allowed object is + * {@link Secondaries } + * + */ + public void setSecondaries(Secondaries value) { + this.secondaries = value; + } + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link Media } + * + */ + public Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link Media } + * + */ + public void setMedia(Media value) { + this.media = value; + } + + /** + * Gets the value of the transfer property. + * + * @return + * possible object is + * {@link Transfer } + * + */ + public Transfer getTransfer() { + return transfer; + } + + /** + * Sets the value of the transfer property. + * + * @param value + * allowed object is + * {@link Transfer } + * + */ + public void setTransfer(Transfer value) { + this.transfer = value; + } + + /** + * Gets the value of the delete property. + * + * @return + * possible object is + * {@link JobProperties.Delete } + * + */ + public JobProperties.Delete getDelete() { + return delete; + } + + /** + * Sets the value of the delete property. + * + * @param value + * allowed object is + * {@link JobProperties.Delete } + * + */ + public void setDelete(JobProperties.Delete value) { + this.delete = value; + } + + /** + * Gets the value of the priority property. + * + * @return + * possible object is + * {@link Priority } + * + */ + public Priority getPriority() { + return priority; + } + + /** + * Sets the value of the priority property. + * + * @param value + * allowed object is + * {@link Priority } + * + */ + public void setPriority(Priority value) { + this.priority = value; + } + + /** + * Gets the value of the mediaStream property. + * + * @return + * possible object is + * {@link MediaStreamIngestProperties } + * + */ + public MediaStreamIngestProperties getMediaStream() { + return mediaStream; + } + + /** + * Sets the value of the mediaStream property. + * + * @param value + * allowed object is + * {@link MediaStreamIngestProperties } + * + */ + public void setMediaStream(MediaStreamIngestProperties value) { + this.mediaStream = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="confirmed" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="global" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="deleteMediaRecord" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="crossDomain" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Delete { + + @XmlAttribute(name = "confirmed") + protected Boolean confirmed; + @XmlAttribute(name = "global") + protected Boolean global; + @XmlAttribute(name = "deleteMediaRecord") + protected Boolean deleteMediaRecord; + @XmlAttribute(name = "crossDomain") + protected Boolean crossDomain; + + /** + * Gets the value of the confirmed property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isConfirmed() { + return confirmed; + } + + /** + * Sets the value of the confirmed property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setConfirmed(Boolean value) { + this.confirmed = value; + } + + /** + * Gets the value of the global property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isGlobal() { + return global; + } + + /** + * Sets the value of the global property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGlobal(Boolean value) { + this.global = value; + } + + /** + * Gets the value of the deleteMediaRecord property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isDeleteMediaRecord() { + return deleteMediaRecord; + } + + /** + * Sets the value of the deleteMediaRecord property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDeleteMediaRecord(Boolean value) { + this.deleteMediaRecord = value; + } + + /** + * Gets the value of the crossDomain property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isCrossDomain() { + return crossDomain; + } + + /** + * Sets the value of the crossDomain property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setCrossDomain(Boolean value) { + this.crossDomain = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/JobState.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobState.java new file mode 100644 index 00000000..c49f56ef --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobState.java @@ -0,0 +1,114 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * State of a job. + * + *

Java class for jobState complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="jobState">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="state" use="required" type="{}automationStateType" />
+ *       <attribute name="stateHint" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="stateModifiedTime" type="{}dateTimecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "jobState") +public class JobState { + + @XmlAttribute(name = "state", required = true) + protected AutomationStateType state; + @XmlAttribute(name = "stateHint") + protected String stateHint; + @XmlAttribute(name = "stateModifiedTime") + protected String stateModifiedTime; + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link AutomationStateType } + * + */ + public AutomationStateType getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link AutomationStateType } + * + */ + public void setState(AutomationStateType value) { + this.state = value; + } + + /** + * Gets the value of the stateHint property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStateHint() { + return stateHint; + } + + /** + * Sets the value of the stateHint property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStateHint(String value) { + this.stateHint = value; + } + + /** + * Gets the value of the stateModifiedTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStateModifiedTime() { + return stateModifiedTime; + } + + /** + * Sets the value of the stateModifiedTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStateModifiedTime(String value) { + this.stateModifiedTime = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/JobStateDateTimecodeRangeContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobStateDateTimecodeRangeContainer.java new file mode 100644 index 00000000..fbe472e3 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/JobStateDateTimecodeRangeContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dateTimecodeRange" type="{}dateTimecodeRange"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dateTimecodeRange" +}) +@XmlRootElement(name = "jobStateDateTimecodeRangeContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class JobStateDateTimecodeRangeContainer { + + @XmlElement(required = true) + protected DateTimecodeRange dateTimecodeRange; + + /** + * Gets the value of the dateTimecodeRange property. + * + * @return + * possible object is + * {@link DateTimecodeRange } + * + */ + public DateTimecodeRange getDateTimecodeRange() { + return dateTimecodeRange; + } + + /** + * Sets the value of the dateTimecodeRange property. + * + * @param value + * allowed object is + * {@link DateTimecodeRange } + * + */ + public void setDateTimecodeRange(DateTimecodeRange value) { + this.dateTimecodeRange = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepItem.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepItem.java new file mode 100644 index 00000000..6cb1b60c --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepItem.java @@ -0,0 +1,94 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * A single item to keep + * + *

Java class for keepItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="keepItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="properties" type="{}keepItemProperties"/>
+ *       </sequence>
+ *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "keepItem", propOrder = { + "properties" +}) +public class KeepItem { + + @XmlElement(required = true) + protected KeepItemProperties properties; + @XmlAttribute(name = "uid") + @XmlSchemaType(name = "anySimpleType") + protected String uid; + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link KeepItemProperties } + * + */ + public KeepItemProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link KeepItemProperties } + * + */ + public void setProperties(KeepItemProperties value) { + this.properties = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUid(String value) { + this.uid = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepItemProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepItemProperties.java new file mode 100644 index 00000000..6aa645c8 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepItemProperties.java @@ -0,0 +1,502 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a keepItem + * + *

Java class for keepItemProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="keepItemProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="media" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <extension base="{}mediaSimpleLoose">
+ *                 <sequence>
+ *                   <element name="mediaInstances" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <element name="mediaInstance" maxOccurs="unbounded">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <attGroup ref="{}mediaInstanceKeyLoose"/>
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *               </extension>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="expiry" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="time" type="{}dateTime" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "keepItemProperties", propOrder = { + +}) +public class KeepItemProperties { + + protected KeepItemProperties.Media media; + protected KeepItemProperties.Expiry expiry; + protected Object auxData; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link KeepItemProperties.Media } + * + */ + public KeepItemProperties.Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link KeepItemProperties.Media } + * + */ + public void setMedia(KeepItemProperties.Media value) { + this.media = value; + } + + /** + * Gets the value of the expiry property. + * + * @return + * possible object is + * {@link KeepItemProperties.Expiry } + * + */ + public KeepItemProperties.Expiry getExpiry() { + return expiry; + } + + /** + * Sets the value of the expiry property. + * + * @param value + * allowed object is + * {@link KeepItemProperties.Expiry } + * + */ + public void setExpiry(KeepItemProperties.Expiry value) { + this.expiry = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="time" type="{}dateTime" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Expiry { + + @XmlAttribute(name = "time") + protected String time; + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTime(String value) { + this.time = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <extension base="{}mediaSimpleLoose">
+     *       <sequence>
+     *         <element name="mediaInstances" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <element name="mediaInstance" maxOccurs="unbounded">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <attGroup ref="{}mediaInstanceKeyLoose"/>
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </extension>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "mediaInstances" + }) + public static class Media + extends MediaSimpleLoose + { + + protected KeepItemProperties.Media.MediaInstances mediaInstances; + + /** + * Gets the value of the mediaInstances property. + * + * @return + * possible object is + * {@link KeepItemProperties.Media.MediaInstances } + * + */ + public KeepItemProperties.Media.MediaInstances getMediaInstances() { + return mediaInstances; + } + + /** + * Sets the value of the mediaInstances property. + * + * @param value + * allowed object is + * {@link KeepItemProperties.Media.MediaInstances } + * + */ + public void setMediaInstances(KeepItemProperties.Media.MediaInstances value) { + this.mediaInstances = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <element name="mediaInstance" maxOccurs="unbounded">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <attGroup ref="{}mediaInstanceKeyLoose"/>
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "mediaInstance" + }) + public static class MediaInstances { + + @XmlElement(required = true) + protected List mediaInstance; + + /** + * Gets the value of the mediaInstance property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mediaInstance property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getMediaInstance().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link KeepItemProperties.Media.MediaInstances.MediaInstance } + * + * + */ + public List getMediaInstance() { + if (mediaInstance == null) { + mediaInstance = new ArrayList(); + } + return this.mediaInstance; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <attGroup ref="{}mediaInstanceKeyLoose"/>
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class MediaInstance { + + @XmlAttribute(name = "mediaSetName") + protected String mediaSetName; + @XmlAttribute(name = "version") + protected Integer version; + @XmlAttribute(name = "position") + protected String position; + @XmlAttribute(name = "directory") + protected String directory; + @XmlAttribute(name = "filename") + protected String filename; + + /** + * Gets the value of the mediaSetName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetName() { + return mediaSetName; + } + + /** + * Sets the value of the mediaSetName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetName(String value) { + this.mediaSetName = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setVersion(Integer value) { + this.version = value; + } + + /** + * Gets the value of the position property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPosition() { + return position; + } + + /** + * Sets the value of the position property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPosition(String value) { + this.position = value; + } + + /** + * Gets the value of the directory property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDirectory() { + return directory; + } + + /** + * Sets the value of the directory property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDirectory(String value) { + this.directory = value; + } + + /** + * Gets the value of the filename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilename() { + return filename; + } + + /** + * Sets the value of the filename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilename(String value) { + this.filename = value; + } + + } + + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepList.java new file mode 100644 index 00000000..463d2237 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepList.java @@ -0,0 +1,71 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * A List of items to keep + * + *

Java class for keepList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="keepList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded">
+ *         <element name="keepItem" type="{}keepItem"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "keepList", propOrder = { + "keepItem" +}) +public class KeepList { + + @XmlElement(required = true) + protected List keepItem; + + /** + * Gets the value of the keepItem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the keepItem property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getKeepItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link KeepItem } + * + * + */ + public List getKeepItem() { + if (keepItem == null) { + keepItem = new ArrayList(); + } + return this.keepItem; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepListProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepListProperties.java new file mode 100644 index 00000000..106fe1d1 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/KeepListProperties.java @@ -0,0 +1,34 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a keep list. + * + *

Java class for keepListProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="keepListProperties">
+ *   <complexContent>
+ *     <extension base="{}jobListProperties">
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "keepListProperties") +public class KeepListProperties + extends JobListProperties +{ + + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Languages.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Languages.java new file mode 100644 index 00000000..73ecba65 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Languages.java @@ -0,0 +1,69 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * A representation of a group of languages. + * + *

Java class for languages complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="languages">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="lang" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "languages", propOrder = { + "lang" +}) +public class Languages { + + protected List lang; + + /** + * Gets the value of the lang property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the lang property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getLang().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getLang() { + if (lang == null) { + lang = new ArrayList(); + } + return this.lang; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/LastModifiedDateTimeRange.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/LastModifiedDateTimeRange.java new file mode 100644 index 00000000..d02a7bad --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/LastModifiedDateTimeRange.java @@ -0,0 +1,87 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a last update time timecode range (start -> end) + * + *

Java class for lastModifiedDateTimeRange complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="lastModifiedDateTimeRange">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="start" use="required" type="{}dateTime" />
+ *       <attribute name="end" use="required" type="{}dateTime" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "lastModifiedDateTimeRange") +public class LastModifiedDateTimeRange { + + @XmlAttribute(name = "start", required = true) + protected String start; + @XmlAttribute(name = "end", required = true) + protected String end; + + /** + * Gets the value of the start property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStart() { + return start; + } + + /** + * Sets the value of the start property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStart(String value) { + this.start = value; + } + + /** + * Gets the value of the end property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEnd() { + return end; + } + + /** + * Sets the value of the end property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEnd(String value) { + this.end = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/LastModifiedDateTimeRangeContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/LastModifiedDateTimeRangeContainer.java new file mode 100644 index 00000000..120061ac --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/LastModifiedDateTimeRangeContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="lastModifiedDateTimeRange" type="{}lastModifiedDateTimeRange"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "lastModifiedDateTimeRange" +}) +@XmlRootElement(name = "lastModifiedDateTimeRangeContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class LastModifiedDateTimeRangeContainer { + + @XmlElement(required = true) + protected LastModifiedDateTimeRange lastModifiedDateTimeRange; + + /** + * Gets the value of the lastModifiedDateTimeRange property. + * + * @return + * possible object is + * {@link LastModifiedDateTimeRange } + * + */ + public LastModifiedDateTimeRange getLastModifiedDateTimeRange() { + return lastModifiedDateTimeRange; + } + + /** + * Sets the value of the lastModifiedDateTimeRange property. + * + * @param value + * allowed object is + * {@link LastModifiedDateTimeRange } + * + */ + public void setLastModifiedDateTimeRange(LastModifiedDateTimeRange value) { + this.lastModifiedDateTimeRange = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Layers.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Layers.java new file mode 100644 index 00000000..74f52c87 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Layers.java @@ -0,0 +1,78 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Collection of layers + * + *

Java class for layers complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="layers">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="layer" maxOccurs="10">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <minLength value="1"/>
+ *               <maxLength value="64"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "layers", propOrder = { + "layer" +}) +public class Layers { + + @XmlElement(required = true) + protected List layer; + + /** + * Gets the value of the layer property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the layer property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getLayer().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getLayer() { + if (layer == null) { + layer = new ArrayList(); + } + return this.layer; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ListStreamAllocation.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ListStreamAllocation.java new file mode 100644 index 00000000..c8e268d5 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ListStreamAllocation.java @@ -0,0 +1,100 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Date for list stream allocation + * + *

Java class for listStreamAllocation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="listStreamAllocation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Fixed"/>
+ *             <enumeration value="Auto"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="listStreamNo">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}int">
+ *             <minInclusive value="0"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "listStreamAllocation") +public class ListStreamAllocation { + + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "listStreamNo") + protected Integer listStreamNo; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the listStreamNo property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getListStreamNo() { + return listStreamNo; + } + + /** + * Sets the value of the listStreamNo property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setListStreamNo(Integer value) { + this.listStreamNo = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ListStreamAllocationProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ListStreamAllocationProperties.java new file mode 100644 index 00000000..90f91a16 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ListStreamAllocationProperties.java @@ -0,0 +1,96 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties used by automation lists for allocation + * + *

Java class for listStreamAllocationProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="listStreamAllocationProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice minOccurs="0">
+ *         <element name="listStream" type="{}listStreamAllocation"/>
+ *       </choice>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="ListStream"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "listStreamAllocationProperties", propOrder = { + "listStream" +}) +public class ListStreamAllocationProperties { + + protected ListStreamAllocation listStream; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the listStream property. + * + * @return + * possible object is + * {@link ListStreamAllocation } + * + */ + public ListStreamAllocation getListStream() { + return listStream; + } + + /** + * Sets the value of the listStream property. + * + * @param value + * allowed object is + * {@link ListStreamAllocation } + * + */ + public void setListStream(ListStreamAllocation value) { + this.listStream = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MacroProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MacroProperties.java new file mode 100644 index 00000000..c7862aae --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MacroProperties.java @@ -0,0 +1,62 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for a macro event. + * + *

Java class for macroProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="macroProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "macroProperties") +public class MacroProperties { + + @XmlAttribute(name = "value", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String value; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Markup.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Markup.java new file mode 100644 index 00000000..d0e10125 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Markup.java @@ -0,0 +1,123 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * A named collection of markup items + * + *

Java class for markup complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="markup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <element name="markupItem" type="{}markupItem"/>
+ *       </sequence>
+ *       <attribute name="name" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="complete" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "markup", propOrder = { + "markupItem" +}) +public class Markup { + + protected List markupItem; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "complete", required = true) + protected boolean complete; + + /** + * Gets the value of the markupItem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the markupItem property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMarkupItem().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MarkupItem } + * + * + */ + public List getMarkupItem() { + if (markupItem == null) { + markupItem = new ArrayList(); + } + return this.markupItem; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the complete property. + * + */ + public boolean isComplete() { + return complete; + } + + /** + * Sets the value of the complete property. + * + */ + public void setComplete(boolean value) { + this.complete = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MarkupItem.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MarkupItem.java new file mode 100644 index 00000000..47b04974 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MarkupItem.java @@ -0,0 +1,241 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a segment or keyframe. Presence of a valid duration indicates a segment, otherwise interpreted as a keyframe. + * + *

Java class for markupItem complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="markupItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Dynamic"/>
+ *             <enumeration value="Template"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="orderNo" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}unsignedByte">
+ *             <minInclusive value="1"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="name" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="som" type="{}timecode" />
+ *       <attribute name="duration" type="{}timecode" />
+ *       <attribute name="comment">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="256"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="offset" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "markupItem") +public class MarkupItem { + + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "orderNo", required = true) + protected short orderNo; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "som") + protected String som; + @XmlAttribute(name = "duration") + protected String duration; + @XmlAttribute(name = "comment") + protected String comment; + @XmlAttribute(name = "offset") + protected Integer offset; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the orderNo property. + * + */ + public short getOrderNo() { + return orderNo; + } + + /** + * Sets the value of the orderNo property. + * + */ + public void setOrderNo(short value) { + this.orderNo = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the som property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSom() { + return som; + } + + /** + * Sets the value of the som property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSom(String value) { + this.som = value; + } + + /** + * Gets the value of the duration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDuration() { + return duration; + } + + /** + * Sets the value of the duration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDuration(String value) { + this.duration = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the offset property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getOffset() { + return offset; + } + + /** + * Sets the value of the offset property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setOffset(Integer value) { + this.offset = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Markups.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Markups.java new file mode 100644 index 00000000..79270ba8 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Markups.java @@ -0,0 +1,71 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Collection of markup elements + * + *

Java class for markups complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="markups">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded">
+ *         <element name="markup" type="{}markup"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "markups", propOrder = { + "markup" +}) +public class Markups { + + @XmlElement(required = true) + protected List markup; + + /** + * Gets the value of the markup property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the markup property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMarkup().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Markup } + * + * + */ + public List getMarkup() { + if (markup == null) { + markup = new ArrayList(); + } + return this.markup; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Media.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Media.java new file mode 100644 index 00000000..69840cba --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Media.java @@ -0,0 +1,625 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * Representation of a piece of media with associated metadata. Make sure the creationTime is in the format 2017-03-23T14:11:00 [YYYY-MM-DD]T[HH:MM:SS] otherwise XML validation will fail. + * + *

Java class for media complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="media">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="auxXML" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *                 <attribute name="processor">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="1"/>
+ *                       <maxLength value="255"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="properties" type="{}mediaProperties" minOccurs="0"/>
+ *         <element name="mediaInstances" type="{}mediaInstanceList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}mediaBaseAttributes"/>
+ *       <attGroup ref="{}mediaKey"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "media", propOrder = { + "auxXML", + "properties", + "mediaInstances" +}) +public class Media { + + protected Media.AuxXML auxXML; + protected MediaProperties properties; + protected MediaInstanceList mediaInstances; + @XmlAttribute(name = "title") + protected String title; + @XmlAttribute(name = "origSOM") + protected String origSOM; + @XmlAttribute(name = "creationTime") + protected String creationTime; + @XmlAttribute(name = "modifiedTime") + protected String modifiedTime; + @XmlAttribute(name = "mediaId") + protected Integer mediaId; + @XmlAttribute(name = "houseId") + protected String houseId; + @XmlAttribute(name = "alternateId") + protected String alternateId; + @XmlAttribute(name = "validityStartTime") + protected String validityStartTime; + @XmlAttribute(name = "validityEndTime") + protected String validityEndTime; + @XmlAttribute(name = "eventPlayCount") + protected Integer eventPlayCount; + @XmlAttribute(name = "firstEventPlayTime") + protected String firstEventPlayTime; + @XmlAttribute(name = "lastEventPlayTime") + protected String lastEventPlayTime; + @XmlAttribute(name = "notes") + protected String notes; + @XmlAttribute(name = "mediaName", required = true) + protected String mediaName; + @XmlAttribute(name = "mediaType", required = true) + protected MediaType mediaType; + + /** + * Gets the value of the auxXML property. + * + * @return + * possible object is + * {@link Media.AuxXML } + * + */ + public Media.AuxXML getAuxXML() { + return auxXML; + } + + /** + * Sets the value of the auxXML property. + * + * @param value + * allowed object is + * {@link Media.AuxXML } + * + */ + public void setAuxXML(Media.AuxXML value) { + this.auxXML = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link MediaProperties } + * + */ + public MediaProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link MediaProperties } + * + */ + public void setProperties(MediaProperties value) { + this.properties = value; + } + + /** + * Gets the value of the mediaInstances property. + * + * @return + * possible object is + * {@link MediaInstanceList } + * + */ + public MediaInstanceList getMediaInstances() { + return mediaInstances; + } + + /** + * Sets the value of the mediaInstances property. + * + * @param value + * allowed object is + * {@link MediaInstanceList } + * + */ + public void setMediaInstances(MediaInstanceList value) { + this.mediaInstances = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the origSOM property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrigSOM() { + return origSOM; + } + + /** + * Sets the value of the origSOM property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrigSOM(String value) { + this.origSOM = value; + } + + /** + * Gets the value of the creationTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreationTime() { + return creationTime; + } + + /** + * Sets the value of the creationTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreationTime(String value) { + this.creationTime = value; + } + + /** + * Gets the value of the modifiedTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getModifiedTime() { + return modifiedTime; + } + + /** + * Sets the value of the modifiedTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setModifiedTime(String value) { + this.modifiedTime = value; + } + + /** + * Gets the value of the mediaId property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMediaId() { + return mediaId; + } + + /** + * Sets the value of the mediaId property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMediaId(Integer value) { + this.mediaId = value; + } + + /** + * Gets the value of the houseId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHouseId() { + return houseId; + } + + /** + * Sets the value of the houseId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHouseId(String value) { + this.houseId = value; + } + + /** + * Gets the value of the alternateId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlternateId() { + return alternateId; + } + + /** + * Sets the value of the alternateId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlternateId(String value) { + this.alternateId = value; + } + + /** + * Gets the value of the validityStartTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValidityStartTime() { + return validityStartTime; + } + + /** + * Sets the value of the validityStartTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValidityStartTime(String value) { + this.validityStartTime = value; + } + + /** + * Gets the value of the validityEndTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValidityEndTime() { + return validityEndTime; + } + + /** + * Sets the value of the validityEndTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValidityEndTime(String value) { + this.validityEndTime = value; + } + + /** + * Gets the value of the eventPlayCount property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getEventPlayCount() { + return eventPlayCount; + } + + /** + * Sets the value of the eventPlayCount property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setEventPlayCount(Integer value) { + this.eventPlayCount = value; + } + + /** + * Gets the value of the firstEventPlayTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFirstEventPlayTime() { + return firstEventPlayTime; + } + + /** + * Sets the value of the firstEventPlayTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFirstEventPlayTime(String value) { + this.firstEventPlayTime = value; + } + + /** + * Gets the value of the lastEventPlayTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastEventPlayTime() { + return lastEventPlayTime; + } + + /** + * Sets the value of the lastEventPlayTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastEventPlayTime(String value) { + this.lastEventPlayTime = value; + } + + /** + * Gets the value of the notes property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNotes() { + return notes; + } + + /** + * Sets the value of the notes property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNotes(String value) { + this.notes = value; + } + + /** + * Gets the value of the mediaName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaName() { + return mediaName; + } + + /** + * Sets the value of the mediaName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaName(String value) { + this.mediaName = value; + } + + /** + * Gets the value of the mediaType property. + * + * @return + * possible object is + * {@link MediaType } + * + */ + public MediaType getMediaType() { + return mediaType; + } + + /** + * Sets the value of the mediaType property. + * + * @param value + * allowed object is + * {@link MediaType } + * + */ + public void setMediaType(MediaType value) { + this.mediaType = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *       <attribute name="processor">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *             <maxLength value="255"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class AuxXML { + + @XmlAnyElement + protected List any; + @XmlAttribute(name = "processor") + protected String processor; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAny().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + /** + * Gets the value of the processor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getProcessor() { + return processor; + } + + /** + * Sets the value of the processor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setProcessor(String value) { + this.processor = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstance.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstance.java new file mode 100644 index 00000000..3f74e3e7 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstance.java @@ -0,0 +1,610 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of the metadata for an instance of a piece of media. This type is intended to be embedded inside an element with a specified mediaKey + * + *

Java class for mediaInstance complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaInstance">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="auxXML" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="properties" type="{}mediaInstanceProperties" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}mediaInstanceKey"/>
+ *       <attGroup ref="{}mediaInstanceBaseAttributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaInstance", propOrder = { + "auxXML", + "properties" +}) +public class MediaInstance { + + protected MediaInstance.AuxXML auxXML; + protected MediaInstanceProperties properties; + @XmlAttribute(name = "mediaSetName", required = true) + protected String mediaSetName; + @XmlAttribute(name = "version") + protected Integer version; + @XmlAttribute(name = "position") + protected String position; + @XmlAttribute(name = "directory") + protected String directory; + @XmlAttribute(name = "filename") + protected String filename; + @XmlAttribute(name = "directoryId") + protected BigInteger directoryId; + @XmlAttribute(name = "versionHint") + protected String versionHint; + @XmlAttribute(name = "duration") + protected String duration; + @XmlAttribute(name = "creationStartTime") + protected String creationStartTime; + @XmlAttribute(name = "creationEndTime") + protected String creationEndTime; + @XmlAttribute(name = "creationHint") + protected String creationHint; + @XmlAttribute(name = "origSOM") + protected String origSOM; + @XmlAttribute(name = "mediaInstanceId") + protected Integer mediaInstanceId; + @XmlAttribute(name = "nativeSize") + @XmlSchemaType(name = "unsignedLong") + protected BigInteger nativeSize; + @XmlAttribute(name = "sourceURL") + protected String sourceURL; + @XmlAttribute(name = "destURL") + protected String destURL; + @XmlAttribute(name = "deleteAll") + protected Boolean deleteAll; + + /** + * Gets the value of the auxXML property. + * + * @return + * possible object is + * {@link MediaInstance.AuxXML } + * + */ + public MediaInstance.AuxXML getAuxXML() { + return auxXML; + } + + /** + * Sets the value of the auxXML property. + * + * @param value + * allowed object is + * {@link MediaInstance.AuxXML } + * + */ + public void setAuxXML(MediaInstance.AuxXML value) { + this.auxXML = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link MediaInstanceProperties } + * + */ + public MediaInstanceProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link MediaInstanceProperties } + * + */ + public void setProperties(MediaInstanceProperties value) { + this.properties = value; + } + + /** + * Gets the value of the mediaSetName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetName() { + return mediaSetName; + } + + /** + * Sets the value of the mediaSetName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetName(String value) { + this.mediaSetName = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setVersion(Integer value) { + this.version = value; + } + + /** + * Gets the value of the position property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPosition() { + return position; + } + + /** + * Sets the value of the position property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPosition(String value) { + this.position = value; + } + + /** + * Gets the value of the directory property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDirectory() { + return directory; + } + + /** + * Sets the value of the directory property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDirectory(String value) { + this.directory = value; + } + + /** + * Gets the value of the filename property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilename() { + return filename; + } + + /** + * Sets the value of the filename property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilename(String value) { + this.filename = value; + } + + /** + * Gets the value of the directoryId property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getDirectoryId() { + return directoryId; + } + + /** + * Sets the value of the directoryId property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setDirectoryId(BigInteger value) { + this.directoryId = value; + } + + /** + * Gets the value of the versionHint property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersionHint() { + return versionHint; + } + + /** + * Sets the value of the versionHint property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersionHint(String value) { + this.versionHint = value; + } + + /** + * Gets the value of the duration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDuration() { + return duration; + } + + /** + * Sets the value of the duration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDuration(String value) { + this.duration = value; + } + + /** + * Gets the value of the creationStartTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreationStartTime() { + return creationStartTime; + } + + /** + * Sets the value of the creationStartTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreationStartTime(String value) { + this.creationStartTime = value; + } + + /** + * Gets the value of the creationEndTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreationEndTime() { + return creationEndTime; + } + + /** + * Sets the value of the creationEndTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreationEndTime(String value) { + this.creationEndTime = value; + } + + /** + * Gets the value of the creationHint property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCreationHint() { + return creationHint; + } + + /** + * Sets the value of the creationHint property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCreationHint(String value) { + this.creationHint = value; + } + + /** + * Gets the value of the origSOM property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOrigSOM() { + return origSOM; + } + + /** + * Sets the value of the origSOM property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOrigSOM(String value) { + this.origSOM = value; + } + + /** + * Gets the value of the mediaInstanceId property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMediaInstanceId() { + return mediaInstanceId; + } + + /** + * Sets the value of the mediaInstanceId property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMediaInstanceId(Integer value) { + this.mediaInstanceId = value; + } + + /** + * Gets the value of the nativeSize property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getNativeSize() { + return nativeSize; + } + + /** + * Sets the value of the nativeSize property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setNativeSize(BigInteger value) { + this.nativeSize = value; + } + + /** + * Gets the value of the sourceURL property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSourceURL() { + return sourceURL; + } + + /** + * Sets the value of the sourceURL property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSourceURL(String value) { + this.sourceURL = value; + } + + /** + * Gets the value of the destURL property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDestURL() { + return destURL; + } + + /** + * Sets the value of the destURL property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDestURL(String value) { + this.destURL = value; + } + + /** + * Gets the value of the deleteAll property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isDeleteAll() { + return deleteAll; + } + + /** + * Sets the value of the deleteAll property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDeleteAll(Boolean value) { + this.deleteAll = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class AuxXML { + + @XmlAnyElement(lax = true) + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAny().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceKeyContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceKeyContainer.java new file mode 100644 index 00000000..fca36bc6 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceKeyContainer.java @@ -0,0 +1,186 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="media">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element name="mediaInstance" type="{}mediaInstance"/>
+ *                 </all>
+ *                 <attribute name="mediaName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="mediaType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "media" +}) +@XmlRootElement(name = "mediaInstanceKeyContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class MediaInstanceKeyContainer { + + @XmlElement(required = true) + protected MediaInstanceKeyContainer.Media media; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link MediaInstanceKeyContainer.Media } + * + */ + public MediaInstanceKeyContainer.Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link MediaInstanceKeyContainer.Media } + * + */ + public void setMedia(MediaInstanceKeyContainer.Media value) { + this.media = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element name="mediaInstance" type="{}mediaInstance"/>
+     *       </all>
+     *       <attribute name="mediaName" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="mediaType" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Media { + + @XmlElement(required = true) + protected MediaInstance mediaInstance; + @XmlAttribute(name = "mediaName") + protected String mediaName; + @XmlAttribute(name = "mediaType") + protected String mediaType; + + /** + * Gets the value of the mediaInstance property. + * + * @return + * possible object is + * {@link MediaInstance } + * + */ + public MediaInstance getMediaInstance() { + return mediaInstance; + } + + /** + * Sets the value of the mediaInstance property. + * + * @param value + * allowed object is + * {@link MediaInstance } + * + */ + public void setMediaInstance(MediaInstance value) { + this.mediaInstance = value; + } + + /** + * Gets the value of the mediaName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaName() { + return mediaName; + } + + /** + * Sets the value of the mediaName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaName(String value) { + this.mediaName = value; + } + + /** + * Gets the value of the mediaType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaType() { + return mediaType; + } + + /** + * Sets the value of the mediaType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaType(String value) { + this.mediaType = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceList.java new file mode 100644 index 00000000..b9cd436f --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceList.java @@ -0,0 +1,71 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Collection of media instances + * + *

Java class for mediaInstanceList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaInstanceList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mediaInstance" type="{}mediaInstance" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaInstanceList", propOrder = { + "mediaInstance" +}) +public class MediaInstanceList { + + @XmlElement(required = true) + protected List mediaInstance; + + /** + * Gets the value of the mediaInstance property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mediaInstance property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMediaInstance().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MediaInstance } + * + * + */ + public List getMediaInstance() { + if (mediaInstance == null) { + mediaInstance = new ArrayList(); + } + return this.mediaInstance; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceProperties.java new file mode 100644 index 00000000..b3ad21b5 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceProperties.java @@ -0,0 +1,116 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a media instance + * + *

Java class for mediaInstanceProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaInstanceProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="audioTracks" type="{}audioTracks" minOccurs="0"/>
+ *         <element name="audio" type="{}audio" minOccurs="0"/>
+ *         <element name="classifications" type="{}classifications" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaInstanceProperties", propOrder = { + "audioTracks", + "audio", + "classifications" +}) +public class MediaInstanceProperties { + + protected AudioTracks audioTracks; + protected Audio audio; + protected Classifications classifications; + + /** + * Gets the value of the audioTracks property. + * + * @return + * possible object is + * {@link AudioTracks } + * + */ + public AudioTracks getAudioTracks() { + return audioTracks; + } + + /** + * Sets the value of the audioTracks property. + * + * @param value + * allowed object is + * {@link AudioTracks } + * + */ + public void setAudioTracks(AudioTracks value) { + this.audioTracks = value; + } + + /** + * Gets the value of the audio property. + * + * @return + * possible object is + * {@link Audio } + * + */ + public Audio getAudio() { + return audio; + } + + /** + * Sets the value of the audio property. + * + * @param value + * allowed object is + * {@link Audio } + * + */ + public void setAudio(Audio value) { + this.audio = value; + } + + /** + * Gets the value of the classifications property. + * + * @return + * possible object is + * {@link Classifications } + * + */ + public Classifications getClassifications() { + return classifications; + } + + /** + * Sets the value of the classifications property. + * + * @param value + * allowed object is + * {@link Classifications } + * + */ + public void setClassifications(Classifications value) { + this.classifications = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceUsage.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceUsage.java new file mode 100644 index 00000000..e5443cb3 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaInstanceUsage.java @@ -0,0 +1,275 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of the usage of a media instance + * + *

Java class for mediaInstanceUsage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaInstanceUsage">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="mediaSetName" use="required" type="{}mediaSetName" />
+ *       <attribute name="available" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="lastUsageTime" use="required" type="{}dateTimecode" />
+ *       <attribute name="lastUsageList" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="lastUsageListUID" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="earliestUsageTime" use="required" type="{}dateTimecode" />
+ *       <attribute name="earliestUsageList" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <maxLength value="64"/>
+ *             <minLength value="1"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="earliestUsageListUID" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="listMediaUsageId" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaInstanceUsage") +public class MediaInstanceUsage { + + @XmlAttribute(name = "mediaSetName", required = true) + protected String mediaSetName; + @XmlAttribute(name = "available", required = true) + protected boolean available; + @XmlAttribute(name = "lastUsageTime", required = true) + protected String lastUsageTime; + @XmlAttribute(name = "lastUsageList", required = true) + protected String lastUsageList; + @XmlAttribute(name = "lastUsageListUID", required = true) + protected BigInteger lastUsageListUID; + @XmlAttribute(name = "earliestUsageTime", required = true) + protected String earliestUsageTime; + @XmlAttribute(name = "earliestUsageList", required = true) + protected String earliestUsageList; + @XmlAttribute(name = "earliestUsageListUID", required = true) + protected BigInteger earliestUsageListUID; + @XmlAttribute(name = "listMediaUsageId", required = true) + protected int listMediaUsageId; + + /** + * Gets the value of the mediaSetName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetName() { + return mediaSetName; + } + + /** + * Sets the value of the mediaSetName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetName(String value) { + this.mediaSetName = value; + } + + /** + * Gets the value of the available property. + * + */ + public boolean isAvailable() { + return available; + } + + /** + * Sets the value of the available property. + * + */ + public void setAvailable(boolean value) { + this.available = value; + } + + /** + * Gets the value of the lastUsageTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastUsageTime() { + return lastUsageTime; + } + + /** + * Sets the value of the lastUsageTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastUsageTime(String value) { + this.lastUsageTime = value; + } + + /** + * Gets the value of the lastUsageList property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastUsageList() { + return lastUsageList; + } + + /** + * Sets the value of the lastUsageList property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastUsageList(String value) { + this.lastUsageList = value; + } + + /** + * Gets the value of the lastUsageListUID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getLastUsageListUID() { + return lastUsageListUID; + } + + /** + * Sets the value of the lastUsageListUID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setLastUsageListUID(BigInteger value) { + this.lastUsageListUID = value; + } + + /** + * Gets the value of the earliestUsageTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEarliestUsageTime() { + return earliestUsageTime; + } + + /** + * Sets the value of the earliestUsageTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEarliestUsageTime(String value) { + this.earliestUsageTime = value; + } + + /** + * Gets the value of the earliestUsageList property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEarliestUsageList() { + return earliestUsageList; + } + + /** + * Sets the value of the earliestUsageList property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEarliestUsageList(String value) { + this.earliestUsageList = value; + } + + /** + * Gets the value of the earliestUsageListUID property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getEarliestUsageListUID() { + return earliestUsageListUID; + } + + /** + * Sets the value of the earliestUsageListUID property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setEarliestUsageListUID(BigInteger value) { + this.earliestUsageListUID = value; + } + + /** + * Gets the value of the listMediaUsageId property. + * + */ + public int getListMediaUsageId() { + return listMediaUsageId; + } + + /** + * Sets the value of the listMediaUsageId property. + * + */ + public void setListMediaUsageId(int value) { + this.listMediaUsageId = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaKeyContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaKeyContainer.java new file mode 100644 index 00000000..dbb25412 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaKeyContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="media" type="{}media"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "media" +}) +@XmlRootElement(name = "mediaKeyContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class MediaKeyContainer { + + @XmlElement(required = true) + protected Media media; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link Media } + * + */ + public Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link Media } + * + */ + public void setMedia(Media value) { + this.media = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaList.java new file mode 100644 index 00000000..b4e570a0 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaList.java @@ -0,0 +1,69 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a collection of media. 0 or more instances may also be specified + * + *

Java class for mediaList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="media" type="{}media" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaList", propOrder = { + "media" +}) +public class MediaList { + + protected List media; + + /** + * Gets the value of the media property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the media property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMedia().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Media } + * + * + */ + public List getMedia() { + if (media == null) { + media = new ArrayList(); + } + return this.media; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaListContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaListContainer.java new file mode 100644 index 00000000..f58e2812 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaListContainer.java @@ -0,0 +1,83 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mediaList" type="{}mediaList"/>
+ *         <element name="moreResults" type="{}moreResults"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaList", + "moreResults" +}) +@XmlRootElement(name = "mediaListContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class MediaListContainer { + + @XmlElement(required = true) + protected MediaList mediaList; + protected boolean moreResults; + + /** + * Gets the value of the mediaList property. + * + * @return + * possible object is + * {@link MediaList } + * + */ + public MediaList getMediaList() { + return mediaList; + } + + /** + * Sets the value of the mediaList property. + * + * @param value + * allowed object is + * {@link MediaList } + * + */ + public void setMediaList(MediaList value) { + this.mediaList = value; + } + + /** + * Gets the value of the moreResults property. + * + */ + public boolean isMoreResults() { + return moreResults; + } + + /** + * Sets the value of the moreResults property. + * + */ + public void setMoreResults(boolean value) { + this.moreResults = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaMetadataContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaMetadataContainer.java new file mode 100644 index 00000000..0cc4355a --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaMetadataContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="media" type="{}media"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "media" +}) +@XmlRootElement(name = "mediaMetadataContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class MediaMetadataContainer { + + @XmlElement(required = true) + protected Media media; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link Media } + * + */ + public Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link Media } + * + */ + public void setMedia(Media value) { + this.media = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaProperties.java new file mode 100644 index 00000000..0dcd51ee --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaProperties.java @@ -0,0 +1,89 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a piece of media. Does not include properties of instances of that media + * + *

Java class for mediaProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="classifications" type="{}classifications" minOccurs="0"/>
+ *         <element name="markups" type="{}markups" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaProperties", propOrder = { + "classifications", + "markups" +}) +public class MediaProperties { + + protected Classifications classifications; + protected Markups markups; + + /** + * Gets the value of the classifications property. + * + * @return + * possible object is + * {@link Classifications } + * + */ + public Classifications getClassifications() { + return classifications; + } + + /** + * Sets the value of the classifications property. + * + * @param value + * allowed object is + * {@link Classifications } + * + */ + public void setClassifications(Classifications value) { + this.classifications = value; + } + + /** + * Gets the value of the markups property. + * + * @return + * possible object is + * {@link Markups } + * + */ + public Markups getMarkups() { + return markups; + } + + /** + * Sets the value of the markups property. + * + * @param value + * allowed object is + * {@link Markups } + * + */ + public void setMarkups(Markups value) { + this.markups = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSegmentationProperites.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSegmentationProperites.java new file mode 100644 index 00000000..9c9e4b6c --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSegmentationProperites.java @@ -0,0 +1,230 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for segmenting media. + * + *

Java class for mediaSegmentationProperites complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaSegmentationProperites">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="markup" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="1"/>
+ *                       <maxLength value="64"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="orderNo" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}unsignedByte">
+ *                       <minInclusive value="1"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="User"/>
+ *             <enumeration value="Media"/>
+ *             <enumeration value="Markup"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="validationMode" type="{}validationMode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaSegmentationProperites", propOrder = { + "markup" +}) +public class MediaSegmentationProperites { + + protected MediaSegmentationProperites.Markup markup; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "validationMode") + protected ValidationMode validationMode; + + /** + * Gets the value of the markup property. + * + * @return + * possible object is + * {@link MediaSegmentationProperites.Markup } + * + */ + public MediaSegmentationProperites.Markup getMarkup() { + return markup; + } + + /** + * Sets the value of the markup property. + * + * @param value + * allowed object is + * {@link MediaSegmentationProperites.Markup } + * + */ + public void setMarkup(MediaSegmentationProperites.Markup value) { + this.markup = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the validationMode property. + * + * @return + * possible object is + * {@link ValidationMode } + * + */ + public ValidationMode getValidationMode() { + return validationMode; + } + + /** + * Sets the value of the validationMode property. + * + * @param value + * allowed object is + * {@link ValidationMode } + * + */ + public void setValidationMode(ValidationMode value) { + this.validationMode = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="orderNo" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}unsignedByte">
+     *             <minInclusive value="1"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Markup { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "orderNo", required = true) + protected short orderNo; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the orderNo property. + * + */ + public short getOrderNo() { + return orderNo; + } + + /** + * Sets the value of the orderNo property. + * + */ + public void setOrderNo(short value) { + this.orderNo = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSet.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSet.java new file mode 100644 index 00000000..29697879 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSet.java @@ -0,0 +1,757 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * Representation of a piece of media with associated metadata. Make sure the creationTime is in the format 2017-03-23T14:11:00 [YYYY-MM-DD]T[HH:MM:SS] otherwise XML validation will fail. + * + *

Java class for mediaSet complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaSet">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="auxXML" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attGroup ref="{}mediaSetKey"/>
+ *       <attribute name="serialNumber" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="model" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="capacity" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="firstWritePosition" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="lastWritePosition" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="gapSize" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="nextWritePosition" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="freeSpace" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="fragmentationMetric" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="mountCount" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="lastUsedTime" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="performance" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="textColour" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="backColour" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="formFactor" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="mediaSetLocationType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="mediaSetLocation" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="mediaSetLocationAddress" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="previousMediaSetLocationType" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="previousMediaSetLocationAddress" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="previousMediaSetLocation" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaSet", propOrder = { + "auxXML" +}) +public class MediaSet { + + protected MediaSet.AuxXML auxXML; + @XmlAttribute(name = "serialNumber") + protected String serialNumber; + @XmlAttribute(name = "model") + protected String model; + @XmlAttribute(name = "capacity") + protected String capacity; + @XmlAttribute(name = "firstWritePosition") + protected String firstWritePosition; + @XmlAttribute(name = "lastWritePosition") + protected String lastWritePosition; + @XmlAttribute(name = "gapSize") + protected String gapSize; + @XmlAttribute(name = "nextWritePosition") + protected String nextWritePosition; + @XmlAttribute(name = "freeSpace") + protected String freeSpace; + @XmlAttribute(name = "fragmentationMetric") + protected Integer fragmentationMetric; + @XmlAttribute(name = "mountCount") + protected Integer mountCount; + @XmlAttribute(name = "lastUsedTime") + protected String lastUsedTime; + @XmlAttribute(name = "performance") + protected Integer performance; + @XmlAttribute(name = "textColour") + protected Integer textColour; + @XmlAttribute(name = "backColour") + protected Integer backColour; + @XmlAttribute(name = "formFactor") + protected String formFactor; + @XmlAttribute(name = "mediaSetLocationType") + protected String mediaSetLocationType; + @XmlAttribute(name = "mediaSetLocation") + protected String mediaSetLocation; + @XmlAttribute(name = "mediaSetLocationAddress") + protected String mediaSetLocationAddress; + @XmlAttribute(name = "previousMediaSetLocationType") + protected String previousMediaSetLocationType; + @XmlAttribute(name = "previousMediaSetLocationAddress") + protected String previousMediaSetLocationAddress; + @XmlAttribute(name = "previousMediaSetLocation") + protected String previousMediaSetLocation; + @XmlAttribute(name = "mediaSetName", required = true) + protected String mediaSetName; + @XmlAttribute(name = "mediaSetType", required = true) + protected MediaSetType mediaSetType; + + /** + * Gets the value of the auxXML property. + * + * @return + * possible object is + * {@link MediaSet.AuxXML } + * + */ + public MediaSet.AuxXML getAuxXML() { + return auxXML; + } + + /** + * Sets the value of the auxXML property. + * + * @param value + * allowed object is + * {@link MediaSet.AuxXML } + * + */ + public void setAuxXML(MediaSet.AuxXML value) { + this.auxXML = value; + } + + /** + * Gets the value of the serialNumber property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSerialNumber() { + return serialNumber; + } + + /** + * Sets the value of the serialNumber property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSerialNumber(String value) { + this.serialNumber = value; + } + + /** + * Gets the value of the model property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getModel() { + return model; + } + + /** + * Sets the value of the model property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setModel(String value) { + this.model = value; + } + + /** + * Gets the value of the capacity property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCapacity() { + return capacity; + } + + /** + * Sets the value of the capacity property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCapacity(String value) { + this.capacity = value; + } + + /** + * Gets the value of the firstWritePosition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFirstWritePosition() { + return firstWritePosition; + } + + /** + * Sets the value of the firstWritePosition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFirstWritePosition(String value) { + this.firstWritePosition = value; + } + + /** + * Gets the value of the lastWritePosition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastWritePosition() { + return lastWritePosition; + } + + /** + * Sets the value of the lastWritePosition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastWritePosition(String value) { + this.lastWritePosition = value; + } + + /** + * Gets the value of the gapSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGapSize() { + return gapSize; + } + + /** + * Sets the value of the gapSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGapSize(String value) { + this.gapSize = value; + } + + /** + * Gets the value of the nextWritePosition property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNextWritePosition() { + return nextWritePosition; + } + + /** + * Sets the value of the nextWritePosition property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNextWritePosition(String value) { + this.nextWritePosition = value; + } + + /** + * Gets the value of the freeSpace property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFreeSpace() { + return freeSpace; + } + + /** + * Sets the value of the freeSpace property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFreeSpace(String value) { + this.freeSpace = value; + } + + /** + * Gets the value of the fragmentationMetric property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getFragmentationMetric() { + return fragmentationMetric; + } + + /** + * Sets the value of the fragmentationMetric property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setFragmentationMetric(Integer value) { + this.fragmentationMetric = value; + } + + /** + * Gets the value of the mountCount property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getMountCount() { + return mountCount; + } + + /** + * Sets the value of the mountCount property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setMountCount(Integer value) { + this.mountCount = value; + } + + /** + * Gets the value of the lastUsedTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastUsedTime() { + return lastUsedTime; + } + + /** + * Sets the value of the lastUsedTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastUsedTime(String value) { + this.lastUsedTime = value; + } + + /** + * Gets the value of the performance property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getPerformance() { + return performance; + } + + /** + * Sets the value of the performance property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPerformance(Integer value) { + this.performance = value; + } + + /** + * Gets the value of the textColour property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getTextColour() { + return textColour; + } + + /** + * Sets the value of the textColour property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setTextColour(Integer value) { + this.textColour = value; + } + + /** + * Gets the value of the backColour property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getBackColour() { + return backColour; + } + + /** + * Sets the value of the backColour property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setBackColour(Integer value) { + this.backColour = value; + } + + /** + * Gets the value of the formFactor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFormFactor() { + return formFactor; + } + + /** + * Sets the value of the formFactor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFormFactor(String value) { + this.formFactor = value; + } + + /** + * Gets the value of the mediaSetLocationType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetLocationType() { + return mediaSetLocationType; + } + + /** + * Sets the value of the mediaSetLocationType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetLocationType(String value) { + this.mediaSetLocationType = value; + } + + /** + * Gets the value of the mediaSetLocation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetLocation() { + return mediaSetLocation; + } + + /** + * Sets the value of the mediaSetLocation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetLocation(String value) { + this.mediaSetLocation = value; + } + + /** + * Gets the value of the mediaSetLocationAddress property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetLocationAddress() { + return mediaSetLocationAddress; + } + + /** + * Sets the value of the mediaSetLocationAddress property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetLocationAddress(String value) { + this.mediaSetLocationAddress = value; + } + + /** + * Gets the value of the previousMediaSetLocationType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPreviousMediaSetLocationType() { + return previousMediaSetLocationType; + } + + /** + * Sets the value of the previousMediaSetLocationType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPreviousMediaSetLocationType(String value) { + this.previousMediaSetLocationType = value; + } + + /** + * Gets the value of the previousMediaSetLocationAddress property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPreviousMediaSetLocationAddress() { + return previousMediaSetLocationAddress; + } + + /** + * Sets the value of the previousMediaSetLocationAddress property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPreviousMediaSetLocationAddress(String value) { + this.previousMediaSetLocationAddress = value; + } + + /** + * Gets the value of the previousMediaSetLocation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPreviousMediaSetLocation() { + return previousMediaSetLocation; + } + + /** + * Sets the value of the previousMediaSetLocation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPreviousMediaSetLocation(String value) { + this.previousMediaSetLocation = value; + } + + /** + * Gets the value of the mediaSetName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetName() { + return mediaSetName; + } + + /** + * Sets the value of the mediaSetName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetName(String value) { + this.mediaSetName = value; + } + + /** + * Gets the value of the mediaSetType property. + * + * @return + * possible object is + * {@link MediaSetType } + * + */ + public MediaSetType getMediaSetType() { + return mediaSetType; + } + + /** + * Sets the value of the mediaSetType property. + * + * @param value + * allowed object is + * {@link MediaSetType } + * + */ + public void setMediaSetType(MediaSetType value) { + this.mediaSetType = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class AuxXML { + + @XmlAnyElement + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAny().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSetType.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSetType.java new file mode 100644 index 00000000..6d4f085b --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSetType.java @@ -0,0 +1,65 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for mediaSetType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="mediaSetType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <minLength value="1"/>
+ *     <maxLength value="32"/>
+ *     <enumeration value="Disk"/>
+ *     <enumeration value="Unknown Tape"/>
+ *     <enumeration value="SingleSpot Tape"/>
+ *     <enumeration value="MultiSpot Tape"/>
+ *     <enumeration value="Archive Tape"/>
+ *     <enumeration value="Foreign Tape"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "mediaSetType") +@XmlEnum +public enum MediaSetType { + + @XmlEnumValue("Disk") + DISK("Disk"), + @XmlEnumValue("Unknown Tape") + UNKNOWN_TAPE("Unknown Tape"), + @XmlEnumValue("SingleSpot Tape") + SINGLE_SPOT_TAPE("SingleSpot Tape"), + @XmlEnumValue("MultiSpot Tape") + MULTI_SPOT_TAPE("MultiSpot Tape"), + @XmlEnumValue("Archive Tape") + ARCHIVE_TAPE("Archive Tape"), + @XmlEnumValue("Foreign Tape") + FOREIGN_TAPE("Foreign Tape"); + private final String value; + + MediaSetType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MediaSetType fromValue(String v) { + for (MediaSetType c: MediaSetType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSimple.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSimple.java new file mode 100644 index 00000000..518f7e82 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSimple.java @@ -0,0 +1,87 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * A simple representation of a piece of media, used in the list and other places where only the key is required. + * + *

Java class for mediaSimple complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaSimple">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="mediaName" use="required" type="{}mediaName" />
+ *       <attribute name="mediaType" use="required" type="{}mediaType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaSimple") +public class MediaSimple { + + @XmlAttribute(name = "mediaName", required = true) + protected String mediaName; + @XmlAttribute(name = "mediaType", required = true) + protected MediaType mediaType; + + /** + * Gets the value of the mediaName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaName() { + return mediaName; + } + + /** + * Sets the value of the mediaName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaName(String value) { + this.mediaName = value; + } + + /** + * Gets the value of the mediaType property. + * + * @return + * possible object is + * {@link MediaType } + * + */ + public MediaType getMediaType() { + return mediaType; + } + + /** + * Sets the value of the mediaType property. + * + * @param value + * allowed object is + * {@link MediaType } + * + */ + public void setMediaType(MediaType value) { + this.mediaType = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSimpleLoose.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSimpleLoose.java new file mode 100644 index 00000000..9be1996c --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaSimpleLoose.java @@ -0,0 +1,91 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * A simple representation of a piece of media, but where all attributes are optional. Used in the keep list + * + *

Java class for mediaSimpleLoose complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaSimpleLoose">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="mediaName" type="{}mediaName" />
+ *       <attribute name="mediaType" type="{}mediaType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaSimpleLoose") +@XmlSeeAlso({ + pb.wsclient.KeepItemProperties.Media.class +}) +public class MediaSimpleLoose { + + @XmlAttribute(name = "mediaName") + protected String mediaName; + @XmlAttribute(name = "mediaType") + protected MediaType mediaType; + + /** + * Gets the value of the mediaName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaName() { + return mediaName; + } + + /** + * Sets the value of the mediaName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaName(String value) { + this.mediaName = value; + } + + /** + * Gets the value of the mediaType property. + * + * @return + * possible object is + * {@link MediaType } + * + */ + public MediaType getMediaType() { + return mediaType; + } + + /** + * Sets the value of the mediaType property. + * + * @param value + * allowed object is + * {@link MediaType } + * + */ + public void setMediaType(MediaType value) { + this.mediaType = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaStreamIngestProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaStreamIngestProperties.java new file mode 100644 index 00000000..2186552a --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaStreamIngestProperties.java @@ -0,0 +1,62 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for mediaStreamIngestProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaStreamIngestProperties">
+ *   <complexContent>
+ *     <extension base="{}mediaStreamProperties">
+ *       <attribute name="duration" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaStreamIngestProperties") +public class MediaStreamIngestProperties + extends MediaStreamProperties +{ + + @XmlAttribute(name = "duration") + @XmlSchemaType(name = "anySimpleType") + protected String duration; + + /** + * Gets the value of the duration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDuration() { + return duration; + } + + /** + * Sets the value of the duration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDuration(String value) { + this.duration = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaStreamProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaStreamProperties.java new file mode 100644 index 00000000..57a86fc3 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaStreamProperties.java @@ -0,0 +1,204 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; + + +/** + * Media Stream Job Properties + * + *

Java class for mediaStreamProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaStreamProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice minOccurs="0">
+ *           <element name="video" type="{}videoProperties"/>
+ *           <element name="cg" type="{}cgProperties"/>
+ *           <element name="subtitle" type="{}subtitleProperties"/>
+ *         </choice>
+ *         <element name="allocation" type="{}listStreamAllocationProperties" minOccurs="0"/>
+ *         <element name="segment" type="{}mediaSegmentationProperites" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="som" type="{}timecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaStreamProperties", propOrder = { + "video", + "cg", + "subtitle", + "allocation", + "segment" +}) +@XmlSeeAlso({ + MediaStreamIngestProperties.class +}) +public class MediaStreamProperties { + + protected VideoProperties video; + protected CgProperties cg; + protected SubtitleProperties subtitle; + protected ListStreamAllocationProperties allocation; + protected MediaSegmentationProperites segment; + @XmlAttribute(name = "som") + protected String som; + + /** + * Gets the value of the video property. + * + * @return + * possible object is + * {@link VideoProperties } + * + */ + public VideoProperties getVideo() { + return video; + } + + /** + * Sets the value of the video property. + * + * @param value + * allowed object is + * {@link VideoProperties } + * + */ + public void setVideo(VideoProperties value) { + this.video = value; + } + + /** + * Gets the value of the cg property. + * + * @return + * possible object is + * {@link CgProperties } + * + */ + public CgProperties getCg() { + return cg; + } + + /** + * Sets the value of the cg property. + * + * @param value + * allowed object is + * {@link CgProperties } + * + */ + public void setCg(CgProperties value) { + this.cg = value; + } + + /** + * Gets the value of the subtitle property. + * + * @return + * possible object is + * {@link SubtitleProperties } + * + */ + public SubtitleProperties getSubtitle() { + return subtitle; + } + + /** + * Sets the value of the subtitle property. + * + * @param value + * allowed object is + * {@link SubtitleProperties } + * + */ + public void setSubtitle(SubtitleProperties value) { + this.subtitle = value; + } + + /** + * Gets the value of the allocation property. + * + * @return + * possible object is + * {@link ListStreamAllocationProperties } + * + */ + public ListStreamAllocationProperties getAllocation() { + return allocation; + } + + /** + * Sets the value of the allocation property. + * + * @param value + * allowed object is + * {@link ListStreamAllocationProperties } + * + */ + public void setAllocation(ListStreamAllocationProperties value) { + this.allocation = value; + } + + /** + * Gets the value of the segment property. + * + * @return + * possible object is + * {@link MediaSegmentationProperites } + * + */ + public MediaSegmentationProperites getSegment() { + return segment; + } + + /** + * Sets the value of the segment property. + * + * @param value + * allowed object is + * {@link MediaSegmentationProperites } + * + */ + public void setSegment(MediaSegmentationProperites value) { + this.segment = value; + } + + /** + * Gets the value of the som property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSom() { + return som; + } + + /** + * Sets the value of the som property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSom(String value) { + this.som = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaType.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaType.java new file mode 100644 index 00000000..31b69098 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaType.java @@ -0,0 +1,58 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for mediaType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="mediaType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <minLength value="1"/>
+ *     <maxLength value="32"/>
+ *     <enumeration value="Video"/>
+ *     <enumeration value="CG"/>
+ *     <enumeration value="Subtitle"/>
+ *     <enumeration value="Audio"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "mediaType") +@XmlEnum +public enum MediaType { + + @XmlEnumValue("Video") + VIDEO("Video"), + CG("CG"), + @XmlEnumValue("Subtitle") + SUBTITLE("Subtitle"), + @XmlEnumValue("Audio") + AUDIO("Audio"); + private final String value; + + MediaType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MediaType fromValue(String v) { + for (MediaType c: MediaType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsage.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsage.java new file mode 100644 index 00000000..5e05ea98 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsage.java @@ -0,0 +1,189 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a piece of media's usage and availability in the system + * + *

Java class for mediaUsage complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaUsage">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mediaInstancesUsage" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="mediaInstanceUsage" type="{}mediaInstanceUsage" maxOccurs="unbounded"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attGroup ref="{}mediaKey"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaUsage", propOrder = { + "mediaInstancesUsage" +}) +public class MediaUsage { + + protected MediaUsage.MediaInstancesUsage mediaInstancesUsage; + @XmlAttribute(name = "mediaName", required = true) + protected String mediaName; + @XmlAttribute(name = "mediaType", required = true) + protected MediaType mediaType; + + /** + * Gets the value of the mediaInstancesUsage property. + * + * @return + * possible object is + * {@link MediaUsage.MediaInstancesUsage } + * + */ + public MediaUsage.MediaInstancesUsage getMediaInstancesUsage() { + return mediaInstancesUsage; + } + + /** + * Sets the value of the mediaInstancesUsage property. + * + * @param value + * allowed object is + * {@link MediaUsage.MediaInstancesUsage } + * + */ + public void setMediaInstancesUsage(MediaUsage.MediaInstancesUsage value) { + this.mediaInstancesUsage = value; + } + + /** + * Gets the value of the mediaName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaName() { + return mediaName; + } + + /** + * Sets the value of the mediaName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaName(String value) { + this.mediaName = value; + } + + /** + * Gets the value of the mediaType property. + * + * @return + * possible object is + * {@link MediaType } + * + */ + public MediaType getMediaType() { + return mediaType; + } + + /** + * Sets the value of the mediaType property. + * + * @param value + * allowed object is + * {@link MediaType } + * + */ + public void setMediaType(MediaType value) { + this.mediaType = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="mediaInstanceUsage" type="{}mediaInstanceUsage" maxOccurs="unbounded"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "mediaInstanceUsage" + }) + public static class MediaInstancesUsage { + + @XmlElement(required = true) + protected List mediaInstanceUsage; + + /** + * Gets the value of the mediaInstanceUsage property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mediaInstanceUsage property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getMediaInstanceUsage().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MediaInstanceUsage } + * + * + */ + public List getMediaInstanceUsage() { + if (mediaInstanceUsage == null) { + mediaInstanceUsage = new ArrayList(); + } + return this.mediaInstanceUsage; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageContainer.java new file mode 100644 index 00000000..69053f46 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mediaUsage" type="{}mediaUsage"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaUsage" +}) +@XmlRootElement(name = "mediaUsageContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class MediaUsageContainer { + + @XmlElement(required = true) + protected MediaUsage mediaUsage; + + /** + * Gets the value of the mediaUsage property. + * + * @return + * possible object is + * {@link MediaUsage } + * + */ + public MediaUsage getMediaUsage() { + return mediaUsage; + } + + /** + * Sets the value of the mediaUsage property. + * + * @param value + * allowed object is + * {@link MediaUsage } + * + */ + public void setMediaUsage(MediaUsage value) { + this.mediaUsage = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageList.java new file mode 100644 index 00000000..c35d55ae --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageList.java @@ -0,0 +1,69 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Representation of a collection of media usage elements + * + *

Java class for mediaUsageList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="mediaUsageList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mediaUsage" type="{}mediaUsage" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mediaUsageList", propOrder = { + "mediaUsage" +}) +public class MediaUsageList { + + protected List mediaUsage; + + /** + * Gets the value of the mediaUsage property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mediaUsage property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getMediaUsage().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MediaUsage } + * + * + */ + public List getMediaUsage() { + if (mediaUsage == null) { + mediaUsage = new ArrayList(); + } + return this.mediaUsage; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageListContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageListContainer.java new file mode 100644 index 00000000..63ff8037 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageListContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="mediaUsageList" type="{}mediaUsageList"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "mediaUsageList" +}) +@XmlRootElement(name = "mediaUsageListContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class MediaUsageListContainer { + + @XmlElement(required = true) + protected MediaUsageList mediaUsageList; + + /** + * Gets the value of the mediaUsageList property. + * + * @return + * possible object is + * {@link MediaUsageList } + * + */ + public MediaUsageList getMediaUsageList() { + return mediaUsageList; + } + + /** + * Sets the value of the mediaUsageList property. + * + * @param value + * allowed object is + * {@link MediaUsageList } + * + */ + public void setMediaUsageList(MediaUsageList value) { + this.mediaUsageList = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageMediaKeyContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageMediaKeyContainer.java new file mode 100644 index 00000000..1ddc841a --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/MediaUsageMediaKeyContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="media" type="{}media"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "media" +}) +@XmlRootElement(name = "mediaUsageMediaKeyContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class MediaUsageMediaKeyContainer { + + @XmlElement(required = true) + protected Media media; + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link Media } + * + */ + public Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link Media } + * + */ + public void setMedia(Media value) { + this.media = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ObjectFactory.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ObjectFactory.java new file mode 100644 index 00000000..59c40265 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ObjectFactory.java @@ -0,0 +1,1945 @@ + +package pb.wsclient; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the pb.wsclient package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _BAvailableMedia_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "bAvailableMedia"); + private final static QName _BUnavailableMedia_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "bUnavailableMedia"); + private final static QName _NHeartbeatId_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nHeartbeatId"); + private final static QName _StrListName_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "strListName"); + private final static QName _NEventCount_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nEventCount"); + private final static QName _NEventCountDeleted_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nEventCountDeleted"); + private final static QName _NEventCountNonQueried_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nEventCountNonQueried"); + private final static QName _NEventCountNoAuxXml_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nEventCountNoAuxXml"); + private final static QName _NEventPosition_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nEventPosition"); + private final static QName _NEventKey_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nEventKey"); + private final static QName _NJobId_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nJobId"); + private final static QName _NScheduledJobId_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nScheduledJobId"); + private final static QName _BMoreEventsAvailable_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "bMoreEventsAvailable"); + private final static QName _EventId_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "eventId"); + private final static QName _NextEventId_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "nextEventId"); + private final static QName _BIncludeChildEvents_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "bIncludeChildEvents"); + private final static QName _BIncludeUnhostedComponents_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "bIncludeUnhostedComponents"); + private final static QName _EventUpdateType_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "eventUpdateType"); + private final static QName _BIncludeEmptyAuxXmlEvents_QNAME = new QName("http://www.pebble.tv/MarinaAPI", "bIncludeEmptyAuxXmlEvents"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: pb.wsclient + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link ConfigRequestListContainer } + * + */ + public ConfigRequestListContainer createConfigRequestListContainer() { + return new ConfigRequestListContainer(); + } + + /** + * Create an instance of {@link Config } + * + */ + public Config createConfig() { + return new Config(); + } + + /** + * Create an instance of {@link MediaInstanceKeyContainer } + * + */ + public MediaInstanceKeyContainer createMediaInstanceKeyContainer() { + return new MediaInstanceKeyContainer(); + } + + /** + * Create an instance of {@link GetCustomViewRequestContainer } + * + */ + public GetCustomViewRequestContainer createGetCustomViewRequestContainer() { + return new GetCustomViewRequestContainer(); + } + + /** + * Create an instance of {@link Config.PlayListEventXML } + * + */ + public Config.PlayListEventXML createConfigPlayListEventXML() { + return new Config.PlayListEventXML(); + } + + /** + * Create an instance of {@link UserGroup } + * + */ + public UserGroup createUserGroup() { + return new UserGroup(); + } + + /** + * Create an instance of {@link User } + * + */ + public User createUser() { + return new User(); + } + + /** + * Create an instance of {@link TriggerProperties } + * + */ + public TriggerProperties createTriggerProperties() { + return new TriggerProperties(); + } + + /** + * Create an instance of {@link SwitchAllocation } + * + */ + public SwitchAllocation createSwitchAllocation() { + return new SwitchAllocation(); + } + + /** + * Create an instance of {@link SubtitleProperties } + * + */ + public SubtitleProperties createSubtitleProperties() { + return new SubtitleProperties(); + } + + /** + * Create an instance of {@link ScheduledJobProperties } + * + */ + public ScheduledJobProperties createScheduledJobProperties() { + return new ScheduledJobProperties(); + } + + /** + * Create an instance of {@link ScheduledJobProperties.Review } + * + */ + public ScheduledJobProperties.Review createScheduledJobPropertiesReview() { + return new ScheduledJobProperties.Review(); + } + + /** + * Create an instance of {@link ScheduledJobProperties.Destination } + * + */ + public ScheduledJobProperties.Destination createScheduledJobPropertiesDestination() { + return new ScheduledJobProperties.Destination(); + } + + /** + * Create an instance of {@link RequestProperties } + * + */ + public RequestProperties createRequestProperties() { + return new RequestProperties(); + } + + /** + * Create an instance of {@link RecordSourceProperties } + * + */ + public RecordSourceProperties createRecordSourceProperties() { + return new RecordSourceProperties(); + } + + /** + * Create an instance of {@link Priority } + * + */ + public Priority createPriority() { + return new Priority(); + } + + /** + * Create an instance of {@link PlaylistPrimaryEventProperties } + * + */ + public PlaylistPrimaryEventProperties createPlaylistPrimaryEventProperties() { + return new PlaylistPrimaryEventProperties(); + } + + /** + * Create an instance of {@link EffectProperties } + * + */ + public EffectProperties createEffectProperties() { + return new EffectProperties(); + } + + /** + * Create an instance of {@link EffectProperties.AudioShuffle } + * + */ + public EffectProperties.AudioShuffle createEffectPropertiesAudioShuffle() { + return new EffectProperties.AudioShuffle(); + } + + /** + * Create an instance of {@link EffectProperties.AudioShuffle.Fixed } + * + */ + public EffectProperties.AudioShuffle.Fixed createEffectPropertiesAudioShuffleFixed() { + return new EffectProperties.AudioShuffle.Fixed(); + } + + /** + * Create an instance of {@link MediaUsage } + * + */ + public MediaUsage createMediaUsage() { + return new MediaUsage(); + } + + /** + * Create an instance of {@link MediaSet } + * + */ + public MediaSet createMediaSet() { + return new MediaSet(); + } + + /** + * Create an instance of {@link MediaSegmentationProperites } + * + */ + public MediaSegmentationProperites createMediaSegmentationProperites() { + return new MediaSegmentationProperites(); + } + + /** + * Create an instance of {@link pb.wsclient.MediaInstance } + * + */ + public pb.wsclient.MediaInstance createMediaInstance() { + return new pb.wsclient.MediaInstance(); + } + + /** + * Create an instance of {@link pb.wsclient.Media } + * + */ + public pb.wsclient.Media createMedia() { + return new pb.wsclient.Media(); + } + + /** + * Create an instance of {@link KeepItemProperties } + * + */ + public KeepItemProperties createKeepItemProperties() { + return new KeepItemProperties(); + } + + /** + * Create an instance of {@link KeepItemProperties.Media } + * + */ + public KeepItemProperties.Media createKeepItemPropertiesMedia() { + return new KeepItemProperties.Media(); + } + + /** + * Create an instance of {@link KeepItemProperties.Media.MediaInstances } + * + */ + public KeepItemProperties.Media.MediaInstances createKeepItemPropertiesMediaMediaInstances() { + return new KeepItemProperties.Media.MediaInstances(); + } + + /** + * Create an instance of {@link JobProperties } + * + */ + public JobProperties createJobProperties() { + return new JobProperties(); + } + + /** + * Create an instance of {@link HistoryProperties } + * + */ + public HistoryProperties createHistoryProperties() { + return new HistoryProperties(); + } + + /** + * Create an instance of {@link Heartbeat } + * + */ + public Heartbeat createHeartbeat() { + return new Heartbeat(); + } + + /** + * Create an instance of {@link FeaturesProperties } + * + */ + public FeaturesProperties createFeaturesProperties() { + return new FeaturesProperties(); + } + + /** + * Create an instance of {@link FeaturesProperties.Feature } + * + */ + public FeaturesProperties.Feature createFeaturesPropertiesFeature() { + return new FeaturesProperties.Feature(); + } + + /** + * Create an instance of {@link FeaturesProperties.Feature.Properties } + * + */ + public FeaturesProperties.Feature.Properties createFeaturesPropertiesFeatureProperties() { + return new FeaturesProperties.Feature.Properties(); + } + + /** + * Create an instance of {@link FeaturesProperties.Feature.Properties.FieldList } + * + */ + public FeaturesProperties.Feature.Properties.FieldList createFeaturesPropertiesFeaturePropertiesFieldList() { + return new FeaturesProperties.Feature.Properties.FieldList(); + } + + /** + * Create an instance of {@link DolphinGraphicProperties } + * + */ + public DolphinGraphicProperties createDolphinGraphicProperties() { + return new DolphinGraphicProperties(); + } + + /** + * Create an instance of {@link DeleteMedia } + * + */ + public DeleteMedia createDeleteMedia() { + return new DeleteMedia(); + } + + /** + * Create an instance of {@link CgProperties } + * + */ + public CgProperties createCgProperties() { + return new CgProperties(); + } + + /** + * Create an instance of {@link Audio } + * + */ + public Audio createAudio() { + return new Audio(); + } + + /** + * Create an instance of {@link Audio.Groups } + * + */ + public Audio.Groups createAudioGroups() { + return new Audio.Groups(); + } + + /** + * Create an instance of {@link Audio.Groups.Group } + * + */ + public Audio.Groups.Group createAudioGroupsGroup() { + return new Audio.Groups.Group(); + } + + /** + * Create an instance of {@link Audio.Groups.Group.Tracks } + * + */ + public Audio.Groups.Group.Tracks createAudioGroupsGroupTracks() { + return new Audio.Groups.Group.Tracks(); + } + + /** + * Create an instance of {@link Audio.Tracks } + * + */ + public Audio.Tracks createAudio_Tracks() { + return new Audio.Tracks(); + } + + /** + * Create an instance of {@link Audio.Tracks.Track } + * + */ + public Audio.Tracks.Track createAudioTracksTrack() { + return new Audio.Tracks.Track(); + } + + /** + * Create an instance of {@link AsRunEventTemplate } + * + */ + public AsRunEventTemplate createAsRunEventTemplate() { + return new AsRunEventTemplate(); + } + + /** + * Create an instance of {@link AsRunData } + * + */ + public AsRunData createAsRunData() { + return new AsRunData(); + } + + /** + * Create an instance of {@link AsRunData.Errors } + * + */ + public AsRunData.Errors createAsRunDataErrors() { + return new AsRunData.Errors(); + } + + /** + * Create an instance of {@link AsRunJobProperties } + * + */ + public AsRunJobProperties createAsRunJobProperties() { + return new AsRunJobProperties(); + } + + /** + * Create an instance of {@link AsRunJob } + * + */ + public AsRunJob createAsRunJob() { + return new AsRunJob(); + } + + /** + * Create an instance of {@link ActionScheduleProperties } + * + */ + public ActionScheduleProperties createActionScheduleProperties() { + return new ActionScheduleProperties(); + } + + /** + * Create an instance of {@link AspectRatioProperties } + * + */ + public AspectRatioProperties createAspectRatioProperties() { + return new AspectRatioProperties(); + } + + /** + * Create an instance of {@link AsRunActionEvent } + * + */ + public AsRunActionEvent createAsRunActionEvent() { + return new AsRunActionEvent(); + } + + /** + * Create an instance of {@link AsRunJobList } + * + */ + public AsRunJobList createAsRunJobList() { + return new AsRunJobList(); + } + + /** + * Create an instance of {@link AsRunPrimaryEvent } + * + */ + public AsRunPrimaryEvent createAsRunPrimaryEvent() { + return new AsRunPrimaryEvent(); + } + + /** + * Create an instance of {@link AsRunPrimaryEventList } + * + */ + public AsRunPrimaryEventList createAsRunPrimaryEventList() { + return new AsRunPrimaryEventList(); + } + + /** + * Create an instance of {@link AsRunSecondaryEvent } + * + */ + public AsRunSecondaryEvent createAsRunSecondaryEvent() { + return new AsRunSecondaryEvent(); + } + + /** + * Create an instance of {@link AsRunSecondaryEventList } + * + */ + public AsRunSecondaryEventList createAsRunSecondaryEventList() { + return new AsRunSecondaryEventList(); + } + + /** + * Create an instance of {@link AsRunUserObservation } + * + */ + public AsRunUserObservation createAsRunUserObservation() { + return new AsRunUserObservation(); + } + + /** + * Create an instance of {@link AudioTrack } + * + */ + public AudioTrack createAudioTrack() { + return new AudioTrack(); + } + + /** + * Create an instance of {@link AudioTracks } + * + */ + public AudioTracks createAudioTracks() { + return new AudioTracks(); + } + + /** + * Create an instance of {@link ChangeCounts } + * + */ + public ChangeCounts createChangeCounts() { + return new ChangeCounts(); + } + + /** + * Create an instance of {@link ChannelProperties } + * + */ + public ChannelProperties createChannelProperties() { + return new ChannelProperties(); + } + + /** + * Create an instance of {@link Classification } + * + */ + public Classification createClassification() { + return new Classification(); + } + + /** + * Create an instance of {@link Classifications } + * + */ + public Classifications createClassifications() { + return new Classifications(); + } + + /** + * Create an instance of {@link Component } + * + */ + public Component createComponent() { + return new Component(); + } + + /** + * Create an instance of {@link ComponentList } + * + */ + public ComponentList createComponentList() { + return new ComponentList(); + } + + /** + * Create an instance of {@link DateTimecodeRange } + * + */ + public DateTimecodeRange createDateTimecodeRange() { + return new DateTimecodeRange(); + } + + /** + * Create an instance of {@link DeleteMediaInstance } + * + */ + public DeleteMediaInstance createDeleteMediaInstance() { + return new DeleteMediaInstance(); + } + + /** + * Create an instance of {@link DolphinCGProperties } + * + */ + public DolphinCGProperties createDolphinCGProperties() { + return new DolphinCGProperties(); + } + + /** + * Create an instance of {@link EventClassification } + * + */ + public EventClassification createEventClassification() { + return new EventClassification(); + } + + /** + * Create an instance of {@link EventClassifications } + * + */ + public EventClassifications createEventClassifications() { + return new EventClassifications(); + } + + /** + * Create an instance of {@link EventProperties } + * + */ + public EventProperties createEventProperties() { + return new EventProperties(); + } + + /** + * Create an instance of {@link HealthFlag } + * + */ + public HealthFlag createHealthFlag() { + return new HealthFlag(); + } + + /** + * Create an instance of {@link HealthList } + * + */ + public HealthList createHealthList() { + return new HealthList(); + } + + /** + * Create an instance of {@link IngestProperties } + * + */ + public IngestProperties createIngestProperties() { + return new IngestProperties(); + } + + /** + * Create an instance of {@link Job } + * + */ + public Job createJob() { + return new Job(); + } + + /** + * Create an instance of {@link JobList } + * + */ + public JobList createJobList() { + return new JobList(); + } + + /** + * Create an instance of {@link JobListProperties } + * + */ + public JobListProperties createJobListProperties() { + return new JobListProperties(); + } + + /** + * Create an instance of {@link JobState } + * + */ + public JobState createJobState() { + return new JobState(); + } + + /** + * Create an instance of {@link KeepItem } + * + */ + public KeepItem createKeepItem() { + return new KeepItem(); + } + + /** + * Create an instance of {@link KeepList } + * + */ + public KeepList createKeepList() { + return new KeepList(); + } + + /** + * Create an instance of {@link KeepListProperties } + * + */ + public KeepListProperties createKeepListProperties() { + return new KeepListProperties(); + } + + /** + * Create an instance of {@link Languages } + * + */ + public Languages createLanguages() { + return new Languages(); + } + + /** + * Create an instance of {@link LastModifiedDateTimeRange } + * + */ + public LastModifiedDateTimeRange createLastModifiedDateTimeRange() { + return new LastModifiedDateTimeRange(); + } + + /** + * Create an instance of {@link Layers } + * + */ + public Layers createLayers() { + return new Layers(); + } + + /** + * Create an instance of {@link ListStreamAllocation } + * + */ + public ListStreamAllocation createListStreamAllocation() { + return new ListStreamAllocation(); + } + + /** + * Create an instance of {@link ListStreamAllocationProperties } + * + */ + public ListStreamAllocationProperties createListStreamAllocationProperties() { + return new ListStreamAllocationProperties(); + } + + /** + * Create an instance of {@link MacroProperties } + * + */ + public MacroProperties createMacroProperties() { + return new MacroProperties(); + } + + /** + * Create an instance of {@link pb.wsclient.Markup } + * + */ + public pb.wsclient.Markup createMarkup() { + return new pb.wsclient.Markup(); + } + + /** + * Create an instance of {@link MarkupItem } + * + */ + public MarkupItem createMarkupItem() { + return new MarkupItem(); + } + + /** + * Create an instance of {@link Markups } + * + */ + public Markups createMarkups() { + return new Markups(); + } + + /** + * Create an instance of {@link MediaInstanceList } + * + */ + public MediaInstanceList createMediaInstanceList() { + return new MediaInstanceList(); + } + + /** + * Create an instance of {@link MediaInstanceProperties } + * + */ + public MediaInstanceProperties createMediaInstanceProperties() { + return new MediaInstanceProperties(); + } + + /** + * Create an instance of {@link MediaInstanceUsage } + * + */ + public MediaInstanceUsage createMediaInstanceUsage() { + return new MediaInstanceUsage(); + } + + /** + * Create an instance of {@link MediaList } + * + */ + public MediaList createMediaList() { + return new MediaList(); + } + + /** + * Create an instance of {@link MediaProperties } + * + */ + public MediaProperties createMediaProperties() { + return new MediaProperties(); + } + + /** + * Create an instance of {@link MediaSimple } + * + */ + public MediaSimple createMediaSimple() { + return new MediaSimple(); + } + + /** + * Create an instance of {@link MediaSimpleLoose } + * + */ + public MediaSimpleLoose createMediaSimpleLoose() { + return new MediaSimpleLoose(); + } + + /** + * Create an instance of {@link MediaStreamIngestProperties } + * + */ + public MediaStreamIngestProperties createMediaStreamIngestProperties() { + return new MediaStreamIngestProperties(); + } + + /** + * Create an instance of {@link MediaStreamProperties } + * + */ + public MediaStreamProperties createMediaStreamProperties() { + return new MediaStreamProperties(); + } + + /** + * Create an instance of {@link MediaUsageList } + * + */ + public MediaUsageList createMediaUsageList() { + return new MediaUsageList(); + } + + /** + * Create an instance of {@link PlaylistActionEvent } + * + */ + public PlaylistActionEvent createPlaylistActionEvent() { + return new PlaylistActionEvent(); + } + + /** + * Create an instance of {@link PlaylistActionEventEffectProperties } + * + */ + public PlaylistActionEventEffectProperties createPlaylistActionEventEffectProperties() { + return new PlaylistActionEventEffectProperties(); + } + + /** + * Create an instance of {@link PlaylistActionEventProperties } + * + */ + public PlaylistActionEventProperties createPlaylistActionEventProperties() { + return new PlaylistActionEventProperties(); + } + + /** + * Create an instance of {@link PlaylistPrimaryEvent } + * + */ + public PlaylistPrimaryEvent createPlaylistPrimaryEvent() { + return new PlaylistPrimaryEvent(); + } + + /** + * Create an instance of {@link PlaylistPrimaryEventList } + * + */ + public PlaylistPrimaryEventList createPlaylistPrimaryEventList() { + return new PlaylistPrimaryEventList(); + } + + /** + * Create an instance of {@link PlaylistProperties } + * + */ + public PlaylistProperties createPlaylistProperties() { + return new PlaylistProperties(); + } + + /** + * Create an instance of {@link PlaylistSecondaryEvent } + * + */ + public PlaylistSecondaryEvent createPlaylistSecondaryEvent() { + return new PlaylistSecondaryEvent(); + } + + /** + * Create an instance of {@link PlaylistSecondaryEventList } + * + */ + public PlaylistSecondaryEventList createPlaylistSecondaryEventList() { + return new PlaylistSecondaryEventList(); + } + + /** + * Create an instance of {@link PlaylistSecondaryEventProperties } + * + */ + public PlaylistSecondaryEventProperties createPlaylistSecondaryEventProperties() { + return new PlaylistSecondaryEventProperties(); + } + + /** + * Create an instance of {@link PrimaryScheduleProperties } + * + */ + public PrimaryScheduleProperties createPrimaryScheduleProperties() { + return new PrimaryScheduleProperties(); + } + + /** + * Create an instance of {@link RestrictionProperties } + * + */ + public RestrictionProperties createRestrictionProperties() { + return new RestrictionProperties(); + } + + /** + * Create an instance of {@link ScheduledJob } + * + */ + public ScheduledJob createScheduledJob() { + return new ScheduledJob(); + } + + /** + * Create an instance of {@link ScheduledJobList } + * + */ + public ScheduledJobList createScheduledJobList() { + return new ScheduledJobList(); + } + + /** + * Create an instance of {@link ScheduledJobScheduleProperties } + * + */ + public ScheduledJobScheduleProperties createScheduledJobScheduleProperties() { + return new ScheduledJobScheduleProperties(); + } + + /** + * Create an instance of {@link Secondaries } + * + */ + public Secondaries createSecondaries() { + return new Secondaries(); + } + + /** + * Create an instance of {@link SecondaryScheduleProperties } + * + */ + public SecondaryScheduleProperties createSecondaryScheduleProperties() { + return new SecondaryScheduleProperties(); + } + + /** + * Create an instance of {@link State } + * + */ + public State createState() { + return new State(); + } + + /** + * Create an instance of {@link StatusProperties } + * + */ + public StatusProperties createStatusProperties() { + return new StatusProperties(); + } + + /** + * Create an instance of {@link SwitchProperties } + * + */ + public SwitchProperties createSwitchProperties() { + return new SwitchProperties(); + } + + /** + * Create an instance of {@link System } + * + */ + public System createSystem() { + return new System(); + } + + /** + * Create an instance of {@link TimecodeProperties } + * + */ + public TimecodeProperties createTimecodeProperties() { + return new TimecodeProperties(); + } + + /** + * Create an instance of {@link Transfer } + * + */ + public Transfer createTransfer() { + return new Transfer(); + } + + /** + * Create an instance of {@link TransferDestination } + * + */ + public TransferDestination createTransferDestination() { + return new TransferDestination(); + } + + /** + * Create an instance of {@link VideoProperties } + * + */ + public VideoProperties createVideoProperties() { + return new VideoProperties(); + } + + /** + * Create an instance of {@link VpsProperties } + * + */ + public VpsProperties createVpsProperties() { + return new VpsProperties(); + } + + /** + * Create an instance of {@link LastModifiedDateTimeRangeContainer } + * + */ + public LastModifiedDateTimeRangeContainer createLastModifiedDateTimeRangeContainer() { + return new LastModifiedDateTimeRangeContainer(); + } + + /** + * Create an instance of {@link ConfigRequestListContainer.ConfigRequestList } + * + */ + public ConfigRequestListContainer.ConfigRequestList createConfigRequestListContainerConfigRequestList() { + return new ConfigRequestListContainer.ConfigRequestList(); + } + + /** + * Create an instance of {@link MediaMetadataContainer } + * + */ + public MediaMetadataContainer createMediaMetadataContainer() { + return new MediaMetadataContainer(); + } + + /** + * Create an instance of {@link ConfigContainer } + * + */ + public ConfigContainer createConfigContainer() { + return new ConfigContainer(); + } + + /** + * Create an instance of {@link MediaUsageListContainer } + * + */ + public MediaUsageListContainer createMediaUsageListContainer() { + return new MediaUsageListContainer(); + } + + /** + * Create an instance of {@link DeleteMediaInstanceContainer } + * + */ + public DeleteMediaInstanceContainer createDeleteMediaInstanceContainer() { + return new DeleteMediaInstanceContainer(); + } + + /** + * Create an instance of {@link MediaKeyContainer } + * + */ + public MediaKeyContainer createMediaKeyContainer() { + return new MediaKeyContainer(); + } + + /** + * Create an instance of {@link MediaUsageMediaKeyContainer } + * + */ + public MediaUsageMediaKeyContainer createMediaUsageMediaKeyContainer() { + return new MediaUsageMediaKeyContainer(); + } + + /** + * Create an instance of {@link DeleteMediaInstanceKeyContainer } + * + */ + public DeleteMediaInstanceKeyContainer createDeleteMediaInstanceKeyContainer() { + return new DeleteMediaInstanceKeyContainer(); + } + + /** + * Create an instance of {@link DateTimecodeRangeContainer } + * + */ + public DateTimecodeRangeContainer createDateTimecodeRangeContainer() { + return new DateTimecodeRangeContainer(); + } + + /** + * Create an instance of {@link JobStateDateTimecodeRangeContainer } + * + */ + public JobStateDateTimecodeRangeContainer createJobStateDateTimecodeRangeContainer() { + return new JobStateDateTimecodeRangeContainer(); + } + + /** + * Create an instance of {@link ScheduledJobStateDateTimecodeRangeContainer } + * + */ + public ScheduledJobStateDateTimecodeRangeContainer createScheduledJobStateDateTimecodeRangeContainer() { + return new ScheduledJobStateDateTimecodeRangeContainer(); + } + + /** + * Create an instance of {@link MediaUsageContainer } + * + */ + public MediaUsageContainer createMediaUsageContainer() { + return new MediaUsageContainer(); + } + + /** + * Create an instance of {@link MediaInstanceKeyContainer.Media } + * + */ + public MediaInstanceKeyContainer.Media createMediaInstanceKeyContainerMedia() { + return new MediaInstanceKeyContainer.Media(); + } + + /** + * Create an instance of {@link EventContainer } + * + */ + public EventContainer createEventContainer() { + return new EventContainer(); + } + + /** + * Create an instance of {@link EventListContainer } + * + */ + public EventListContainer createEventListContainer() { + return new EventListContainer(); + } + + /** + * Create an instance of {@link JobContainer } + * + */ + public JobContainer createJobContainer() { + return new JobContainer(); + } + + /** + * Create an instance of {@link ScheduledJobContainer } + * + */ + public ScheduledJobContainer createScheduledJobContainer() { + return new ScheduledJobContainer(); + } + + /** + * Create an instance of {@link EventId } + * + */ + public EventId createEventId() { + return new EventId(); + } + + /** + * Create an instance of {@link EventIdList } + * + */ + public EventIdList createEventIdList() { + return new EventIdList(); + } + + /** + * Create an instance of {@link EventIdListContainer } + * + */ + public EventIdListContainer createEventIdListContainer() { + return new EventIdListContainer(); + } + + /** + * Create an instance of {@link EventIdListContainerDeleted } + * + */ + public EventIdListContainerDeleted createEventIdListContainerDeleted() { + return new EventIdListContainerDeleted(); + } + + /** + * Create an instance of {@link EventIdListContainerNonQueried } + * + */ + public EventIdListContainerNonQueried createEventIdListContainerNonQueried() { + return new EventIdListContainerNonQueried(); + } + + /** + * Create an instance of {@link ComponentTagContainer } + * + */ + public ComponentTagContainer createComponentTagContainer() { + return new ComponentTagContainer(); + } + + /** + * Create an instance of {@link ComponentListContainer } + * + */ + public ComponentListContainer createComponentListContainer() { + return new ComponentListContainer(); + } + + /** + * Create an instance of {@link GetContiguousListEventsOutput } + * + */ + public GetContiguousListEventsOutput createGetContiguousListEventsOutput() { + return new GetContiguousListEventsOutput(); + } + + /** + * Create an instance of {@link GetNonContiguousListEventsOutput } + * + */ + public GetNonContiguousListEventsOutput createGetNonContiguousListEventsOutput() { + return new GetNonContiguousListEventsOutput(); + } + + /** + * Create an instance of {@link GetListEventChangesOutput } + * + */ + public GetListEventChangesOutput createGetListEventChangesOutput() { + return new GetListEventChangesOutput(); + } + + /** + * Create an instance of {@link GetListEventChangesAuxXMLOutput } + * + */ + public GetListEventChangesAuxXMLOutput createGetListEventChangesAuxXMLOutput() { + return new GetListEventChangesAuxXMLOutput(); + } + + /** + * Create an instance of {@link MediaListContainer } + * + */ + public MediaListContainer createMediaListContainer() { + return new MediaListContainer(); + } + + /** + * Create an instance of {@link JobListContainer } + * + */ + public JobListContainer createJobListContainer() { + return new JobListContainer(); + } + + /** + * Create an instance of {@link ScheduledJobListContainer } + * + */ + public ScheduledJobListContainer createScheduledJobListContainer() { + return new ScheduledJobListContainer(); + } + + /** + * Create an instance of {@link GetJobsForMediaRequestContainer } + * + */ + public GetJobsForMediaRequestContainer createGetJobsForMediaRequestContainer() { + return new GetJobsForMediaRequestContainer(); + } + + /** + * Create an instance of {@link GetScheduledJobsForMediaRequestContainer } + * + */ + public GetScheduledJobsForMediaRequestContainer createGetScheduledJobsForMediaRequestContainer() { + return new GetScheduledJobsForMediaRequestContainer(); + } + + /** + * Create an instance of {@link GetJobRequestContainer } + * + */ + public GetJobRequestContainer createGetJobRequestContainer() { + return new GetJobRequestContainer(); + } + + /** + * Create an instance of {@link GetScheduledJobRequestContainer } + * + */ + public GetScheduledJobRequestContainer createGetScheduledJobRequestContainer() { + return new GetScheduledJobRequestContainer(); + } + + /** + * Create an instance of {@link GetCustomViewRequestContainer.MarinaCustomAPI } + * + */ + public GetCustomViewRequestContainer.MarinaCustomAPI createGetCustomViewRequestContainerMarinaCustomAPI() { + return new GetCustomViewRequestContainer.MarinaCustomAPI(); + } + + /** + * Create an instance of {@link GetCustomViewResponseContainer } + * + */ + public GetCustomViewResponseContainer createGetCustomViewResponseContainer() { + return new GetCustomViewResponseContainer(); + } + + /** + * Create an instance of {@link Config.PlayListEventXML.EnabledFields } + * + */ + public Config.PlayListEventXML.EnabledFields createConfigPlayListEventXMLEnabledFields() { + return new Config.PlayListEventXML.EnabledFields(); + } + + /** + * Create an instance of {@link UserGroup.AuxXML } + * + */ + public UserGroup.AuxXML createUserGroupAuxXML() { + return new UserGroup.AuxXML(); + } + + /** + * Create an instance of {@link User.AuxXML } + * + */ + public User.AuxXML createUserAuxXML() { + return new User.AuxXML(); + } + + /** + * Create an instance of {@link TriggerProperties.Macro } + * + */ + public TriggerProperties.Macro createTriggerPropertiesMacro() { + return new TriggerProperties.Macro(); + } + + /** + * Create an instance of {@link TriggerProperties.Fixed } + * + */ + public TriggerProperties.Fixed createTriggerPropertiesFixed() { + return new TriggerProperties.Fixed(); + } + + /** + * Create an instance of {@link SwitchAllocation.Auto } + * + */ + public SwitchAllocation.Auto createSwitchAllocationAuto() { + return new SwitchAllocation.Auto(); + } + + /** + * Create an instance of {@link SwitchAllocation.Logical } + * + */ + public SwitchAllocation.Logical createSwitchAllocationLogical() { + return new SwitchAllocation.Logical(); + } + + /** + * Create an instance of {@link SwitchAllocation.Fixed } + * + */ + public SwitchAllocation.Fixed createSwitchAllocationFixed() { + return new SwitchAllocation.Fixed(); + } + + /** + * Create an instance of {@link SubtitleProperties.AuxXML } + * + */ + public SubtitleProperties.AuxXML createSubtitlePropertiesAuxXML() { + return new SubtitleProperties.AuxXML(); + } + + /** + * Create an instance of {@link ScheduledJobProperties.Source } + * + */ + public ScheduledJobProperties.Source createScheduledJobPropertiesSource() { + return new ScheduledJobProperties.Source(); + } + + /** + * Create an instance of {@link ScheduledJobProperties.Review.MediaStreams } + * + */ + public ScheduledJobProperties.Review.MediaStreams createScheduledJobPropertiesReviewMediaStreams() { + return new ScheduledJobProperties.Review.MediaStreams(); + } + + /** + * Create an instance of {@link ScheduledJobProperties.Destination.MediaStreams } + * + */ + public ScheduledJobProperties.Destination.MediaStreams createScheduledJobPropertiesDestinationMediaStreams() { + return new ScheduledJobProperties.Destination.MediaStreams(); + } + + /** + * Create an instance of {@link RequestProperties.Requester } + * + */ + public RequestProperties.Requester createRequestPropertiesRequester() { + return new RequestProperties.Requester(); + } + + /** + * Create an instance of {@link RequestProperties.MediaLocation } + * + */ + public RequestProperties.MediaLocation createRequestPropertiesMediaLocation() { + return new RequestProperties.MediaLocation(); + } + + /** + * Create an instance of {@link RecordSourceProperties.Auto } + * + */ + public RecordSourceProperties.Auto createRecordSourcePropertiesAuto() { + return new RecordSourceProperties.Auto(); + } + + /** + * Create an instance of {@link Priority.RequiredTime } + * + */ + public Priority.RequiredTime createPriorityRequiredTime() { + return new Priority.RequiredTime(); + } + + /** + * Create an instance of {@link Priority.Relative } + * + */ + public Priority.Relative createPriorityRelative() { + return new Priority.Relative(); + } + + /** + * Create an instance of {@link PlaylistPrimaryEventProperties.Block } + * + */ + public PlaylistPrimaryEventProperties.Block createPlaylistPrimaryEventPropertiesBlock() { + return new PlaylistPrimaryEventProperties.Block(); + } + + /** + * Create an instance of {@link EffectProperties.Keyer } + * + */ + public EffectProperties.Keyer createEffectPropertiesKeyer() { + return new EffectProperties.Keyer(); + } + + /** + * Create an instance of {@link EffectProperties.AudioOver } + * + */ + public EffectProperties.AudioOver createEffectPropertiesAudioOver() { + return new EffectProperties.AudioOver(); + } + + /** + * Create an instance of {@link EffectProperties.Logo } + * + */ + public EffectProperties.Logo createEffectPropertiesLogo() { + return new EffectProperties.Logo(); + } + + /** + * Create an instance of {@link EffectProperties.AudioMode } + * + */ + public EffectProperties.AudioMode createEffectPropertiesAudioMode() { + return new EffectProperties.AudioMode(); + } + + /** + * Create an instance of {@link EffectProperties.Dve } + * + */ + public EffectProperties.Dve createEffectPropertiesDve() { + return new EffectProperties.Dve(); + } + + /** + * Create an instance of {@link EffectProperties.AudioClip } + * + */ + public EffectProperties.AudioClip createEffectPropertiesAudioClip() { + return new EffectProperties.AudioClip(); + } + + /** + * Create an instance of {@link EffectProperties.AudioShuffle.Fixed.Shuffle } + * + */ + public EffectProperties.AudioShuffle.Fixed.Shuffle createEffectPropertiesAudioShuffleFixedShuffle() { + return new EffectProperties.AudioShuffle.Fixed.Shuffle(); + } + + /** + * Create an instance of {@link MediaUsage.MediaInstancesUsage } + * + */ + public MediaUsage.MediaInstancesUsage createMediaUsageMediaInstancesUsage() { + return new MediaUsage.MediaInstancesUsage(); + } + + /** + * Create an instance of {@link MediaSet.AuxXML } + * + */ + public MediaSet.AuxXML createMediaSetAuxXML() { + return new MediaSet.AuxXML(); + } + + /** + * Create an instance of {@link MediaSegmentationProperites.Markup } + * + */ + public MediaSegmentationProperites.Markup createMediaSegmentationProperitesMarkup() { + return new MediaSegmentationProperites.Markup(); + } + + /** + * Create an instance of {@link pb.wsclient.MediaInstance.AuxXML } + * + */ + public pb.wsclient.MediaInstance.AuxXML createMediaInstanceAuxXML() { + return new pb.wsclient.MediaInstance.AuxXML(); + } + + /** + * Create an instance of {@link pb.wsclient.Media.AuxXML } + * + */ + public pb.wsclient.Media.AuxXML createMediaAuxXML() { + return new pb.wsclient.Media.AuxXML(); + } + + /** + * Create an instance of {@link KeepItemProperties.Expiry } + * + */ + public KeepItemProperties.Expiry createKeepItemPropertiesExpiry() { + return new KeepItemProperties.Expiry(); + } + + /** + * Create an instance of {@link KeepItemProperties.Media.MediaInstances.MediaInstance } + * + */ + public KeepItemProperties.Media.MediaInstances.MediaInstance createKeepItemPropertiesMediaMediaInstancesMediaInstance() { + return new KeepItemProperties.Media.MediaInstances.MediaInstance(); + } + + /** + * Create an instance of {@link JobProperties.Delete } + * + */ + public JobProperties.Delete createJobPropertiesDelete() { + return new JobProperties.Delete(); + } + + /** + * Create an instance of {@link HistoryProperties.Created } + * + */ + public HistoryProperties.Created createHistoryPropertiesCreated() { + return new HistoryProperties.Created(); + } + + /** + * Create an instance of {@link HistoryProperties.Modified } + * + */ + public HistoryProperties.Modified createHistoryPropertiesModified() { + return new HistoryProperties.Modified(); + } + + /** + * Create an instance of {@link Heartbeat.AuxXML } + * + */ + public Heartbeat.AuxXML createHeartbeatAuxXML() { + return new Heartbeat.AuxXML(); + } + + /** + * Create an instance of {@link FeaturesProperties.Feature.Properties.FieldList.Field } + * + */ + public FeaturesProperties.Feature.Properties.FieldList.Field createFeaturesPropertiesFeaturePropertiesFieldListField() { + return new FeaturesProperties.Feature.Properties.FieldList.Field(); + } + + /** + * Create an instance of {@link DolphinGraphicProperties.Param } + * + */ + public DolphinGraphicProperties.Param createDolphinGraphicPropertiesParam() { + return new DolphinGraphicProperties.Param(); + } + + /** + * Create an instance of {@link DeleteMedia.DeleteMediaInstances } + * + */ + public DeleteMedia.DeleteMediaInstances createDeleteMediaDeleteMediaInstances() { + return new DeleteMedia.DeleteMediaInstances(); + } + + /** + * Create an instance of {@link CgProperties.F } + * + */ + public CgProperties.F createCgPropertiesF() { + return new CgProperties.F(); + } + + /** + * Create an instance of {@link CgProperties.PassThrough } + * + */ + public CgProperties.PassThrough createCgPropertiesPassThrough() { + return new CgProperties.PassThrough(); + } + + /** + * Create an instance of {@link CgProperties.Transition } + * + */ + public CgProperties.Transition createCgPropertiesTransition() { + return new CgProperties.Transition(); + } + + /** + * Create an instance of {@link CgProperties.StopAnimation } + * + */ + public CgProperties.StopAnimation createCgPropertiesStopAnimation() { + return new CgProperties.StopAnimation(); + } + + /** + * Create an instance of {@link Audio.Groups.Group.Tags } + * + */ + public Audio.Groups.Group.Tags createAudioGroupsGroupTags() { + return new Audio.Groups.Group.Tags(); + } + + /** + * Create an instance of {@link Audio.Groups.Group.Tracks.Track } + * + */ + public Audio.Groups.Group.Tracks.Track createAudioGroupsGroupTracksTrack() { + return new Audio.Groups.Group.Tracks.Track(); + } + + /** + * Create an instance of {@link Audio.Tracks.Track.EncodingConfig } + * + */ + public Audio.Tracks.Track.EncodingConfig createAudioTracksTrackEncodingConfig() { + return new Audio.Tracks.Track.EncodingConfig(); + } + + /** + * Create an instance of {@link Audio.Tracks.Track.Tags } + * + */ + public Audio.Tracks.Track.Tags createAudioTracksTrackTags() { + return new Audio.Tracks.Track.Tags(); + } + + /** + * Create an instance of {@link AsRunEventTemplate.AsRun } + * + */ + public AsRunEventTemplate.AsRun createAsRunEventTemplateAsRun() { + return new AsRunEventTemplate.AsRun(); + } + + /** + * Create an instance of {@link AsRunData.Errors.Error } + * + */ + public AsRunData.Errors.Error createAsRunDataErrorsError() { + return new AsRunData.Errors.Error(); + } + + /** + * Create an instance of {@link AsRunJobProperties.Block } + * + */ + public AsRunJobProperties.Block createAsRunJobPropertiesBlock() { + return new AsRunJobProperties.Block(); + } + + /** + * Create an instance of {@link AsRunJob.AsRun } + * + */ + public AsRunJob.AsRun createAsRunJobAsRun() { + return new AsRunJob.AsRun(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "bAvailableMedia") + public JAXBElement createBAvailableMedia(Boolean value) { + return new JAXBElement(_BAvailableMedia_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "bUnavailableMedia") + public JAXBElement createBUnavailableMedia(Boolean value) { + return new JAXBElement(_BUnavailableMedia_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nHeartbeatId") + public JAXBElement createNHeartbeatId(Integer value) { + return new JAXBElement(_NHeartbeatId_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "strListName") + public JAXBElement createStrListName(String value) { + return new JAXBElement(_StrListName_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nEventCount") + public JAXBElement createNEventCount(Integer value) { + return new JAXBElement(_NEventCount_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nEventCountDeleted") + public JAXBElement createNEventCountDeleted(Integer value) { + return new JAXBElement(_NEventCountDeleted_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nEventCountNonQueried") + public JAXBElement createNEventCountNonQueried(Integer value) { + return new JAXBElement(_NEventCountNonQueried_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nEventCountNoAuxXml") + public JAXBElement createNEventCountNoAuxXml(Integer value) { + return new JAXBElement(_NEventCountNoAuxXml_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nEventPosition") + public JAXBElement createNEventPosition(Integer value) { + return new JAXBElement(_NEventPosition_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nEventKey") + public JAXBElement createNEventKey(Integer value) { + return new JAXBElement(_NEventKey_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nJobId") + public JAXBElement createNJobId(Integer value) { + return new JAXBElement(_NJobId_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nScheduledJobId") + public JAXBElement createNScheduledJobId(Integer value) { + return new JAXBElement(_NScheduledJobId_QNAME, Integer.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "bMoreEventsAvailable") + public JAXBElement createBMoreEventsAvailable(Boolean value) { + return new JAXBElement(_BMoreEventsAvailable_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EventId }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "eventId") + public JAXBElement createEventId(EventId value) { + return new JAXBElement(_EventId_QNAME, EventId.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EventId }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "nextEventId") + public JAXBElement createNextEventId(EventId value) { + return new JAXBElement(_NextEventId_QNAME, EventId.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "bIncludeChildEvents") + public JAXBElement createBIncludeChildEvents(Boolean value) { + return new JAXBElement(_BIncludeChildEvents_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "bIncludeUnhostedComponents") + public JAXBElement createBIncludeUnhostedComponents(Boolean value) { + return new JAXBElement(_BIncludeUnhostedComponents_QNAME, Boolean.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "eventUpdateType") + public JAXBElement createEventUpdateType(String value) { + return new JAXBElement(_EventUpdateType_QNAME, String.class, null, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://www.pebble.tv/MarinaAPI", name = "bIncludeEmptyAuxXmlEvents") + public JAXBElement createBIncludeEmptyAuxXmlEvents(Boolean value) { + return new JAXBElement(_BIncludeEmptyAuxXmlEvents_QNAME, Boolean.class, null, value); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ObjectType.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ObjectType.java new file mode 100644 index 00000000..7a168c0d --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ObjectType.java @@ -0,0 +1,120 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for objectType. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="objectType">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Media"/>
+ *     <enumeration value="MediaInstance"/>
+ *     <enumeration value="MediaSet"/>
+ *     <enumeration value="ListEvent"/>
+ *     <enumeration value="TxSegment"/>
+ *     <enumeration value="WorkflowTask"/>
+ *     <enumeration value="Category"/>
+ *     <enumeration value="Classification"/>
+ *     <enumeration value="ActiveObject"/>
+ *     <enumeration value="User"/>
+ *     <enumeration value="UserGroup"/>
+ *     <enumeration value="System"/>
+ *     <enumeration value="Class"/>
+ *     <enumeration value="Field"/>
+ *     <enumeration value="Host"/>
+ *     <enumeration value="Node"/>
+ *     <enumeration value="Layout"/>
+ *     <enumeration value="MediaStream"/>
+ *     <enumeration value="MediaMarkupItem"/>
+ *     <enumeration value="UsageTypeAuListXref"/>
+ *     <enumeration value="Directory"/>
+ *     <enumeration value="Tag"/>
+ *     <enumeration value="Markup"/>
+ *     <enumeration value="MarkupItem"/>
+ *     <enumeration value="AutomationJob"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "objectType") +@XmlEnum +public enum ObjectType { + + @XmlEnumValue("Media") + MEDIA("Media"), + @XmlEnumValue("MediaInstance") + MEDIA_INSTANCE("MediaInstance"), + @XmlEnumValue("MediaSet") + MEDIA_SET("MediaSet"), + @XmlEnumValue("ListEvent") + LIST_EVENT("ListEvent"), + @XmlEnumValue("TxSegment") + TX_SEGMENT("TxSegment"), + @XmlEnumValue("WorkflowTask") + WORKFLOW_TASK("WorkflowTask"), + @XmlEnumValue("Category") + CATEGORY("Category"), + @XmlEnumValue("Classification") + CLASSIFICATION("Classification"), + @XmlEnumValue("ActiveObject") + ACTIVE_OBJECT("ActiveObject"), + @XmlEnumValue("User") + USER("User"), + @XmlEnumValue("UserGroup") + USER_GROUP("UserGroup"), + @XmlEnumValue("System") + SYSTEM("System"), + @XmlEnumValue("Class") + CLASS("Class"), + @XmlEnumValue("Field") + FIELD("Field"), + @XmlEnumValue("Host") + HOST("Host"), + @XmlEnumValue("Node") + NODE("Node"), + @XmlEnumValue("Layout") + LAYOUT("Layout"), + @XmlEnumValue("MediaStream") + MEDIA_STREAM("MediaStream"), + @XmlEnumValue("MediaMarkupItem") + MEDIA_MARKUP_ITEM("MediaMarkupItem"), + @XmlEnumValue("UsageTypeAuListXref") + USAGE_TYPE_AU_LIST_XREF("UsageTypeAuListXref"), + @XmlEnumValue("Directory") + DIRECTORY("Directory"), + @XmlEnumValue("Tag") + TAG("Tag"), + @XmlEnumValue("Markup") + MARKUP("Markup"), + @XmlEnumValue("MarkupItem") + MARKUP_ITEM("MarkupItem"), + @XmlEnumValue("AutomationJob") + AUTOMATION_JOB("AutomationJob"); + private final String value; + + ObjectType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ObjectType fromValue(String v) { + for (ObjectType c: ObjectType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PBClientTest.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PBClientTest.java new file mode 100644 index 00000000..ca10a8f7 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PBClientTest.java @@ -0,0 +1,73 @@ +package pb.wsclient; + +import java.net.URL; +import java.util.List; +import javax.xml.ws.BindingProvider; + + +public class PBClientTest { + + + //KONSTRUKTOR + public PBClientTest() { + try { + + URL wsdlURL = PBClientTest.class.getClassLoader().getResource("MarinaAPI.wsdl"); + + PBSMarinaAPIService api = new PBSMarinaAPIService(wsdlURL); + PBSMarinaAPI port = api.getPBSMarinaAPISOAPPort(); + + BindingProvider bp = (BindingProvider)port; + bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, "http://10.170.100.5:18083"); + + //Optional credentials + bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, "pbs"); + bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, "pbs"); + + + DateTimecodeRangeContainer rangec = new DateTimecodeRangeContainer(); + DateTimecodeRange range = new DateTimecodeRange(); + range.setStart("2019-03-26T10:00:00:00"); //now + range.setEnd("2019-03-29T10:00:00:00"); //now + x hours + rangec.setDateTimecodeRange(range); + + + + MediaUsageListContainer mulc = port.getMediaUsageByUTRange(rangec,false,true); + MediaUsageList mul = mulc.getMediaUsageList(); + + List mediaList = mul.getMediaUsage(); + java.lang.System.out.println("response ok: " + mediaList.size()); + for(MediaUsage mu : mediaList) { + + if(MediaType.VIDEO.equals(mu.getMediaType())) { + java.lang.System.out.println(mu.getMediaName() + " ***********************"); + MediaUsage.MediaInstancesUsage muUsage = mu.getMediaInstancesUsage(); + List muUsageList = muUsage.getMediaInstanceUsage(); + for(MediaInstanceUsage usage : muUsageList) { + java.lang.System.out.println(" LastUsageTime(): " + usage.getLastUsageTime() + ", EarliestUsageTime(): " + usage.getEarliestUsageTime()); + } + }else { + java.lang.System.out.println("Skip media type: " + mu.getMediaType() + " for: " + mu.getMediaName()); + } + + //MediaType muType = mu.getMediaType(); + } + + + //\\10.170.100.10\media + + }catch(Exception exc) { + exc.printStackTrace(); + } + } + + + + + public static void main(String[] args) { + new PBClientTest(); + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PBSMarinaAPI.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PBSMarinaAPI.java new file mode 100644 index 00000000..d3d2249a --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PBSMarinaAPI.java @@ -0,0 +1,332 @@ +package pb.wsclient; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; + +/** + * This class was generated by Apache CXF 3.2.7 + * 2019-03-22T10:49:54.043+01:00 + * Generated source version: 3.2.7 + * + */ +@WebService(targetNamespace = "http://www.pebble.tv/MarinaAPI", name = "PBSMarinaAPI") +@XmlSeeAlso({ObjectFactory.class}) +@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) +public interface PBSMarinaAPI { + + /** + * The heartbeat ID is client generated and is echoed back to the caller by the PBS API. + */ + @WebMethod(action = "/heartbeat") + public void heartbeat( + @WebParam(partName = "Id", mode = WebParam.Mode.INOUT, name = "nHeartbeatId", targetNamespace = "http://www.pebble.tv/MarinaAPI") + javax.xml.ws.Holder id + ); + + /** + * Returns playout usage of the specified media. + * The media key must be specified and optionally media instance keys (media sets). + * If no instances are specified the usage of all instances of that media are returned. + */ + @WebMethod(action = "/getMediaUsage") + @WebResult(name = "mediaUsageContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "mediaUsage") + public MediaUsageContainer getMediaUsage( + @WebParam(partName = "mediaKey", name = "mediaUsageMediaKeyContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + MediaUsageMediaKeyContainer mediaKey + ); + + @WebMethod(action = "/getListEventCount") + @WebResult(name = "nEventCount", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "eventCount") + public int getListEventCount( + @WebParam(partName = "listName", name = "strListName", targetNamespace = "http://www.pebble.tv/MarinaAPI") + java.lang.String listName + ); + + /** + * Returns the job with the queried job id and type. + */ + @WebMethod(action = "/getJob") + @WebResult(name = "jobContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "job") + public JobContainer getJob( + @WebParam(partName = "job", name = "getJobRequestContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + GetJobRequestContainer job + ); + + /** + * Delete a job using the id returned by 'insertUpdateJob'. + */ + @WebMethod(action = "/deleteJob") + public void deleteJob( + @WebParam(partName = "jobId", name = "nJobId", targetNamespace = "http://www.pebble.tv/MarinaAPI") + int jobId + ); + + /** + * Return the updated jobs database auxillary XML. At the moment this is just used for + * returning reconcile keys for a given list of deleted event UIDs. Events with no aux + * xml stored for them can be returned by setting the include empty aux xml events flag + * and will be returned in an event id list. + */ + @WebMethod(action = "/getListEventChangesAuxXML") + @WebResult(name = "getListEventChangesAuxXMLOutput", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "getListEventChangesAuxXMLOutput") + public GetListEventChangesAuxXMLOutput getListEventChangesAuxXML( + @WebParam(partName = "includeEmptyAuxXmlEvents", name = "bIncludeEmptyAuxXmlEvents", targetNamespace = "http://www.pebble.tv/MarinaAPI") + boolean includeEmptyAuxXmlEvents, + @WebParam(partName = "eventIdList", name = "eventIdListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + EventIdListContainer eventIdList, + @WebParam(partName = "listName", name = "strListName", targetNamespace = "http://www.pebble.tv/MarinaAPI") + java.lang.String listName + ); + + /** + * Returns metadata for the specified media/media instances. See definition of pbs:media. + * The media key must be specified and optionally media instance keys (mediaSets). + * If no media instances are requested, metadata for all instances are returned. + */ + @WebMethod(action = "/getMediaMetadata") + @WebResult(name = "mediaMetadataContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "metadata") + public MediaMetadataContainer getMediaMetadata( + @WebParam(partName = "mediaKey", name = "mediaKeyContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + MediaKeyContainer mediaKey + ); + + /** + * Returns a list of components that meet the filter requirements. + */ + @WebMethod(action = "/getComponentList") + @WebResult(name = "componentListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "componentList") + public ComponentListContainer getComponentList( + @WebParam(partName = "componentTag", name = "componentTagContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + ComponentTagContainer componentTag + ); + + /** + * Returns a medialist of rows returned by the specified custom view + */ + @WebMethod(action = "/getCustomView") + @WebResult(name = "getCustomViewResponseContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "mediaList") + public GetCustomViewResponseContainer getCustomView( + @WebParam(partName = "marinaCustomAPI", name = "getCustomViewRequestContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + GetCustomViewRequestContainer marinaCustomAPI + ); + + /** + * Returns a list of all the scheduled jobs and their current state relating to the media. + */ + @WebMethod(action = "/getScheduledJobsForMedia") + @WebResult(name = "scheduledJobListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "scheduledJobListContainer") + public ScheduledJobListContainer getScheduledJobsForMedia( + @WebParam(partName = "media", name = "getScheduledJobsForMediaRequestContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + GetScheduledJobsForMediaRequestContainer media + ); + + @WebMethod(action = "/getConfiguration") + @WebResult(name = "configContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "config") + public ConfigContainer getConfiguration( + @WebParam(partName = "Config", name = "configRequestListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + ConfigRequestListContainer config + ); + + /** + * Returns a list of events specified in 'eventIdList'. + * Deleted/missing events are returned in the 'deletedEvents' eventIdList. + * If more events are queried than the maximum configured amount then non-queried + * events are returned in the 'nonQueriedEvents' eventIdList getNonContiguousListEvents + * can then be called again passing in the list. When this list is empty all events were + * queried. + */ + @WebMethod(action = "/getNonContiguousListEvents") + @WebResult(name = "getNonContiguousListEventsOutput", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "getNonContiguousListEventsOutput") + public GetNonContiguousListEventsOutput getNonContiguousListEvents( + @WebParam(partName = "eventIdList", name = "eventIdListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + EventIdListContainer eventIdList, + @WebParam(partName = "listName", name = "strListName", targetNamespace = "http://www.pebble.tv/MarinaAPI") + java.lang.String listName, + @WebParam(partName = "includeChildEvents", name = "bIncludeChildEvents", targetNamespace = "http://www.pebble.tv/MarinaAPI") + boolean includeChildEvents + ); + + /** + * Returns the 'playlistPrimaryEvent' event with an event id of 'eventKey' including the + * next 'nEventCount' events in an 'eventList'. + */ + @WebMethod(action = "/getContiguousListEvents") + @WebResult(name = "getContiguousListEventsOutput", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "getContiguousListEventsOutput") + public GetContiguousListEventsOutput getContiguousListEvents( + @WebParam(partName = "eventCount", name = "nEventCount", targetNamespace = "http://www.pebble.tv/MarinaAPI") + int eventCount, + @WebParam(partName = "eventKey", name = "eventId", targetNamespace = "http://www.pebble.tv/MarinaAPI") + EventId eventKey, + @WebParam(partName = "listName", name = "strListName", targetNamespace = "http://www.pebble.tv/MarinaAPI") + java.lang.String listName, + @WebParam(partName = "includeChildEvents", name = "bIncludeChildEvents", targetNamespace = "http://www.pebble.tv/MarinaAPI") + boolean includeChildEvents + ); + + /** + * Returns the job id of the created/updated scheduled job on success. + * Note: You must send the job uid on an update. + * + */ + @WebMethod(action = "/insertUpdateScheduledJob") + @WebResult(name = "nScheduledJobId", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "jobId") + public int insertUpdateScheduledJob( + @WebParam(partName = "job", name = "scheduledJobContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + ScheduledJobContainer job + ); + + @WebMethod(action = "/setConfiguration") + public void setConfiguration( + @WebParam(partName = "setConfig", name = "configContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + ConfigContainer setConfig + ); + + /** + * Returns a list of event ids for all events that have changed in the specified list + * between the specified dates/times filtered by an event type. + * Note: It is possible this method will return more events than is supported by + * getNonContiguousListEvents. + */ + @WebMethod(action = "/getListEventChanges") + @WebResult(name = "getListEventChangesOutput", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "getListEventChangesOutput") + public GetListEventChangesOutput getListEventChanges( + @WebParam(partName = "eventTypeFilter", name = "eventUpdateType", targetNamespace = "http://www.pebble.tv/MarinaAPI") + java.lang.String eventTypeFilter, + @WebParam(partName = "range", name = "dateTimecodeRangeContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + DateTimecodeRangeContainer range, + @WebParam(partName = "listName", name = "strListName", targetNamespace = "http://www.pebble.tv/MarinaAPI") + java.lang.String listName + ); + + /** + * Returns a list of all the automation jobs and their current state relating to the media. + */ + @WebMethod(action = "/getJobsForMedia") + @WebResult(name = "jobListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "jobListContainer") + public JobListContainer getJobsForMedia( + @WebParam(partName = "media", name = "getJobsForMediaRequestContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + GetJobsForMediaRequestContainer media + ); + + /** + * Inserts or updates media and/or media instance metadata in the marina database. + */ + @WebMethod(action = "/insertUpdateMediaMetadata") + public void insertUpdateMediaMetadata( + @WebParam(partName = "metadata", name = "mediaMetadataContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + MediaMetadataContainer metadata + ); + + /** + * Returns the job id of the created/updated job on success. + * Note: You must send the job uid on an update. + */ + @WebMethod(action = "/insertUpdateJob") + @WebResult(name = "nJobId", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "jobId") + public int insertUpdateJob( + @WebParam(partName = "job", name = "jobContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + JobContainer job + ); + + /** + * Returns the playout usage for all media within a specified timecode range. + */ + @WebMethod(action = "/getMediaUsageByUTRange") + @WebResult(name = "mediaUsageListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "mediaUsageList") + public MediaUsageListContainer getMediaUsageByUTRange( + @WebParam(partName = "range", name = "dateTimecodeRangeContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + DateTimecodeRangeContainer range, + @WebParam(partName = "availableMedia", name = "bAvailableMedia", targetNamespace = "http://www.pebble.tv/MarinaAPI") + boolean availableMedia, + @WebParam(partName = "unavailableMedia", name = "bUnavailableMedia", targetNamespace = "http://www.pebble.tv/MarinaAPI") + boolean unavailableMedia + ); + + /** + * Returns a job list of all jobs whose state has changed between the dates/times. + */ + @WebMethod(action = "/getJobStateChanges") + @WebResult(name = "jobListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "jobList") + public JobListContainer getJobStateChanges( + @WebParam(partName = "range", name = "jobStateDateTimecodeRangeContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + JobStateDateTimecodeRangeContainer range + ); + + /** + * Returns the 'event' event with the queried event id and list. + */ + @WebMethod(action = "/getListEvent") + @WebResult(name = "eventContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "queriedPlaylistPrimaryEvent") + public EventContainer getListEvent( + @WebParam(partName = "eventKey", name = "eventId", targetNamespace = "http://www.pebble.tv/MarinaAPI") + EventId eventKey, + @WebParam(partName = "listName", name = "strListName", targetNamespace = "http://www.pebble.tv/MarinaAPI") + java.lang.String listName, + @WebParam(partName = "includeChildEvents", name = "bIncludeChildEvents", targetNamespace = "http://www.pebble.tv/MarinaAPI") + boolean includeChildEvents + ); + + @WebMethod(action = "/getMediaMetadataChanged") + @WebResult(name = "mediaListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "metadata") + public MediaListContainer getMediaMetadataChanged( + @WebParam(partName = "range", name = "lastModifiedDateTimeRangeContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + LastModifiedDateTimeRangeContainer range + ); + + /** + * Returns a job list of all scheduled jobs whose state has changed between the dates/times. + */ + @WebMethod(action = "/getScheduledJobStateChanges") + @WebResult(name = "scheduledJobListContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "jobList") + public ScheduledJobListContainer getScheduledJobStateChanges( + @WebParam(partName = "range", name = "scheduledJobStateDateTimecodeRangeContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + ScheduledJobStateDateTimecodeRangeContainer range + ); + + /** + * Delete a media instance (or multiple media instances). + * The media key must be specified and optionally media instance keys (media sets). + * If no instances are specified, all instances of that media will be deleted from all the media sets. + */ + @WebMethod(action = "/deleteMediaInstance") + @WebResult(name = "deleteMediaInstanceContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "deleteMediaInstanceContainer") + public DeleteMediaInstanceContainer deleteMediaInstance( + @WebParam(partName = "mediaKey", name = "deleteMediaInstanceKeyContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + DeleteMediaInstanceKeyContainer mediaKey + ); + + /** + * Delete a job using the id returned by 'insertUpdateJob'. + */ + @WebMethod(action = "/deleteScheduledJob") + public void deleteScheduledJob( + @WebParam(partName = "jobId", name = "nScheduledJobId", targetNamespace = "http://www.pebble.tv/MarinaAPI") + int jobId + ); + + /** + * Returns the scheduled job with the queried job id and type. + */ + @WebMethod(action = "/getScheduledJob") + @WebResult(name = "scheduledJobContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "job") + public ScheduledJobContainer getScheduledJob( + @WebParam(partName = "job", name = "getScheduledJobRequestContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + GetScheduledJobRequestContainer job + ); + + /** + * Returns metadata for the specified media instance. See definition of pbs:mediaInstance. + * The media key must be specified and optionally media instance keys (mediaSets). + * If no media instances are requested, metadata for all instances are returned. + */ + @WebMethod(action = "/getMediaInstanceMetadata") + @WebResult(name = "mediaMetadataContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI", partName = "metadata") + public MediaMetadataContainer getMediaInstanceMetadata( + @WebParam(partName = "mediaKey", name = "mediaInstanceKeyContainer", targetNamespace = "http://www.pebble.tv/MarinaAPI") + MediaInstanceKeyContainer mediaKey + ); +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PBSMarinaAPIService.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PBSMarinaAPIService.java new file mode 100644 index 00000000..36615e67 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PBSMarinaAPIService.java @@ -0,0 +1,87 @@ +package pb.wsclient; + +import java.net.MalformedURLException; +import java.net.URL; +import javax.xml.namespace.QName; +import javax.xml.ws.WebEndpoint; +import javax.xml.ws.WebServiceClient; +import javax.xml.ws.WebServiceFeature; +import javax.xml.ws.Service; + +/** + * This class was generated by Apache CXF 3.2.7 + * 2019-03-22T10:49:54.094+01:00 + * Generated source version: 3.2.7 + * + */ +@WebServiceClient(name = "PBSMarinaAPIService", + wsdlLocation = "file:MarinaAPI.wsdl", + targetNamespace = "http://www.pebble.tv/MarinaAPI") +public class PBSMarinaAPIService extends Service { + + public final static URL WSDL_LOCATION; + + public final static QName SERVICE = new QName("http://www.pebble.tv/MarinaAPI", "PBSMarinaAPIService"); + public final static QName PBSMarinaAPISOAPPort = new QName("http://www.pebble.tv/MarinaAPI", "PBSMarinaAPISOAPPort"); + static { + URL url = null; + try { + url = new URL("file:MarinaAPI.wsdl"); + } catch (MalformedURLException e) { + java.util.logging.Logger.getLogger(PBSMarinaAPIService.class.getName()) + .log(java.util.logging.Level.INFO, + "Can not initialize the default wsdl from {0}", "file:MarinaAPI.wsdl"); + } + WSDL_LOCATION = url; + } + + public PBSMarinaAPIService(URL wsdlLocation) { + super(wsdlLocation, SERVICE); + } + + public PBSMarinaAPIService(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public PBSMarinaAPIService() { + super(WSDL_LOCATION, SERVICE); + } + + public PBSMarinaAPIService(WebServiceFeature ... features) { + super(WSDL_LOCATION, SERVICE, features); + } + + public PBSMarinaAPIService(URL wsdlLocation, WebServiceFeature ... features) { + super(wsdlLocation, SERVICE, features); + } + + public PBSMarinaAPIService(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) { + super(wsdlLocation, serviceName, features); + } + + + + + /** + * + * @return + * returns PBSMarinaAPI + */ + @WebEndpoint(name = "PBSMarinaAPISOAPPort") + public PBSMarinaAPI getPBSMarinaAPISOAPPort() { + return super.getPort(PBSMarinaAPISOAPPort, PBSMarinaAPI.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the features parameter will have their default values. + * @return + * returns PBSMarinaAPI + */ + @WebEndpoint(name = "PBSMarinaAPISOAPPort") + public PBSMarinaAPI getPBSMarinaAPISOAPPort(WebServiceFeature... features) { + return super.getPort(PBSMarinaAPISOAPPort, PBSMarinaAPI.class, features); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEvent.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEvent.java new file mode 100644 index 00000000..25912588 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEvent.java @@ -0,0 +1,251 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * An action is a single shot event that performs one task only. It has no duration and no monitoring. + * + *

Java class for playlistActionEvent complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistActionEvent">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="properties" type="{}playlistActionEventProperties"/>
+ *         <element name="childEvents" type="{}playlistSecondaryEventList" minOccurs="0"/>
+ *         <element name="state" type="{}state" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}playlistEventAttributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistActionEvent", propOrder = { + "properties", + "childEvents", + "state" +}) +public class PlaylistActionEvent { + + @XmlElement(required = true) + protected PlaylistActionEventProperties properties; + protected PlaylistSecondaryEventList childEvents; + protected State state; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "enabled") + protected Boolean enabled; + @XmlAttribute(name = "timerMarker") + protected Boolean timerMarker; + @XmlAttribute(name = "uid") + protected BigInteger uid; + @XmlAttribute(name = "manualSecondary") + protected Boolean manualSecondary; + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link PlaylistActionEventProperties } + * + */ + public PlaylistActionEventProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link PlaylistActionEventProperties } + * + */ + public void setProperties(PlaylistActionEventProperties value) { + this.properties = value; + } + + /** + * Gets the value of the childEvents property. + * + * @return + * possible object is + * {@link PlaylistSecondaryEventList } + * + */ + public PlaylistSecondaryEventList getChildEvents() { + return childEvents; + } + + /** + * Sets the value of the childEvents property. + * + * @param value + * allowed object is + * {@link PlaylistSecondaryEventList } + * + */ + public void setChildEvents(PlaylistSecondaryEventList value) { + this.childEvents = value; + } + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link State } + * + */ + public State getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link State } + * + */ + public void setState(State value) { + this.state = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the enabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isEnabled() { + return enabled; + } + + /** + * Sets the value of the enabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnabled(Boolean value) { + this.enabled = value; + } + + /** + * Gets the value of the timerMarker property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isTimerMarker() { + return timerMarker; + } + + /** + * Sets the value of the timerMarker property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTimerMarker(Boolean value) { + this.timerMarker = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setUid(BigInteger value) { + this.uid = value; + } + + /** + * Gets the value of the manualSecondary property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isManualSecondary() { + return manualSecondary; + } + + /** + * Sets the value of the manualSecondary property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setManualSecondary(Boolean value) { + this.manualSecondary = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEventEffectProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEventEffectProperties.java new file mode 100644 index 00000000..22f66416 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEventEffectProperties.java @@ -0,0 +1,62 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for effects in the context of a playlistActionEvent + * + *

Java class for playlistActionEventEffectProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistActionEventEffectProperties">
+ *   <complexContent>
+ *     <extension base="{}effectProperties">
+ *       <attribute name="status" use="required" type="{}statusEnum" />
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistActionEventEffectProperties") +public class PlaylistActionEventEffectProperties + extends EffectProperties +{ + + @XmlAttribute(name = "status", required = true) + protected StatusEnum status; + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link StatusEnum } + * + */ + public StatusEnum getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link StatusEnum } + * + */ + public void setStatus(StatusEnum value) { + this.status = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEventProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEventProperties.java new file mode 100644 index 00000000..dd5da5fa --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistActionEventProperties.java @@ -0,0 +1,246 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties allowed for an action event. + * + *

Java class for playlistActionEventProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistActionEventProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="schedule" type="{}actionScheduleProperties" minOccurs="0"/>
+ *         <element name="event" type="{}eventProperties" minOccurs="0"/>
+ *         <element name="switch" type="{}switchProperties" minOccurs="0"/>
+ *         <element name="trigger" type="{}triggerProperties" minOccurs="0"/>
+ *         <element name="effect" type="{}playlistActionEventEffectProperties" minOccurs="0"/>
+ *         <element name="macro" type="{}macroProperties" minOccurs="0"/>
+ *         <element name="dolphinGraphic" type="{}dolphinGraphicProperties" minOccurs="0"/>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistActionEventProperties", propOrder = { + +}) +public class PlaylistActionEventProperties { + + protected ActionScheduleProperties schedule; + protected EventProperties event; + @XmlElement(name = "switch") + protected SwitchProperties _switch; + protected TriggerProperties trigger; + protected PlaylistActionEventEffectProperties effect; + protected MacroProperties macro; + protected DolphinGraphicProperties dolphinGraphic; + protected Object auxData; + + /** + * Gets the value of the schedule property. + * + * @return + * possible object is + * {@link ActionScheduleProperties } + * + */ + public ActionScheduleProperties getSchedule() { + return schedule; + } + + /** + * Sets the value of the schedule property. + * + * @param value + * allowed object is + * {@link ActionScheduleProperties } + * + */ + public void setSchedule(ActionScheduleProperties value) { + this.schedule = value; + } + + /** + * Gets the value of the event property. + * + * @return + * possible object is + * {@link EventProperties } + * + */ + public EventProperties getEvent() { + return event; + } + + /** + * Sets the value of the event property. + * + * @param value + * allowed object is + * {@link EventProperties } + * + */ + public void setEvent(EventProperties value) { + this.event = value; + } + + /** + * Gets the value of the switch property. + * + * @return + * possible object is + * {@link SwitchProperties } + * + */ + public SwitchProperties getSwitch() { + return _switch; + } + + /** + * Sets the value of the switch property. + * + * @param value + * allowed object is + * {@link SwitchProperties } + * + */ + public void setSwitch(SwitchProperties value) { + this._switch = value; + } + + /** + * Gets the value of the trigger property. + * + * @return + * possible object is + * {@link TriggerProperties } + * + */ + public TriggerProperties getTrigger() { + return trigger; + } + + /** + * Sets the value of the trigger property. + * + * @param value + * allowed object is + * {@link TriggerProperties } + * + */ + public void setTrigger(TriggerProperties value) { + this.trigger = value; + } + + /** + * Gets the value of the effect property. + * + * @return + * possible object is + * {@link PlaylistActionEventEffectProperties } + * + */ + public PlaylistActionEventEffectProperties getEffect() { + return effect; + } + + /** + * Sets the value of the effect property. + * + * @param value + * allowed object is + * {@link PlaylistActionEventEffectProperties } + * + */ + public void setEffect(PlaylistActionEventEffectProperties value) { + this.effect = value; + } + + /** + * Gets the value of the macro property. + * + * @return + * possible object is + * {@link MacroProperties } + * + */ + public MacroProperties getMacro() { + return macro; + } + + /** + * Sets the value of the macro property. + * + * @param value + * allowed object is + * {@link MacroProperties } + * + */ + public void setMacro(MacroProperties value) { + this.macro = value; + } + + /** + * Gets the value of the dolphinGraphic property. + * + * @return + * possible object is + * {@link DolphinGraphicProperties } + * + */ + public DolphinGraphicProperties getDolphinGraphic() { + return dolphinGraphic; + } + + /** + * Sets the value of the dolphinGraphic property. + * + * @param value + * allowed object is + * {@link DolphinGraphicProperties } + * + */ + public void setDolphinGraphic(DolphinGraphicProperties value) { + this.dolphinGraphic = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistEventXMLConfigurableFields.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistEventXMLConfigurableFields.java new file mode 100644 index 00000000..2669b547 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistEventXMLConfigurableFields.java @@ -0,0 +1,40 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for PlaylistEventXMLConfigurableFields. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="PlaylistEventXMLConfigurableFields">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ESTIMATED_START_TIME"/>
+ *     <enumeration value="SCHEDULED_START_TIME"/>
+ *     <enumeration value="START_TIME_STATE"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "PlaylistEventXMLConfigurableFields", namespace = "http://www.pebble.tv/MarinaAPI") +@XmlEnum +public enum PlaylistEventXMLConfigurableFields { + + ESTIMATED_START_TIME, + SCHEDULED_START_TIME, + START_TIME_STATE; + + public String value() { + return name(); + } + + public static PlaylistEventXMLConfigurableFields fromValue(String v) { + return valueOf(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEvent.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEvent.java new file mode 100644 index 00000000..3cdf3896 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEvent.java @@ -0,0 +1,251 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * A single playlist event. + * + *

Java class for playlistPrimaryEvent complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistPrimaryEvent">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="state" type="{}state" minOccurs="0"/>
+ *         <element name="properties" type="{}playlistPrimaryEventProperties"/>
+ *         <element name="childEvents" type="{}playlistSecondaryEventList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}playlistEventAttributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistPrimaryEvent", propOrder = { + "state", + "properties", + "childEvents" +}) +public class PlaylistPrimaryEvent { + + protected State state; + @XmlElement(required = true) + protected PlaylistPrimaryEventProperties properties; + protected PlaylistSecondaryEventList childEvents; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "enabled") + protected Boolean enabled; + @XmlAttribute(name = "timerMarker") + protected Boolean timerMarker; + @XmlAttribute(name = "uid") + protected BigInteger uid; + @XmlAttribute(name = "manualSecondary") + protected Boolean manualSecondary; + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link State } + * + */ + public State getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link State } + * + */ + public void setState(State value) { + this.state = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link PlaylistPrimaryEventProperties } + * + */ + public PlaylistPrimaryEventProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link PlaylistPrimaryEventProperties } + * + */ + public void setProperties(PlaylistPrimaryEventProperties value) { + this.properties = value; + } + + /** + * Gets the value of the childEvents property. + * + * @return + * possible object is + * {@link PlaylistSecondaryEventList } + * + */ + public PlaylistSecondaryEventList getChildEvents() { + return childEvents; + } + + /** + * Sets the value of the childEvents property. + * + * @param value + * allowed object is + * {@link PlaylistSecondaryEventList } + * + */ + public void setChildEvents(PlaylistSecondaryEventList value) { + this.childEvents = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the enabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isEnabled() { + return enabled; + } + + /** + * Sets the value of the enabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnabled(Boolean value) { + this.enabled = value; + } + + /** + * Gets the value of the timerMarker property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isTimerMarker() { + return timerMarker; + } + + /** + * Sets the value of the timerMarker property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTimerMarker(Boolean value) { + this.timerMarker = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setUid(BigInteger value) { + this.uid = value; + } + + /** + * Gets the value of the manualSecondary property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isManualSecondary() { + return manualSecondary; + } + + /** + * Sets the value of the manualSecondary property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setManualSecondary(Boolean value) { + this.manualSecondary = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEventList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEventList.java new file mode 100644 index 00000000..f791bc4e --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEventList.java @@ -0,0 +1,71 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * A List of primary events. + * + *

Java class for playlistPrimaryEventList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistPrimaryEventList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="event" type="{}playlistPrimaryEvent" maxOccurs="unbounded"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistPrimaryEventList", propOrder = { + "event" +}) +public class PlaylistPrimaryEventList { + + @XmlElement(required = true) + protected List event; + + /** + * Gets the value of the event property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the event property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEvent().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PlaylistPrimaryEvent } + * + * + */ + public List getEvent() { + if (event == null) { + event = new ArrayList(); + } + return this.event; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEventProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEventProperties.java new file mode 100644 index 00000000..4032be3c --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistPrimaryEventProperties.java @@ -0,0 +1,360 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a playlist event + * + *

Java class for playlistPrimaryEventProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistPrimaryEventProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="schedule" type="{}primaryScheduleProperties" minOccurs="0"/>
+ *         <element name="mediaStream" type="{}mediaStreamProperties" minOccurs="0"/>
+ *         <element name="event" type="{}eventProperties" minOccurs="0"/>
+ *         <element name="switch" type="{}switchProperties" minOccurs="0"/>
+ *         <element name="trigger" type="{}triggerProperties" minOccurs="0"/>
+ *         <element name="effect" type="{}effectProperties" minOccurs="0"/>
+ *         <element name="media" type="{}mediaSimple" minOccurs="0"/>
+ *         <element name="features" type="{}featuresProperties" minOccurs="0"/>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *         <element name="block" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistPrimaryEventProperties", propOrder = { + +}) +public class PlaylistPrimaryEventProperties { + + protected PrimaryScheduleProperties schedule; + protected MediaStreamProperties mediaStream; + protected EventProperties event; + @XmlElement(name = "switch") + protected SwitchProperties _switch; + protected TriggerProperties trigger; + protected EffectProperties effect; + protected MediaSimple media; + protected FeaturesProperties features; + protected Object auxData; + protected PlaylistPrimaryEventProperties.Block block; + + /** + * Gets the value of the schedule property. + * + * @return + * possible object is + * {@link PrimaryScheduleProperties } + * + */ + public PrimaryScheduleProperties getSchedule() { + return schedule; + } + + /** + * Sets the value of the schedule property. + * + * @param value + * allowed object is + * {@link PrimaryScheduleProperties } + * + */ + public void setSchedule(PrimaryScheduleProperties value) { + this.schedule = value; + } + + /** + * Gets the value of the mediaStream property. + * + * @return + * possible object is + * {@link MediaStreamProperties } + * + */ + public MediaStreamProperties getMediaStream() { + return mediaStream; + } + + /** + * Sets the value of the mediaStream property. + * + * @param value + * allowed object is + * {@link MediaStreamProperties } + * + */ + public void setMediaStream(MediaStreamProperties value) { + this.mediaStream = value; + } + + /** + * Gets the value of the event property. + * + * @return + * possible object is + * {@link EventProperties } + * + */ + public EventProperties getEvent() { + return event; + } + + /** + * Sets the value of the event property. + * + * @param value + * allowed object is + * {@link EventProperties } + * + */ + public void setEvent(EventProperties value) { + this.event = value; + } + + /** + * Gets the value of the switch property. + * + * @return + * possible object is + * {@link SwitchProperties } + * + */ + public SwitchProperties getSwitch() { + return _switch; + } + + /** + * Sets the value of the switch property. + * + * @param value + * allowed object is + * {@link SwitchProperties } + * + */ + public void setSwitch(SwitchProperties value) { + this._switch = value; + } + + /** + * Gets the value of the trigger property. + * + * @return + * possible object is + * {@link TriggerProperties } + * + */ + public TriggerProperties getTrigger() { + return trigger; + } + + /** + * Sets the value of the trigger property. + * + * @param value + * allowed object is + * {@link TriggerProperties } + * + */ + public void setTrigger(TriggerProperties value) { + this.trigger = value; + } + + /** + * Gets the value of the effect property. + * + * @return + * possible object is + * {@link EffectProperties } + * + */ + public EffectProperties getEffect() { + return effect; + } + + /** + * Sets the value of the effect property. + * + * @param value + * allowed object is + * {@link EffectProperties } + * + */ + public void setEffect(EffectProperties value) { + this.effect = value; + } + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link MediaSimple } + * + */ + public MediaSimple getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link MediaSimple } + * + */ + public void setMedia(MediaSimple value) { + this.media = value; + } + + /** + * Gets the value of the features property. + * + * @return + * possible object is + * {@link FeaturesProperties } + * + */ + public FeaturesProperties getFeatures() { + return features; + } + + /** + * Sets the value of the features property. + * + * @param value + * allowed object is + * {@link FeaturesProperties } + * + */ + public void setFeatures(FeaturesProperties value) { + this.features = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + + /** + * Gets the value of the block property. + * + * @return + * possible object is + * {@link PlaylistPrimaryEventProperties.Block } + * + */ + public PlaylistPrimaryEventProperties.Block getBlock() { + return block; + } + + /** + * Sets the value of the block property. + * + * @param value + * allowed object is + * {@link PlaylistPrimaryEventProperties.Block } + * + */ + public void setBlock(PlaylistPrimaryEventProperties.Block value) { + this.block = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Block { + + @XmlAttribute(name = "name", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistProperties.java new file mode 100644 index 00000000..ca9483aa --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistProperties.java @@ -0,0 +1,166 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a playlist + * + *

Java class for playlistProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="history" type="{}historyProperties" minOccurs="0"/>
+ *         <element name="channel" type="{}channelProperties" minOccurs="0"/>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *         <element name="status" type="{}statusProperties" minOccurs="0"/>
+ *         <element name="timecode" type="{}timecodeProperties" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistProperties", propOrder = { + +}) +public class PlaylistProperties { + + protected HistoryProperties history; + protected ChannelProperties channel; + protected Object auxData; + protected StatusProperties status; + protected TimecodeProperties timecode; + + /** + * Gets the value of the history property. + * + * @return + * possible object is + * {@link HistoryProperties } + * + */ + public HistoryProperties getHistory() { + return history; + } + + /** + * Sets the value of the history property. + * + * @param value + * allowed object is + * {@link HistoryProperties } + * + */ + public void setHistory(HistoryProperties value) { + this.history = value; + } + + /** + * Gets the value of the channel property. + * + * @return + * possible object is + * {@link ChannelProperties } + * + */ + public ChannelProperties getChannel() { + return channel; + } + + /** + * Sets the value of the channel property. + * + * @param value + * allowed object is + * {@link ChannelProperties } + * + */ + public void setChannel(ChannelProperties value) { + this.channel = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + + /** + * Gets the value of the status property. + * + * @return + * possible object is + * {@link StatusProperties } + * + */ + public StatusProperties getStatus() { + return status; + } + + /** + * Sets the value of the status property. + * + * @param value + * allowed object is + * {@link StatusProperties } + * + */ + public void setStatus(StatusProperties value) { + this.status = value; + } + + /** + * Gets the value of the timecode property. + * + * @return + * possible object is + * {@link TimecodeProperties } + * + */ + public TimecodeProperties getTimecode() { + return timecode; + } + + /** + * Sets the value of the timecode property. + * + * @param value + * allowed object is + * {@link TimecodeProperties } + * + */ + public void setTimecode(TimecodeProperties value) { + this.timecode = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEvent.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEvent.java new file mode 100644 index 00000000..2bd20961 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEvent.java @@ -0,0 +1,251 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * A secondary event, can have a start, end or start and end. This allows starting an event (logo on) with one secondary and stopping it (logo off) with another secondary. + * + *

Java class for playlistSecondaryEvent complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistSecondaryEvent">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="state" type="{}state" minOccurs="0"/>
+ *         <element name="properties" type="{}playlistSecondaryEventProperties"/>
+ *         <element name="childEvents" type="{}playlistSecondaryEventList" minOccurs="0"/>
+ *       </sequence>
+ *       <attGroup ref="{}playlistEventAttributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistSecondaryEvent", propOrder = { + "state", + "properties", + "childEvents" +}) +public class PlaylistSecondaryEvent { + + protected State state; + @XmlElement(required = true) + protected PlaylistSecondaryEventProperties properties; + protected PlaylistSecondaryEventList childEvents; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "enabled") + protected Boolean enabled; + @XmlAttribute(name = "timerMarker") + protected Boolean timerMarker; + @XmlAttribute(name = "uid") + protected BigInteger uid; + @XmlAttribute(name = "manualSecondary") + protected Boolean manualSecondary; + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link State } + * + */ + public State getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link State } + * + */ + public void setState(State value) { + this.state = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link PlaylistSecondaryEventProperties } + * + */ + public PlaylistSecondaryEventProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link PlaylistSecondaryEventProperties } + * + */ + public void setProperties(PlaylistSecondaryEventProperties value) { + this.properties = value; + } + + /** + * Gets the value of the childEvents property. + * + * @return + * possible object is + * {@link PlaylistSecondaryEventList } + * + */ + public PlaylistSecondaryEventList getChildEvents() { + return childEvents; + } + + /** + * Sets the value of the childEvents property. + * + * @param value + * allowed object is + * {@link PlaylistSecondaryEventList } + * + */ + public void setChildEvents(PlaylistSecondaryEventList value) { + this.childEvents = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the enabled property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isEnabled() { + return enabled; + } + + /** + * Sets the value of the enabled property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnabled(Boolean value) { + this.enabled = value; + } + + /** + * Gets the value of the timerMarker property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isTimerMarker() { + return timerMarker; + } + + /** + * Sets the value of the timerMarker property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setTimerMarker(Boolean value) { + this.timerMarker = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setUid(BigInteger value) { + this.uid = value; + } + + /** + * Gets the value of the manualSecondary property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isManualSecondary() { + return manualSecondary; + } + + /** + * Sets the value of the manualSecondary property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setManualSecondary(Boolean value) { + this.manualSecondary = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEventList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEventList.java new file mode 100644 index 00000000..56230fd5 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEventList.java @@ -0,0 +1,79 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlType; + + +/** + * A List of secondary events and actions. + * + *

Java class for playlistSecondaryEventList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistSecondaryEventList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded" minOccurs="0">
+ *         <choice>
+ *           <element name="event" type="{}playlistSecondaryEvent"/>
+ *           <element name="action" type="{}playlistActionEvent"/>
+ *         </choice>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistSecondaryEventList", propOrder = { + "eventOrAction" +}) +public class PlaylistSecondaryEventList { + + @XmlElements({ + @XmlElement(name = "event", type = PlaylistSecondaryEvent.class), + @XmlElement(name = "action", type = PlaylistActionEvent.class) + }) + protected List eventOrAction; + + /** + * Gets the value of the eventOrAction property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eventOrAction property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEventOrAction().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link PlaylistSecondaryEvent } + * {@link PlaylistActionEvent } + * + * + */ + public List getEventOrAction() { + if (eventOrAction == null) { + eventOrAction = new ArrayList(); + } + return this.eventOrAction; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEventProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEventProperties.java new file mode 100644 index 00000000..2c5571b6 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PlaylistSecondaryEventProperties.java @@ -0,0 +1,246 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a secondary event. + * + *

Java class for playlistSecondaryEventProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="playlistSecondaryEventProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="schedule" type="{}secondaryScheduleProperties" minOccurs="0"/>
+ *         <element name="mediaStream" type="{}mediaStreamProperties" minOccurs="0"/>
+ *         <element name="event" type="{}eventProperties" minOccurs="0"/>
+ *         <element name="switch" type="{}switchProperties" minOccurs="0"/>
+ *         <element name="trigger" type="{}triggerProperties" minOccurs="0"/>
+ *         <element name="effect" type="{}effectProperties" minOccurs="0"/>
+ *         <element name="media" type="{}mediaSimple" minOccurs="0"/>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "playlistSecondaryEventProperties", propOrder = { + +}) +public class PlaylistSecondaryEventProperties { + + protected SecondaryScheduleProperties schedule; + protected MediaStreamProperties mediaStream; + protected EventProperties event; + @XmlElement(name = "switch") + protected SwitchProperties _switch; + protected TriggerProperties trigger; + protected EffectProperties effect; + protected MediaSimple media; + protected Object auxData; + + /** + * Gets the value of the schedule property. + * + * @return + * possible object is + * {@link SecondaryScheduleProperties } + * + */ + public SecondaryScheduleProperties getSchedule() { + return schedule; + } + + /** + * Sets the value of the schedule property. + * + * @param value + * allowed object is + * {@link SecondaryScheduleProperties } + * + */ + public void setSchedule(SecondaryScheduleProperties value) { + this.schedule = value; + } + + /** + * Gets the value of the mediaStream property. + * + * @return + * possible object is + * {@link MediaStreamProperties } + * + */ + public MediaStreamProperties getMediaStream() { + return mediaStream; + } + + /** + * Sets the value of the mediaStream property. + * + * @param value + * allowed object is + * {@link MediaStreamProperties } + * + */ + public void setMediaStream(MediaStreamProperties value) { + this.mediaStream = value; + } + + /** + * Gets the value of the event property. + * + * @return + * possible object is + * {@link EventProperties } + * + */ + public EventProperties getEvent() { + return event; + } + + /** + * Sets the value of the event property. + * + * @param value + * allowed object is + * {@link EventProperties } + * + */ + public void setEvent(EventProperties value) { + this.event = value; + } + + /** + * Gets the value of the switch property. + * + * @return + * possible object is + * {@link SwitchProperties } + * + */ + public SwitchProperties getSwitch() { + return _switch; + } + + /** + * Sets the value of the switch property. + * + * @param value + * allowed object is + * {@link SwitchProperties } + * + */ + public void setSwitch(SwitchProperties value) { + this._switch = value; + } + + /** + * Gets the value of the trigger property. + * + * @return + * possible object is + * {@link TriggerProperties } + * + */ + public TriggerProperties getTrigger() { + return trigger; + } + + /** + * Sets the value of the trigger property. + * + * @param value + * allowed object is + * {@link TriggerProperties } + * + */ + public void setTrigger(TriggerProperties value) { + this.trigger = value; + } + + /** + * Gets the value of the effect property. + * + * @return + * possible object is + * {@link EffectProperties } + * + */ + public EffectProperties getEffect() { + return effect; + } + + /** + * Sets the value of the effect property. + * + * @param value + * allowed object is + * {@link EffectProperties } + * + */ + public void setEffect(EffectProperties value) { + this.effect = value; + } + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link MediaSimple } + * + */ + public MediaSimple getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link MediaSimple } + * + */ + public void setMedia(MediaSimple value) { + this.media = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/PrimaryScheduleProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/PrimaryScheduleProperties.java new file mode 100644 index 00000000..c7e77687 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/PrimaryScheduleProperties.java @@ -0,0 +1,89 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Scheduling properties for a primary event + * + *

Java class for primaryScheduleProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="primaryScheduleProperties">
+ *   <complexContent>
+ *     <extension base="{}actionScheduleProperties">
+ *       <attribute name="endType" type="{}scheduledEndType" />
+ *       <attribute name="endOffset" type="{}timecode" />
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "primaryScheduleProperties") +public class PrimaryScheduleProperties + extends ActionScheduleProperties +{ + + @XmlAttribute(name = "endType") + protected String endType; + @XmlAttribute(name = "endOffset") + protected String endOffset; + + /** + * Gets the value of the endType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEndType() { + return endType; + } + + /** + * Sets the value of the endType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndType(String value) { + this.endType = value; + } + + /** + * Gets the value of the endOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEndOffset() { + return endOffset; + } + + /** + * Sets the value of the endOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndOffset(String value) { + this.endOffset = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Priority.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Priority.java new file mode 100644 index 00000000..3797046b --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Priority.java @@ -0,0 +1,258 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Internal properties for a priority. + * + *

Java class for priority complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="priority">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element name="requiredTime" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="time" use="required" type="{}dateTimecode" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="relative" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="priority" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="Low"/>
+ *                       <enumeration value="Medium"/>
+ *                       <enumeration value="High"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="RequiredTime"/>
+ *             <enumeration value="Relative"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "priority", propOrder = { + "requiredTime", + "relative" +}) +public class Priority { + + protected Priority.RequiredTime requiredTime; + protected Priority.Relative relative; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the requiredTime property. + * + * @return + * possible object is + * {@link Priority.RequiredTime } + * + */ + public Priority.RequiredTime getRequiredTime() { + return requiredTime; + } + + /** + * Sets the value of the requiredTime property. + * + * @param value + * allowed object is + * {@link Priority.RequiredTime } + * + */ + public void setRequiredTime(Priority.RequiredTime value) { + this.requiredTime = value; + } + + /** + * Gets the value of the relative property. + * + * @return + * possible object is + * {@link Priority.Relative } + * + */ + public Priority.Relative getRelative() { + return relative; + } + + /** + * Sets the value of the relative property. + * + * @param value + * allowed object is + * {@link Priority.Relative } + * + */ + public void setRelative(Priority.Relative value) { + this.relative = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="priority" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="Low"/>
+     *             <enumeration value="Medium"/>
+     *             <enumeration value="High"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Relative { + + @XmlAttribute(name = "priority", required = true) + protected String priority; + + /** + * Gets the value of the priority property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPriority() { + return priority; + } + + /** + * Sets the value of the priority property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPriority(String value) { + this.priority = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="time" use="required" type="{}dateTimecode" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class RequiredTime { + + @XmlAttribute(name = "time", required = true) + protected String time; + + /** + * Gets the value of the time property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTime() { + return time; + } + + /** + * Sets the value of the time property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTime(String value) { + this.time = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/RecordSourceProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/RecordSourceProperties.java new file mode 100644 index 00000000..56b749ca --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/RecordSourceProperties.java @@ -0,0 +1,166 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties used by automation lists for record sources + * + *

Java class for recordSourceProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="recordSourceProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element name="auto">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="type" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Auto"/>
+ *             <enumeration value="Explicit"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "recordSourceProperties", propOrder = { + "auto" +}) +public class RecordSourceProperties { + + protected RecordSourceProperties.Auto auto; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the auto property. + * + * @return + * possible object is + * {@link RecordSourceProperties.Auto } + * + */ + public RecordSourceProperties.Auto getAuto() { + return auto; + } + + /** + * Sets the value of the auto property. + * + * @param value + * allowed object is + * {@link RecordSourceProperties.Auto } + * + */ + public void setAuto(RecordSourceProperties.Auto value) { + this.auto = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="type" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Auto { + + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/RedundancyRole.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/RedundancyRole.java new file mode 100644 index 00000000..783b0676 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/RedundancyRole.java @@ -0,0 +1,51 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for redundancyRole. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="redundancyRole">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Main"/>
+ *     <enumeration value="Backup"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "redundancyRole") +@XmlEnum +public enum RedundancyRole { + + @XmlEnumValue("Main") + MAIN("Main"), + @XmlEnumValue("Backup") + BACKUP("Backup"); + private final String value; + + RedundancyRole(String v) { + value = v; + } + + public String value() { + return value; + } + + public static RedundancyRole fromValue(String v) { + for (RedundancyRole c: RedundancyRole.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/RequestProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/RequestProperties.java new file mode 100644 index 00000000..72d445fa --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/RequestProperties.java @@ -0,0 +1,670 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Resource request parameters + * + *

Java class for requestProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="requestProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="requester">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="type" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="TxList"/>
+ *                       <enumeration value="TxListUI"/>
+ *                       <enumeration value="StreamControllerUI"/>
+ *                       <enumeration value="DebugUI"/>
+ *                       <enumeration value="DBMediaCache"/>
+ *                       <enumeration value="ListMacroProcessor"/>
+ *                       <enumeration value="CommercialList"/>
+ *                       <enumeration value="LiveIngest"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="comment">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="1"/>
+ *                       <maxLength value="64"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="odid">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *                       <minInclusive value="0"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="bucketId">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *                       <minInclusive value="0"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="username">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="0"/>
+ *                       <maxLength value="64"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="userId">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+ *                       <minInclusive value="0"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="uid">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="0"/>
+ *                       <maxLength value="64"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="mediaLocation" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="resourceType" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="resourceName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="MediaStream"/>
+ *             <enumeration value="Media"/>
+ *             <enumeration value="TxList"/>
+ *             <enumeration value="TxListControl"/>
+ *             <enumeration value="MoverList"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="lockType" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Shared"/>
+ *             <enumeration value="Exclusive"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="expiryPeriod" type="{}timecode" />
+ *       <attribute name="system" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="comment">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "requestProperties", propOrder = { + "requester", + "mediaLocation" +}) +public class RequestProperties { + + @XmlElement(required = true) + protected RequestProperties.Requester requester; + protected RequestProperties.MediaLocation mediaLocation; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "lockType", required = true) + protected String lockType; + @XmlAttribute(name = "expiryPeriod") + protected String expiryPeriod; + @XmlAttribute(name = "system") + protected Boolean system; + @XmlAttribute(name = "comment") + protected String comment; + + /** + * Gets the value of the requester property. + * + * @return + * possible object is + * {@link RequestProperties.Requester } + * + */ + public RequestProperties.Requester getRequester() { + return requester; + } + + /** + * Sets the value of the requester property. + * + * @param value + * allowed object is + * {@link RequestProperties.Requester } + * + */ + public void setRequester(RequestProperties.Requester value) { + this.requester = value; + } + + /** + * Gets the value of the mediaLocation property. + * + * @return + * possible object is + * {@link RequestProperties.MediaLocation } + * + */ + public RequestProperties.MediaLocation getMediaLocation() { + return mediaLocation; + } + + /** + * Sets the value of the mediaLocation property. + * + * @param value + * allowed object is + * {@link RequestProperties.MediaLocation } + * + */ + public void setMediaLocation(RequestProperties.MediaLocation value) { + this.mediaLocation = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the lockType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLockType() { + return lockType; + } + + /** + * Sets the value of the lockType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLockType(String value) { + this.lockType = value; + } + + /** + * Gets the value of the expiryPeriod property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getExpiryPeriod() { + return expiryPeriod; + } + + /** + * Sets the value of the expiryPeriod property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setExpiryPeriod(String value) { + this.expiryPeriod = value; + } + + /** + * Gets the value of the system property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isSystem() { + return system; + } + + /** + * Sets the value of the system property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSystem(Boolean value) { + this.system = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="resourceType" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="resourceName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class MediaLocation { + + @XmlAttribute(name = "resourceType", required = true) + protected String resourceType; + @XmlAttribute(name = "resourceName", required = true) + protected String resourceName; + + /** + * Gets the value of the resourceType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResourceType() { + return resourceType; + } + + /** + * Sets the value of the resourceType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResourceType(String value) { + this.resourceType = value; + } + + /** + * Gets the value of the resourceName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResourceName() { + return resourceName; + } + + /** + * Sets the value of the resourceName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResourceName(String value) { + this.resourceName = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="type" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="TxList"/>
+     *             <enumeration value="TxListUI"/>
+     *             <enumeration value="StreamControllerUI"/>
+     *             <enumeration value="DebugUI"/>
+     *             <enumeration value="DBMediaCache"/>
+     *             <enumeration value="ListMacroProcessor"/>
+     *             <enumeration value="CommercialList"/>
+     *             <enumeration value="LiveIngest"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="comment">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="odid">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+     *             <minInclusive value="0"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="bucketId">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+     *             <minInclusive value="0"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="username">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="0"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="userId">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}integer">
+     *             <minInclusive value="0"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="uid">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="0"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Requester { + + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "comment") + protected String comment; + @XmlAttribute(name = "odid") + protected BigInteger odid; + @XmlAttribute(name = "bucketId") + protected BigInteger bucketId; + @XmlAttribute(name = "username") + protected String username; + @XmlAttribute(name = "userId") + protected BigInteger userId; + @XmlAttribute(name = "uid") + protected String uid; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the comment property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getComment() { + return comment; + } + + /** + * Sets the value of the comment property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setComment(String value) { + this.comment = value; + } + + /** + * Gets the value of the odid property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getOdid() { + return odid; + } + + /** + * Sets the value of the odid property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setOdid(BigInteger value) { + this.odid = value; + } + + /** + * Gets the value of the bucketId property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getBucketId() { + return bucketId; + } + + /** + * Sets the value of the bucketId property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setBucketId(BigInteger value) { + this.bucketId = value; + } + + /** + * Gets the value of the username property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsername() { + return username; + } + + /** + * Sets the value of the username property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsername(String value) { + this.username = value; + } + + /** + * Gets the value of the userId property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getUserId() { + return userId; + } + + /** + * Sets the value of the userId property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setUserId(BigInteger value) { + this.userId = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUid(String value) { + this.uid = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/RestrictionProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/RestrictionProperties.java new file mode 100644 index 00000000..7c4e4b62 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/RestrictionProperties.java @@ -0,0 +1,66 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of restricting xml loading. + * + *

Java class for restrictionProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="restrictionProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="channel">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "restrictionProperties") +public class RestrictionProperties { + + @XmlAttribute(name = "channel") + protected String channel; + + /** + * Gets the value of the channel property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChannel() { + return channel; + } + + /** + * Sets the value of the channel property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChannel(String value) { + this.channel = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJob.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJob.java new file mode 100644 index 00000000..d55716cc --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJob.java @@ -0,0 +1,152 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * A single scheduled job + * + *

Java class for scheduledJob complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="scheduledJob">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="state" type="{}jobState" minOccurs="0"/>
+ *         <element name="properties" type="{}scheduledJobProperties" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Scheduled Record"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "scheduledJob", propOrder = { + "state", + "properties" +}) +public class ScheduledJob { + + protected JobState state; + protected ScheduledJobProperties properties; + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "uid") + @XmlSchemaType(name = "anySimpleType") + protected String uid; + + /** + * Gets the value of the state property. + * + * @return + * possible object is + * {@link JobState } + * + */ + public JobState getState() { + return state; + } + + /** + * Sets the value of the state property. + * + * @param value + * allowed object is + * {@link JobState } + * + */ + public void setState(JobState value) { + this.state = value; + } + + /** + * Gets the value of the properties property. + * + * @return + * possible object is + * {@link ScheduledJobProperties } + * + */ + public ScheduledJobProperties getProperties() { + return properties; + } + + /** + * Sets the value of the properties property. + * + * @param value + * allowed object is + * {@link ScheduledJobProperties } + * + */ + public void setProperties(ScheduledJobProperties value) { + this.properties = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUid(String value) { + this.uid = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobContainer.java new file mode 100644 index 00000000..aa015d5b --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="job" type="{}scheduledJob"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "job" +}) +@XmlRootElement(name = "scheduledJobContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class ScheduledJobContainer { + + @XmlElement(required = true) + protected ScheduledJob job; + + /** + * Gets the value of the job property. + * + * @return + * possible object is + * {@link ScheduledJob } + * + */ + public ScheduledJob getJob() { + return job; + } + + /** + * Sets the value of the job property. + * + * @param value + * allowed object is + * {@link ScheduledJob } + * + */ + public void setJob(ScheduledJob value) { + this.job = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobList.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobList.java new file mode 100644 index 00000000..19757392 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobList.java @@ -0,0 +1,69 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * A List of scheduled jobs. + * + *

Java class for scheduledJobList complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="scheduledJobList">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="job" type="{}scheduledJob" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "scheduledJobList", propOrder = { + "job" +}) +public class ScheduledJobList { + + protected List job; + + /** + * Gets the value of the job property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the job property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getJob().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ScheduledJob } + * + * + */ + public List getJob() { + if (job == null) { + job = new ArrayList(); + } + return this.job; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobListContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobListContainer.java new file mode 100644 index 00000000..54f0d609 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobListContainer.java @@ -0,0 +1,83 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="jobList" type="{}scheduledJobList"/>
+ *         <element name="moreResults" type="{}moreResults"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "jobList", + "moreResults" +}) +@XmlRootElement(name = "scheduledJobListContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class ScheduledJobListContainer { + + @XmlElement(required = true) + protected ScheduledJobList jobList; + protected boolean moreResults; + + /** + * Gets the value of the jobList property. + * + * @return + * possible object is + * {@link ScheduledJobList } + * + */ + public ScheduledJobList getJobList() { + return jobList; + } + + /** + * Sets the value of the jobList property. + * + * @param value + * allowed object is + * {@link ScheduledJobList } + * + */ + public void setJobList(ScheduledJobList value) { + this.jobList = value; + } + + /** + * Gets the value of the moreResults property. + * + */ + public boolean isMoreResults() { + return moreResults; + } + + /** + * Sets the value of the moreResults property. + * + */ + public void setMoreResults(boolean value) { + this.moreResults = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobProperties.java new file mode 100644 index 00000000..55db291b --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobProperties.java @@ -0,0 +1,806 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties of a scheduled job. + * + *

Java class for scheduledJobProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="scheduledJobProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="schedule" type="{}scheduledJobScheduleProperties" minOccurs="0"/>
+ *         <element name="media" type="{}media" minOccurs="0"/>
+ *         <element name="source" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice>
+ *                   <element name="switch" type="{}switchAllocation"/>
+ *                   <element name="mediaStream" type="{}mediaStreamIngestProperties"/>
+ *                 </choice>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="destination" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice>
+ *                   <element name="mediaStreams">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence>
+ *                             <choice>
+ *                               <element name="video" type="{}videoProperties"/>
+ *                               <element name="cg" type="{}cgProperties"/>
+ *                               <element name="subtitle" type="{}subtitleProperties"/>
+ *                             </choice>
+ *                             <element name="mediaStream" type="{}mediaStreamIngestProperties" maxOccurs="unbounded"/>
+ *                           </sequence>
+ *                           <attribute name="overwrite" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *                           <attribute name="recordSOMType">
+ *                             <simpleType>
+ *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                 <enumeration value="Explicit"/>
+ *                                 <enumeration value="TimeOfDay"/>
+ *                               </restriction>
+ *                             </simpleType>
+ *                           </attribute>
+ *                           <attribute name="som" type="{}timecode" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </choice>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="review" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice>
+ *                   <element name="mediaStreams">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence maxOccurs="unbounded">
+ *                             <element name="mediaStream" type="{}mediaStreamIngestProperties"/>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </choice>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="auxData" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *         <element name="ingest" type="{}ingestProperties" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "scheduledJobProperties", propOrder = { + +}) +public class ScheduledJobProperties { + + protected ScheduledJobScheduleProperties schedule; + protected Media media; + protected ScheduledJobProperties.Source source; + protected ScheduledJobProperties.Destination destination; + protected ScheduledJobProperties.Review review; + protected Object auxData; + protected IngestProperties ingest; + + /** + * Gets the value of the schedule property. + * + * @return + * possible object is + * {@link ScheduledJobScheduleProperties } + * + */ + public ScheduledJobScheduleProperties getSchedule() { + return schedule; + } + + /** + * Sets the value of the schedule property. + * + * @param value + * allowed object is + * {@link ScheduledJobScheduleProperties } + * + */ + public void setSchedule(ScheduledJobScheduleProperties value) { + this.schedule = value; + } + + /** + * Gets the value of the media property. + * + * @return + * possible object is + * {@link Media } + * + */ + public Media getMedia() { + return media; + } + + /** + * Sets the value of the media property. + * + * @param value + * allowed object is + * {@link Media } + * + */ + public void setMedia(Media value) { + this.media = value; + } + + /** + * Gets the value of the source property. + * + * @return + * possible object is + * {@link ScheduledJobProperties.Source } + * + */ + public ScheduledJobProperties.Source getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value + * allowed object is + * {@link ScheduledJobProperties.Source } + * + */ + public void setSource(ScheduledJobProperties.Source value) { + this.source = value; + } + + /** + * Gets the value of the destination property. + * + * @return + * possible object is + * {@link ScheduledJobProperties.Destination } + * + */ + public ScheduledJobProperties.Destination getDestination() { + return destination; + } + + /** + * Sets the value of the destination property. + * + * @param value + * allowed object is + * {@link ScheduledJobProperties.Destination } + * + */ + public void setDestination(ScheduledJobProperties.Destination value) { + this.destination = value; + } + + /** + * Gets the value of the review property. + * + * @return + * possible object is + * {@link ScheduledJobProperties.Review } + * + */ + public ScheduledJobProperties.Review getReview() { + return review; + } + + /** + * Sets the value of the review property. + * + * @param value + * allowed object is + * {@link ScheduledJobProperties.Review } + * + */ + public void setReview(ScheduledJobProperties.Review value) { + this.review = value; + } + + /** + * Gets the value of the auxData property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAuxData() { + return auxData; + } + + /** + * Sets the value of the auxData property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAuxData(Object value) { + this.auxData = value; + } + + /** + * Gets the value of the ingest property. + * + * @return + * possible object is + * {@link IngestProperties } + * + */ + public IngestProperties getIngest() { + return ingest; + } + + /** + * Sets the value of the ingest property. + * + * @param value + * allowed object is + * {@link IngestProperties } + * + */ + public void setIngest(IngestProperties value) { + this.ingest = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element name="mediaStreams">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence>
+     *                   <choice>
+     *                     <element name="video" type="{}videoProperties"/>
+     *                     <element name="cg" type="{}cgProperties"/>
+     *                     <element name="subtitle" type="{}subtitleProperties"/>
+     *                   </choice>
+     *                   <element name="mediaStream" type="{}mediaStreamIngestProperties" maxOccurs="unbounded"/>
+     *                 </sequence>
+     *                 <attribute name="overwrite" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *                 <attribute name="recordSOMType">
+     *                   <simpleType>
+     *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                       <enumeration value="Explicit"/>
+     *                       <enumeration value="TimeOfDay"/>
+     *                     </restriction>
+     *                   </simpleType>
+     *                 </attribute>
+     *                 <attribute name="som" type="{}timecode" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </choice>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "mediaStreams" + }) + public static class Destination { + + protected ScheduledJobProperties.Destination.MediaStreams mediaStreams; + + /** + * Gets the value of the mediaStreams property. + * + * @return + * possible object is + * {@link ScheduledJobProperties.Destination.MediaStreams } + * + */ + public ScheduledJobProperties.Destination.MediaStreams getMediaStreams() { + return mediaStreams; + } + + /** + * Sets the value of the mediaStreams property. + * + * @param value + * allowed object is + * {@link ScheduledJobProperties.Destination.MediaStreams } + * + */ + public void setMediaStreams(ScheduledJobProperties.Destination.MediaStreams value) { + this.mediaStreams = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence>
+         *         <choice>
+         *           <element name="video" type="{}videoProperties"/>
+         *           <element name="cg" type="{}cgProperties"/>
+         *           <element name="subtitle" type="{}subtitleProperties"/>
+         *         </choice>
+         *         <element name="mediaStream" type="{}mediaStreamIngestProperties" maxOccurs="unbounded"/>
+         *       </sequence>
+         *       <attribute name="overwrite" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+         *       <attribute name="recordSOMType">
+         *         <simpleType>
+         *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *             <enumeration value="Explicit"/>
+         *             <enumeration value="TimeOfDay"/>
+         *           </restriction>
+         *         </simpleType>
+         *       </attribute>
+         *       <attribute name="som" type="{}timecode" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "video", + "cg", + "subtitle", + "mediaStream" + }) + public static class MediaStreams { + + protected VideoProperties video; + protected CgProperties cg; + protected SubtitleProperties subtitle; + @XmlElement(required = true) + protected List mediaStream; + @XmlAttribute(name = "overwrite") + @XmlSchemaType(name = "anySimpleType") + protected String overwrite; + @XmlAttribute(name = "recordSOMType") + protected String recordSOMType; + @XmlAttribute(name = "som") + protected String som; + + /** + * Gets the value of the video property. + * + * @return + * possible object is + * {@link VideoProperties } + * + */ + public VideoProperties getVideo() { + return video; + } + + /** + * Sets the value of the video property. + * + * @param value + * allowed object is + * {@link VideoProperties } + * + */ + public void setVideo(VideoProperties value) { + this.video = value; + } + + /** + * Gets the value of the cg property. + * + * @return + * possible object is + * {@link CgProperties } + * + */ + public CgProperties getCg() { + return cg; + } + + /** + * Sets the value of the cg property. + * + * @param value + * allowed object is + * {@link CgProperties } + * + */ + public void setCg(CgProperties value) { + this.cg = value; + } + + /** + * Gets the value of the subtitle property. + * + * @return + * possible object is + * {@link SubtitleProperties } + * + */ + public SubtitleProperties getSubtitle() { + return subtitle; + } + + /** + * Sets the value of the subtitle property. + * + * @param value + * allowed object is + * {@link SubtitleProperties } + * + */ + public void setSubtitle(SubtitleProperties value) { + this.subtitle = value; + } + + /** + * Gets the value of the mediaStream property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mediaStream property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getMediaStream().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MediaStreamIngestProperties } + * + * + */ + public List getMediaStream() { + if (mediaStream == null) { + mediaStream = new ArrayList(); + } + return this.mediaStream; + } + + /** + * Gets the value of the overwrite property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOverwrite() { + return overwrite; + } + + /** + * Sets the value of the overwrite property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOverwrite(String value) { + this.overwrite = value; + } + + /** + * Gets the value of the recordSOMType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecordSOMType() { + return recordSOMType; + } + + /** + * Sets the value of the recordSOMType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecordSOMType(String value) { + this.recordSOMType = value; + } + + /** + * Gets the value of the som property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSom() { + return som; + } + + /** + * Sets the value of the som property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSom(String value) { + this.som = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element name="mediaStreams">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence maxOccurs="unbounded">
+     *                   <element name="mediaStream" type="{}mediaStreamIngestProperties"/>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </choice>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "mediaStreams" + }) + public static class Review { + + protected ScheduledJobProperties.Review.MediaStreams mediaStreams; + + /** + * Gets the value of the mediaStreams property. + * + * @return + * possible object is + * {@link ScheduledJobProperties.Review.MediaStreams } + * + */ + public ScheduledJobProperties.Review.MediaStreams getMediaStreams() { + return mediaStreams; + } + + /** + * Sets the value of the mediaStreams property. + * + * @param value + * allowed object is + * {@link ScheduledJobProperties.Review.MediaStreams } + * + */ + public void setMediaStreams(ScheduledJobProperties.Review.MediaStreams value) { + this.mediaStreams = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence maxOccurs="unbounded">
+         *         <element name="mediaStream" type="{}mediaStreamIngestProperties"/>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "mediaStream" + }) + public static class MediaStreams { + + @XmlElement(required = true) + protected List mediaStream; + + /** + * Gets the value of the mediaStream property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the mediaStream property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getMediaStream().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link MediaStreamIngestProperties } + * + * + */ + public List getMediaStream() { + if (mediaStream == null) { + mediaStream = new ArrayList(); + } + return this.mediaStream; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element name="switch" type="{}switchAllocation"/>
+     *         <element name="mediaStream" type="{}mediaStreamIngestProperties"/>
+     *       </choice>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "_switch", + "mediaStream" + }) + public static class Source { + + @XmlElement(name = "switch") + protected SwitchAllocation _switch; + protected MediaStreamIngestProperties mediaStream; + + /** + * Gets the value of the switch property. + * + * @return + * possible object is + * {@link SwitchAllocation } + * + */ + public SwitchAllocation getSwitch() { + return _switch; + } + + /** + * Sets the value of the switch property. + * + * @param value + * allowed object is + * {@link SwitchAllocation } + * + */ + public void setSwitch(SwitchAllocation value) { + this._switch = value; + } + + /** + * Gets the value of the mediaStream property. + * + * @return + * possible object is + * {@link MediaStreamIngestProperties } + * + */ + public MediaStreamIngestProperties getMediaStream() { + return mediaStream; + } + + /** + * Sets the value of the mediaStream property. + * + * @param value + * allowed object is + * {@link MediaStreamIngestProperties } + * + */ + public void setMediaStream(MediaStreamIngestProperties value) { + this.mediaStream = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobScheduleProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobScheduleProperties.java new file mode 100644 index 00000000..aaa2590b --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobScheduleProperties.java @@ -0,0 +1,141 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Scheduling properties for a scheduled job + * + *

Java class for scheduledJobScheduleProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="scheduledJobScheduleProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="startType" type="{}scheduledStartType" />
+ *       <attribute name="startOffset" type="{}dateTimecodeOrTimecode" />
+ *       <attribute name="endType" type="{}scheduledEndType" />
+ *       <attribute name="endOffset" type="{}timecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "scheduledJobScheduleProperties") +public class ScheduledJobScheduleProperties { + + @XmlAttribute(name = "startType") + protected String startType; + @XmlAttribute(name = "startOffset") + protected String startOffset; + @XmlAttribute(name = "endType") + protected String endType; + @XmlAttribute(name = "endOffset") + protected String endOffset; + + /** + * Gets the value of the startType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStartType() { + return startType; + } + + /** + * Sets the value of the startType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartType(String value) { + this.startType = value; + } + + /** + * Gets the value of the startOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStartOffset() { + return startOffset; + } + + /** + * Sets the value of the startOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartOffset(String value) { + this.startOffset = value; + } + + /** + * Gets the value of the endType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEndType() { + return endType; + } + + /** + * Sets the value of the endType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndType(String value) { + this.endType = value; + } + + /** + * Gets the value of the endOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEndOffset() { + return endOffset; + } + + /** + * Sets the value of the endOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndOffset(String value) { + this.endOffset = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobStateDateTimecodeRangeContainer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobStateDateTimecodeRangeContainer.java new file mode 100644 index 00000000..98c2396a --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ScheduledJobStateDateTimecodeRangeContainer.java @@ -0,0 +1,64 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dateTimecodeRange" type="{}dateTimecodeRange"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dateTimecodeRange" +}) +@XmlRootElement(name = "scheduledJobStateDateTimecodeRangeContainer", namespace = "http://www.pebble.tv/MarinaAPI") +public class ScheduledJobStateDateTimecodeRangeContainer { + + @XmlElement(required = true) + protected DateTimecodeRange dateTimecodeRange; + + /** + * Gets the value of the dateTimecodeRange property. + * + * @return + * possible object is + * {@link DateTimecodeRange } + * + */ + public DateTimecodeRange getDateTimecodeRange() { + return dateTimecodeRange; + } + + /** + * Sets the value of the dateTimecodeRange property. + * + * @param value + * allowed object is + * {@link DateTimecodeRange } + * + */ + public void setDateTimecodeRange(DateTimecodeRange value) { + this.dateTimecodeRange = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Secondaries.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Secondaries.java new file mode 100644 index 00000000..93d426c0 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Secondaries.java @@ -0,0 +1,69 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + * A List of secondary jobs. + * + *

Java class for secondaries complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="secondaries">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="secondary" type="{}job" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "secondaries", propOrder = { + "secondary" +}) +public class Secondaries { + + protected List secondary; + + /** + * Gets the value of the secondary property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the secondary property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSecondary().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Job } + * + * + */ + public List getSecondary() { + if (secondary == null) { + secondary = new ArrayList(); + } + return this.secondary; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/SecondaryScheduleProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/SecondaryScheduleProperties.java new file mode 100644 index 00000000..5d366e8d --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/SecondaryScheduleProperties.java @@ -0,0 +1,141 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Scheduling properties for a secondary event + * + *

Java class for secondaryScheduleProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="secondaryScheduleProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="startType" type="{}scheduledStartType" />
+ *       <attribute name="startOffset" type="{}dateTimecodeOrTimecode" />
+ *       <attribute name="endType" type="{}scheduledEndType" />
+ *       <attribute name="endOffset" type="{}timecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "secondaryScheduleProperties") +public class SecondaryScheduleProperties { + + @XmlAttribute(name = "startType") + protected String startType; + @XmlAttribute(name = "startOffset") + protected String startOffset; + @XmlAttribute(name = "endType") + protected String endType; + @XmlAttribute(name = "endOffset") + protected String endOffset; + + /** + * Gets the value of the startType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStartType() { + return startType; + } + + /** + * Sets the value of the startType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartType(String value) { + this.startType = value; + } + + /** + * Gets the value of the startOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStartOffset() { + return startOffset; + } + + /** + * Sets the value of the startOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStartOffset(String value) { + this.startOffset = value; + } + + /** + * Gets the value of the endType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEndType() { + return endType; + } + + /** + * Sets the value of the endType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndType(String value) { + this.endType = value; + } + + /** + * Gets the value of the endOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEndOffset() { + return endOffset; + } + + /** + * Sets the value of the endOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEndOffset(String value) { + this.endOffset = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/SlotEnum.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/SlotEnum.java new file mode 100644 index 00000000..5d88abeb --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/SlotEnum.java @@ -0,0 +1,69 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for slotEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="slotEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Cue"/>
+ *     <enumeration value="Play"/>
+ *     <enumeration value="Crash Next"/>
+ *     <enumeration value="Recue"/>
+ *     <enumeration value="Pause"/>
+ *     <enumeration value="Uncue"/>
+ *     <enumeration value="Next"/>
+ *     <enumeration value="Resume"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "slotEnum") +@XmlEnum +public enum SlotEnum { + + @XmlEnumValue("Cue") + CUE("Cue"), + @XmlEnumValue("Play") + PLAY("Play"), + @XmlEnumValue("Crash Next") + CRASH_NEXT("Crash Next"), + @XmlEnumValue("Recue") + RECUE("Recue"), + @XmlEnumValue("Pause") + PAUSE("Pause"), + @XmlEnumValue("Uncue") + UNCUE("Uncue"), + @XmlEnumValue("Next") + NEXT("Next"), + @XmlEnumValue("Resume") + RESUME("Resume"); + private final String value; + + SlotEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static SlotEnum fromValue(String v) { + for (SlotEnum c: SlotEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/StartTimeState.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/StartTimeState.java new file mode 100644 index 00000000..8a02a736 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/StartTimeState.java @@ -0,0 +1,42 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for startTimeState. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="startTimeState">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="ROLLING"/>
+ *     <enumeration value="FIXED_AND_COMMITTED"/>
+ *     <enumeration value="FIXED_AND_UNCOMMITTED"/>
+ *     <enumeration value="NULL"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "startTimeState") +@XmlEnum +public enum StartTimeState { + + ROLLING, + FIXED_AND_COMMITTED, + FIXED_AND_UNCOMMITTED, + NULL; + + public String value() { + return name(); + } + + public static StartTimeState fromValue(String v) { + return valueOf(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/State.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/State.java new file mode 100644 index 00000000..02bc773d --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/State.java @@ -0,0 +1,112 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for state complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="state">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="startTimeState" type="{}startTimeState" />
+ *       <attribute name="scheduleStartTime" type="{}dateTimecode" />
+ *       <attribute name="estimatedStartTime" type="{}dateTimecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "state") +public class State { + + @XmlAttribute(name = "startTimeState") + protected StartTimeState startTimeState; + @XmlAttribute(name = "scheduleStartTime") + protected String scheduleStartTime; + @XmlAttribute(name = "estimatedStartTime") + protected String estimatedStartTime; + + /** + * Gets the value of the startTimeState property. + * + * @return + * possible object is + * {@link StartTimeState } + * + */ + public StartTimeState getStartTimeState() { + return startTimeState; + } + + /** + * Sets the value of the startTimeState property. + * + * @param value + * allowed object is + * {@link StartTimeState } + * + */ + public void setStartTimeState(StartTimeState value) { + this.startTimeState = value; + } + + /** + * Gets the value of the scheduleStartTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getScheduleStartTime() { + return scheduleStartTime; + } + + /** + * Sets the value of the scheduleStartTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setScheduleStartTime(String value) { + this.scheduleStartTime = value; + } + + /** + * Gets the value of the estimatedStartTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEstimatedStartTime() { + return estimatedStartTime; + } + + /** + * Sets the value of the estimatedStartTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEstimatedStartTime(String value) { + this.estimatedStartTime = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/StatusEnum.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/StatusEnum.java new file mode 100644 index 00000000..4528674b --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/StatusEnum.java @@ -0,0 +1,51 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for statusEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="statusEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="On"/>
+ *     <enumeration value="Off"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "statusEnum") +@XmlEnum +public enum StatusEnum { + + @XmlEnumValue("On") + ON("On"), + @XmlEnumValue("Off") + OFF("Off"); + private final String value; + + StatusEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static StatusEnum fromValue(String v) { + for (StatusEnum c: StatusEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/StatusProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/StatusProperties.java new file mode 100644 index 00000000..621c9da1 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/StatusProperties.java @@ -0,0 +1,252 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for the status of the playlist when the mpl was created. + * + *

Java class for statusProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="statusProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="listChangeCounts" type="{}changeCounts" minOccurs="0"/>
+ *         <element name="changeCounts" type="{}changeCounts" minOccurs="0"/>
+ *       </all>
+ *       <attribute name="activeRegion" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="eventCount" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="prefMediaRedundancyRole" type="{}redundancyRole" />
+ *       <attribute name="prefLiveRedundancyRole" type="{}redundancyRole" />
+ *       <attribute name="focusIndex" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *       <attribute name="listState" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "statusProperties", propOrder = { + +}) +public class StatusProperties { + + protected ChangeCounts listChangeCounts; + protected ChangeCounts changeCounts; + @XmlAttribute(name = "activeRegion") + protected String activeRegion; + @XmlAttribute(name = "eventCount") + protected BigInteger eventCount; + @XmlAttribute(name = "prefMediaRedundancyRole") + protected RedundancyRole prefMediaRedundancyRole; + @XmlAttribute(name = "prefLiveRedundancyRole") + protected RedundancyRole prefLiveRedundancyRole; + @XmlAttribute(name = "focusIndex") + protected BigInteger focusIndex; + @XmlAttribute(name = "listState") + protected String listState; + + /** + * Gets the value of the listChangeCounts property. + * + * @return + * possible object is + * {@link ChangeCounts } + * + */ + public ChangeCounts getListChangeCounts() { + return listChangeCounts; + } + + /** + * Sets the value of the listChangeCounts property. + * + * @param value + * allowed object is + * {@link ChangeCounts } + * + */ + public void setListChangeCounts(ChangeCounts value) { + this.listChangeCounts = value; + } + + /** + * Gets the value of the changeCounts property. + * + * @return + * possible object is + * {@link ChangeCounts } + * + */ + public ChangeCounts getChangeCounts() { + return changeCounts; + } + + /** + * Sets the value of the changeCounts property. + * + * @param value + * allowed object is + * {@link ChangeCounts } + * + */ + public void setChangeCounts(ChangeCounts value) { + this.changeCounts = value; + } + + /** + * Gets the value of the activeRegion property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getActiveRegion() { + return activeRegion; + } + + /** + * Sets the value of the activeRegion property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setActiveRegion(String value) { + this.activeRegion = value; + } + + /** + * Gets the value of the eventCount property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getEventCount() { + return eventCount; + } + + /** + * Sets the value of the eventCount property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setEventCount(BigInteger value) { + this.eventCount = value; + } + + /** + * Gets the value of the prefMediaRedundancyRole property. + * + * @return + * possible object is + * {@link RedundancyRole } + * + */ + public RedundancyRole getPrefMediaRedundancyRole() { + return prefMediaRedundancyRole; + } + + /** + * Sets the value of the prefMediaRedundancyRole property. + * + * @param value + * allowed object is + * {@link RedundancyRole } + * + */ + public void setPrefMediaRedundancyRole(RedundancyRole value) { + this.prefMediaRedundancyRole = value; + } + + /** + * Gets the value of the prefLiveRedundancyRole property. + * + * @return + * possible object is + * {@link RedundancyRole } + * + */ + public RedundancyRole getPrefLiveRedundancyRole() { + return prefLiveRedundancyRole; + } + + /** + * Sets the value of the prefLiveRedundancyRole property. + * + * @param value + * allowed object is + * {@link RedundancyRole } + * + */ + public void setPrefLiveRedundancyRole(RedundancyRole value) { + this.prefLiveRedundancyRole = value; + } + + /** + * Gets the value of the focusIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getFocusIndex() { + return focusIndex; + } + + /** + * Sets the value of the focusIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setFocusIndex(BigInteger value) { + this.focusIndex = value; + } + + /** + * Gets the value of the listState property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getListState() { + return listState; + } + + /** + * Sets the value of the listState property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setListState(String value) { + this.listState = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/SubtitleCaptionMode.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/SubtitleCaptionMode.java new file mode 100644 index 00000000..a9b19cc9 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/SubtitleCaptionMode.java @@ -0,0 +1,59 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for subtitleCaptionMode. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="subtitleCaptionMode">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <minLength value="1"/>
+ *     <maxLength value="32"/>
+ *     <enumeration value="Open"/>
+ *     <enumeration value="Closed"/>
+ *     <enumeration value="Mixed"/>
+ *     <enumeration value="None"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "subtitleCaptionMode") +@XmlEnum +public enum SubtitleCaptionMode { + + @XmlEnumValue("Open") + OPEN("Open"), + @XmlEnumValue("Closed") + CLOSED("Closed"), + @XmlEnumValue("Mixed") + MIXED("Mixed"), + @XmlEnumValue("None") + NONE("None"); + private final String value; + + SubtitleCaptionMode(String v) { + value = v; + } + + public String value() { + return value; + } + + public static SubtitleCaptionMode fromValue(String v) { + for (SubtitleCaptionMode c: SubtitleCaptionMode.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/SubtitleProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/SubtitleProperties.java new file mode 100644 index 00000000..01a02759 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/SubtitleProperties.java @@ -0,0 +1,251 @@ + +package pb.wsclient; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties used for subtitle parameters. + * + *

Java class for subtitleProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="subtitleProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all minOccurs="0">
+ *         <element name="auxXML" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="languages" type="{}languages" minOccurs="0"/>
+ *       </all>
+ *       <attribute name="source">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="File"/>
+ *             <enumeration value="File+Live"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="captionMode" type="{}subtitleCaptionMode" />
+ *       <attribute name="setting" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "subtitleProperties", propOrder = { + +}) +public class SubtitleProperties { + + protected SubtitleProperties.AuxXML auxXML; + protected Languages languages; + @XmlAttribute(name = "source") + protected String source; + @XmlAttribute(name = "captionMode") + protected SubtitleCaptionMode captionMode; + @XmlAttribute(name = "setting") + protected BigInteger setting; + + /** + * Gets the value of the auxXML property. + * + * @return + * possible object is + * {@link SubtitleProperties.AuxXML } + * + */ + public SubtitleProperties.AuxXML getAuxXML() { + return auxXML; + } + + /** + * Sets the value of the auxXML property. + * + * @param value + * allowed object is + * {@link SubtitleProperties.AuxXML } + * + */ + public void setAuxXML(SubtitleProperties.AuxXML value) { + this.auxXML = value; + } + + /** + * Gets the value of the languages property. + * + * @return + * possible object is + * {@link Languages } + * + */ + public Languages getLanguages() { + return languages; + } + + /** + * Sets the value of the languages property. + * + * @param value + * allowed object is + * {@link Languages } + * + */ + public void setLanguages(Languages value) { + this.languages = value; + } + + /** + * Gets the value of the source property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSource(String value) { + this.source = value; + } + + /** + * Gets the value of the captionMode property. + * + * @return + * possible object is + * {@link SubtitleCaptionMode } + * + */ + public SubtitleCaptionMode getCaptionMode() { + return captionMode; + } + + /** + * Sets the value of the captionMode property. + * + * @param value + * allowed object is + * {@link SubtitleCaptionMode } + * + */ + public void setCaptionMode(SubtitleCaptionMode value) { + this.captionMode = value; + } + + /** + * Gets the value of the setting property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getSetting() { + return setting; + } + + /** + * Sets the value of the setting property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setSetting(BigInteger value) { + this.setting = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class AuxXML { + + @XmlAnyElement(lax = true) + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAny().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Object } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchAllocation.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchAllocation.java new file mode 100644 index 00000000..d4fe64e4 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchAllocation.java @@ -0,0 +1,423 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Allocation properties for a switch + * + *

Java class for switchAllocation complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="switchAllocation">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <choice>
+ *           <element name="auto">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="type" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <minLength value="1"/>
+ *                         <maxLength value="64"/>
+ *                         <enumeration value="MediaStream"/>
+ *                         <enumeration value="PGM"/>
+ *                         <enumeration value="Parent"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element name="logical">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="name" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <minLength value="1"/>
+ *                         <maxLength value="64"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *           <element name="fixed">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <attribute name="device" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <minLength value="1"/>
+ *                         <maxLength value="64"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                   <attribute name="port" use="required">
+ *                     <simpleType>
+ *                       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                         <minLength value="1"/>
+ *                         <maxLength value="64"/>
+ *                       </restriction>
+ *                     </simpleType>
+ *                   </attribute>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *         </choice>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <minLength value="1"/>
+ *             <maxLength value="64"/>
+ *             <enumeration value="Auto"/>
+ *             <enumeration value="Logical"/>
+ *             <enumeration value="Fixed"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "switchAllocation", propOrder = { + "auto", + "logical", + "fixed" +}) +public class SwitchAllocation { + + protected SwitchAllocation.Auto auto; + protected SwitchAllocation.Logical logical; + protected SwitchAllocation.Fixed fixed; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the auto property. + * + * @return + * possible object is + * {@link SwitchAllocation.Auto } + * + */ + public SwitchAllocation.Auto getAuto() { + return auto; + } + + /** + * Sets the value of the auto property. + * + * @param value + * allowed object is + * {@link SwitchAllocation.Auto } + * + */ + public void setAuto(SwitchAllocation.Auto value) { + this.auto = value; + } + + /** + * Gets the value of the logical property. + * + * @return + * possible object is + * {@link SwitchAllocation.Logical } + * + */ + public SwitchAllocation.Logical getLogical() { + return logical; + } + + /** + * Sets the value of the logical property. + * + * @param value + * allowed object is + * {@link SwitchAllocation.Logical } + * + */ + public void setLogical(SwitchAllocation.Logical value) { + this.logical = value; + } + + /** + * Gets the value of the fixed property. + * + * @return + * possible object is + * {@link SwitchAllocation.Fixed } + * + */ + public SwitchAllocation.Fixed getFixed() { + return fixed; + } + + /** + * Sets the value of the fixed property. + * + * @param value + * allowed object is + * {@link SwitchAllocation.Fixed } + * + */ + public void setFixed(SwitchAllocation.Fixed value) { + this.fixed = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="type" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *             <maxLength value="64"/>
+     *             <enumeration value="MediaStream"/>
+     *             <enumeration value="PGM"/>
+     *             <enumeration value="Parent"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Auto { + + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="device" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="port" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Fixed { + + @XmlAttribute(name = "device", required = true) + protected String device; + @XmlAttribute(name = "port", required = true) + protected String port; + + /** + * Gets the value of the device property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDevice() { + return device; + } + + /** + * Sets the value of the device property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDevice(String value) { + this.device = value; + } + + /** + * Gets the value of the port property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPort() { + return port; + } + + /** + * Sets the value of the port property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPort(String value) { + this.port = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="1"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Logical { + + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchProperties.java new file mode 100644 index 00000000..6b7b196e --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchProperties.java @@ -0,0 +1,221 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for jobs that contain switches + * + *

Java class for switchProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="switchProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="layers" type="{}layers" minOccurs="0"/>
+ *         <element name="source" type="{}switchAllocation" minOccurs="0"/>
+ *         <element name="destination" type="{}switchAllocation" minOccurs="0"/>
+ *         <element name="backupSource" type="{}switchAllocation" minOccurs="0"/>
+ *         <element name="backupDestination" type="{}switchAllocation" minOccurs="0"/>
+ *       </all>
+ *       <attribute name="transition" type="{}switchTransition" />
+ *       <attribute name="rate" type="{}switchRate" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "switchProperties", propOrder = { + +}) +public class SwitchProperties { + + protected Layers layers; + protected SwitchAllocation source; + protected SwitchAllocation destination; + protected SwitchAllocation backupSource; + protected SwitchAllocation backupDestination; + @XmlAttribute(name = "transition") + protected SwitchTransition transition; + @XmlAttribute(name = "rate") + protected SwitchRate rate; + + /** + * Gets the value of the layers property. + * + * @return + * possible object is + * {@link Layers } + * + */ + public Layers getLayers() { + return layers; + } + + /** + * Sets the value of the layers property. + * + * @param value + * allowed object is + * {@link Layers } + * + */ + public void setLayers(Layers value) { + this.layers = value; + } + + /** + * Gets the value of the source property. + * + * @return + * possible object is + * {@link SwitchAllocation } + * + */ + public SwitchAllocation getSource() { + return source; + } + + /** + * Sets the value of the source property. + * + * @param value + * allowed object is + * {@link SwitchAllocation } + * + */ + public void setSource(SwitchAllocation value) { + this.source = value; + } + + /** + * Gets the value of the destination property. + * + * @return + * possible object is + * {@link SwitchAllocation } + * + */ + public SwitchAllocation getDestination() { + return destination; + } + + /** + * Sets the value of the destination property. + * + * @param value + * allowed object is + * {@link SwitchAllocation } + * + */ + public void setDestination(SwitchAllocation value) { + this.destination = value; + } + + /** + * Gets the value of the backupSource property. + * + * @return + * possible object is + * {@link SwitchAllocation } + * + */ + public SwitchAllocation getBackupSource() { + return backupSource; + } + + /** + * Sets the value of the backupSource property. + * + * @param value + * allowed object is + * {@link SwitchAllocation } + * + */ + public void setBackupSource(SwitchAllocation value) { + this.backupSource = value; + } + + /** + * Gets the value of the backupDestination property. + * + * @return + * possible object is + * {@link SwitchAllocation } + * + */ + public SwitchAllocation getBackupDestination() { + return backupDestination; + } + + /** + * Sets the value of the backupDestination property. + * + * @param value + * allowed object is + * {@link SwitchAllocation } + * + */ + public void setBackupDestination(SwitchAllocation value) { + this.backupDestination = value; + } + + /** + * Gets the value of the transition property. + * + * @return + * possible object is + * {@link SwitchTransition } + * + */ + public SwitchTransition getTransition() { + return transition; + } + + /** + * Sets the value of the transition property. + * + * @param value + * allowed object is + * {@link SwitchTransition } + * + */ + public void setTransition(SwitchTransition value) { + this.transition = value; + } + + /** + * Gets the value of the rate property. + * + * @return + * possible object is + * {@link SwitchRate } + * + */ + public SwitchRate getRate() { + return rate; + } + + /** + * Sets the value of the rate property. + * + * @param value + * allowed object is + * {@link SwitchRate } + * + */ + public void setRate(SwitchRate value) { + this.rate = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchRate.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchRate.java new file mode 100644 index 00000000..9214aa33 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchRate.java @@ -0,0 +1,63 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for switchRate. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="switchRate">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="[none]"/>
+ *     <enumeration value="Fast"/>
+ *     <enumeration value="Medium"/>
+ *     <enumeration value="Slow"/>
+ *     <enumeration value="Custom"/>
+ *     <enumeration value="$INHERIT$"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "switchRate") +@XmlEnum +public enum SwitchRate { + + @XmlEnumValue("[none]") + NONE("[none]"), + @XmlEnumValue("Fast") + FAST("Fast"), + @XmlEnumValue("Medium") + MEDIUM("Medium"), + @XmlEnumValue("Slow") + SLOW("Slow"), + @XmlEnumValue("Custom") + CUSTOM("Custom"), + @XmlEnumValue("$INHERIT$") + $_INHERIT_$("$INHERIT$"); + private final String value; + + SwitchRate(String v) { + value = v; + } + + public String value() { + return value; + } + + public static SwitchRate fromValue(String v) { + for (SwitchRate c: SwitchRate.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchTransition.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchTransition.java new file mode 100644 index 00000000..03baf367 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/SwitchTransition.java @@ -0,0 +1,87 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for switchTransition. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="switchTransition">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="[none]"/>
+ *     <enumeration value="Cut"/>
+ *     <enumeration value="Cut Fade"/>
+ *     <enumeration value="Fade Cut"/>
+ *     <enumeration value="U-Fade"/>
+ *     <enumeration value="V-Fade"/>
+ *     <enumeration value="Mix"/>
+ *     <enumeration value="Wipe"/>
+ *     <enumeration value="Custom1"/>
+ *     <enumeration value="Custom2"/>
+ *     <enumeration value="Custom3"/>
+ *     <enumeration value="Custom4"/>
+ *     <enumeration value="Custom5"/>
+ *     <enumeration value="$INHERIT$"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "switchTransition") +@XmlEnum +public enum SwitchTransition { + + @XmlEnumValue("[none]") + NONE("[none]"), + @XmlEnumValue("Cut") + CUT("Cut"), + @XmlEnumValue("Cut Fade") + CUT_FADE("Cut Fade"), + @XmlEnumValue("Fade Cut") + FADE_CUT("Fade Cut"), + @XmlEnumValue("U-Fade") + U_FADE("U-Fade"), + @XmlEnumValue("V-Fade") + V_FADE("V-Fade"), + @XmlEnumValue("Mix") + MIX("Mix"), + @XmlEnumValue("Wipe") + WIPE("Wipe"), + @XmlEnumValue("Custom1") + CUSTOM_1("Custom1"), + @XmlEnumValue("Custom2") + CUSTOM_2("Custom2"), + @XmlEnumValue("Custom3") + CUSTOM_3("Custom3"), + @XmlEnumValue("Custom4") + CUSTOM_4("Custom4"), + @XmlEnumValue("Custom5") + CUSTOM_5("Custom5"), + @XmlEnumValue("$INHERIT$") + $_INHERIT_$("$INHERIT$"); + private final String value; + + SwitchTransition(String v) { + value = v; + } + + public String value() { + return value; + } + + public static SwitchTransition fromValue(String v) { + for (SwitchTransition c: SwitchTransition.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/System.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/System.java new file mode 100644 index 00000000..6ef44dc3 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/System.java @@ -0,0 +1,79 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * A representation of a system object + * + *

Java class for system complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="system">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="systemName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="systemId" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "system") +public class System { + + @XmlAttribute(name = "systemName", required = true) + protected String systemName; + @XmlAttribute(name = "systemId", required = true) + protected int systemId; + + /** + * Gets the value of the systemName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSystemName() { + return systemName; + } + + /** + * Sets the value of the systemName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSystemName(String value) { + this.systemName = value; + } + + /** + * Gets the value of the systemId property. + * + */ + public int getSystemId() { + return systemId; + } + + /** + * Sets the value of the systemId property. + * + */ + public void setSystemId(int value) { + this.systemId = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/TimecodeProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/TimecodeProperties.java new file mode 100644 index 00000000..a9042d95 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/TimecodeProperties.java @@ -0,0 +1,85 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for timecodeProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="timecodeProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="localTimeOffset" type="{}dateTimecodeOrTimecode" />
+ *       <attribute name="houseTime" type="{}dateTimecode" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "timecodeProperties") +public class TimecodeProperties { + + @XmlAttribute(name = "localTimeOffset") + protected String localTimeOffset; + @XmlAttribute(name = "houseTime") + protected String houseTime; + + /** + * Gets the value of the localTimeOffset property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLocalTimeOffset() { + return localTimeOffset; + } + + /** + * Sets the value of the localTimeOffset property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLocalTimeOffset(String value) { + this.localTimeOffset = value; + } + + /** + * Gets the value of the houseTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHouseTime() { + return houseTime; + } + + /** + * Sets the value of the houseTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHouseTime(String value) { + this.houseTime = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/Transfer.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/Transfer.java new file mode 100644 index 00000000..50977231 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/Transfer.java @@ -0,0 +1,106 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + * Internal properties for a transfer. + * + *

Java class for transfer complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="transfer">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded">
+ *         <element name="destination" type="{}transferDestination"/>
+ *       </sequence>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Copy"/>
+ *             <enumeration value="Move"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "transfer", propOrder = { + "destination" +}) +public class Transfer { + + @XmlElement(required = true) + protected List destination; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the destination property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the destination property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDestination().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TransferDestination } + * + * + */ + public List getDestination() { + if (destination == null) { + destination = new ArrayList(); + } + return this.destination; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/TransferDestination.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/TransferDestination.java new file mode 100644 index 00000000..983bc9c1 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/TransferDestination.java @@ -0,0 +1,106 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Internal properties for a transfer destination. + * + *

Java class for transferDestination complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="transferDestination">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="mediaSetName" use="required" type="{}mediaSetName" />
+ *       <attribute name="mediaName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="overwrite" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "transferDestination") +public class TransferDestination { + + @XmlAttribute(name = "mediaSetName", required = true) + protected String mediaSetName; + @XmlAttribute(name = "mediaName") + protected String mediaName; + @XmlAttribute(name = "overwrite", required = true) + protected boolean overwrite; + + /** + * Gets the value of the mediaSetName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaSetName() { + return mediaSetName; + } + + /** + * Sets the value of the mediaSetName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaSetName(String value) { + this.mediaSetName = value; + } + + /** + * Gets the value of the mediaName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMediaName() { + return mediaName; + } + + /** + * Sets the value of the mediaName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMediaName(String value) { + this.mediaName = value; + } + + /** + * Gets the value of the overwrite property. + * + */ + public boolean isOverwrite() { + return overwrite; + } + + /** + * Sets the value of the overwrite property. + * + */ + public void setOverwrite(boolean value) { + this.overwrite = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/TriggerProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/TriggerProperties.java new file mode 100644 index 00000000..3a8b4a8d --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/TriggerProperties.java @@ -0,0 +1,362 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for trigger jobs + * + *

Java class for triggerProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="triggerProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element name="macro">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="0"/>
+ *                       <maxLength value="64"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="fixed">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="slotCollectionName" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="0"/>
+ *                       <maxLength value="64"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="slot" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *                 <attribute name="level" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="pulse">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <minLength value="8"/>
+ *                       <maxLength value="8"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Macro"/>
+ *             <enumeration value="Fixed"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "triggerProperties", propOrder = { + "macro", + "fixed" +}) +public class TriggerProperties { + + protected TriggerProperties.Macro macro; + protected TriggerProperties.Fixed fixed; + @XmlAttribute(name = "type", required = true) + protected String type; + + /** + * Gets the value of the macro property. + * + * @return + * possible object is + * {@link TriggerProperties.Macro } + * + */ + public TriggerProperties.Macro getMacro() { + return macro; + } + + /** + * Sets the value of the macro property. + * + * @param value + * allowed object is + * {@link TriggerProperties.Macro } + * + */ + public void setMacro(TriggerProperties.Macro value) { + this.macro = value; + } + + /** + * Gets the value of the fixed property. + * + * @return + * possible object is + * {@link TriggerProperties.Fixed } + * + */ + public TriggerProperties.Fixed getFixed() { + return fixed; + } + + /** + * Sets the value of the fixed property. + * + * @param value + * allowed object is + * {@link TriggerProperties.Fixed } + * + */ + public void setFixed(TriggerProperties.Fixed value) { + this.fixed = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="slotCollectionName" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="0"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="slot" use="required" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+     *       <attribute name="level" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="pulse">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="8"/>
+     *             <maxLength value="8"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Fixed { + + @XmlAttribute(name = "slotCollectionName", required = true) + protected String slotCollectionName; + @XmlAttribute(name = "slot", required = true) + @XmlSchemaType(name = "anySimpleType") + protected String slot; + @XmlAttribute(name = "level", required = true) + protected boolean level; + @XmlAttribute(name = "pulse") + protected String pulse; + + /** + * Gets the value of the slotCollectionName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSlotCollectionName() { + return slotCollectionName; + } + + /** + * Sets the value of the slotCollectionName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSlotCollectionName(String value) { + this.slotCollectionName = value; + } + + /** + * Gets the value of the slot property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSlot() { + return slot; + } + + /** + * Sets the value of the slot property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSlot(String value) { + this.slot = value; + } + + /** + * Gets the value of the level property. + * + */ + public boolean isLevel() { + return level; + } + + /** + * Sets the value of the level property. + * + */ + public void setLevel(boolean value) { + this.level = value; + } + + /** + * Gets the value of the pulse property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPulse() { + return pulse; + } + + /** + * Sets the value of the pulse property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPulse(String value) { + this.pulse = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <minLength value="0"/>
+     *             <maxLength value="64"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Macro { + + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/UsageTypeEnum.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/UsageTypeEnum.java new file mode 100644 index 00000000..27f907be --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/UsageTypeEnum.java @@ -0,0 +1,81 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for usageTypeEnum. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="usageTypeEnum">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="PrimaryVideo"/>
+ *     <enumeration value="SecVideo"/>
+ *     <enumeration value="SecRecord"/>
+ *     <enumeration value="CG"/>
+ *     <enumeration value="Subtitle"/>
+ *     <enumeration value="Live"/>
+ *     <enumeration value="Comment"/>
+ *     <enumeration value="Marker"/>
+ *     <enumeration value="VPS"/>
+ *     <enumeration value="AFD"/>
+ *     <enumeration value="CommercialBlock"/>
+ *     <enumeration value="BlockStart"/>
+ *     <enumeration value="BlockEnd"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "usageTypeEnum") +@XmlEnum +public enum UsageTypeEnum { + + @XmlEnumValue("PrimaryVideo") + PRIMARY_VIDEO("PrimaryVideo"), + @XmlEnumValue("SecVideo") + SEC_VIDEO("SecVideo"), + @XmlEnumValue("SecRecord") + SEC_RECORD("SecRecord"), + CG("CG"), + @XmlEnumValue("Subtitle") + SUBTITLE("Subtitle"), + @XmlEnumValue("Live") + LIVE("Live"), + @XmlEnumValue("Comment") + COMMENT("Comment"), + @XmlEnumValue("Marker") + MARKER("Marker"), + VPS("VPS"), + AFD("AFD"), + @XmlEnumValue("CommercialBlock") + COMMERCIAL_BLOCK("CommercialBlock"), + @XmlEnumValue("BlockStart") + BLOCK_START("BlockStart"), + @XmlEnumValue("BlockEnd") + BLOCK_END("BlockEnd"); + private final String value; + + UsageTypeEnum(String v) { + value = v; + } + + public String value() { + return value; + } + + public static UsageTypeEnum fromValue(String v) { + for (UsageTypeEnum c: UsageTypeEnum.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/User.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/User.java new file mode 100644 index 00000000..809323de --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/User.java @@ -0,0 +1,326 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * A representation of a user object. + * + *

Java class for user complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="user">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="auxXML" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *       <attribute name="username" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="firstName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="lastName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="password" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="language" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="stylesheet" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="userGroupName" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "user", propOrder = { + +}) +public class User { + + protected User.AuxXML auxXML; + @XmlAttribute(name = "username", required = true) + protected String username; + @XmlAttribute(name = "firstName") + protected String firstName; + @XmlAttribute(name = "lastName") + protected String lastName; + @XmlAttribute(name = "password") + protected String password; + @XmlAttribute(name = "language") + protected Integer language; + @XmlAttribute(name = "stylesheet") + protected Integer stylesheet; + @XmlAttribute(name = "userGroupName") + protected String userGroupName; + + /** + * Gets the value of the auxXML property. + * + * @return + * possible object is + * {@link User.AuxXML } + * + */ + public User.AuxXML getAuxXML() { + return auxXML; + } + + /** + * Sets the value of the auxXML property. + * + * @param value + * allowed object is + * {@link User.AuxXML } + * + */ + public void setAuxXML(User.AuxXML value) { + this.auxXML = value; + } + + /** + * Gets the value of the username property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUsername() { + return username; + } + + /** + * Sets the value of the username property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUsername(String value) { + this.username = value; + } + + /** + * Gets the value of the firstName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFirstName() { + return firstName; + } + + /** + * Sets the value of the firstName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFirstName(String value) { + this.firstName = value; + } + + /** + * Gets the value of the lastName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLastName() { + return lastName; + } + + /** + * Sets the value of the lastName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLastName(String value) { + this.lastName = value; + } + + /** + * Gets the value of the password property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPassword() { + return password; + } + + /** + * Sets the value of the password property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPassword(String value) { + this.password = value; + } + + /** + * Gets the value of the language property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getLanguage() { + return language; + } + + /** + * Sets the value of the language property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setLanguage(Integer value) { + this.language = value; + } + + /** + * Gets the value of the stylesheet property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getStylesheet() { + return stylesheet; + } + + /** + * Sets the value of the stylesheet property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setStylesheet(Integer value) { + this.stylesheet = value; + } + + /** + * Gets the value of the userGroupName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUserGroupName() { + return userGroupName; + } + + /** + * Sets the value of the userGroupName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUserGroupName(String value) { + this.userGroupName = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class AuxXML { + + @XmlAnyElement + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAny().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/UserGroup.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/UserGroup.java new file mode 100644 index 00000000..5abb7d62 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/UserGroup.java @@ -0,0 +1,164 @@ + +package pb.wsclient; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAnyElement; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import org.w3c.dom.Element; + + +/** + * A representation of a user group object. + * + *

Java class for userGroup complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="userGroup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="auxXML" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+ *                 </sequence>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *       <attribute name="userGroupName" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "userGroup", propOrder = { + +}) +public class UserGroup { + + protected UserGroup.AuxXML auxXML; + @XmlAttribute(name = "userGroupName", required = true) + protected String userGroupName; + + /** + * Gets the value of the auxXML property. + * + * @return + * possible object is + * {@link UserGroup.AuxXML } + * + */ + public UserGroup.AuxXML getAuxXML() { + return auxXML; + } + + /** + * Sets the value of the auxXML property. + * + * @param value + * allowed object is + * {@link UserGroup.AuxXML } + * + */ + public void setAuxXML(UserGroup.AuxXML value) { + this.auxXML = value; + } + + /** + * Gets the value of the userGroupName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUserGroupName() { + return userGroupName; + } + + /** + * Sets the value of the userGroupName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUserGroupName(String value) { + this.userGroupName = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <any processContents='skip' maxOccurs="unbounded" minOccurs="0"/>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "any" + }) + public static class AuxXML { + + @XmlAnyElement + protected List any; + + /** + * Gets the value of the any property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the any property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAny().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Element } + * + * + */ + public List getAny() { + if (any == null) { + any = new ArrayList(); + } + return this.any; + } + + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/ValidationMode.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/ValidationMode.java new file mode 100644 index 00000000..75b5e0d7 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/ValidationMode.java @@ -0,0 +1,54 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for validationMode. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="validationMode">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="Off"/>
+ *     <enumeration value="Warn"/>
+ *     <enumeration value="Update"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "validationMode") +@XmlEnum +public enum ValidationMode { + + @XmlEnumValue("Off") + OFF("Off"), + @XmlEnumValue("Warn") + WARN("Warn"), + @XmlEnumValue("Update") + UPDATE("Update"); + private final String value; + + ValidationMode(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ValidationMode fromValue(String v) { + for (ValidationMode c: ValidationMode.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/VideoProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/VideoProperties.java new file mode 100644 index 00000000..4a7ca859 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/VideoProperties.java @@ -0,0 +1,217 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties used by video media devices + * + *

Java class for videoProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="videoProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="tapeName" type="{}mediaSetName" />
+ *       <attribute name="jobType" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Play"/>
+ *             <enumeration value="Record"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="overwrite" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="recordSOMType">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="Explicit"/>
+ *             <enumeration value="TimeOfDay"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="recordInstanceSOMType">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="OrigSOM"/>
+ *             <enumeration value="ZeroSOM"/>
+ *             <enumeration value="Explicit"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="disableRouting" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "videoProperties") +public class VideoProperties { + + @XmlAttribute(name = "tapeName") + protected String tapeName; + @XmlAttribute(name = "jobType", required = true) + protected String jobType; + @XmlAttribute(name = "overwrite") + protected Boolean overwrite; + @XmlAttribute(name = "recordSOMType") + protected String recordSOMType; + @XmlAttribute(name = "recordInstanceSOMType") + protected String recordInstanceSOMType; + @XmlAttribute(name = "disableRouting") + protected Boolean disableRouting; + + /** + * Gets the value of the tapeName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTapeName() { + return tapeName; + } + + /** + * Sets the value of the tapeName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTapeName(String value) { + this.tapeName = value; + } + + /** + * Gets the value of the jobType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getJobType() { + return jobType; + } + + /** + * Sets the value of the jobType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setJobType(String value) { + this.jobType = value; + } + + /** + * Gets the value of the overwrite property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isOverwrite() { + return overwrite; + } + + /** + * Sets the value of the overwrite property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOverwrite(Boolean value) { + this.overwrite = value; + } + + /** + * Gets the value of the recordSOMType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecordSOMType() { + return recordSOMType; + } + + /** + * Sets the value of the recordSOMType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecordSOMType(String value) { + this.recordSOMType = value; + } + + /** + * Gets the value of the recordInstanceSOMType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRecordInstanceSOMType() { + return recordInstanceSOMType; + } + + /** + * Sets the value of the recordInstanceSOMType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRecordInstanceSOMType(String value) { + this.recordInstanceSOMType = value; + } + + /** + * Gets the value of the disableRouting property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isDisableRouting() { + return disableRouting; + } + + /** + * Sets the value of the disableRouting property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDisableRouting(Boolean value) { + this.disableRouting = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/pb/wsclient/VpsProperties.java b/server/user.jobengine.osgi.commons/src/pb/wsclient/VpsProperties.java new file mode 100644 index 00000000..b1c5802d --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/pb/wsclient/VpsProperties.java @@ -0,0 +1,218 @@ + +package pb.wsclient; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + * Properties for a VPS event + * + *

Java class for vpsProperties complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="vpsProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="aspectRatio" use="required" type="{}aspectRatio" />
+ *       <attribute name="channelIdent" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <whiteSpace value="preserve"/>
+ *             <minLength value="1"/>
+ *             <maxLength value="4"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="child" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="vpsCodeType" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="time"/>
+ *             <enumeration value="LC"/>
+ *             <enumeration value="UC"/>
+ *             <enumeration value="SC"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="dateTime">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <pattern value="[0-3][0-9]-[0-1][0-9]T[0-2][0-9]:[0-6][0-9]"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="audio" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="stereo"/>
+ *             <enumeration value="mono"/>
+ *             <enumeration value="2channel"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "vpsProperties") +public class VpsProperties { + + @XmlAttribute(name = "aspectRatio", required = true) + protected String aspectRatio; + @XmlAttribute(name = "channelIdent", required = true) + protected String channelIdent; + @XmlAttribute(name = "child", required = true) + protected boolean child; + @XmlAttribute(name = "vpsCodeType", required = true) + protected String vpsCodeType; + @XmlAttribute(name = "dateTime") + protected String dateTime; + @XmlAttribute(name = "audio", required = true) + protected String audio; + + /** + * Gets the value of the aspectRatio property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAspectRatio() { + return aspectRatio; + } + + /** + * Sets the value of the aspectRatio property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAspectRatio(String value) { + this.aspectRatio = value; + } + + /** + * Gets the value of the channelIdent property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getChannelIdent() { + return channelIdent; + } + + /** + * Sets the value of the channelIdent property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setChannelIdent(String value) { + this.channelIdent = value; + } + + /** + * Gets the value of the child property. + * + */ + public boolean isChild() { + return child; + } + + /** + * Sets the value of the child property. + * + */ + public void setChild(boolean value) { + this.child = value; + } + + /** + * Gets the value of the vpsCodeType property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVpsCodeType() { + return vpsCodeType; + } + + /** + * Sets the value of the vpsCodeType property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVpsCodeType(String value) { + this.vpsCodeType = value; + } + + /** + * Gets the value of the dateTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDateTime() { + return dateTime; + } + + /** + * Sets the value of the dateTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDateTime(String value) { + this.dateTime = value; + } + + /** + * Gets the value of the audio property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAudio() { + return audio; + } + + /** + * Sets the value of the audio property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAudio(String value) { + this.audio = value; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/user/commons/DownloadableMedia.java b/server/user.jobengine.osgi.commons/src/user/commons/DownloadableMedia.java new file mode 100644 index 00000000..1b67f59f --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/user/commons/DownloadableMedia.java @@ -0,0 +1,23 @@ +package user.commons; + +import java.sql.Timestamp; + +import com.ibm.nosql.json.api.BasicDBObject; + +public class DownloadableMedia extends BasicDBObject { + + public static DownloadableMedia create(String title, String fileName, Timestamp modified, Timestamp created, int frames, long size, long storeUriId, + long mediaId) { + DownloadableMedia archive = new DownloadableMedia(); + archive.put("title", title); + archive.put("fileName", fileName); + archive.put("modified", modified); + archive.put("created", created); + archive.put("frames", frames); + archive.put("size", size); + archive.put("storeUriId", storeUriId); + archive.put("mediaId", mediaId); + return archive; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/user/commons/UploadableMedia.java b/server/user.jobengine.osgi.commons/src/user/commons/UploadableMedia.java new file mode 100644 index 00000000..80c05db1 --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/user/commons/UploadableMedia.java @@ -0,0 +1,16 @@ +package user.commons; + +import com.ibm.nosql.json.api.BasicDBObject; + +public class UploadableMedia extends BasicDBObject { + + public static UploadableMedia create(String title, String fileName, long storeUriId, long mediaId) { + UploadableMedia archive = new UploadableMedia(); + archive.put("title", title); + archive.put("fileName", fileName); + archive.put("storeUriId", storeUriId); + archive.put("mediaId", mediaId); + return archive; + } + +} diff --git a/server/user.jobengine.osgi.commons/src/user/commons/harris/HarrisRecord.java b/server/user.jobengine.osgi.commons/src/user/commons/harris/HarrisRecord.java new file mode 100644 index 00000000..cf4896cb --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/user/commons/harris/HarrisRecord.java @@ -0,0 +1,72 @@ +package user.commons.harris; + +import java.text.SimpleDateFormat; +import java.util.Comparator; + +public class HarrisRecord { + + public static SimpleDateFormat sdfTimeFormat = new SimpleDateFormat("HH:mm:ss"); + + public static Comparator getComparator() { + + Comparator c = new Comparator() { + + @Override + public int compare(HarrisRecord r1, HarrisRecord r2) { + if (r1.time == r2.time) { + return 0; + } else if (r1.time < r2.time) { + return -1; + } else { + return 1; + } + } + + @Override + public boolean equals(Object obj) { + return super.equals(obj); + } + }; + + return c; + } + + private long time = 0; + public String fileName = ""; + + public String description = ""; + + public HarrisRecord() { + } + + public HarrisRecord(long time, String fileName, String description) { + this.time = time; + this.fileName = fileName; + this.description = description; + } + + public String getDescription() { + return description; + } + + public String getFileName() { + return fileName; + } + + public long getTime() { + return time; + } + + public String getTimeAsString() { + return sdfTimeFormat.format(time); + } + + public void setTimeAsString(String strTime) { + try { + time = sdfTimeFormat.parse(strTime).getTime(); + } catch (Exception e) { + time = 0; + } + } + +} diff --git a/server/user.jobengine.osgi.commons/src/user/commons/harris/VICFileParser.java b/server/user.jobengine.osgi.commons/src/user/commons/harris/VICFileParser.java new file mode 100644 index 00000000..63c8c72b --- /dev/null +++ b/server/user.jobengine.osgi.commons/src/user/commons/harris/VICFileParser.java @@ -0,0 +1,126 @@ +package user.commons.harris; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.ArrayList; +import java.util.Hashtable; +import java.util.List; + +import org.apache.commons.lang.StringUtils; +import org.apache.logging.log4j.LogManager; +import org.apache.logging.log4j.Logger; + +public class VICFileParser { + + public class ColumnPos { + public int start; + public int end; + + public ColumnPos(int start, int end) { + this.start = start; + this.end = end; + } + } + + private static final Logger logger = LogManager.getLogger(); + private Hashtable columPositions; + private List records; + + public VICFileParser(Path vicFile, String lineFormat, String validTypeCodes) throws IOException { + if (!vicFile.toFile().exists()) { + logger.debug("Skipping non existing file {}", vicFile); + return; + } + + parseFormat(lineFormat); + + List lines = Files.readAllLines(vicFile); + if (lines == null) { + logger.debug("Skipping empty file {}", vicFile); + return; + } + + String typeCodes = validTypeCodes.toUpperCase(); + typeCodes = typeCodes.replace("SPACE", " "); + + processLines(vicFile.toString(), lines, typeCodes); + } + + private HarrisRecord createRecord(String fileName, String line) { + HarrisRecord hh = new HarrisRecord(); + ColumnPos cp; + + cp = columPositions.get("T"); + String timeString = line.substring(cp.start, cp.end); + timeString = timeString.trim(); + hh.setTimeAsString(timeString); + + hh.fileName = fileName; + + cp = columPositions.get("D"); + if ((cp.start + 1) <= line.length()) { + hh.description = line.substring(cp.start); + hh.description = hh.description.trim(); + } else { + hh.description = ""; + } + return hh; + } + + public List getRecords() { + return records; + } + + private void parseFormat(String lineFormat) { + columPositions = new Hashtable<>(); + + for (int i = 0; i < lineFormat.length(); i++) { + char c = lineFormat.charAt(i); + String key = "" + c; + ColumnPos cp = columPositions.get(key); + if (cp == null) { + cp = new ColumnPos(i, i + 1); + columPositions.put(key, cp); + } else { + cp.end = i + 1; + } + } + } + + private void processLines(String vicFileName, List lines, String typeCodes) { + int minLength = columPositions.get("M").end; + int nr = 0; + + for (String line : lines) { + nr++; + if (line.length() < minLength) { + logger.debug("Skipping line {} from {}, line is too short.", nr, vicFileName); + continue; + } + + ColumnPos cp = columPositions.get("A"); + String type = line.substring(cp.start, cp.end).toUpperCase(); + type = type.trim(); + + //A tipus szerepel a valid type kodok kozott? + if (typeCodes.indexOf(type) == -1) { + logger.debug("Skipping line {} from {}, type is not relevant.", nr, vicFileName); + continue; + } + + cp = columPositions.get("M"); + String fileName = line.substring(cp.start, cp.end).trim(); + if (StringUtils.isBlank(fileName)) { + logger.debug("Skipping line {} from {}, file name is empty.", nr, vicFileName); + continue; + } + + HarrisRecord hh = createRecord(fileName, line); + if (records == null) + records = new ArrayList<>(); + records.add(hh); + } + } + +} diff --git a/server/user.jobengine.osgi.commons/src/user/commons/mediatool/MediaInfo.java b/server/user.jobengine.osgi.commons/src/user/commons/mediatool/MediaInfo.java index f1044180..7a46ad5c 100644 --- a/server/user.jobengine.osgi.commons/src/user/commons/mediatool/MediaInfo.java +++ b/server/user.jobengine.osgi.commons/src/user/commons/mediatool/MediaInfo.java @@ -45,6 +45,10 @@ public class MediaInfo { if (decoder != null && decoder.getCodecType() == MediaDescriptor.Type.MEDIA_VIDEO) { videoStreamId = i; frames = stream.getNumFrames(); + + if (frames == 0) + frames = stream.getDuration(); + break; } } diff --git a/server/user.jobengine.osgi.commons/src/user/commons/remotestore/FtpDirectoryLister.java b/server/user.jobengine.osgi.commons/src/user/commons/remotestore/FtpDirectoryLister.java index 429deed6..a9275da1 100644 --- a/server/user.jobengine.osgi.commons/src/user/commons/remotestore/FtpDirectoryLister.java +++ b/server/user.jobengine.osgi.commons/src/user/commons/remotestore/FtpDirectoryLister.java @@ -4,6 +4,7 @@ import java.io.InputStream; import java.io.OutputStream; import java.sql.Timestamp; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; import org.apache.commons.lang.NotImplementedException; @@ -11,7 +12,6 @@ import org.apache.commons.lang.StringUtils; import org.apache.commons.net.ftp.FTP; import org.apache.commons.net.ftp.FTPClient; import org.apache.commons.net.ftp.FTPFile; -import org.apache.commons.net.ftp.FTPFileFilter; import user.commons.IRemoteFileListCallback; import user.commons.RemoteFile; @@ -102,6 +102,16 @@ public class FtpDirectoryLister implements IDirectoryLister { return ftpClient; } + private RemoteFile createRemoteFile(FTPFile ftpFile) { + RemoteFile file = new RemoteFile(); + file.setName(ftpFile.getName()); + file.setCreated(new Timestamp(ftpFile.getTimestamp().getTimeInMillis())); + file.setModify(new Timestamp(ftpFile.getTimestamp().getTimeInMillis())); + file.setIsFolder(ftpFile.isDirectory()); + file.setSize(ftpFile.getSize()); + return file; + } + @Override public void delete(RemoteFile remoteFile) throws Exception { if (remoteFile.getSourceObject() instanceof FTPFile) { @@ -123,17 +133,8 @@ public class FtpDirectoryLister implements IDirectoryLister { connect(); if (ftpClient == null) return false; - // FTPFile[] files = ftpClient.listFiles(ftpClient.printWorkingDirectory(), new FTPFileFilter() { - // @Override - // public boolean accept(FTPFile paramFTPFile) { - // return fileName.equals(paramFTPFile.getName()); - // } - // }); - FTPFile[] files = ftpClient.listFiles(null, new FTPFileFilter() { - @Override - public boolean accept(FTPFile paramFTPFile) { - return !paramFTPFile.isDirectory() && fileName.toLowerCase().equals(paramFTPFile.getName().toLowerCase()); - } + FTPFile[] files = ftpClient.listFiles(null, ftpFile -> { + return !ftpFile.isDirectory() && fileName.toLowerCase().equals(ftpFile.getName().toLowerCase()); }); return files.length == 1; @@ -182,14 +183,10 @@ public class FtpDirectoryLister implements IDirectoryLister { List result = new ArrayList(); connect(); if (ftpClient != null) { - FTPFile[] files = ftpClient.listFiles(); + + FTPFile[] files = ftpClient.mlistDir(); for (FTPFile ftpFile : files) { - RemoteFile file = new RemoteFile(); - file.setName(ftpFile.getName()); - file.setCreated(new Timestamp(ftpFile.getTimestamp().getTimeInMillis())); - file.setModify(new Timestamp(ftpFile.getTimestamp().getTimeInMillis())); - file.setIsFolder(ftpFile.isDirectory()); - file.setSize(ftpFile.getSize()); + RemoteFile file = createRemoteFile(ftpFile); result.add(file); } // cleanUp(); @@ -204,8 +201,23 @@ public class FtpDirectoryLister implements IDirectoryLister { @Override public List list(String wildCard) throws Exception { - // TODO Auto-generated method stub - return null; + List result = new ArrayList(); + connect(); + + if (ftpClient != null) { + List extensions = Arrays.asList((Object[]) wildCard.split("\\|")); + FTPFile[] files = ftpClient.mlistDir(null, ftpFile -> { + String name = ftpFile.getName(); + String lowerCaseName = name.toLowerCase(); + return !ftpFile.isDirectory() && extensions.contains(lowerCaseName.substring(lowerCaseName.indexOf("."))); + }); + for (FTPFile ftpFile : files) { + RemoteFile file = createRemoteFile(ftpFile); + result.add(file); + } + cleanUp(); + } + return result; } @Override @@ -215,12 +227,7 @@ public class FtpDirectoryLister implements IDirectoryLister { } private RemoteFile toRemoteFile(FTPFile file) { - RemoteFile result = new RemoteFile(); - result.setName(file.getName()); - result.setCreated(new Timestamp(file.getTimestamp().getTimeInMillis())); - result.setModify(new Timestamp(file.getTimestamp().getTimeInMillis())); - result.setIsFolder(file.isDirectory()); - result.setSize(file.getSize()); + RemoteFile result = createRemoteFile(file); result.setSourceObject(file); return result; } diff --git a/server/user.jobengine.osgi.commons/test/user/common/harris/test/VICParserTest.java b/server/user.jobengine.osgi.commons/test/user/common/harris/test/VICParserTest.java new file mode 100644 index 00000000..94d6dcc4 --- /dev/null +++ b/server/user.jobengine.osgi.commons/test/user/common/harris/test/VICParserTest.java @@ -0,0 +1,28 @@ +package user.common.harris.test; + +import static org.junit.Assert.assertEquals; + +import java.nio.file.Path; +import java.nio.file.Paths; + +import org.junit.BeforeClass; +import org.junit.Test; + +import user.commons.harris.VICFileParser; + +public class VICParserTest { + @BeforeClass + public static void initialize() throws Exception { + } + + @Test + public void testParser() throws Exception { + Path vicFile = Paths.get("/opt/PASA-DB/VIC/EDIT 10.VIC"); + String lineFormat = "A TTTTTTTT LLLLLLLLLLL MMMMMMMMMMMMMMMMMMMMMMM X DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"; + String validTypeCodes = "SPACE,E"; + VICFileParser sut = new VICFileParser(vicFile, lineFormat, validTypeCodes); + + assertEquals("IPR000041779_21", sut.getRecords().get(0).getFileName()); + } + +} diff --git a/server/user.jobengine.osgi.db/migrations/20190916130000_ft.sql b/server/user.jobengine.osgi.db/migrations/20190916130000_ft.sql deleted file mode 100644 index f8a5b1fb..00000000 --- a/server/user.jobengine.osgi.db/migrations/20190916130000_ft.sql +++ /dev/null @@ -1,213 +0,0 @@ --- --- Copyright 2010-2016 the original author or authors. --- --- Licensed under the Apache License, Version 2.0 (the "License"); --- you may not use this file except in compliance with the License. --- You may obtain a copy of the License at --- --- http://www.apache.org/licenses/LICENSE-2.0 --- --- Unless required by applicable law or agreed to in writing, software --- distributed under the License is distributed on an "AS IS" BASIS, --- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --- See the License for the specific language governing permissions and --- limitations under the License. --- - --- // Indexer view. --- Migration SQL that makes the change goes here. -CREATE OR REPLACE VIEW VW_ITEMS AS -SELECT - i.id AS itemid, - i.created AS itemcreated, - i.houseid AS itemhouseid, - i.title AS itemtitle, - m.id AS mediaid, - m.created AS mediacreated, - m.archived, - m.length, - it.name AS mediatype, - m.houseid AS mediahouseid, - m.title AS mediatitle, - mf.id AS mediafileid, - mf.houseid AS mediafilehouseid -FROM MEDIAFILE mf -LEFT OUTER JOIN MEDIA m ON (m.id = mf.mediaid) -LEFT OUTER JOIN ITEM i ON (i.id = m.itemid) -LEFT OUTER JOIN ITEMTYPE it ON (it.id = m.itemtypeid) -WHERE mf.storeid = (SELECT id FROM STORE WHERE name='TSM') -@ - -CREATE OR REPLACE VIEW VW_ITEMS_DESCRIPTION AS -SELECT - i.id AS itemid, - i.created AS itemcreated, - i.houseid AS itemhouseid, - i.title AS itemtitle, - i.description AS itemdescription, - m.id AS mediaid, - m.created AS mediacreated, - m.archived, - m.length, - it.name AS mediatype, - m.houseid AS mediahouseid, - m.title AS mediatitle, - m.description AS mediadescription, - mf.id AS mediafileid, - mf.houseid AS mediafilehouseid -FROM MEDIAFILE mf -LEFT OUTER JOIN MEDIA m ON (m.id = mf.mediaid) -LEFT OUTER JOIN ITEM i ON (i.id = m.itemid) -LEFT OUTER JOIN ITEMTYPE it ON (it.id = m.itemtypeid) -WHERE mf.storeid = (SELECT id FROM STORE WHERE name='TSM') -@ - -CREATE OR REPLACE FUNCTION DEFDATE(TS TIMESTAMP) - RETURNS VARCHAR(10) - RETURN -WITH tmp (dd,mm,yyyy,hh,mi,ss,nnnnnn) AS -( - SELECT - SUBSTR( DIGITS (DAY(TS)),9), - SUBSTR( DIGITS (MONTH(TS)),9) , - RTRIM(CHAR(YEAR(TS))) , - SUBSTR( DIGITS (HOUR(TS)),9), - SUBSTR( DIGITS (MINUTE(TS)),9), - SUBSTR( DIGITS (SECOND(TS)),9), - RTRIM(CHAR(MICROSECOND(TS))) - FROM SYSIBM.SYSDUMMY1 -) -SELECT yyyy || mm || dd FROM tmp -@ - - -CREATE OR REPLACE FUNCTION HUNDATE(TS TIMESTAMP) - RETURNS VARCHAR(10) - RETURN -WITH tmp (dd,mm,yyyy,hh,mi,ss,nnnnnn) AS -( - SELECT - SUBSTR( DIGITS (DAY(TS)),9), - SUBSTR( DIGITS (MONTH(TS)),9) , - RTRIM(CHAR(YEAR(TS))) , - SUBSTR( DIGITS (HOUR(TS)),9), - SUBSTR( DIGITS (MINUTE(TS)),9), - SUBSTR( DIGITS (SECOND(TS)),9), - RTRIM(CHAR(MICROSECOND(TS))) - FROM SYSIBM.SYSDUMMY1 -) -SELECT yyyy || '.' || mm || '.' || dd FROM tmp -@ - -CREATE OR REPLACE FUNCTION HIGHLIGHT(content CLOB(400000), starttag VARCHAR(20), endtag VARCHAR(20), pattern VARCHAR(1000)) - RETURNS VARCHAR(32000) - LANGUAGE SQL - NO EXTERNAL ACTION - READS SQL DATA - DETERMINISTIC -BEGIN - DECLARE RESULT VARCHAR(32000) DEFAULT ''; - DECLARE CHUNKSIZE INT DEFAULT 10000; - DECLARE CHUNK VARCHAR(10000); - DECLARE CHUNKSTART INT DEFAULT 1; - DECLARE HITSTART INT DEFAULT 1; - WHILE LENGTH(RESULT) = 0 AND CHUNKSTART < LENGTH(content) DO - SET CHUNK = DBMS_LOB.SUBSTR(content, CHUNKSIZE, CHUNKSTART); - SET HITSTART = REGEXP_INSTR(CHUNK, pattern, 1, 1, 0, 'i'); - IF HITSTART > 0 THEN - IF CHUNKSTART + HITSTART > 100 THEN - SET CHUNK = DBMS_LOB.SUBSTR(content, 200, CHUNKSTART + HITSTART - 100); - ELSE - SET CHUNK = DBMS_LOB.SUBSTR(content, 200, CHUNKSTART); - END IF; - SET CHUNK = REPLACE(CHUNK, '<', ''); - SET CHUNK = REPLACE(CHUNK, '>', ''); - SET RESULT = '...' || REGEXP_REPLACE(CHUNK, pattern, starttag||'$0'||endtag,1,0,'i') || '...'; - END IF; - SET CHUNKSTART = CHUNKSTART + CHUNKSIZE; - END WHILE; - RETURN RESULT; -END -@ - -CREATE OR REPLACE FUNCTION FULLDESC(IN initemid BIGINT, IN inmediaid BIGINT, IN inmediafileid BIGINT) - RETURNS CLOB(400000) - RETURN -SELECT - COALESCE(hundate(archived), '') || ' ' || - COALESCE(defdate(archived), '') || ' ' || - COALESCE(itemhouseid, '') || ' ' || - COALESCE(itemtitle, '') || ' ' || - COALESCE(itemdescription,'') || ' ' || - COALESCE(mediahouseid, '') || ' ' || - COALESCE(mediatitle, '') || ' ' || - COALESCE(mediadescription, '') || ' ' || - COALESCE(mediafilehouseid, '') -FROM VW_ITEMS_DESCRIPTION -WHERE itemid = initemid AND mediaid = inmediaid AND mediafileid = inmediafileid -@ - -CREATE OR REPLACE TRIGGER TRG_MEDIAFILE_AFTER_INSERT AFTER INSERT ON MEDIAFILE - REFERENCING NEW AS n - FOR EACH ROW - WHEN (n.storeid = (SELECT id FROM STORE WHERE name='TSM')) -BEGIN ATOMIC - INSERT INTO mediadescription (itemid, mediaid, mediafileid, description) - SELECT - itemid, - mediaid, - mediafileid, - fulldesc(itemid, mediaid, mediafileid) - FROM VW_ITEMS - WHERE mediafileid = n.id; -END -@ - -CREATE OR REPLACE TRIGGER TRG_MEDIAFILE_AFTER_DELETE AFTER DELETE ON MEDIAFILE - REFERENCING OLD AS o - FOR EACH ROW - WHEN (o.storeid = (SELECT id FROM STORE WHERE name='TSM')) -BEGIN ATOMIC - DELETE FROM MEDIADESCRIPTION WHERE mediafileid = o.id; -END -@ - -CREATE OR REPLACE TRIGGER TRG_MEDIA_AFTER_UPDATE AFTER UPDATE ON MEDIA - REFERENCING NEW AS n - FOR EACH ROW -BEGIN ATOMIC - UPDATE MEDIADESCRIPTION SET description = FULLDESC(itemid, mediaid, mediafileid) WHERE mediaid = n.id; -END -@ - -CREATE OR REPLACE TRIGGER TRG_ITEM_AFTER_UPDATE AFTER UPDATE ON ITEM - REFERENCING NEW AS n - FOR EACH ROW -BEGIN ATOMIC - UPDATE MEDIADESCRIPTION SET description = FULLDESC(itemid, mediaid, mediafileid) WHERE itemid = n.id; -END -@ - --- //@UNDO --- SQL to undo the change goes here. -DROP TRIGGER TRG_ITEM_AFTER_UPDATE -@ -DROP TRIGGER TRG_MEDIA_AFTER_UPDATE -@ -DROP TRIGGER TRG_MEDIAFILE_AFTER_DELETE -@ -DROP TRIGGER TRG_MEDIAFILE_AFTER_INSERT -@ -DROP VIEW VW_ITEMS_DESCRIPTION -@ -DROP VIEW VW_ITEMS -@ -DROP FUNCTION FULLDESC -@ -DROP FUNCTION HIGHLIGHT -@ -DROP FUNCTION HUNDATE -@ -DROP FUNCTION DEFDATE -@ - diff --git a/server/user.jobengine.osgi.db/sql/3-EnableJSON.db2 b/server/user.jobengine.osgi.db/sql/3-EnableJSON.db2 index b300c9cd..c584f2c8 100644 --- a/server/user.jobengine.osgi.db/sql/3-EnableJSON.db2 +++ b/server/user.jobengine.osgi.db/sql/3-EnableJSON.db2 @@ -1,5 +1,10 @@ ---elsore elbassza: https://www.ibm.com/support/pages/551-error-when-enabling-json-environment +--elsore elrontja: https://www.ibm.com/support/pages/551-error-when-enabling-json-environment --execute with -- cd /home/db2admin/sqllib/json/bin -- ./db2nosql.sh -db MC -user db2admin -password password -enable true + +11.5-től: + +./db2nosql.sh -setup disable +./db2nosql.sh -setup enable \ No newline at end of file diff --git a/server/user.jobengine.osgi.db/sql/5-CreateFTIndex.db2 b/server/user.jobengine.osgi.db/sql/5-CreateFTIndex.db2 index 641f3c28..c3f6deb4 100644 --- a/server/user.jobengine.osgi.db/sql/5-CreateFTIndex.db2 +++ b/server/user.jobengine.osgi.db/sql/5-CreateFTIndex.db2 @@ -1,44 +1,6 @@ db2ts "ENABLE DATABASE FOR TEXT CONNECT TO MC" db2ts start for text -db2ts "drop index item_title for text connect to mc" -db2ts "drop index item_desc for text connect to mc" -db2ts "drop index item_houseid for text connect to mc" -db2ts "drop index media_title for text connect to mc" -db2ts "drop index media_desc for text connect to mc" -db2ts "drop index media_houseid for text connect to mc" -db2ts "drop index mediafile_houseid for text connect to mc" - - -db2ts "create index item_title for text on item(title) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) connect to mc" -db2ts "create index item_desc for text on item(description) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" -db2ts "create index item_houseid for text on item(houseId) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" -db2ts "create index media_title for text on media(title) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" -db2ts "create index media_desc for text on media(description) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" -db2ts "create index media_houseid for text on media(houseid) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" -db2ts "create index mediafile_houseid for text on mediafile(houseid) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" - - -db2ts "update index item_title for text connect to mc" -db2ts "update index item_desc for text connect to mc" -db2ts "update index item_houseid for text connect to mc" -db2ts "update index media_title for text connect to mc" -db2ts "update index media_desc for text connect to mc" -db2ts "update index media_houseid for text connect to mc" -db2ts "update index mediafile_houseid for text connect to mc" - - -db2ts "create index media_title1 for text on clobmedia(title) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" -db2ts "create index media_desc1 for text on clobmedia(description) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" -db2ts "create index media_houseid1 for text on clobmedia(houseid) UPDATE FREQUENCY D(*) H(*) M(0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59) UPDATE MINIMUM 1 connect to mc" -db2ts "update index media_title1 for text connect to mc" -db2ts "update index media_desc1 for text connect to mc" -db2ts "update index media_houseid1 for text connect to mc" -db2ts "drop index media_title1 for text connect to mc" -db2ts "drop index media_desc1 for text connect to mc" -db2ts "drop index media_houseid1 for text connect to mc" - - DROP TABLE DB2ADMIN.MEDIADESCRIPTION CREATE TABLE DB2ADMIN.MEDIADESCRIPTION ( diff --git a/server/user.jobengine.osgi.db/src/user/jobengine/db/IItemManager.java b/server/user.jobengine.osgi.db/src/user/jobengine/db/IItemManager.java index b818d885..9f80794c 100644 --- a/server/user.jobengine.osgi.db/src/user/jobengine/db/IItemManager.java +++ b/server/user.jobengine.osgi.db/src/user/jobengine/db/IItemManager.java @@ -61,6 +61,8 @@ public interface IItemManager extends IEntityPersister { MediaFile createMediaFile(String relativePath, FileType fileType, Store store, Media media); + MediaFile createMediaFile(String relativePath, String fileTypeName, String storeName); + Metadata createMetadata(MetadataElement mde, GuiType guiType, MdType... flags); Metadata createMetadata(MetadataElement mde, ListType listType, GuiType guiType, MdType... flags); @@ -305,6 +307,10 @@ public interface IItemManager extends IEntityPersister { */ Store getStore(String name); + StoreUri getStoreUri(long id); + + StoreUri getStoreUri(String targetStoreName, RemoteStoreProtocol local) throws ItemManagerException; + /** * Elkér a StoreDAO-tól, egy olyan Rendszer tárolót, amely a lowres paraméterben kapott érték alapján vagy kisfelbontású videók tárolója, vagy nem. * diff --git a/server/user.jobengine.osgi.db/src/user/jobengine/db/ItemManager.java b/server/user.jobengine.osgi.db/src/user/jobengine/db/ItemManager.java index 70c12c69..a7038b68 100644 --- a/server/user.jobengine.osgi.db/src/user/jobengine/db/ItemManager.java +++ b/server/user.jobengine.osgi.db/src/user/jobengine/db/ItemManager.java @@ -227,6 +227,19 @@ public class ItemManager extends MemoryCache implements IItemManager { return entity; } + @Override + public MediaFile createMediaFile(String relativePath, String fileTypeName, String storeName) { + traceIn(); + MediaFile entity = new MediaFile(); + entity.setPersister(this); + entity.setRelativePath(relativePath); + entity.setFileStructInfo(""); + entity.setStore(getStore(storeName)); + entity.setFileType(getFileType(fileTypeName)); + traceOut(); + return entity; + } + @Override public Metadata createMetadata(MetadataElement mde, GuiType guiType, MdType... flags) { return createMetadata(mde, ListType.LABEL, guiType, null, null, null, flags); @@ -612,19 +625,6 @@ public class ItemManager extends MemoryCache implements IItemManager { return context; } - @Override - public List getDynamicItemTypes() { - List result = new ArrayList(); - List itemTypes = getItemTypes(); - if (itemTypes != null) { - for (ItemType it : itemTypes) { - if (!it.getIsStatic()) - result.add(it); - } - } - return result; - } - // @Override // public long getExistingRundownMedia(String houseid) { // final long[] result = { 0 }; @@ -648,6 +648,19 @@ public class ItemManager extends MemoryCache implements IItemManager { // return result[0]; // } + @Override + public List getDynamicItemTypes() { + List result = new ArrayList(); + List itemTypes = getItemTypes(); + if (itemTypes != null) { + for (ItemType it : itemTypes) { + if (!it.getIsStatic()) + result.add(it); + } + } + return result; + } + @Override public FileType getFileType(String name) { FileTypeDAO dao = (FileTypeDAO) getBaseDAO(FileType.class); @@ -911,6 +924,24 @@ public class ItemManager extends MemoryCache implements IItemManager { return (Store) dao.getByName(name); } + @Override + public StoreUri getStoreUri(long id) { + return (StoreUri) get(StoreUri.class, id); + } + + @Override + public StoreUri getStoreUri(String storeName, RemoteStoreProtocol protocol) throws ItemManagerException { + Store store = getStore(storeName); + if (store == null) + throw new ItemManagerException("Store not available: " + storeName); + + StoreUri storeUri = store.getSourceStoreUri(protocol); + if (storeUri == null) + throw new ItemManagerException(protocol + " store URI not available on " + storeName); + + return storeUri; + } + @Override public Store getSystemStore(boolean lowres) { Store result = null; diff --git a/server/user.jobengine.osgi.db/src/user/jobengine/db/Store.java b/server/user.jobengine.osgi.db/src/user/jobengine/db/Store.java index fe13a14e..167eb6d3 100644 --- a/server/user.jobengine.osgi.db/src/user/jobengine/db/Store.java +++ b/server/user.jobengine.osgi.db/src/user/jobengine/db/Store.java @@ -26,20 +26,11 @@ public class Store extends EntityBase implements Serializable { return this.name; } - @SuppressWarnings("unchecked") - public List getStoreUris() { - if (this.storeUris == null) { - StoreUriDAO dao = (StoreUriDAO) ItemManager.getInstance().getBaseDAO(StoreUri.class); - this.storeUris = (List) (List) dao.getAll(getId()); - } - return this.storeUris; - } - public StoreUri getSourceStoreUri(RemoteStoreProtocol protocol) { StoreUri result = null; List uris = getStoreUris(); for (StoreUri uri : uris) { - if (uri.getProtocol() == protocol) { + if (uri.getProtocol().equals(protocol)) { if (uri.isSource()) { result = uri; break; @@ -49,6 +40,15 @@ public class Store extends EntityBase implements Serializable { return result; } + @SuppressWarnings("unchecked") + public List getStoreUris() { + if (this.storeUris == null) { + StoreUriDAO dao = (StoreUriDAO) ItemManager.getInstance().getBaseDAO(StoreUri.class); + this.storeUris = (List) (List) dao.getAll(getId()); + } + return this.storeUris; + } + public StoreUri getTargetStoreUri(RemoteStoreProtocol protocol) { StoreUri result = null; List uris = getStoreUris(); diff --git a/server/user.jobengine.osgi.server/src/user/jobengine/server/JobRuntime.java b/server/user.jobengine.osgi.server/src/user/jobengine/server/JobRuntime.java index 93806715..623b5a21 100644 --- a/server/user.jobengine.osgi.server/src/user/jobengine/server/JobRuntime.java +++ b/server/user.jobengine.osgi.server/src/user/jobengine/server/JobRuntime.java @@ -216,6 +216,11 @@ public class JobRuntime extends Job implements IJobRuntime { public void cancelForkPrepare() throws InterruptedException { if (forkSempahore != null) forkSempahore.release(); + + if (spawnJobListener != null) { + getJobEngine().removeJobChangedEventListener(spawnJobListener); + spawnJobListener = null; + } } @Override @@ -692,7 +697,7 @@ public class JobRuntime extends Job implements IJobRuntime { private Semaphore forkSempahore; private IJobChangedListener jobChangedListener; private List childrenIDs; - + * */ @Override diff --git a/server/user.jobengine.osgi.server/src/user/jobengine/server/JobStepExecutor.java b/server/user.jobengine.osgi.server/src/user/jobengine/server/JobStepExecutor.java index ddfb04d3..94270d8c 100644 --- a/server/user.jobengine.osgi.server/src/user/jobengine/server/JobStepExecutor.java +++ b/server/user.jobengine.osgi.server/src/user/jobengine/server/JobStepExecutor.java @@ -307,7 +307,7 @@ public class JobStepExecutor implements IJobStepExecutor { @Override public void submit(IJobRuntime... jobRuntime) { for (IJobRuntime r : jobRuntime) { - logger.info("Adding job {} to executor queue", r.getId()); + logger.info("Adding job {} to executor queue '{}'", r.getId(), getStepUnitName()); r.setCurrentStep(stepUnitName); queue.put(r); } diff --git a/server/user.jobengine.osgi.server/test/user/jobengine/server/IT/AMCTests.java b/server/user.jobengine.osgi.server/test/user/jobengine/server/IT/AMCTests.java index adc30eaa..af911e90 100644 --- a/server/user.jobengine.osgi.server/test/user/jobengine/server/IT/AMCTests.java +++ b/server/user.jobengine.osgi.server/test/user/jobengine/server/IT/AMCTests.java @@ -6,6 +6,7 @@ import static org.junit.Assert.assertNotNull; import java.io.FileInputStream; import java.net.URL; import java.nio.file.Files; +import java.nio.file.Path; import java.nio.file.Paths; import java.util.HashMap; import java.util.Map; @@ -17,15 +18,20 @@ import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; +import user.commons.DownloadableMedia; import user.commons.JobStatus; import user.commons.StoreUri; +import user.commons.harris.VICFileParser; import user.commons.remotestore.RemoteStoreProtocol; import user.jobengine.db.IItemManager; +import user.jobengine.db.Item; import user.jobengine.db.ItemManager; +import user.jobengine.db.Media; import user.jobengine.db.Store; import user.jobengine.server.IJobEngine; import user.jobengine.server.IJobRuntime; import user.jobengine.server.JobEngine; +import user.jobengine.server.JobEngineException; public class AMCTests { private static IItemManager manager; @@ -43,46 +49,145 @@ public class AMCTests { manager = new ItemManager(); manager.connect(); - - jobEngine = new JobEngine(); - jobEngine.startup(); - jobEngine.bindItemManagerService(manager); - } @AfterClass public static void terminate() throws Exception { - jobEngine.shutdown(); manager.disconnect(); } + StoreUri ensureUri(String storeName, String uri, boolean isSystem, boolean isLowres, RemoteStoreProtocol protocol) { + Store store = manager.getStore(storeName); + StoreUri result = null; + if (store == null) { + store = manager.createStore(storeName, isSystem, isLowres); + store.add(); + + result = manager.createStoreUri(protocol, uri); + result.setSource(true); + result.setTarget(true); + result.setStoreId(store.getId()); + result.add(); + } else { + result = store.getSourceStoreUri(protocol); + result.setPersister(manager); + store.setPersister(manager); + } + return result; + } + @Test public void testForkValidateAndArchive() throws Exception { + Path statusPath = Paths.get(output, ".STATUS"); + Files.createDirectories(statusPath); + + StoreUri nexioUri = ensureUri("NEXIO", System.getProperty("nexio.host"), false, false, RemoteStoreProtocol.FTP); + StoreUri tempUri = ensureUri("LOCAL", output, false, false, RemoteStoreProtocol.LOCAL); + StoreUri tsmUri = ensureUri("TSM", "xxx", true, false, RemoteStoreProtocol.TSM); + DownloadableMedia downloadable = new DownloadableMedia(); + String fileName = "fileName.MXF"; + long frames = 1000; + Path escortFile = Paths.get(statusPath.toString(), "NEXIO.TEST-DANI.MXF.json"); + + downloadable.put("fileName", fileName); + downloadable.put("frames", frames); + downloadable.put("storeUriId", nexioUri.getId()); + Files.write(escortFile, downloadable.toPrettyString("").getBytes()); + + String childTemplate = "validate-and-archive.xml"; + jobEngine = new JobEngine() { + @Override + public IJobRuntime submit(String template, String name, Map parameters) throws JobEngineException { + if (childTemplate.equals(template)) { + assertEquals(nexioUri.getId(), ((StoreUri) parameters.get("sourceStoreUri")).getId()); + assertEquals(tempUri.getId(), ((StoreUri) parameters.get("tempStoreUri")).getId()); + assertEquals(tsmUri.getId(), ((StoreUri) parameters.get("tsmStoreUri")).getId()); + assertEquals(fileName, parameters.get("sourceFileName")); + assertEquals(fileName, parameters.get("tsmFileName")); + assertEquals(frames, parameters.get("expectedFrameNumber")); + assertEquals(escortFile.toAbsolutePath().toString(), parameters.get("escortFile")); + return null; + } + return super.submit(template, name, parameters); + } + + }; + jobEngine.startup(); + jobEngine.bindItemManagerService(manager); + + Map jobParams = new HashMap<>(); + jobParams.put("storeName", "LOCAL"); + jobParams.put("template", childTemplate); + jobParams.put("limit", 1); + CountDownLatch finishLatch = new CountDownLatch(1); + + IJobRuntime jobRuntime = jobEngine.submit(null, e -> { + if (e.isRuntimeTerminated()) + finishLatch.countDown(); + }, "fork-validate-and-archive.xml", "Fork validate and archive", jobParams); + + if (jobRuntime != null) + finishLatch.await(); + + FileUtils.deleteDirectory(Paths.get(output).toFile()); + jobEngine.shutdown(); + } + + @Test + public void testGenericArchiveChecker() throws Exception { + //Tesztelni egy helyi FTP-n lehet + + jobEngine = new JobEngine(); + jobEngine.startup(); + jobEngine.bindItemManagerService(manager); + + String storeName = "Local FTP"; + StoreUri storeUri = ensureUri(storeName, "localhost", false, false, RemoteStoreProtocol.FTP); + if (!"admin".equals(storeUri.getUserName())) { + storeUri.setUserName("dani"); + storeUri.setPassword("dani"); + storeUri.modify(); + } + Files.createDirectories(Paths.get(output)); - DownloadableArchive media = new DownloadableArchive(); + + Map jobParams = new HashMap<>(); + jobParams.put("storeName", storeName); + jobParams.put("protocol", "FTP"); + jobParams.put("wildCard", ".mxf|.mov"); + jobParams.put("outputPath", output); + jobParams.put("limit", 0); + + CountDownLatch finishLatch = new CountDownLatch(1); + jobEngine.addJobChangedEventListener(e -> { + }); + + IJobRuntime jobRuntime = jobEngine.submit(null, e -> { + if (e.isRuntimeTerminated()) + finishLatch.countDown(); + }, "generic-archive-checker.xml", "Generic archive check", jobParams); + + if (jobRuntime != null) + finishLatch.await(); + + FileUtils.deleteDirectory(Paths.get(output).toFile()); + jobEngine.shutdown(); + + assertNotNull(jobRuntime); + assertEquals(JobStatus.FINISHED, jobRuntime.getStatus()); + } @Test - public void testNexioChecker() throws Exception { + public void testNexioArchiveChecker() throws Exception { //Tesztelni a HirTV-n lehet + + jobEngine = new JobEngine(); + jobEngine.startup(); + jobEngine.bindItemManagerService(manager); + String storeName = "NEXIO"; - Store nexioStore = manager.getStore(storeName); - StoreUri storeUri = null; - if (nexioStore == null) { - nexioStore = manager.createStore(storeName, false, false); - nexioStore.add(); - - storeUri = manager.createStoreUri(RemoteStoreProtocol.NEXIO, System.getProperty("nexio.host")); - storeUri.setSource(true); - storeUri.setTarget(true); - storeUri.setStoreId(nexioStore.getId()); - storeUri.add(); - } else { - storeUri = nexioStore.getSourceStoreUri(RemoteStoreProtocol.NEXIO); - storeUri.setPersister(manager); - nexioStore.setPersister(manager); - } - CountDownLatch finishLatch = new CountDownLatch(1); + ensureUri(storeName, System.getProperty("nexio.host"), false, false, RemoteStoreProtocol.NEXIO); Files.createDirectories(Paths.get(output)); @@ -91,24 +196,131 @@ public class AMCTests { jobParams.put("outputPath", output); jobParams.put("limit", 1); + CountDownLatch finishLatch = new CountDownLatch(1); jobEngine.addJobChangedEventListener(e -> { }); IJobRuntime jobRuntime = jobEngine.submit(null, e -> { if (e.isRuntimeTerminated()) finishLatch.countDown(); - }, "nexio-checker.xml", "NEXIO check", jobParams); + }, "nexio-archive-checker.xml", "NEXIO archive check", jobParams); if (jobRuntime != null) finishLatch.await(); - storeUri.remove(); - nexioStore.remove(); + FileUtils.deleteDirectory(Paths.get(output).toFile()); + jobEngine.shutdown(); + + assertNotNull(jobRuntime); + assertEquals(JobStatus.FINISHED, jobRuntime.getStatus()); + + } + + @Test + public void testNexioMissingMaterialChecker() throws Exception { + + jobEngine = new JobEngine(); + jobEngine.startup(); + jobEngine.bindItemManagerService(manager); + + String lineFormat = "A TTTTTTTT LLLLLLLLLLL MMMMMMMMMMMMMMMMMMMMMMM X DDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD"; + String validTypeCodes = "SPACE,E"; + String vicFile = "/opt/PASA-DB/VIC/EDIT 10.VIC"; + VICFileParser parser = new VICFileParser(Paths.get(vicFile), lineFormat, validTypeCodes); + String fileName = parser.getRecords().get(0).getFileName(); + + Item item = manager.createItem("Generic", fileName, fileName, null); + item.add(); + Media media = manager.createMedia("Generic", fileName, fileName, null); + media.setItemId(item.getId()); + media.add(); + + String escortStoreName = "LOCAL"; + ensureUri(escortStoreName, output, false, false, RemoteStoreProtocol.LOCAL); + String targetStoreName = "NEXIO"; + ensureUri(targetStoreName, System.getProperty("nexio.host"), false, false, RemoteStoreProtocol.FTP); + + Files.createDirectories(Paths.get(output)); + + Map jobParams = new HashMap<>(); + jobParams.put("vicFiles", new String[] { vicFile }); + jobParams.put("escortStoreName", escortStoreName); + jobParams.put("targetStoreName", targetStoreName); + jobParams.put("targetProtocol", RemoteStoreProtocol.FTP.toString()); + + CountDownLatch finishLatch = new CountDownLatch(1); + + IJobRuntime jobRuntime = jobEngine.submit(null, e -> { + if (e.isRuntimeTerminated()) + finishLatch.countDown(); + }, "nexio-missingmaterial-checker.xml", "NEXIO missing material check", jobParams); + + if (jobRuntime != null) + finishLatch.await(); FileUtils.deleteDirectory(Paths.get(output).toFile()); + jobEngine.shutdown(); + + media.remove(); + item.remove(); assertNotNull(jobRuntime); assertEquals(JobStatus.FINISHED, jobRuntime.getStatus()); + + } + + @Test + public void testValidateAndArchive() throws Exception { + System.out.println(System.getProperty("user.dir")); + + Path statusPath = Paths.get(output, ".STATUS"); + Files.createDirectories(statusPath); + Path escortFile = Paths.get(statusPath.toString(), "NEXIO.test-dani.mxf.json"); + + StoreUri nexioUri = ensureUri("NEXIO", System.getProperty("nexio.host"), false, false, RemoteStoreProtocol.FTP); + if (nexioUri.getPortNumber() != 2098) { + nexioUri.setUserName("ftp"); + nexioUri.setPassword("ftp"); + nexioUri.setPortNumber(2098); + nexioUri.modify(); + } + StoreUri tempUri = ensureUri("LOCAL", output, false, false, RemoteStoreProtocol.LOCAL); + StoreUri tsmUri = ensureUri("TSM", "xxx", true, false, RemoteStoreProtocol.TSM); + DownloadableMedia downloadable = new DownloadableMedia(); + + String title = "test-dani"; + String fileName = title + ".mxf"; + long frames = 24; + downloadable.put("title", fileName); + downloadable.put("fileName", fileName); + downloadable.put("frames", frames); + downloadable.put("storeUriId", nexioUri.getId()); + Files.write(escortFile, downloadable.toPrettyString("").getBytes()); + + jobEngine = new JobEngine(); + jobEngine.startup(); + jobEngine.bindItemManagerService(manager); + + Map jobParams = new HashMap<>(); + jobParams.put("sourceStoreUri", nexioUri); + jobParams.put("tempStoreUri", tempUri); + jobParams.put("tsmStoreUri", tsmUri); + jobParams.put("sourceFileName", fileName); + jobParams.put("tsmFileName", "fileName"); + jobParams.put("expectedFrameNumber", frames); + jobParams.put("escortFile", escortFile.toAbsolutePath().toString()); + CountDownLatch finishLatch = new CountDownLatch(1); + + IJobRuntime jobRuntime = jobEngine.submit(null, e -> { + if (e.isRuntimeTerminated()) + finishLatch.countDown(); + }, "validate-and-archive.xml", "Fork validate and archive", jobParams); + + if (jobRuntime != null) + finishLatch.await(); + + FileUtils.deleteDirectory(Paths.get(output).toFile()); + jobEngine.shutdown(); } } -- 2.54.0