Merge branch 'development' into development_on_RHEL6

Former-commit-id: 1a2207e085ad7d30ffad56f42fa3d28c584a8a08
This commit is contained in:
Richard Peter 2013-10-20 21:56:33 -05:00
commit 17d8bd319d
265 changed files with 10130 additions and 5230 deletions

View file

@ -22,6 +22,7 @@ package com.raytheon.uf.viz.datadelivery.notification;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashSet;
import java.util.Iterator;
import java.util.List;
import java.util.Set;
import java.util.TimeZone;
@ -81,6 +82,7 @@ import com.raytheon.uf.viz.datadelivery.utils.NotificationHandler;
* Aug 30, 2013 2314 mpduff Sort the table data on load.
* Sep 16, 2013 2375 mpduff Removed initial sorting.
* Sep 26, 2013 2417 mpduff Fix the find all row selection.
* Oct 15, 2013 2451 skorolev Get highlighted rows after message update.
* </pre>
*
* @author lvenable
@ -200,6 +202,9 @@ public class NotificationTableComp extends TableComp implements ITableFind {
/** Count of messages receieved when the dialog is paused. */
private int messageReceivedWhilePausedCount = 0;
/** Highlighted row ids */
private Set<Integer> selectedRowIds = new HashSet<Integer>();
/**
* Constructor.
*
@ -231,13 +236,14 @@ public class NotificationTableComp extends TableComp implements ITableFind {
*/
private void init() {
startIndex = 0;
endIndex = pageConfig - 1;
pImage = new PriorityImages(this.getShell());
pImage.setPriorityDisplay(PriorityDisplay.ColorNumName);
createColumns();
startIndex = 0;
endIndex = pageConfig - 1;
createBottomPageControls();
}
@ -1150,7 +1156,6 @@ public class NotificationTableComp extends TableComp implements ITableFind {
if (indices != null) {
if (indices.length > 0) {
for (int index : indices) {
if (index >= startIndex && index <= endIndex) {
if (startIndex == 0) {
highlightIndex = index;
@ -1175,6 +1180,30 @@ public class NotificationTableComp extends TableComp implements ITableFind {
table.select(indicesArr);
}
} else {
// Highlight the rows which was selected on the table page.
if (!selectedRowIds.isEmpty()) {
Set<Integer> ids = new HashSet<Integer>();
for (int i = 0; i < filteredTableList.getDataArray().size(); i++) {
NotificationRowData row = filteredTableList.getDataArray()
.get(i);
int idx = row.getId();
if (selectedRowIds.contains(idx)) {
ids.add(i);
}
}
int[] hlts = new int[ids.size()];
int counter = 0;
Iterator<Integer> itr = ids.iterator();
while (itr.hasNext()) {
hlts[counter] = itr.next();
++counter;
}
table.select(hlts);
}
}
updateColumnSortImage();
@ -1204,6 +1233,14 @@ public class NotificationTableComp extends TableComp implements ITableFind {
protected void handleTableSelection(SelectionEvent e) {
if (tableChangeCallback != null) {
tableChangeCallback.tableSelection();
int[] indices = table.getSelectionIndices();
selectedRowIds.clear();
// Extract selected notification ids from the table page
for (int index : indices) {
NotificationRowData rowData = filteredTableList
.getDataRow(index);
selectedRowIds.add(rowData.getId());
}
}
}
@ -1235,6 +1272,9 @@ public class NotificationTableComp extends TableComp implements ITableFind {
selectedPage = Integer.parseInt(selection);
}
// Clean highlighted selections on the page
selectedRowIds.clear();
// Calculate indices
if (selectedPage >= 1) {

View file

@ -3,31 +3,31 @@ package com.raytheon.uf.common.datadelivery.registry;
import java.util.ArrayList;
import java.util.List;
import com.raytheon.uf.common.registry.ebxml.slots.SlotConverter;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.CollectionValueType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.SlotType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.StringValueType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.ValueType;
import com.raytheon.uf.common.registry.constants.CollectionTypes;
import com.raytheon.uf.common.registry.ebxml.slots.SlotConverter;
/**
* A <code>SlotConverter</code> implementation for converting a
* Levels Object into a RegistryObject slot type. A collection
* slot type will be created and it's elements will contain the
* RegistryObject id of the ParameterLevel Objects that would be
* created from the Levels Object. The type for the
* A <code>SlotConverter</code> implementation for converting a Levels Object
* into a RegistryObject slot type. A collection slot type will be created and
* it's elements will contain the RegistryObject id of the ParameterLevel
* Objects that would be created from the Levels Object. The type for the
* collectionSlot will be set to 'Set'.
*
* <pre>
*
*
* SOFTWARE HISTORY
*
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* May 15, 2012 455 jspinks Initial creation
*
*
* </pre>
*
*
* @author jspinks
* @version 1.0
*
@ -43,14 +43,13 @@ public class ParameterLevelsConverter implements SlotConverter {
* The name to use for each SlotType created.
*
* @param slotValue
* The Object that is to be interrogated for slot values. Must
* be a Levels Object or an IllegalArgumentException will be
* thrown.
* The Object that is to be interrogated for slot values. Must be
* a Levels Object or an IllegalArgumentException will be thrown.
*
* @return A List of SlotType Objects extracted from the slotValue Object
* provided. The List will contain one collectionValue slot with
* the keys of all the extracted ParameterLevel Objects from the
* Levels Object.
* provided. The List will contain one collectionValue slot with the
* keys of all the extracted ParameterLevel Objects from the Levels
* Object.
*
* @throws IllegalArgumentException
* If the slotValue Object provided cannot be converted to
@ -58,47 +57,48 @@ public class ParameterLevelsConverter implements SlotConverter {
*
*/
@Override
public List<SlotType> getSlots(String slotName, Object slotValue) throws IllegalArgumentException {
public List<SlotType> getSlots(String slotName, Object slotValue)
throws IllegalArgumentException {
List<SlotType> slots = new ArrayList<SlotType>();
SlotType slot = new SlotType();
slot.setName(slotName);
List<ValueType> collectionValues = new ArrayList<ValueType>();
CollectionValueType cvt = new CollectionValueType();
if (slotValue instanceof Levels) {
Levels levels = (Levels)slotValue;
Levels levels = (Levels) slotValue;
for (Double levelValue : levels.getLevel()) {
ValueType vt = newEntrySlot(levels.getLevelType(), levelValue);
collectionValues.add(vt);
}
} else {
throw new IllegalArgumentException("Object of type "
+ slotValue.getClass().getName()
+ " cannot be converted by "
+ ParameterLevelsConverter.class.getName());
}
else {
throw new IllegalArgumentException("Object of type " + slotValue.getClass().getName() +
" cannot be converted by " + ParameterLevelsConverter.class.getName());
}
cvt.setCollectionValue(collectionValues);
cvt.setCollectionType("urn:oasis:names:tc:ebxml-regrep:CollectionType:Set");
cvt.setCollectionType(CollectionTypes.SET);
slot.setSlotValue(cvt);
slots.add(slot);
return slots;
}
/**
* Create a new value for inclusion in the collection slot values.
*
* @param value
* The Object to extract the slot value from.
*
* The Object to extract the slot value from.
*
* @return A ValueType to add to the collection slot.
*/
private ValueType newEntrySlot(int levelType, double levelValue) {
StringValueType entry = new StringValueType();
entry.setStringValue(Integer.toString(levelType) + "-" + Double.toString(levelValue));
entry.setStringValue(Integer.toString(levelType) + "-"
+ Double.toString(levelValue));
return entry;
}
}

View file

@ -12,6 +12,7 @@ import oasis.names.tc.ebxml.regrep.xsd.rim.v4.StringValueType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.ValueType;
import com.raytheon.uf.common.datadelivery.registry.Time.STEP_UNIT;
import com.raytheon.uf.common.registry.constants.CollectionTypes;
import com.raytheon.uf.common.registry.ebxml.CalendarAttribute;
import com.raytheon.uf.common.registry.ebxml.slots.DateSlotConverter;
import com.raytheon.uf.common.registry.ebxml.slots.SlotConverter;
@ -58,15 +59,15 @@ public class TimeSlotConverter implements SlotConverter {
* @see java.util.Map
*/
@Override
public List<SlotType> getSlots(String slotName, Object slotValue) throws IllegalArgumentException {
public List<SlotType> getSlots(String slotName, Object slotValue)
throws IllegalArgumentException {
List<SlotType> slots = new ArrayList<SlotType>();
SlotType slot = new SlotType();
slot.setName(slotName);
List<ValueType> collectionValues = new ArrayList<ValueType>();
CollectionValueType cvt = new CollectionValueType();
// Handle times for Point types
if (slotValue instanceof PointTime) {
@ -80,11 +81,12 @@ public class TimeSlotConverter implements SlotConverter {
}
}
// Handle Gridded Times
// Handle Gridded Times
} else if (slotValue instanceof GriddedTime) {
GriddedTime t = (GriddedTime)slotValue;
SimpleDateFormat df = new SimpleDateFormat(CalendarAttribute.DATE_TIME_FORMAT);
GriddedTime t = (GriddedTime) slotValue;
SimpleDateFormat df = new SimpleDateFormat(
CalendarAttribute.DATE_TIME_FORMAT);
Calendar current = Calendar.getInstance();
Calendar end = Calendar.getInstance();
@ -93,17 +95,18 @@ public class TimeSlotConverter implements SlotConverter {
STEP_UNIT stepu = STEP_UNIT.valueOf(t.getStepUnit().toUpperCase());
Double step = t.getStep();
// Add One millisecond to handle the case when the step of the Time Object
// is exactly equal to the end time.
// Add One millisecond to handle the case when the step of the Time
// Object
// is exactly equal to the end time.
end.add(Calendar.MILLISECOND, 1);
while (end.after(current)) {
collectionValues.add(newEntrySlot(df.format(current.getTime())));
collectionValues
.add(newEntrySlot(df.format(current.getTime())));
switch (stepu)
{
switch (stepu) {
case SECOND:
current.add(Calendar.SECOND, step.intValue());
break;
@ -124,29 +127,31 @@ public class TimeSlotConverter implements SlotConverter {
break;
}
}
} else {
throw new IllegalArgumentException("Object of type " + slotValue.getClass().getName() +
" cannot be converted by " + TimeSlotConverter.class.getName());
} else {
throw new IllegalArgumentException("Object of type "
+ slotValue.getClass().getName()
+ " cannot be converted by "
+ TimeSlotConverter.class.getName());
}
cvt.setCollectionValue(collectionValues);
cvt.setCollectionType("urn:oasis:names:tc:ebxml-regrep:CollectionType:List");
cvt.setCollectionType(CollectionTypes.LIST);
slot.setSlotValue(cvt);
slots.add(slot);
return slots;
}
/**
* Create a new value for inclusion in the collection slot values.
*
* @param value
* The Object to extract the slot value from.
*
* The Object to extract the slot value from.
*
* @return A ValueType to add to the collection slot.
*/
private ValueType newEntrySlot(String value) {
StringValueType entry = new StringValueType();
entry.setStringValue(value);
return entry;

View file

@ -19,9 +19,7 @@
**/
package com.raytheon.uf.common.registry;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import javax.xml.XMLConstants;
import javax.xml.namespace.NamespaceContext;
@ -48,49 +46,6 @@ import com.sun.xml.bind.marshaller.NamespacePrefixMapper;
public class RegistryNamespaceMapper extends NamespacePrefixMapper implements
NamespaceContext {
/** Map which maps namespaceURIs to prefixes */
public static final Map<String, String> NAMESPACE_PREFIX_MAP = new HashMap<String, String>(
7);
/** Map which maps prefixes to namespaceURIs */
public static final Map<String, String> PREFIX_NAMESPACE_MAP = new HashMap<String, String>(
7);
static {
NAMESPACE_PREFIX_MAP.put("urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0",
"rim");
PREFIX_NAMESPACE_MAP.put("rim",
"urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0");
NAMESPACE_PREFIX_MAP.put("urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0",
"lcm");
PREFIX_NAMESPACE_MAP.put("lcm",
"urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0");
NAMESPACE_PREFIX_MAP.put("urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0",
"spi");
PREFIX_NAMESPACE_MAP.put("spi",
"urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0");
NAMESPACE_PREFIX_MAP.put(
"urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0", "query");
PREFIX_NAMESPACE_MAP.put("query",
"urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0");
NAMESPACE_PREFIX_MAP.put("urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0",
"rs");
PREFIX_NAMESPACE_MAP.put("rs",
"urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0");
NAMESPACE_PREFIX_MAP.put("http://www.w3.org/2005/08/addressing",
"addressing");
PREFIX_NAMESPACE_MAP.put("addressing",
"http://www.w3.org/2005/08/addressing");
NAMESPACE_PREFIX_MAP.put("http://www.w3.org/1999/xlink", "xlink");
PREFIX_NAMESPACE_MAP.put("xlink", "http://www.w3.org/1999/xlink");
}
/**
* Creates a new RegistryNamespaceMapper
*/
@ -101,14 +56,14 @@ public class RegistryNamespaceMapper extends NamespacePrefixMapper implements
@Override
public String getPreferredPrefix(String namespaceURI, String suggestion,
boolean requirePrefix) {
String prefix = NAMESPACE_PREFIX_MAP.get(namespaceURI);
String prefix = EbxmlNamespaces.NAMESPACE_PREFIX_MAP.get(namespaceURI);
return prefix == null ? suggestion : prefix;
}
@Override
public String getNamespaceURI(String prefix) {
String namespaceURI = PREFIX_NAMESPACE_MAP.get(prefix);
String namespaceURI = EbxmlNamespaces.PREFIX_NAMESPACE_MAP.get(prefix);
return namespaceURI == null ? XMLConstants.NULL_NS_URI : namespaceURI;
}

View file

@ -1,52 +0,0 @@
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.common.registry.constants;
/**
*
* Namespace constants
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 4/9/2013 1802 bphillip Initial implementation
* </pre>
*
* @author bphillip
* @version 1
*/
public class Namespaces {
public static final String ADDRESSING_NAMESPACE = "http://www.w3.org/2005/08/addressing";
public static final String EBXML_REGISTRY_INTERFACES_NAMESPACE_URI = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0";
public static final String EBXML_SPI_NAMESPACE_URI = "urn:oasis:names:tc:ebxml-regrep:wsdl:spi:interfaces:4.0";
public static final String EBXML_NOTIFICATION_LISTENER_NAMESPACE_URI = "urn:oasis:names:tc:ebxml-regrep:wsdl:NotificationListener:interfaces:4.0";
public static final String EBXML_RS_NAMESPACE_URI = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0";
public static final String EBXML_RIM_NAMESPACE_URI = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0";
}

View file

@ -39,13 +39,8 @@ package com.raytheon.uf.common.registry.constants;
*/
public class QueryLanguages {
public static final String EJBQL = "urn:oasis:names:tc:ebxml-regrep:QueryLanguage:EJBQL";
public static final String SPARQL = "urn:oasis:names:tc:ebxml-regrep:QueryLanguage:SPARQL";
public static final String SQL_92 = "urn:oasis:names:tc:ebxml-regrep:QueryLanguage:SQL-92";
public static final String HQL = "urn:oasis:names:tc:ebxml-regrep:QueryLanguage:HQL";
public static final String XPATH = "urn:oasis:names:tc:ebxml-regrep:QueryLanguage:XPath";
public static final String XQUERY = "urn:oasis:names:tc:ebxml-regrep:QueryLanguage:XQuery";
}

View file

@ -12,6 +12,7 @@ import oasis.names.tc.ebxml.regrep.xsd.rim.v4.SlotType;
import com.raytheon.uf.common.registry.BaseQuery;
import com.raytheon.uf.common.registry.constants.CanonicalQueryTypes;
import com.raytheon.uf.common.registry.constants.QueryLanguages;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -31,6 +32,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* Jun 21, 2012 736 djohnson Add thrift serialization annotations.
* Aug 02, 2012 955 djohnson Add generics and results retrieval to registry queries.
* 4/9/2013 1802 bphillip Modified to use constants in constants package instead of RegistryUtil
* 10/10/2013 1683 bphillip Using correct id value for the HQL query language
* </pre>
*
* @author jspinks
@ -147,7 +149,8 @@ public abstract class AdhocRegistryQuery<T> extends BaseQuery<T> {
@Override
public List<SlotType> getSlots() {
List<SlotType> slots = new ArrayList<SlotType>();
slots.add(RegistryUtil.newStringSlot("queryLanguage", "HQL"));
slots.add(RegistryUtil.newStringSlot("queryLanguage",
QueryLanguages.HQL));
slots.add(RegistryUtil.newStringSlot("queryExpression", getHQL()));
return slots;
}

View file

@ -306,8 +306,8 @@ public final class RegistryUtil {
* on error reflectively accessing the object
*/
public static RegistryObjectType newRegistryObject(Object object,
IRegistryEncoder encoderStrategy)
throws SerializationException, ReflectionException {
IRegistryEncoder encoderStrategy) throws SerializationException,
ReflectionException {
RegistryObjectType registryObject = new RegistryObjectType();
String registryObjectType = null;

View file

@ -10,6 +10,8 @@ import oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.LifecycleManagerSOA
import oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.QueryManager;
import oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.QueryManagerSOAPService;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
*
* A SOAP client implementation for use with the RegistryManager Class.
@ -32,11 +34,9 @@ public abstract class SOAPRegistryManager implements LifecycleManagerFactory,
QueryManagerFactory {
private static QName queryServiceName = new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0",
"QueryManagerService");
EbxmlNamespaces.RR_INT_URI, "QueryManagerService");
private static QName lcmServiceName = new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0",
private static QName lcmServiceName = new QName(EbxmlNamespaces.RR_INT_URI,
"LifecycleManagerService");
/**

View file

@ -9,23 +9,24 @@ import oasis.names.tc.ebxml.regrep.xsd.rim.v4.SlotType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.StringValueType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.ValueType;
import com.raytheon.uf.common.registry.constants.CollectionTypes;
/**
* A <code>SlotConverter</code> implementation for converting the
* keys from a Map into a RegistryObject slot type. A collection
* slot type will be created and the key values converted to elements
* with slot values of a appropriate type for the key. The collection
* type for the slot will be set to Set.
* A <code>SlotConverter</code> implementation for converting the keys from a
* Map into a RegistryObject slot type. A collection slot type will be created
* and the key values converted to elements with slot values of a appropriate
* type for the key. The collection type for the slot will be set to Set.
*
* <pre>
*
*
* SOFTWARE HISTORY
*
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* May 15, 2012 455 jspinks Initial creation
*
*
* </pre>
*
*
* @author jspinks
* @version 1.0
*/
@ -44,65 +45,66 @@ public class KeySetSlotConverter implements SlotConverter {
* provided.
*
* @throws IllegalArgumentException
* If the slotValue Object provided is not an instance of Map, or
* the class of the keys of the Map cannot be converted.
* If the slotValue Object provided is not an instance of Map,
* or the class of the keys of the Map cannot be converted.
*
* @see java.util.Map
*/
@Override
public List<SlotType> getSlots(String slotName, Object slotValue) throws IllegalArgumentException {
public List<SlotType> getSlots(String slotName, Object slotValue)
throws IllegalArgumentException {
List<SlotType> slots = new ArrayList<SlotType>();
SlotType slot = new SlotType();
slot.setName(slotName);
List<ValueType> collectionValues = new ArrayList<ValueType>();
CollectionValueType cvt = new CollectionValueType();
if (slotValue instanceof Map) {
for (Object o : ((Map<?,?>)slotValue).keySet()) {
for (Object o : ((Map<?, ?>) slotValue).keySet()) {
ValueType vt = newEntrySlot(o);
if (vt != null) {
collectionValues.add(vt);
collectionValues.add(vt);
} else {
throw new IllegalArgumentException("Map with key type " + o.getClass().getName() +
" cannot be converted by " + KeySetSlotConverter.class.getName());
throw new IllegalArgumentException("Map with key type "
+ o.getClass().getName()
+ " cannot be converted by "
+ KeySetSlotConverter.class.getName());
}
}
} else {
throw new IllegalArgumentException("Object of type "
+ slotValue.getClass().getName()
+ " cannot be converted by "
+ KeySetSlotConverter.class.getName());
}
else {
throw new IllegalArgumentException("Object of type " + slotValue.getClass().getName() +
" cannot be converted by " + KeySetSlotConverter.class.getName());
}
cvt.setCollectionValue(collectionValues);
cvt.setCollectionType("urn:oasis:names:tc:ebxml-regrep:CollectionType:Set");
cvt.setCollectionType(CollectionTypes.SET);
slot.setSlotValue(cvt);
slots.add(slot);
return slots;
}
/**
* Create a new value for inclusion in the collection slot values.
*
* @param value
* The Object to extract the slot value from.
*
* The Object to extract the slot value from.
*
* @return A ValueType to add to the collection slot.
*/
private ValueType newEntrySlot(Object value) {
// TODO: Add more types as necessary.
if (value instanceof String) {
StringValueType entry = new StringValueType();
entry.setStringValue((String)value);
entry.setStringValue((String) value);
return entry;
}
return null;
}
}

View file

@ -9,6 +9,8 @@ import oasis.names.tc.ebxml.regrep.xsd.rim.v4.SlotType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.StringValueType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.ValueType;
import com.raytheon.uf.common.registry.constants.CollectionTypes;
/**
* A <code>SlotConverter</code> implementation for converting the members of a
* Set into a RegistryObject slot type. A collection slot type will be created
@ -82,7 +84,7 @@ public class SetSlotConverter implements SlotConverter {
}
cvt.setCollectionValue(collectionValues);
cvt.setCollectionType("urn:oasis:names:tc:ebxml-regrep:CollectionType:Set");
cvt.setCollectionType(CollectionTypes.SET);
slot.setSlotValue(cvt);
slots.add(slot);
return slots;

View file

@ -39,6 +39,7 @@ import com.raytheon.uf.common.registry.services.rest.response.RestCollectionResp
* ------------ ---------- ----------- --------------------------
* 7/29/2013 2191 bphillip Initial implementation
* 9/20/2013 2385 bphillip Added subscription backup functions
* 10/8/2013 1682 bphillip Added rest functions for use with the query web interface
* </pre>
*
* @author bphillip
@ -46,6 +47,8 @@ import com.raytheon.uf.common.registry.services.rest.response.RestCollectionResp
*/
public interface IRegistryDataAccessService {
public static final String DATA_ACCESS_PATH_PREFIX = "/rest/dataAccess/";
/**
* Gets the ids of registry objects of the given object type
*
@ -54,10 +57,30 @@ public interface IRegistryDataAccessService {
* @return List of ids for registry objects of the given type
*/
@GET
@Path("/rest/dataAccess/getRegistryObjectIds/{objectType}")
@Path(DATA_ACCESS_PATH_PREFIX + "getRegistryObjectIds/{objectType}")
public RestCollectionResponse<String> getRegistryObjectIdsOfType(
@PathParam("objectType") String objectType);
/**
* Gets the list of query definitions currently contained in the registry
*
* @return The query definitions currently contained in the registry
*/
@GET
@Path(DATA_ACCESS_PATH_PREFIX + "getQueries")
public String getValidQueries();
/**
* Gets the valid parameters for a given query definition
*
* @param queryId
* The id of the query definition
* @return The parameters for a given query definition
*/
@GET
@Path(DATA_ACCESS_PATH_PREFIX + "getParametersForQuery/{queryId}")
public String getParametersForQuery(@PathParam("queryId") String queryId);
/**
* Removes any subscriptions for the given site
*
@ -67,7 +90,7 @@ public interface IRegistryDataAccessService {
* If errors occur while removing the subscriptions
*/
@GET
@Path("/rest/dataAccess/removeSubscriptionsFor/{siteId}")
@Path(DATA_ACCESS_PATH_PREFIX + "removeSubscriptionsFor/{siteId}")
public void removeSubscriptionsForSite(@PathParam("siteId") String siteId)
throws RegistryException;
@ -78,7 +101,7 @@ public interface IRegistryDataAccessService {
* @return The page containing the subscriptions
*/
@GET
@Path("/rest/dataAccess/getSubscriptions")
@Path(DATA_ACCESS_PATH_PREFIX + "getSubscriptions")
public String getSubscriptions();
/**
@ -92,7 +115,7 @@ public interface IRegistryDataAccessService {
* If marshalling/unmarshalling errors are encountered
*/
@GET
@Path("/rest/dataAccess/backupSubscription/{subscriptionName}")
@Path(DATA_ACCESS_PATH_PREFIX + "backupSubscription/{subscriptionName}")
public String backupSubscription(
@PathParam("subscriptionName") String subscriptionName)
throws JAXBException;
@ -105,7 +128,7 @@ public interface IRegistryDataAccessService {
* If marshalling/unmarshalling errors are encountered
*/
@GET
@Path("/rest/dataAccess/backupAllSubscriptions/")
@Path(DATA_ACCESS_PATH_PREFIX + "backupAllSubscriptions/")
public String backupAllSubscriptions() throws JAXBException;
/**
@ -117,7 +140,7 @@ public interface IRegistryDataAccessService {
* @throws JAXBException
*/
@GET
@Path("/rest/dataAccess/restoreSubscription/{subscriptionName}")
@Path(DATA_ACCESS_PATH_PREFIX + "restoreSubscription/{subscriptionName}")
public String restoreSubscription(
@PathParam("subscriptionName") String subscriptionName)
throws JAXBException;
@ -128,7 +151,7 @@ public interface IRegistryDataAccessService {
* @return Status messages relating to the success or failure of the restore
*/
@GET
@Path("/rest/dataAccess/restoreSubscriptions/")
@Path(DATA_ACCESS_PATH_PREFIX + "restoreSubscriptions/")
public String restoreSubscriptions();
/**
@ -137,7 +160,7 @@ public interface IRegistryDataAccessService {
* @return Status message
*/
@GET
@Path("/rest/dataAccess/clearSubscriptionBackupFiles/")
@Path(DATA_ACCESS_PATH_PREFIX + "clearSubscriptionBackupFiles/")
public String clearSubscriptionBackupFiles();
}

View file

@ -11,8 +11,10 @@ Require-Bundle: javax.persistence;bundle-version="1.0.0",
com.raytheon.uf.common.dataplugin;bundle-version="1.12.1174",
com.raytheon.uf.edex.database;bundle-version="1.0.0",
org.apache.commons.cxf;bundle-version="1.0.0",
com.raytheon.uf.common.status;bundle-version="1.12.1174"
Export-Package: com.raytheon.uf.common.registry.schemas.ebxml.util,
com.raytheon.uf.common.status;bundle-version="1.12.1174",
com.raytheon.uf.common.util;bundle-version="1.12.1174"
Export-Package: com.raytheon.uf.common.registry,
com.raytheon.uf.common.registry.schemas.ebxml.util,
com.raytheon.uf.common.registry.schemas.ebxml.util.annotations,
oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4,
oasis.names.tc.ebxml.regrep.xsd.lcm.v4,

View file

@ -0,0 +1,303 @@
/**
* This software was developed and / or modified by Raytheon Company,
* pursuant to Contract DG133W-05-CQ-1067 with the US Government.
*
* U.S. EXPORT CONTROLLED TECHNICAL DATA
* This software product contains export-restricted data whose
* export/transfer/disclosure is restricted by U.S. law. Dissemination
* to non-U.S. persons whether in the United States or abroad requires
* an export license or other authorization.
*
* Contractor Name: Raytheon Company
* Contractor Address: 6825 Pine Street, Suite 340
* Mail Stop B8
* Omaha, NE 68106
* 402.291.0100
*
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.common.registry;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
/**
*
* Namespaces used by the EBXML 4.0 spec. This list consists of namespaces
* listed in section 1.6 of OASIS ebXML RegRep Version 4.0, Part 0: Overview
* Document
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 10/15/2013 1682 bphillip Initial implementation
* </pre>
*
* @author bphillip
* @version 1
*/
public class EbxmlNamespaces {
/** Map which maps namespaceURIs to prefixes */
public static final Map<String, String> NAMESPACE_PREFIX_MAP;
/** Map which maps prefixes to namespaceURIs */
public static final Map<String, String> PREFIX_NAMESPACE_MAP;
public static final String OASIS_PREFIX = "urn:oasis:names:tc:ebxml-regrep:";
public static final String OASIS_XSD_PREFIX = OASIS_PREFIX + "xsd:";
public static final String OASIS_WSDL_PREFIX = OASIS_PREFIX + "wsdl:";
public static final String VERSION = ":4.0";
/**
* EbXML RegRep Part 3: XML Schema file xsd/lcm.xsd
* <p>
* Schema used by the LifecycleManager interface
*/
public static final String LCM = "lcm";
public static final String LCM_URI = OASIS_XSD_PREFIX + LCM + VERSION;
/**
* EbXML RegRep Part 3: XML Schema file xsd/query.xsd
* <p>
* Schema used by the QueryManager interface
*/
public static final String QUERY = "query";
public static final String QUERY_URI = OASIS_XSD_PREFIX + QUERY + VERSION;
/**
* ebXML RegRep Part 3: XML Schema file xsd/rim.xsd
* <p>
* Schema used for information model objects specified by [re-
* grep-rim-v4.0].
*/
public static final String RIM = "rim";
public static final String RIM_URI = OASIS_XSD_PREFIX + RIM + VERSION;
/**
* ebXML RegRep Part 3: XML Schema file xsd/rs.xsd
* <p>
* Common schema used by registry protocols defined by [re- grep-rs-v4.0].
*/
public static final String RS = "rs";
public static final String RS_URI = OASIS_XSD_PREFIX + RS + VERSION;
/**
* ebXML RegRep Part 3: XML Schema file xsd/spi.xsd
* <p>
* Schema used by the service provider interfaces defined by [re-
* grep-rs-v4.0].
*/
public static final String SPI = "spi";
public static final String SPI_URI = OASIS_XSD_PREFIX + SPI + VERSION;
/**
* ebXML RegRep Part 4: WSDL file wsdl/1.1/Notification-
* ListenerBindings.wsdl
* <p>
* WSDL binding definitions for NotificationListeners defined by
* [regrep-rs-v4.0].
*/
public static final String NL_BIND = "nl-bind";
public static final String NL_BIND_URI = OASIS_WSDL_PREFIX
+ "NotificationListener:bindings" + VERSION;
/**
* ebXML RegRep Part 4: WSDL file wsdl/1.1/Notification-
* ListenerInterfaces.wsdl
* <p>
* WSDL interface definitions for NotificationListeners defined by
* [regrep-rs-v4.0].
*/
public static final String NL_INT = "nl-int";
public static final String NL_INT_URI = OASIS_WSDL_PREFIX
+ "NotificationListener:interfaces" + VERSION;
/**
* ebXML RegRep Part 4: WSDL file wsdl/1.1/Notification-
* ListenerServices.wsdl
* <p>
* WSDL service definitions for NotificationListeners defined by
* [regrep-rs-v4.0].
*/
public static final String NL_SERV = "nl-serv";
public static final String NL_SERV_URI = OASIS_WSDL_PREFIX
+ "NotificationListener:services" + VERSION;
/**
* ebXML RegRep Part 4: WSDL file wsdl/1.1/re- grep-server-binding.wsdl
* <p>
* WSDL binding definitions for interfaces defined by [re- grep-rs-v4.0].
*/
public static final String RR_BIND = "rr-bind";
public static final String RR_BIND_URI = OASIS_WSDL_PREFIX
+ "registry:bindings" + VERSION;
/**
* ebXML RegRep Part 4: WSDL file wsdl/1.1/regrep-server-in- terface.wsdl
* <p>
* WSDL interface definitions for interfaces defined by [re- grep-rs-v4.0].
*/
public static final String RR_INT = "rr-int";
public static final String RR_INT_URI = OASIS_WSDL_PREFIX
+ "registry:interfaces" + VERSION;
/**
* ebXML RegRep Part 4: WSDL file wsdl/1.1/re- grep-server-service.wsdl
* <p>
* WSDL service definitions for services defined by [re- grep-rs-v4.0].
*/
public static final String RR_SERV = "rr-serv";
public static final String RR_SERV_URI = OASIS_WSDL_PREFIX
+ "registry:services" + VERSION;
/**
* ebXML RegRep Part 4: WSDL file wsdl/1.1/regrep-server-binding.wsdl
* <p>
* WSDL binding definitions for service provider interfaces for server
* plugins defined by [regrep-rs-v4.0].
*/
public static final String SPI_ = "spi-";
public static final String SPI__URI = OASIS_WSDL_PREFIX + "spi:bindings"
+ VERSION;
/**
* ebXML RegRep Part 4: WSDL file wsdl/1.1/regrep-server-in- terface.wsdl
* <p>
* WSDL interface definitions for service provider interfaces for server
* plugin defined by [regrep-rs-v4.0].
*/
public static final String SPI_INT = "spi-int";
public static final String SPI_INT_URI = OASIS_WSDL_PREFIX
+ "spi:interfaces" + VERSION;
/**
* A normative XML Schema [XML Schema Part 1], [XML Schema Part 2] document
* for the "http://www.w3.org/2003/05/soap-encod- ing" namespace can be
* found at http://www.w3.org/2003/05/soap-encoding.
*/
public static final String ENC = "enc";
public static final String ENC_URI = "http://www.w3.org/2003/05/soap-encoding";
/**
* SOAP Version 1.2 Part 1. A normative XML Schema [XML Schema Part 1], [XML
* Schema Part 2] document for the
* "http://www.w3.org/2003/05/soap-envel- ope" namespace can be found at
* http://www.w3.org/2003/05/soap-envelope.
*/
public static final String ENV = "env";
public static final String ENV_URI = "http://www.w3.org/2003/05/soap-envelope";
/**
* WSDL namespace for WSDL MIME binding.
*/
public static final String MIME = "mime";
public static final String MIME_URI = "http://schemas.xmlsoap.org/wsdl/mime/";
/**
* WSDL 1.1 namespace defined by WSDL 1.1 specification.
*/
public static final String WSDL = "wsdl";
public static final String WSDL_URI = "http://schemas.xmlsoap.org/wsdl/";
/**
* XACML 2.0 Core: eXtensible Access Control Markup Language (XACML) Version
* 2.0
*/
public static final String XACML = "xacml";
public static final String XACML_URI = "urn:oasis:names:tc:xacml:2.0:policy:schema:os";
/**
* XACML 2.0 Core: eXtensible Access Control Markup Language (XACML) Version
* 2.0
*/
public static final String XACMLC = "xacmlc";
public static final String XACMLC_URI = "urn:oasis:names:tc:xacml:2.0:context:schema:os";
/**
* XML Linking Language (XLink) Version 1.1
*/
public static final String XLINK = "xlink";
public static final String XLINK_URI = "http://www.w3.org/1999/xlink";
/**
* XML Schema [XML Schema Part 1], [XML Schema Part 2] specification
*/
public static final String XS = "xs";
public static final String XS_URI = "http://www.w3.org/2001/XMLSchema";
/**
* W3C XML Schema specification [XML Schema Part 1], [XML Schema Part 2].
*/
public static final String XSI = "xsi";
public static final String XSI_URI = "http://www.w3.org/2001/XMLSchema-instance";
/**
* Addressing namespace
*/
public static final String ADDRESSING = "addressing";
public static final String ADDRESSING_URI = "http://www.w3.org/2005/08/addressing";
static {
Map<String, String> prefixNamespaceMap = new HashMap<String, String>(22);
Map<String, String> namespacePrefixMap = new HashMap<String, String>(22);
prefixNamespaceMap.put(LCM, LCM_URI);
prefixNamespaceMap.put(QUERY, QUERY_URI);
prefixNamespaceMap.put(RIM, RIM_URI);
prefixNamespaceMap.put(RS, RS_URI);
prefixNamespaceMap.put(SPI, SPI_URI);
prefixNamespaceMap.put(NL_BIND, NL_BIND_URI);
prefixNamespaceMap.put(NL_INT, NL_INT_URI);
prefixNamespaceMap.put(NL_SERV, NL_SERV_URI);
prefixNamespaceMap.put(RR_BIND, RR_BIND_URI);
prefixNamespaceMap.put(RR_INT, RR_INT_URI);
prefixNamespaceMap.put(RR_SERV, RR_SERV_URI);
prefixNamespaceMap.put(SPI_, SPI__URI);
prefixNamespaceMap.put(SPI_INT, SPI_INT_URI);
prefixNamespaceMap.put(ENC, ENC_URI);
prefixNamespaceMap.put(ENV, ENV_URI);
prefixNamespaceMap.put(MIME, MIME_URI);
prefixNamespaceMap.put(WSDL, WSDL_URI);
prefixNamespaceMap.put(XACML, XACML_URI);
prefixNamespaceMap.put(XACMLC, XACMLC_URI);
prefixNamespaceMap.put(XLINK, XLINK_URI);
prefixNamespaceMap.put(XS, XS_URI);
prefixNamespaceMap.put(XSI, XSI_URI);
for (String prefix : prefixNamespaceMap.keySet()) {
namespacePrefixMap.put(prefixNamespaceMap.get(prefix), prefix);
}
PREFIX_NAMESPACE_MAP = Collections.unmodifiableMap(prefixNamespaceMap);
NAMESPACE_PREFIX_MAP = Collections.unmodifiableMap(namespacePrefixMap);
}
}

View file

@ -17,30 +17,28 @@
* See the AWIPS II Master Rights File ("Master Rights File.pdf") for
* further licensing information.
**/
package com.raytheon.uf.edex.registry.ebxml.services.query.types;
package com.raytheon.uf.common.registry;
/**
* Implementation of a canonical ebXML query
*
* Constants for use in the ebxml schema project
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* Jan 18, 2012 bphillip Initial creation
* 3/18/2013 1802 bphillip Modified to use transaction boundaries and spring dao injection
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 10/15/2013 1682 bphillip Initial implementation
* </pre>
*
* @author bphillip
* @version 1.0
* @version 1
*/
public abstract class CanonicalEbxmlQuery extends AbstractEbxmlQuery {
public class RegrepUtil {
public boolean isCanonical() {
return true;
}
public static final String EBXML_SCHEMA = "ebxml";
public static final String DB_CACHE_REGION = "RegistryObjects";
}

View file

@ -32,15 +32,27 @@ import oasis.names.tc.ebxml.regrep.xsd.spi.v4.CatalogObjectsResponse;
import org.apache.cxf.annotations.GZIP;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
* The Cataloger interface.
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
*
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@GZIP(threshold = 0)
@WebService(name = "Cataloger", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:spi:interfaces:4.0")
@WebService(name = "Cataloger", targetNamespace = EbxmlNamespaces.SPI_INT_URI)
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso({ oasis.names.tc.ebxml.regrep.xsd.rim.v4.ObjectFactory.class,
oasis.names.tc.ebxml.regrep.xsd.spi.v4.ObjectFactory.class,
@ -50,6 +62,9 @@ import org.apache.cxf.annotations.GZIP;
oasis.names.tc.ebxml.regrep.xsd.query.v4.ObjectFactory.class })
public interface Cataloger {
public static final String CATALOG_OBJECTS_ACTION = EbxmlNamespaces.OASIS_WSDL_PREFIX
+ ":spi:bindings:4.0:Cataloger#catalogObjects";
/**
*
* @param partCatalogObjectsRequest
@ -57,10 +72,10 @@ public interface Cataloger {
* oasis.names.tc.ebxml_regrep.xsd.spi._4.CatalogObjectsResponse
* @throws MsgRegistryException
*/
@WebMethod(action = "urn:oasis:names:tc:ebxml-regrep:wsdl:spi:bindings:4.0:Cataloger#catalogObjects")
@WebResult(name = "CatalogObjectsResponse", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0", partName = "partCatalogObjectsResponse")
@WebMethod(action = CATALOG_OBJECTS_ACTION)
@WebResult(name = "CatalogObjectsResponse", targetNamespace = EbxmlNamespaces.SPI_URI, partName = "partCatalogObjectsResponse")
public CatalogObjectsResponse catalogObjects(
@WebParam(name = "CatalogObjectsRequest", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0", partName = "partCatalogObjectsRequest") CatalogObjectsRequest partCatalogObjectsRequest)
@WebParam(name = "CatalogObjectsRequest", targetNamespace = EbxmlNamespaces.SPI_URI, partName = "partCatalogObjectsRequest") CatalogObjectsRequest partCatalogObjectsRequest)
throws MsgRegistryException;
}

View file

@ -20,59 +20,40 @@
package oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
*
* A service providing SOAP endpoints for Cataloger interface.
*
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@WebServiceClient(name = "CatalogerSOAPService", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0", wsdlLocation = "file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl")
@WebServiceClient(name = "CatalogerSOAPService", targetNamespace = EbxmlNamespaces.RR_SERV_URI)
public class CatalogerSOAPService extends Service {
private final static URL CATALOGERSOAPSERVICE_WSDL_LOCATION;
private final static Logger logger = Logger
.getLogger(oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.CatalogerSOAPService.class
.getName());
static {
URL url = null;
try {
URL baseUrl;
baseUrl = oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.CatalogerSOAPService.class
.getResource(".");
url = new URL(
baseUrl,
"file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL for the wsdl Location: 'file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl', retrying as a local file");
logger.warning(e.getMessage());
}
CATALOGERSOAPSERVICE_WSDL_LOCATION = url;
}
public CatalogerSOAPService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public CatalogerSOAPService() {
super(CATALOGERSOAPSERVICE_WSDL_LOCATION, new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
"CatalogerSOAPService"));
}
/**
*
* A template SOAP endpoints for ebXML RegRep Cataloger interface.
@ -82,8 +63,7 @@ public class CatalogerSOAPService extends Service {
*/
@WebEndpoint(name = "CatalogerPort")
public Cataloger getCatalogerPort() {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_SERV_URI,
"CatalogerPort"), Cataloger.class);
}
@ -101,8 +81,7 @@ public class CatalogerSOAPService extends Service {
*/
@WebEndpoint(name = "CatalogerPort")
public Cataloger getCatalogerPort(WebServiceFeature... features) {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_SERV_URI,
"CatalogerPort"), Cataloger.class, features);
}

View file

@ -34,17 +34,27 @@ import oasis.names.tc.ebxml.regrep.xsd.rs.v4.RegistryResponseType;
import org.apache.cxf.annotations.GZIP;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
*
* The portType for LifecycleManager abstract interface.
*
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@GZIP(threshold = 0)
@WebService(name = "LifecycleManager", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0")
@WebService(name = "LifecycleManager", targetNamespace = EbxmlNamespaces.RR_INT_URI)
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso({ oasis.names.tc.ebxml.regrep.xsd.rim.v4.ObjectFactory.class,
oasis.names.tc.ebxml.regrep.xsd.spi.v4.ObjectFactory.class,
@ -54,6 +64,15 @@ import org.apache.cxf.annotations.GZIP;
oasis.names.tc.ebxml.regrep.xsd.query.v4.ObjectFactory.class })
public interface LifecycleManager {
public static final String REMOVE_OBJECTS_ACTION = EbxmlNamespaces.OASIS_WSDL_PREFIX
+ "registry:bindings:4.0:LifecycleManager#removeObjects";
public static final String SUBMIT_OBJECTS_ACTION = EbxmlNamespaces.OASIS_WSDL_PREFIX
+ "registry:bindings:4.0:LifecycleManager#submitObjects";
public static final String UPDATE_OBJECTS_ACTION = EbxmlNamespaces.OASIS_WSDL_PREFIX
+ "registry:bindings:4.0:LifecycleManager#updateObjects";
/**
*
* @param partRemoveObjectsRequest
@ -61,10 +80,10 @@ public interface LifecycleManager {
* oasis.names.tc.ebxml_regrep.xsd.rs._4.RegistryResponseType
* @throws MsgRegistryException
*/
@WebMethod(action = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:bindings:4.0:LifecycleManager#removeObjects")
@WebResult(name = "RegistryResponse", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0", partName = "partRegistryResponse")
@WebMethod(action = REMOVE_OBJECTS_ACTION)
@WebResult(name = "RegistryResponse", targetNamespace = EbxmlNamespaces.RS_URI, partName = "partRegistryResponse")
public RegistryResponseType removeObjects(
@WebParam(name = "RemoveObjectsRequest", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0", partName = "partRemoveObjectsRequest") RemoveObjectsRequest partRemoveObjectsRequest)
@WebParam(name = "RemoveObjectsRequest", targetNamespace = EbxmlNamespaces.LCM_URI, partName = "partRemoveObjectsRequest") RemoveObjectsRequest partRemoveObjectsRequest)
throws MsgRegistryException;
/**
@ -74,10 +93,10 @@ public interface LifecycleManager {
* oasis.names.tc.ebxml_regrep.xsd.rs._4.RegistryResponseType
* @throws MsgRegistryException
*/
@WebMethod(action = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:bindings:4.0:LifecycleManager#submitObjects")
@WebResult(name = "RegistryResponse", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0", partName = "partRegistryResponse")
@WebMethod(action = SUBMIT_OBJECTS_ACTION)
@WebResult(name = "RegistryResponse", targetNamespace = EbxmlNamespaces.RS_URI, partName = "partRegistryResponse")
public RegistryResponseType submitObjects(
@WebParam(name = "SubmitObjectsRequest", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0", partName = "partSubmitObjectsRequest") SubmitObjectsRequest partSubmitObjectsRequest)
@WebParam(name = "SubmitObjectsRequest", targetNamespace = EbxmlNamespaces.LCM_URI, partName = "partSubmitObjectsRequest") SubmitObjectsRequest partSubmitObjectsRequest)
throws MsgRegistryException;
/**
@ -87,10 +106,10 @@ public interface LifecycleManager {
* oasis.names.tc.ebxml_regrep.xsd.rs._4.RegistryResponseType
* @throws MsgRegistryException
*/
@WebMethod(action = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:bindings:4.0:LifecycleManager#updateObjects")
@WebResult(name = "RegistryResponse", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0", partName = "partRegistryResponse")
@WebMethod(action = UPDATE_OBJECTS_ACTION)
@WebResult(name = "RegistryResponse", targetNamespace = EbxmlNamespaces.RS_URI, partName = "partRegistryResponse")
public RegistryResponseType updateObjects(
@WebParam(name = "UpdateObjectsRequest", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0", partName = "partUpdateObjectsRequest") UpdateObjectsRequest partUpdateObjectsRequest)
@WebParam(name = "UpdateObjectsRequest", targetNamespace = EbxmlNamespaces.LCM_URI, partName = "partUpdateObjectsRequest") UpdateObjectsRequest partUpdateObjectsRequest)
throws MsgRegistryException;
}

View file

@ -20,15 +20,16 @@
package oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
*
* A service providing SOAP endpoints for LifecycleManager interface.
@ -38,42 +39,13 @@ import javax.xml.ws.WebServiceFeature;
* source version: 2.1
*
*/
@WebServiceClient(name = "LifecycleManagerSOAPService", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0",
wsdlLocation = "file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl")
@WebServiceClient(name = "LifecycleManagerSOAPService", targetNamespace = EbxmlNamespaces.RR_INT_URI)
public class LifecycleManagerSOAPService extends Service {
private final static URL LIFECYCLEMANAGERSOAPSERVICE_WSDL_LOCATION;
private final static Logger logger = Logger
.getLogger(oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.LifecycleManagerSOAPService.class
.getName());
static {
URL url = null;
try {
URL baseUrl;
baseUrl = oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.LifecycleManagerSOAPService.class
.getResource(".");
url = new URL(
baseUrl,
"file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL for the wsdl Location: 'file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl', retrying as a local file");
logger.warning(e.getMessage());
}
LIFECYCLEMANAGERSOAPSERVICE_WSDL_LOCATION = url;
}
public LifecycleManagerSOAPService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public LifecycleManagerSOAPService() {
super(LIFECYCLEMANAGERSOAPSERVICE_WSDL_LOCATION, new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
"LifecycleManagerSOAPService"));
}
/**
*
* A template SOAP endpoint for ebXML RegRep LifecycleManager interface.
@ -83,8 +55,7 @@ public class LifecycleManagerSOAPService extends Service {
*/
@WebEndpoint(name = "LifecycleManagerPort")
public LifecycleManager getLifecycleManagerPort() {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_INT_URI,
"LifecycleManagerPort"), LifecycleManager.class);
}
@ -103,8 +74,7 @@ public class LifecycleManagerSOAPService extends Service {
@WebEndpoint(name = "LifecycleManagerPort")
public LifecycleManager getLifecycleManagerPort(
WebServiceFeature... features) {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_INT_URI,
"LifecycleManagerPort"), LifecycleManager.class, features);
}

View file

@ -24,14 +24,27 @@ import javax.xml.ws.WebFault;
import oasis.names.tc.ebxml.regrep.xsd.rs.v4.RegistryExceptionType;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeTypeAdapter;
/**
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
*
*
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@WebFault(name = "RegistryException", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rs:4.0")
@WebFault(name = "RegistryException", targetNamespace = EbxmlNamespaces.RS_URI)
@DynamicSerializeTypeAdapter(factory = MsgRegistryExceptionTypeAdapter.class)
public class MsgRegistryException extends Exception {

View file

@ -23,24 +23,36 @@ package oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4;
import javax.jws.Oneway;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.jws.soap.SOAPBinding.Style;
import javax.xml.bind.annotation.XmlSeeAlso;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.NotificationType;
import oasis.names.tc.ebxml.regrep.xsd.rs.v4.RegistryResponseType;
import org.apache.cxf.annotations.GZIP;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
* PortType for a NotificationListener interface
* <pre>
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* 10/20/2013 1682 bphillip Added synchronous notification delivery
* </pre>
*
* @author bphillip
* @version 1
*/
@GZIP(threshold = 0)
@WebService(name = "NotificationListener", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:NotificationListener:interfaces:4.0")
@WebService(name = "NotificationListener", targetNamespace = EbxmlNamespaces.NL_INT_URI)
@SOAPBinding(style = Style.DOCUMENT, parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso({ oasis.names.tc.ebxml.regrep.xsd.rim.v4.ObjectFactory.class,
oasis.names.tc.ebxml.regrep.xsd.spi.v4.ObjectFactory.class,
@ -50,14 +62,23 @@ import org.apache.cxf.annotations.GZIP;
oasis.names.tc.ebxml.regrep.xsd.query.v4.ObjectFactory.class })
public interface NotificationListener {
public static final String ON_NOTIFICATION_ACTION = EbxmlNamespaces.OASIS_WSDL_PREFIX
+ "NotificationListener:bindings:4.0:NotificationListener:onNotification";
/**
* Delivers a Notification from registry to NotificationListener
*
* @param notification
*/
@WebMethod(action = "urn:oasis:names:tc:ebxml-regrep:wsdl:NotificationListener:bindings:4.0:NotificationListener:onNotification")
@WebMethod(action = ON_NOTIFICATION_ACTION)
@Oneway
public void onNotification(
@WebParam(name = "Notification", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", partName = "Notification") NotificationType notification);
@WebParam(name = "Notification", targetNamespace = EbxmlNamespaces.RIM_URI, partName = "Notification") NotificationType notification);
@WebMethod(action = "SynchronousNotification")
@WebResult(name = "RegistryResponse", targetNamespace = EbxmlNamespaces.RS_URI, partName = "partRegistryResponse")
public RegistryResponseType synchronousNotification(
@WebParam(name = "Notification", targetNamespace = EbxmlNamespaces.RIM_URI, partName = "Notification") NotificationType notification)
throws MsgRegistryException;
}

View file

@ -20,63 +20,44 @@
package oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@WebServiceClient(name = "NotificationListenerSOAPService", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0", wsdlLocation = "file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl")
@WebServiceClient(name = "NotificationListenerSOAPService", targetNamespace = EbxmlNamespaces.RR_SERV_URI)
public class NotificationListenerSOAPService extends Service {
private final static URL NOTIFICATIONLISTENERSOAPSERVICE_WSDL_LOCATION;
private final static Logger logger = Logger
.getLogger(oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.NotificationListenerSOAPService.class
.getName());
static {
URL url = null;
try {
URL baseUrl;
baseUrl = oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.NotificationListenerSOAPService.class
.getResource(".");
url = new URL(
baseUrl,
"file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL for the wsdl Location: 'file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl', retrying as a local file");
logger.warning(e.getMessage());
}
NOTIFICATIONLISTENERSOAPSERVICE_WSDL_LOCATION = url;
}
public NotificationListenerSOAPService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public NotificationListenerSOAPService() {
super(NOTIFICATIONLISTENERSOAPSERVICE_WSDL_LOCATION, new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
"NotificationListenerSOAPService"));
}
/**
*
* @return returns NotificationListener
*/
@WebEndpoint(name = "NotificationListenerPort")
public NotificationListener getNotificationListenerPort() {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_SERV_URI,
"NotificationListenerPort"), NotificationListener.class);
}
@ -92,8 +73,7 @@ public class NotificationListenerSOAPService extends Service {
@WebEndpoint(name = "NotificationListenerPort")
public NotificationListener getNotificationListenerPort(
WebServiceFeature... features) {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_SERV_URI,
"NotificationListenerPort"), NotificationListener.class,
features);
}

View file

@ -32,17 +32,24 @@ import oasis.names.tc.ebxml.regrep.xsd.query.v4.QueryResponse;
import org.apache.cxf.annotations.GZIP;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
* <pre>
*
* The portType for QueryManager abstract interface.
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
*
* @author bphillip
* @version 1
*/
@GZIP(threshold = 0)
@WebService(name = "QueryManager", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0")
@WebService(name = "QueryManager", targetNamespace = EbxmlNamespaces.RR_INT_URI)
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso({ oasis.names.tc.ebxml.regrep.xsd.rim.v4.ObjectFactory.class,
oasis.names.tc.ebxml.regrep.xsd.spi.v4.ObjectFactory.class,
@ -52,16 +59,19 @@ import org.apache.cxf.annotations.GZIP;
oasis.names.tc.ebxml.regrep.xsd.query.v4.ObjectFactory.class })
public interface QueryManager {
public static final String EXECUTE_QUERY_ACTION = EbxmlNamespaces.OASIS_WSDL_PREFIX
+ "registry:bindings:4.0:QueryManager#executeQuery";
/**
*
* @param partQueryRequest
* @return returns oasis.names.tc.ebxml_regrep.xsd.query._4.QueryResponse
* @throws MsgRegistryException
*/
@WebMethod(action = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:bindings:4.0:QueryManager#executeQuery")
@WebResult(name = "QueryResponse", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0", partName = "partQueryResponse")
@WebMethod(action = EXECUTE_QUERY_ACTION)
@WebResult(name = "QueryResponse", targetNamespace = EbxmlNamespaces.QUERY_URI, partName = "partQueryResponse")
public QueryResponse executeQuery(
@WebParam(name = "QueryRequest", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0", partName = "partQueryRequest") QueryRequest partQueryRequest)
@WebParam(name = "QueryRequest", targetNamespace = EbxmlNamespaces.QUERY_URI, partName = "partQueryRequest") QueryRequest queryRequest)
throws MsgRegistryException;
}

View file

@ -20,59 +20,37 @@
package oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
* <pre>
*
* A service providing SOAP endpoint QueryManager interface.
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
*
* @author bphillip
* @version 1
*/
@WebServiceClient(name = "QueryManagerSOAPService", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0", wsdlLocation = "file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl")
@WebServiceClient(name = "QueryManagerSOAPService", targetNamespace = EbxmlNamespaces.RR_SERV_URI)
public class QueryManagerSOAPService extends Service {
private final static URL QUERYMANAGERSOAPSERVICE_WSDL_LOCATION;
private final static Logger logger = Logger
.getLogger(oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.QueryManagerSOAPService.class
.getName());
static {
URL url = null;
try {
URL baseUrl;
baseUrl = oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.QueryManagerSOAPService.class
.getResource(".");
url = new URL(
baseUrl,
"file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL for the wsdl Location: 'file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl', retrying as a local file");
logger.warning(e.getMessage());
}
QUERYMANAGERSOAPSERVICE_WSDL_LOCATION = url;
}
public QueryManagerSOAPService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public QueryManagerSOAPService() {
super(QUERYMANAGERSOAPSERVICE_WSDL_LOCATION, new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0",
"QueryManagerSOAPService"));
}
/**
*
* A template SOAP endpoint for ebXML RegRep QueryManager interface.
@ -82,8 +60,7 @@ public class QueryManagerSOAPService extends Service {
*/
@WebEndpoint(name = "QueryManagerPort")
public QueryManager getQueryManagerPort() {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:interfaces:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_INT_URI,
"QueryManagerPort"), QueryManager.class);
}
@ -101,8 +78,7 @@ public class QueryManagerSOAPService extends Service {
*/
@WebEndpoint(name = "QueryManagerPort")
public QueryManager getQueryManagerPort(WebServiceFeature... features) {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_SERV_URI,
"QueryManagerPort"), QueryManager.class, features);
}

View file

@ -32,15 +32,24 @@ import oasis.names.tc.ebxml.regrep.xsd.spi.v4.ValidateObjectsResponse;
import org.apache.cxf.annotations.GZIP;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
* The Validator interface.
* <pre>
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@GZIP(threshold = 0)
@WebService(name = "Validator", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:spi:interfaces:4.0")
@WebService(name = "Validator", targetNamespace = EbxmlNamespaces.SPI_INT_URI)
@SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE)
@XmlSeeAlso({ oasis.names.tc.ebxml.regrep.xsd.rim.v4.ObjectFactory.class,
oasis.names.tc.ebxml.regrep.xsd.spi.v4.ObjectFactory.class,
@ -50,6 +59,9 @@ import org.apache.cxf.annotations.GZIP;
oasis.names.tc.ebxml.regrep.xsd.query.v4.ObjectFactory.class })
public interface Validator {
public static final String VALIDATE_OBJECTS_ACTION = EbxmlNamespaces.OASIS_WSDL_PREFIX
+ "spi:bindings:4.0:Validator#validateObjects";
/**
*
* @param partValidateObjectsRequest
@ -57,10 +69,10 @@ public interface Validator {
* oasis.names.tc.ebxml_regrep.xsd.spi._4.ValidateObjectsResponse
* @throws MsgRegistryException
*/
@WebMethod(action = "urn:oasis:names:tc:ebxml-regrep:wsdl:spi:bindings:4.0:Validator#validateObjects")
@WebResult(name = "ValidateObjectsResponse", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0", partName = "partValidateObjectsResponse")
@WebMethod(action = VALIDATE_OBJECTS_ACTION)
@WebResult(name = "ValidateObjectsResponse", targetNamespace = EbxmlNamespaces.SPI_URI, partName = "partValidateObjectsResponse")
public ValidateObjectsResponse validateObjects(
@WebParam(name = "ValidateObjectsRequest", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:xsd:spi:4.0", partName = "partValidateObjectsRequest") ValidateObjectsRequest partValidateObjectsRequest)
@WebParam(name = "ValidateObjectsRequest", targetNamespace = EbxmlNamespaces.SPI_URI, partName = "partValidateObjectsRequest") ValidateObjectsRequest partValidateObjectsRequest)
throws MsgRegistryException;
}

View file

@ -20,59 +20,37 @@
package oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.logging.Logger;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceFeature;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
/**
* <pre>
*
* A service providing SOAP endpoints for Validator interface.
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* This class was generated by the JAX-WS RI. JAX-WS RI 2.1.6 in JDK 6 Generated
* source version: 2.1
*
* @author bphillip
* @version 1
*/
@WebServiceClient(name = "ValidatorSOAPService", targetNamespace = "urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0", wsdlLocation = "file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl")
@WebServiceClient(name = "ValidatorSOAPService", targetNamespace = EbxmlNamespaces.RR_SERV_URI)
public class ValidatorSOAPService extends Service {
private final static URL VALIDATORSOAPSERVICE_WSDL_LOCATION;
private final static Logger logger = Logger
.getLogger(oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.ValidatorSOAPService.class
.getName());
static {
URL url = null;
try {
URL baseUrl;
baseUrl = oasis.names.tc.ebxml.regrep.wsdl.registry.services.v4.ValidatorSOAPService.class
.getResource(".");
url = new URL(
baseUrl,
"file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl");
} catch (MalformedURLException e) {
logger.warning("Failed to create URL for the wsdl Location: 'file:/common/bphillip/DataDelivery_FILES/ebXML/regrep/wsdl/1.1/regrep-server-service.wsdl', retrying as a local file");
logger.warning(e.getMessage());
}
VALIDATORSOAPSERVICE_WSDL_LOCATION = url;
}
public ValidatorSOAPService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public ValidatorSOAPService() {
super(VALIDATORSOAPSERVICE_WSDL_LOCATION, new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
"ValidatorSOAPService"));
}
/**
*
* A template SOAP endpoint for ebXML RegRep Validator interface.
@ -82,8 +60,7 @@ public class ValidatorSOAPService extends Service {
*/
@WebEndpoint(name = "ValidatorPort")
public Validator getValidatorPort() {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_SERV_URI,
"ValidatorPort"), Validator.class);
}
@ -101,8 +78,7 @@ public class ValidatorSOAPService extends Service {
*/
@WebEndpoint(name = "ValidatorPort")
public Validator getValidatorPort(WebServiceFeature... features) {
return super.getPort(new QName(
"urn:oasis:names:tc:ebxml-regrep:wsdl:registry:services:4.0",
return super.getPort(new QName(EbxmlNamespaces.RR_SERV_URI,
"ValidatorPort"), Validator.class, features);
}

View file

@ -45,7 +45,20 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
* &lt;/simpleType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlType(name = "mode")
@XmlEnum
@DynamicSerialize

View file

@ -35,6 +35,18 @@ import com.raytheon.uf.common.serialization.ISerializableObject;
* of schema type definitions, element declarations and model groups. Factory
* methods for each of these are provided in this class.
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRegistry
public class ObjectFactory implements ISerializableObject {

View file

@ -35,6 +35,7 @@ import oasis.names.tc.ebxml.regrep.xsd.rim.v4.QueryType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.SlotType;
import oasis.names.tc.ebxml.regrep.xsd.rs.v4.RegistryRequestType;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -62,7 +63,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "query", "objectRefList" })
@ -74,7 +86,7 @@ public class RemoveObjectsRequest extends RegistryRequestType {
@DynamicSerializeElement
protected QueryType query;
@XmlElement(name = "ObjectRefList", namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0")
@XmlElement(name = "ObjectRefList", namespace = EbxmlNamespaces.RIM_URI)
@DynamicSerializeElement
protected ObjectRefListType objectRefList;

View file

@ -35,6 +35,7 @@ import oasis.names.tc.ebxml.regrep.xsd.rim.v4.RegistryObjectType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.SlotType;
import oasis.names.tc.ebxml.regrep.xsd.rs.v4.RegistryRequestType;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -60,7 +61,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "registryObjectList" })
@ -68,7 +80,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@DynamicSerialize
public class SubmitObjectsRequest extends RegistryRequestType {
@XmlElement(name = "RegistryObjectList", namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0")
@XmlElement(name = "RegistryObjectList", namespace = EbxmlNamespaces.RIM_URI)
@DynamicSerializeElement
protected RegistryObjectListType registryObjectList;

View file

@ -65,7 +65,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "UpdateAction")
@XmlAccessorType(XmlAccessType.FIELD)

View file

@ -36,6 +36,7 @@ import oasis.names.tc.ebxml.regrep.xsd.rim.v4.QueryType;
import oasis.names.tc.ebxml.regrep.xsd.rim.v4.SlotType;
import oasis.names.tc.ebxml.regrep.xsd.rs.v4.RegistryRequestType;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -63,7 +64,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "query", "objectRefList", "updateAction" })
@ -75,7 +87,7 @@ public class UpdateObjectsRequest extends RegistryRequestType {
@DynamicSerializeElement
protected QueryType query;
@XmlElement(name = "ObjectRefList", namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0")
@XmlElement(name = "ObjectRefList", namespace = EbxmlNamespaces.RIM_URI)
@DynamicSerializeElement
protected ObjectRefListType objectRefList;

View file

@ -18,6 +18,8 @@
* further licensing information.
**/
@javax.xml.bind.annotation.XmlSchema(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:lcm:4.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
@javax.xml.bind.annotation.XmlSchema(namespace = EbxmlNamespaces.LCM_URI, elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package oasis.names.tc.ebxml.regrep.xsd.lcm.v4;
import com.raytheon.uf.common.registry.EbxmlNamespaces;

View file

@ -25,6 +25,7 @@ import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
import com.raytheon.uf.common.serialization.ISerializableObject;
/**
@ -38,12 +39,24 @@ import com.raytheon.uf.common.serialization.ISerializableObject;
* of schema type definitions, element declarations and model groups. Factory
* methods for each of these are provided in this class.
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRegistry
public class ObjectFactory implements ISerializableObject {
private final static QName _ResponseOption_QNAME = new QName(
"urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0", "ResponseOption");
EbxmlNamespaces.QUERY_URI, "ResponseOption");
/**
* Create a new ObjectFactory that can be used to create new instances of
@ -91,7 +104,7 @@ public class ObjectFactory implements ISerializableObject {
* {@link ResponseOptionType }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0", name = "ResponseOption")
@XmlElementDecl(namespace = EbxmlNamespaces.QUERY_URI, name = "ResponseOption")
public JAXBElement<ResponseOptionType> createResponseOption(
ResponseOptionType value) {
return new JAXBElement<ResponseOptionType>(_ResponseOption_QNAME,

View file

@ -48,7 +48,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "QueryException")
@XmlAccessorType(XmlAccessType.FIELD)

View file

@ -67,7 +67,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", propOrder = { "responseOption", "query" })
@ -102,6 +113,24 @@ public class QueryRequest extends RegistryRequestType {
/** The maxResults canonical query parameter name */
public static final String MAX_RESULTS = "maxResults";
/** The responseOption query parameter name */
public static final String RESPONSE_OPTION = "responseOption";
/** The returnRequest query parameter */
public static final String RETURN_REQUEST = "returnRequest";
/** The default format for query responses */
public static final String DEFAULT_RESPONSE_FORMAT = "application/ebrim+xml";
public static final BigInteger DEFAULT_MAX_RESULTS = new BigInteger("-1");
public static final BigInteger DEFAULT_START_INDEX = new BigInteger("0");
public static final BigInteger DEFAULT_DEPTH = new BigInteger("0");
public static final Boolean DEFAULT_MATCH_OLDER_VERSIONS = new Boolean(
false);
@XmlElement(name = "ResponseOption", required = true)
@DynamicSerializeElement
protected ResponseOptionType responseOption;
@ -297,7 +326,7 @@ public class QueryRequest extends RegistryRequestType {
*/
public String getFormat() {
if (format == null) {
return "application/ebrim+xml";
return DEFAULT_RESPONSE_FORMAT;
} else {
return format;
}
@ -343,7 +372,7 @@ public class QueryRequest extends RegistryRequestType {
*/
public BigInteger getStartIndex() {
if (startIndex == null) {
return new BigInteger("0");
return DEFAULT_START_INDEX;
} else {
return startIndex;
}
@ -368,7 +397,7 @@ public class QueryRequest extends RegistryRequestType {
*/
public BigInteger getMaxResults() {
if (maxResults == null) {
return new BigInteger("-1");
return DEFAULT_MAX_RESULTS;
} else {
return maxResults;
}
@ -393,7 +422,7 @@ public class QueryRequest extends RegistryRequestType {
*/
public BigInteger getDepth() {
if (depth == null) {
return new BigInteger("0");
return DEFAULT_DEPTH;
} else {
return depth;
}
@ -418,7 +447,7 @@ public class QueryRequest extends RegistryRequestType {
*/
public boolean isMatchOlderVersions() {
if (matchOlderVersions == null) {
return false;
return DEFAULT_MATCH_OLDER_VERSIONS;
} else {
return matchOlderVersions;
}

View file

@ -52,7 +52,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "")

View file

@ -59,7 +59,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ResponseOption")
@XmlAccessorType(XmlAccessType.FIELD)
@ -67,6 +78,34 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@DynamicSerialize
public class ResponseOptionType {
/**
* ObjectRef - This option specifies that the QueryResponse MUST contain a
* <rim:ObjectRefList> element. The purpose of this option is to return
* references to objects rather than the actual objects.
*
* RegistryObject - This option specifies that the QueryResponse MUST
* contain a <rim:RegistryObjectList> element containing
* <rim:RegistryObject> elements with xsi:type=rim:RegistryObjectType.
*
* LeafClass - This option specifies that the QueryResponse MUST contain a
* collection of <rim:RegistryObjectList> element containing
* <rim:RegistryObject> elements that have an xsi:type attribute that
* corresponds to leaf classes as defined in [regrep-xsd-v4.0]. No
* RepositoryItems SHOULD be included for any rim:ExtrinsicObjectType
* instance in the <rim:RegistryObjectList> element.
*
* LeafClassWithRepositoryItem - This option is the same as the LeafClass
* option with the additional requirement that the response include the
* RepositoryItems, if any, for every rim:ExtrinsicObjectType instance in
* the <rim:RegistryObjectList> element.
*/
public enum RETURN_TYPE {
ObjectRef, RegistryObject, LeafClass, LeafClassWithRepositoryItem
}
/** The default return type */
public static final RETURN_TYPE DEFAULT_RETURN_TYPE = RETURN_TYPE.LeafClassWithRepositoryItem;
@XmlAttribute
@XmlJavaTypeAdapter(CollapsedStringAdapter.class)
@DynamicSerializeElement
@ -93,12 +132,16 @@ public class ResponseOptionType {
*/
public String getReturnType() {
if (returnType == null) {
return "LeafClassWithRepositoryItem";
return DEFAULT_RETURN_TYPE.toString();
} else {
return returnType;
}
}
public RETURN_TYPE getReturnTypeEnum() {
return RETURN_TYPE.valueOf(getReturnType());
}
/**
* Sets the value of the returnType property.
*

View file

@ -18,6 +18,8 @@
* further licensing information.
**/
@javax.xml.bind.annotation.XmlSchema(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:query:4.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
@javax.xml.bind.annotation.XmlSchema(namespace = EbxmlNamespaces.QUERY_URI, elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
package oasis.names.tc.ebxml.regrep.xsd.query.v4;
import com.raytheon.uf.common.registry.EbxmlNamespaces;

View file

@ -40,6 +40,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -69,7 +70,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Action")
@XmlAccessorType(XmlAccessType.FIELD)
@ -77,14 +89,15 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
"affectedObjectRefs" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Action")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Action")
public class ActionType extends ExtensibleObjectType implements Serializable {
private static final long serialVersionUID = -8469820571747325703L;
@Id
@SequenceGenerator(name = "ActionTypeGenerator", schema = "ebxml", sequenceName = "ebxml.Action_sequence")
@SequenceGenerator(name = "ActionTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".Action_sequence")
@GeneratedValue(generator = "ActionTypeGenerator")
@XmlTransient
private Integer key;

View file

@ -33,6 +33,7 @@ import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import org.w3c.dom.Element;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -62,10 +63,22 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*
*/
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@XmlRootElement(name = "AnyValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AnyValueType", propOrder = { "anyValue" })

View file

@ -32,6 +32,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Index;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -62,15 +63,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Association")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AssociationType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Association")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Association")
public class AssociationType extends RegistryObjectType {
@XmlAttribute(required = true)

View file

@ -42,6 +42,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -70,20 +71,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "AuditableEvent")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "AuditableEventType", propOrder = { "action" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "AuditableEvent")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "AuditableEvent")
public class AuditableEventType extends RegistryObjectType {
@XmlElement(name = "Action", required = true)
@DynamicSerializeElement
@OneToMany(cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<ActionType> action;
@Column

View file

@ -32,6 +32,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -59,15 +60,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "BooleanValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "BooleanValueType", propOrder = { "booleanValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "BooleanValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "BooleanValue")
public class BooleanValueType extends ValueType {
@Column(name = COLUMN_NAME)

View file

@ -32,6 +32,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Index;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -60,15 +61,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ClassificationNodeType")
@XmlRootElement(name = "ClassificationNode")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "ClassificationNode")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ClassificationNode")
public class ClassificationNodeType extends TaxonomyElementType {
@XmlAttribute

View file

@ -31,6 +31,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -58,15 +59,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ClassificationScheme")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ClassificationSchemeType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Table(schema = "ebxml", name = "ClassificationScheme")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ClassificationScheme")
public class ClassificationSchemeType extends TaxonomyElementType {
@XmlAttribute(required = true)

View file

@ -31,6 +31,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -61,15 +62,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Classification")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ClassificationType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Classification")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Classification")
public class ClassificationType extends RegistryObjectType {
@XmlAttribute

View file

@ -39,6 +39,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -68,22 +69,33 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "CollectionValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CollectionValueType", propOrder = { "collectionValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "CollectionValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "CollectionValue")
public class CollectionValueType extends ValueType {
@XmlElement(name = "Element")
@DynamicSerializeElement
@Column(name = COLUMN_NAME)
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<ValueType> collectionValue;
@XmlAttribute

View file

@ -54,7 +54,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Comment")
@XmlAccessorType(XmlAccessType.FIELD)

View file

@ -39,6 +39,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -66,15 +67,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "DateTimeValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DateTimeValueType", propOrder = { "dateTimeValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "DateTimeValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "DateTimeValue")
public class DateTimeValueType extends ValueType {
@Column(name = "DateTimeValue")

View file

@ -39,6 +39,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -70,19 +71,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "DeliveryInfo")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DeliveryInfoType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "DeliveryInfo")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "DeliveryInfo")
public class DeliveryInfoType extends ExtensibleObjectType {
@Id
@SequenceGenerator(name = "DeliveryInfoTypeGenerator", schema = "ebxml", sequenceName = "ebxml.DeliveryInfo_sequence")
@SequenceGenerator(name = "DeliveryInfoTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".DeliveryInfo_sequence")
@GeneratedValue(generator = "DeliveryInfoTypeGenerator")
@XmlTransient
private Integer key;

View file

@ -34,6 +34,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -61,15 +62,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "DurationValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DurationValueType", propOrder = { "durationValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "DurationValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "DurationValue")
public class DurationValueType extends ValueType {
@XmlElement(name = "Value")

View file

@ -34,6 +34,7 @@ import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -62,15 +63,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "DynamicObjectRef")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DynamicObjectRefType", propOrder = { "query" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "DynamicObjectRef")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "DynamicObjectRef")
public class DynamicObjectRefType extends ObjectRefType {
@XmlElement(name = "Query", required = true)

View file

@ -37,6 +37,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -62,21 +63,33 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "EmailAddress")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EmailAddressType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "EmailAddress")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "EmailAddress")
public class EmailAddressType extends ExtensibleObjectType implements
Serializable {
private static final long serialVersionUID = -2958054699149020163L;
@Id
@SequenceGenerator(name = "EmailAddressTypeGenerator", schema = "ebxml", sequenceName = "ebxml.EmailAddress_sequence")
@SequenceGenerator(name = "EmailAddressTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".EmailAddress_sequence")
@GeneratedValue(generator = "EmailAddressTypeGenerator")
@XmlTransient
private Integer key;

View file

@ -36,6 +36,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -65,15 +66,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Entry")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EntryType", propOrder = { "entryKey", "entryValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Entry")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Entry")
public class EntryType implements Serializable {
private static final long serialVersionUID = -641063902591977048L;

View file

@ -20,10 +20,12 @@
package oasis.names.tc.ebxml.regrep.xsd.rim.v4;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
import java.util.List;
import java.util.Map;
import java.util.Set;
@ -48,6 +50,7 @@ import org.hibernate.annotations.BatchSize;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
import com.raytheon.uf.common.status.IUFStatusHandler;
@ -77,7 +80,18 @@ import com.raytheon.uf.common.status.UFStatus;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ExtensibleObject")
@XmlAccessorType(XmlAccessType.FIELD)
@ -90,7 +104,7 @@ import com.raytheon.uf.common.status.UFStatus;
RegistryResponseType.class, RegistryRequestType.class })
@DynamicSerialize
@MappedSuperclass
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
public abstract class ExtensibleObjectType {
private static final IUFStatusHandler statusHandler = UFStatus
@ -98,7 +112,7 @@ public abstract class ExtensibleObjectType {
@BatchSize(size = 500)
@ManyToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY)
@JoinTable(schema = "ebxml", inverseJoinColumns = @JoinColumn(name = "child_slot_key"))
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA, inverseJoinColumns = @JoinColumn(name = "child_slot_key"))
@XmlElement(name = "Slot")
@DynamicSerializeElement
protected Set<SlotType> slot;
@ -222,6 +236,28 @@ public abstract class ExtensibleObjectType {
return (T) retVal;
}
@SuppressWarnings("unchecked")
public <T> List<T> getSlotValueAsList(String slotName) {
List<T> retVal = new ArrayList<T>();
for (SlotType slot : getSlot()) {
if (slot.getName().equals(slotName)) {
retVal.add((T) slot.getSlotValue().getValue());
}
}
return retVal;
}
public Map<String, Object> getSlotNameValues() {
if (this.getSlot().isEmpty()) {
return Collections.emptyMap();
}
Map<String, Object> map = new HashMap<String, Object>(slot.size());
for (SlotType slot : this.getSlot()) {
map.put(slot.getName(), slot.getSlotValue().getValue());
}
return map;
}
/*
* (non-Javadoc)
*

View file

@ -31,6 +31,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -60,15 +61,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ExternalIdentifier")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExternalIdentifierType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "ExternalIdentifier")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ExternalIdentifier")
public class ExternalIdentifierType extends RegistryObjectType {
@XmlAttribute

View file

@ -34,6 +34,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -63,15 +64,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ExternalIdentifier")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ExternalLinkType", propOrder = { "externalRef" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "ExternalLink")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ExternalLink")
public class ExternalLinkType extends RegistryObjectType {
@XmlElement(name = "ExternalRef", required = true)

View file

@ -41,6 +41,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -75,7 +76,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ExtrinsicObject")
@XmlAccessorType(XmlAccessType.FIELD)
@ -84,8 +96,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@XmlSeeAlso({ CommentType.class })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "ExtrinsicObject")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ExtrinsicObject")
public class ExtrinsicObjectType extends RegistryObjectType {
@XmlElement(name = "ContentVersionInfo")

View file

@ -33,6 +33,7 @@ import javax.xml.datatype.Duration;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -56,15 +57,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Federation")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FederationType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Federation")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Federation")
public class FederationType extends RegistryObjectType {
@Transient

View file

@ -32,6 +32,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -59,15 +60,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "FloatValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FloatValueType", propOrder = { "floatValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "FloatValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "FloatValue")
public class FloatValueType extends ValueType {
@Column(name = COLUMN_NAME)
@XmlElement(name = "Value")

View file

@ -56,7 +56,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "IdentifiableList")
@XmlAccessorType(XmlAccessType.FIELD)

View file

@ -35,6 +35,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.dataplugin.persist.IPersistableDataObject;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -61,7 +62,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Identifiable")
@XmlAccessorType(XmlAccessType.FIELD)
@ -69,7 +81,7 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@XmlSeeAlso({ RegistryObjectType.class })
@DynamicSerialize
@MappedSuperclass
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
public abstract class IdentifiableType extends ExtensibleObjectType implements
IPersistableDataObject<String> {

View file

@ -34,6 +34,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -61,15 +62,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "IntegerValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IntegerValueType", propOrder = { "integerValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "IntegerValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "IntegerValue")
public class IntegerValueType extends ValueType {
@Column(name = COLUMN_NAME)
@XmlElement(name = "Value")

View file

@ -43,6 +43,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -73,21 +74,33 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "InternationalString")
@XmlAccessorType(XmlAccessType.FIELD)
@DynamicSerialize
@XmlType(name = "InternationalStringType", propOrder = { "localizedString" })
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Table(schema = "ebxml", name = "InternationalString")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "InternationalString")
public class InternationalStringType implements Serializable {
private static final long serialVersionUID = 2414977045816695691L;
@Id
@SequenceGenerator(name = "InternationalStringTypeGenerator", schema = "ebxml", sequenceName = "ebxml.InternationalString_sequence")
@SequenceGenerator(name = "InternationalStringTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".InternationalString_sequence")
@GeneratedValue(generator = "InternationalStringTypeGenerator")
@XmlTransient
private Integer key;
@ -95,7 +108,7 @@ public class InternationalStringType implements Serializable {
@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
@XmlElement(name = "LocalizedString")
@DynamicSerializeElement
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<LocalizedStringType> localizedString;
public InternationalStringType() {

View file

@ -33,6 +33,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -61,15 +62,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "InternationalStringValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "InternationalStringValueType", propOrder = { "internationalStringValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "InternationalStringValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "InternationalStringValue")
public class InternationalStringValueType extends ValueType {
@XmlElement(name = "Value")

View file

@ -36,6 +36,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -64,19 +65,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "LocalizedString")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LocalizedStringType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "LocalizedString")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "LocalizedString")
public class LocalizedStringType {
@Id
@SequenceGenerator(name = "LocalizedStringTypeGenerator", schema = "ebxml", sequenceName = "ebxml.LocalizedString_sequence")
@SequenceGenerator(name = "LocalizedStringTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".LocalizedString_sequence")
@GeneratedValue(generator = "LocalizedStringTypeGenerator")
@XmlTransient
private Integer key;

View file

@ -42,6 +42,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -70,21 +71,33 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Map")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MapType", propOrder = { "entry" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Map")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Map")
public class MapType implements Serializable {
private static final long serialVersionUID = 5533297201296624269L;
@Id
@SequenceGenerator(name = "MapTypeGenerator", schema = "ebxml", sequenceName = "ebxml.Map_sequence")
@SequenceGenerator(name = "MapTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".Map_sequence")
@GeneratedValue(generator = "MapTypeGenerator")
@XmlTransient
protected Integer key;
@ -96,7 +109,7 @@ public class MapType implements Serializable {
@XmlElement(name = "Entry")
@DynamicSerializeElement
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<EntryType> entry;
public MapType() {

View file

@ -32,6 +32,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -59,10 +60,21 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@Entity(name = "MapValue")
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "MapValueType", propOrder = { "mapValue" })

View file

@ -38,6 +38,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -65,22 +66,33 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Notification")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "NotificationType", propOrder = { "event" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Notification")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Notification")
public class NotificationType extends RegistryObjectType {
@XmlElement(name = "Event", required = true)
@DynamicSerializeElement
@ManyToMany
@Cascade({})
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<AuditableEventType> event;
@XmlAttribute(required = true)

View file

@ -25,6 +25,7 @@ import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
import com.raytheon.uf.common.serialization.ISerializableObject;
/**
@ -38,27 +39,40 @@ import com.raytheon.uf.common.serialization.ISerializableObject;
* of schema type definitions, element declarations and model groups. Factory
* methods for each of these are provided in this class.
*
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRegistry
public class ObjectFactory implements ISerializableObject {
private final static QName _IdentifiableList_QNAME = new QName(
"urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", "IdentifiableList");
EbxmlNamespaces.RIM_URI, "IdentifiableList");
private final static QName _ObjectRefList_QNAME = new QName(
"urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", "ObjectRefList");
EbxmlNamespaces.RIM_URI, "ObjectRefList");
private final static QName _Notification_QNAME = new QName(
"urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", "Notification");
EbxmlNamespaces.RIM_URI, "Notification");
private final static QName _RegistryObject_QNAME = new QName(
"urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", "RegistryObject");
EbxmlNamespaces.RIM_URI, "RegistryObject");
private final static QName _RegistryObjectList_QNAME = new QName(
"urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", "RegistryObjectList");
EbxmlNamespaces.RIM_URI, "RegistryObjectList");
private final static QName _ObjectRef_QNAME = new QName(
"urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", "ObjectRef");
EbxmlNamespaces.RIM_URI, "ObjectRef");
/**
* Create a new ObjectFactory that can be used to create new instances of
@ -546,7 +560,7 @@ public class ObjectFactory implements ISerializableObject {
* {@link IdentifiableListType }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", name = "IdentifiableList")
@XmlElementDecl(namespace = EbxmlNamespaces.RIM_URI, name = "IdentifiableList")
public JAXBElement<IdentifiableListType> createIdentifiableList(
IdentifiableListType value) {
return new JAXBElement<IdentifiableListType>(_IdentifiableList_QNAME,
@ -558,7 +572,7 @@ public class ObjectFactory implements ISerializableObject {
* {@link ObjectRefListType }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", name = "ObjectRefList")
@XmlElementDecl(namespace = EbxmlNamespaces.RIM_URI, name = "ObjectRefList")
public JAXBElement<ObjectRefListType> createObjectRefList(
ObjectRefListType value) {
return new JAXBElement<ObjectRefListType>(_ObjectRefList_QNAME,
@ -570,7 +584,7 @@ public class ObjectFactory implements ISerializableObject {
* {@link NotificationType }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", name = "Notification")
@XmlElementDecl(namespace = EbxmlNamespaces.RIM_URI, name = "Notification")
public JAXBElement<NotificationType> createNotification(
NotificationType value) {
return new JAXBElement<NotificationType>(_Notification_QNAME,
@ -582,7 +596,7 @@ public class ObjectFactory implements ISerializableObject {
* {@link RegistryObjectType }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", name = "RegistryObject")
@XmlElementDecl(namespace = EbxmlNamespaces.RIM_URI, name = "RegistryObject")
public JAXBElement<RegistryObjectType> createRegistryObject(
RegistryObjectType value) {
return new JAXBElement<RegistryObjectType>(_RegistryObject_QNAME,
@ -594,7 +608,7 @@ public class ObjectFactory implements ISerializableObject {
* {@link RegistryObjectListType }{@code >}
*
*/
@XmlElementDecl(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", name = "RegistryObjectList")
@XmlElementDecl(namespace = EbxmlNamespaces.RIM_URI, name = "RegistryObjectList")
public JAXBElement<RegistryObjectListType> createRegistryObjectList(
RegistryObjectListType value) {
return new JAXBElement<RegistryObjectListType>(
@ -607,7 +621,7 @@ public class ObjectFactory implements ISerializableObject {
* {@code >}
*
*/
@XmlElementDecl(namespace = "urn:oasis:names:tc:ebxml-regrep:xsd:rim:4.0", name = "ObjectRef")
@XmlElementDecl(namespace = EbxmlNamespaces.RIM_URI, name = "ObjectRef")
public JAXBElement<ObjectRefType> createObjectRef(ObjectRefType value) {
return new JAXBElement<ObjectRefType>(_ObjectRef_QNAME,
ObjectRefType.class, null, value);

View file

@ -42,6 +42,7 @@ import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -69,19 +70,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ObjectRefList")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ObjectRefListType", propOrder = { "objectRef" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "ObjectRefList")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ObjectRefList")
public class ObjectRefListType {
@Id
@SequenceGenerator(name = "ObjectRefListTypeGenerator", schema = "ebxml", sequenceName = "ebxml.ObjectRefList_sequence")
@SequenceGenerator(name = "ObjectRefListTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".ObjectRefList_sequence")
@GeneratedValue(generator = "ObjectRefListTypeGenerator")
@XmlTransient
private Integer key;
@ -90,7 +103,7 @@ public class ObjectRefListType {
@DynamicSerializeElement
@ManyToMany
@Cascade({ CascadeType.SAVE_UPDATE })
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<ObjectRefType> objectRef;
public Integer getKey() {

View file

@ -36,6 +36,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.dataplugin.persist.IPersistableDataObject;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -61,7 +62,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ObjectRef")
@XmlAccessorType(XmlAccessType.FIELD)
@ -69,9 +81,9 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@XmlSeeAlso({ DynamicObjectRefType.class })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Table(schema = "ebxml", name = "ObjectRef")
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ObjectRef")
public class ObjectRefType extends ExtensibleObjectType implements
IPersistableDataObject<String> {

View file

@ -25,6 +25,7 @@ import java.util.List;
import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.Table;
@ -38,6 +39,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -65,21 +67,32 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Organization")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OrganizationType", propOrder = { "organization" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Organization")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Organization")
public class OrganizationType extends PartyType {
@XmlElement(name = "Organization")
@DynamicSerializeElement
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA, joinColumns = @JoinColumn(name = "org_id"), inverseJoinColumns = @JoinColumn(name = "org_id2"))
protected List<OrganizationType> organization;
@XmlAttribute

View file

@ -42,6 +42,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -76,19 +77,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Parameter")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ParameterType", propOrder = { "name", "description" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Parameter")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Parameter")
public class ParameterType extends ExtensibleObjectType implements Serializable {
@Id
@SequenceGenerator(name = "ParameterTypeGenerator", schema = "ebxml", sequenceName = "ebxml.Parameter_sequence")
@SequenceGenerator(name = "ParameterTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".Parameter_sequence")
@GeneratedValue(generator = "ParameterTypeGenerator")
@XmlTransient
protected Integer key;

View file

@ -34,6 +34,7 @@ import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -61,7 +62,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Party")
@XmlAccessorType(XmlAccessType.FIELD)
@ -75,19 +87,19 @@ public abstract class PartyType extends RegistryObjectType {
@XmlElement(name = "PostalAddress")
@DynamicSerializeElement
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<PostalAddressType> postalAddress;
@XmlElement(name = "TelephoneNumber")
@DynamicSerializeElement
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<TelephoneNumberType> telephoneNumber;
@XmlElement(name = "EmailAddress")
@DynamicSerializeElement
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<EmailAddressType> emailAddress;
/**

View file

@ -34,6 +34,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -59,15 +60,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "PersonName")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PersonNameType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "PersonName")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "PersonName")
public class PersonNameType extends ExtensibleObjectType implements
Serializable {

View file

@ -33,6 +33,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -58,6 +59,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*
*/
@XmlRootElement(name = "Person")
@ -65,8 +78,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@XmlType(name = "PersonType", propOrder = { "personName" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Person")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Person")
public class PersonType extends PartyType {
@XmlElement(name = "PersonName")

View file

@ -35,6 +35,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -65,19 +66,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "PostalAddress")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "PostalAddressType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "PostalAddress")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "PostalAddress")
public class PostalAddressType extends ExtensibleObjectType {
@Id
@SequenceGenerator(name = "PostalAddressTypeGenerator", schema = "ebxml", sequenceName = "ebxml.PostalAddress_sequence")
@SequenceGenerator(name = "PostalAddressTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".PostalAddress_sequence")
@GeneratedValue(generator = "PostalAddressTypeGenerator")
@XmlTransient
private Integer key;

View file

@ -38,6 +38,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -66,7 +67,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "QueryDefinition")
@XmlAccessorType(XmlAccessType.FIELD)
@ -74,14 +86,14 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
"queryExpression" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "QueryDefinition")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "QueryDefinition")
public class QueryDefinitionType extends RegistryObjectType {
@ManyToMany(cascade = CascadeType.ALL)
@XmlElement(name = "Parameter")
@DynamicSerializeElement
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<ParameterType> parameter;
@ManyToOne(cascade = CascadeType.ALL)

View file

@ -38,6 +38,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -66,7 +67,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "QueryExpression")
@XmlAccessorType(XmlAccessType.FIELD)
@ -74,13 +86,14 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@XmlSeeAlso({ StringQueryExpressionType.class, XMLQueryExpressionType.class })
@DynamicSerialize
@Entity
@Table(schema = "ebxml", name = "QueryExpression")
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "QueryExpression")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class QueryExpressionType extends ExtensibleObjectType {
@Id
@SequenceGenerator(name = "QueryExpressionTypeGenerator", schema = "ebxml", sequenceName = "ebxml.QueryExpression_sequence")
@SequenceGenerator(name = "QueryExpressionTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".QueryExpression_sequence")
@GeneratedValue(generator = "QueryExpressionTypeGenerator")
@XmlTransient
protected Integer key;

View file

@ -37,6 +37,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -63,19 +64,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Query")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "QueryType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Query")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Query")
public class QueryType extends ExtensibleObjectType {
@Id
@SequenceGenerator(name = "QueryTypeGenerator", schema = "ebxml", sequenceName = "ebxml.Query_sequence")
@SequenceGenerator(name = "QueryTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".Query_sequence")
@GeneratedValue(generator = "QueryTypeGenerator")
@XmlTransient
private Integer key;

View file

@ -42,6 +42,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -69,28 +70,40 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "RegistryObjectList")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RegistryObjectListType", propOrder = { "registryObject" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "RegistryObjectList")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "RegistryObjectList")
public class RegistryObjectListType implements Serializable {
private static final long serialVersionUID = -254507015539461400L;
@Id
@SequenceGenerator(name = "RegistryObjectListTypeGenerator", schema = "ebxml", sequenceName = "ebxml.RegistryObjectList_sequence")
@SequenceGenerator(name = "RegistryObjectListTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".RegistryObjectList_sequence")
@GeneratedValue(generator = "RegistryObjectListTypeGenerator")
@XmlTransient
private Integer key;
@ManyToMany
@Cascade({})
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
@XmlElement(name = "RegistryObject")
@DynamicSerializeElement
protected List<RegistryObjectType> registryObject;

View file

@ -46,6 +46,7 @@ import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.Index;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -84,7 +85,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "RegistryObject")
@XmlAccessorType(XmlAccessType.FIELD)
@ -102,9 +114,9 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
RoleType.class })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
@Table(schema = "ebxml", name = "RegistryObject")
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "RegistryObject")
public class RegistryObjectType extends IdentifiableType {
@XmlElement(name = "Name")
@DynamicSerializeElement
@ -127,19 +139,19 @@ public class RegistryObjectType extends IdentifiableType {
org.hibernate.annotations.CascadeType.DETACH,
org.hibernate.annotations.CascadeType.MERGE })
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected Set<ClassificationType> classification;
@XmlElement(name = "ExternalIdentifier")
@DynamicSerializeElement
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected Set<ExternalIdentifierType> externalIdentifier;
@XmlElement(name = "ExternalLink")
@DynamicSerializeElement
@ManyToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL)
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected Set<ExternalLinkType> externalLink;
@XmlAttribute
@ -442,4 +454,8 @@ public class RegistryObjectType extends IdentifiableType {
this.status = value;
}
public String toString() {
return this.id;
}
}

View file

@ -33,6 +33,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -61,15 +62,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "RegistryPackage")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RegistryPackageType", propOrder = { "registryObjectList" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "RegistryPackage")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "RegistryPackage")
public class RegistryPackageType extends RegistryObjectType {
@OneToOne(cascade = CascadeType.ALL)

View file

@ -36,6 +36,7 @@ import javax.xml.datatype.Duration;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -72,15 +73,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Registry")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RegistryType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Registry")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Registry")
public class RegistryType extends RegistryObjectType {
@XmlAttribute(required = true)

View file

@ -31,6 +31,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -59,15 +60,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Role")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "RoleType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Role")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Role")
public class RoleType extends RegistryObjectType {
@XmlAttribute(required = true)

View file

@ -31,6 +31,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -57,15 +58,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ServiceBinding")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ServiceBindingType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "ServiceBinding")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ServiceBinding")
public class ServiceBindingType extends RegistryObjectType {
@XmlAttribute

View file

@ -32,6 +32,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -60,15 +61,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "ServiceEndpoint")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ServiceEndpointType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "ServiceEndpoint")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ServiceEndpoint")
public class ServiceEndpointType extends RegistryObjectType {
@XmlAttribute

View file

@ -32,6 +32,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
/**
@ -56,6 +57,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*
*/
@XmlRootElement(name = "ServiceInterface")
@ -63,8 +76,8 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
@XmlType(name = "ServiceInterfaceType")
@DynamicSerialize
@Entity
@Table(schema = "ebxml", name = "ServiceInterface")
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "ServiceInterface")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class ServiceInterfaceType extends RegistryObjectType {

View file

@ -38,6 +38,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -67,21 +68,32 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Service")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ServiceType", propOrder = { "serviceEndpoint" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Service")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Service")
public class ServiceType extends RegistryObjectType {
@ManyToMany(cascade = CascadeType.ALL)
@XmlElement(name = "ServiceEndpoint")
@DynamicSerializeElement
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<ServiceEndpointType> serviceEndpoint;
@XmlAttribute

View file

@ -39,6 +39,8 @@ import org.w3.v1999.xlink.ActuateType;
import org.w3.v1999.xlink.ShowType;
import org.w3.v1999.xlink.TypeType;
import com.raytheon.uf.common.registry.EbxmlNamespaces;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -66,19 +68,31 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "SimpleLink")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SimpleLinkType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "SimpleLink")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "SimpleLink")
public class SimpleLinkType {
@Id
@SequenceGenerator(name = "SimpleLinkTypeGenerator", schema = "ebxml", sequenceName = "ebxml.SimpleLink_sequence")
@SequenceGenerator(name = "SimpleLinkTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ "SimpleLink_sequence")
@GeneratedValue(generator = "SimpleLinkTypeGenerator")
@XmlTransient
private Integer key;
@ -87,31 +101,31 @@ public class SimpleLinkType {
return key;
}
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
@XmlAttribute(namespace = EbxmlNamespaces.XLINK_URI)
@Transient
protected TypeType type;
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
@XmlAttribute(namespace = EbxmlNamespaces.XLINK_URI)
@DynamicSerializeElement
protected String href;
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
@XmlAttribute(namespace = EbxmlNamespaces.XLINK_URI)
@DynamicSerializeElement
protected String role;
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
@XmlAttribute(namespace = EbxmlNamespaces.XLINK_URI)
@DynamicSerializeElement
protected String arcrole;
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
@XmlAttribute(namespace = EbxmlNamespaces.XLINK_URI)
@DynamicSerializeElement
protected String title;
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
@XmlAttribute(namespace = EbxmlNamespaces.XLINK_URI)
@Transient
protected ShowType show;
@XmlAttribute(namespace = "http://www.w3.org/1999/xlink")
@XmlAttribute(namespace = EbxmlNamespaces.XLINK_URI)
@Transient
protected ActuateType actuate;

View file

@ -45,6 +45,7 @@ import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Index;
import com.raytheon.uf.common.dataplugin.persist.IPersistableDataObject;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -77,22 +78,34 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Slot")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SlotType", propOrder = { "slotValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Table(schema = "ebxml", name = "Slot")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL, include = "all")
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Slot")
public class SlotType extends ExtensibleObjectType implements
IPersistableDataObject<Integer>, Serializable {
private static final long serialVersionUID = -2184582316481503043L;
@Id
@SequenceGenerator(name = "ExtensibleObjectTypeGenerator", schema = "ebxml", sequenceName = "ebxml.Slot_sequence")
@SequenceGenerator(name = "ExtensibleObjectTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".Slot_sequence")
@GeneratedValue(generator = "ExtensibleObjectTypeGenerator")
@XmlTransient
private Integer key;

View file

@ -33,6 +33,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -60,15 +61,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "SlotValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SlotValueType", propOrder = { "slotValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "SlotValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "SlotValue")
public class SlotValueType extends ValueType {
@XmlElement(name = "Slot")

View file

@ -31,6 +31,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -59,11 +60,22 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@Entity
@Table(schema = "ebxml", name = "StringQueryExpression")
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "StringQueryExpression")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@XmlRootElement(name = "StringQueryExpression")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StringQueryExpressionType", propOrder = { "value" })

View file

@ -32,6 +32,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -60,15 +61,26 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "StringValue")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "StringValueType", propOrder = { "stringValue" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "StringValue")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "StringValue")
public class StringValueType extends ValueType {
@Column(name = COLUMN_NAME, columnDefinition = "text")

View file

@ -44,6 +44,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.Type;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -73,21 +74,32 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Subscription")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "SubscriptionType", propOrder = { "deliveryInfo", "selector" })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Subscription")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Subscription")
public class SubscriptionType extends RegistryObjectType {
@OneToMany(cascade = CascadeType.ALL)
@XmlElement(name = "DeliveryInfo")
@DynamicSerializeElement
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected List<DeliveryInfoType> deliveryInfo;
@OneToOne(cascade = CascadeType.ALL)

View file

@ -36,6 +36,7 @@ import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.bind.annotation.XmlType;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -63,7 +64,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "TaxonomyElement")
@XmlAccessorType(XmlAccessType.FIELD)
@ -77,7 +89,7 @@ public abstract class TaxonomyElementType extends RegistryObjectType {
@ManyToMany(cascade = CascadeType.ALL)
@XmlElement(name = "ClassificationNode")
@DynamicSerializeElement
@JoinTable(schema = "ebxml")
@JoinTable(schema = RegrepUtil.EBXML_SCHEMA)
protected Set<ClassificationNodeType> classificationNode;
/**

View file

@ -35,6 +35,7 @@ import javax.xml.bind.annotation.XmlType;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.registry.schemas.ebxml.util.annotations.RegistryObjectReference;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@ -63,6 +64,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*
*/
@XmlRootElement(name = "TelephoneNumber")
@ -70,12 +83,13 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerializeElement;
@XmlType(name = "TelephoneNumberType")
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "TelephoneNumber")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "TelephoneNumber")
public class TelephoneNumberType extends ExtensibleObjectType {
@Id
@SequenceGenerator(name = "TelephoneNumberTypeGenerator", schema = "ebxml", sequenceName = "ebxml.TelephoneNumber_sequence")
@SequenceGenerator(name = "TelephoneNumberTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".TelephoneNumber_sequence")
@GeneratedValue(generator = "TelephoneNumberTypeGenerator")
@XmlTransient
private Integer key;

View file

@ -38,6 +38,7 @@ import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import com.raytheon.uf.common.dataplugin.persist.IPersistableDataObject;
import com.raytheon.uf.common.registry.RegrepUtil;
import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
/**
@ -61,7 +62,18 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
* &lt;/complexType>
* </pre>
*
* <pre>
*
* SOFTWARE HISTORY
*
* Date Ticket# Engineer Description
* ------------ ---------- ----------- --------------------------
* 2012 bphillip Initial implementation
* 10/17/2013 1682 bphillip Added software history
* </pre>
*
* @author bphillip
* @version 1
*/
@XmlRootElement(name = "Value")
@XmlAccessorType(XmlAccessType.FIELD)
@ -73,13 +85,14 @@ import com.raytheon.uf.common.serialization.annotations.DynamicSerialize;
DurationValueType.class, CollectionValueType.class })
@DynamicSerialize
@Entity
@Cache(region = "registryObjects", usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = "ebxml", name = "Value")
@Cache(region = RegrepUtil.DB_CACHE_REGION, usage = CacheConcurrencyStrategy.TRANSACTIONAL)
@Table(schema = RegrepUtil.EBXML_SCHEMA, name = "Value")
@Inheritance(strategy = InheritanceType.SINGLE_TABLE)
public abstract class ValueType implements IPersistableDataObject<Integer> {
@Id
@SequenceGenerator(name = "ValueTypeGenerator", schema = "ebxml", sequenceName = "ebxml.Value_sequence")
@SequenceGenerator(name = "ValueTypeGenerator", schema = RegrepUtil.EBXML_SCHEMA, sequenceName = RegrepUtil.EBXML_SCHEMA
+ ".Value_sequence")
@GeneratedValue(generator = "ValueTypeGenerator")
@XmlTransient
protected Integer key;

Some files were not shown because too many files have changed in this diff Show more