01: /*
02: * File: roElementAction.java
03: * Project: jMOS, com.aranova.java.jmos.messages.profile2
04: * Revision: 0.9.1
05: * Date: 18-ene-2006 10:16:30
06: *
07: * Copyright (C) Aragón Innovación Tecnológica S.L.L.
08: * All rights reserved.
09: *
10: * This software is distributed under the terms of the Aranova License version 1.0.
11: * See the terms of the Aranova License in the documentation provided with this software.
12: */
13:
14: package com.aranova.java.jmos.messages.profile2;
15:
16: import com.aranova.java.jmos.annotations.MOSAttribute;
17: import com.aranova.java.jmos.annotations.MOSMessage;
18: import com.aranova.java.jmos.enums.TypeModifier;
19: import com.aranova.java.jmos.enums.TypePort;
20: import com.aranova.java.jmos.messages.Message;
21: import com.aranova.java.jmos.messages.profile.element_source;
22: import com.aranova.java.jmos.messages.profile.element_target;
23:
24: /**
25: * Profile 2 - Performs specific Action on a Running Order.<BR>
26: * <b>Purpose</b><BR>
27: * This command executes INSERT, REPLACE, MOVE, DELETE, and SWAP operations on one or more elements in a playlist. The elements can be either Stories or Items. The command specifies one or more source elements and a single target element. The source elements are those Stories or Items to be acted upon. The target element specifies where in the running order the actions take place.<BR>
28: * As with the story-level and item-level commands, the INSERT and REPLACE operations send new content to the MOS. Thus the element_source tag must contain either all Stories or all Items, depending on which is being inserted or replaced.<BR>
29: * The MOVE, DELETE, and SWAP operations act on content already existing in the MOS. Thus the element_source tag must contain either all Story IDs or all Item IDs, depending on which is being moved, deleted, or swapped.<BR>
30: * <b>Response</b><BR>
31: * {@link roAck roAck}<BR>
32: * <b>Port</b><BR>
33: * MOS Upper Port (10541) - Running Order<BR>
34: *
35: * @author <a href="http://www.aranova.net/contactar/">Daniel Sánchez</a>
36: * @version 0.9.1
37: * @since 0.9.1
38: */
39: @MOSMessage(name="roElementAction",profile=2,port=TypePort.UpperPort,response=roAck.class)
40: public class roElementAction extends Message {
41: @MOSAttribute(name="operation",attibute=true,writeTag=false)
42: private String _operation;
43: @MOSAttribute(name="element_target",modifier=TypeModifier.Optional)
44: private element_target _element_target;
45: @MOSAttribute(name="element_source")
46: private element_source _element_source;
47:
48: /**
49: * @return Returns the element_source.
50: */
51: public element_source getElement_source() {
52: return _element_source;
53: }
54:
55: /**
56: * @param element_source The element_source to set.
57: */
58: public void setElement_source(final element_source element_source) {
59: _element_source = element_source;
60: }
61:
62: /**
63: * @return Returns the element_target.
64: */
65: public element_target getElement_target() {
66: return _element_target;
67: }
68:
69: /**
70: * @param element_target The element_target to set.
71: */
72: public void setElement_target(final element_target element_target) {
73: _element_target = element_target;
74: }
75:
76: /**
77: * @return Returns the operation.
78: */
79: public String getOperation() {
80: return _operation;
81: }
82:
83: /**
84: * @param operation The operation to set.
85: */
86: public void setOperation(final String operation) {
87: _operation = operation;
88: }
89: }
|