@Controller
@Api("OAI-PMH Taxa")
@RequestMapping(value = "/taxon/oai", params = "verb")
-public class TaxonOaiPmhController extends AbstractOaiPmhController<TaxonBase, ITaxonService> {
+public class TaxonOaiPmhController
+ extends AbstractOaiPmhController<TaxonBase, ITaxonService> {
@Override
protected List<String> getPropertyPaths() {
- List<String> propertyPaths = new ArrayList<String>();
+ List<String> propertyPaths = new ArrayList<>();
propertyPaths.add("createdBy");
propertyPaths.add("updatedBy");
propertyPaths.add("name.titleCache");
public void setService(ITaxonService service) {
this.service = service;
}
-}
+}
\ No newline at end of file
//
-// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs
-// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
-// Any modifications to this file will be lost upon recompilation of the source schema.
-// Generated on: 2009.11.02 at 12:58:05 PM GMT
+// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.1-b02-fcs
+// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
+// Any modifications to this file will be lost upon recompilation of the source schema.
+// Generated on: 2009.11.02 at 12:58:05 PM GMT
//
* A resumptionToken may have 3 optional attributes
* and can be used in ListSets, ListIdentifiers, ListRecords
* responses.
- *
+ *
* <p>Java class for resumptionTokenType complex type.
- *
+ *
* <p>The following schema fragment specifies the expected content contained within this class.
- *
+ *
* <pre>
* <complexType name="resumptionTokenType">
* <simpleContent>
* </simpleContent>
* </complexType>
* </pre>
- *
- *
+ *
+ *
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "resumptionTokenType", propOrder = {
})
public class ResumptionToken implements Serializable {
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
+ private static final long serialVersionUID = 6381710233899646281L;
+
@XmlValue
protected String value;
+
@XmlAttribute
@XmlJavaTypeAdapter(DateTimeAdapter.class)
protected DateTime expirationDate;
+
@XmlAttribute
@XmlSchemaType(name = "positiveInteger")
protected BigInteger completeListSize;
+
@XmlAttribute
@XmlSchemaType(name = "nonNegativeInteger")
protected BigInteger cursor;
-
+
@XmlTransient
private MetadataPrefix metadataPrefix;
-
+
@XmlTransient
private DateTime from;
-
+
@XmlTransient
private DateTime until;
-
+
@XmlTransient
private SetSpec set;
/**
* Gets the value of the value property.
- *
+ *
* @return
* possible object is
* {@link String }
- *
+ *
*/
public String getValue() {
return value;
/**
* Sets the value of the value property.
- *
+ *
* @param value
* allowed object is
* {@link String }
- *
+ *
*/
public void setValue(String value) {
this.value = value;
/**
* Gets the value of the expirationDate property.
- *
+ *
* @return
* possible object is
* {@link XMLGregorianCalendar }
- *
+ *
*/
public DateTime getExpirationDate() {
return expirationDate;
/**
* Sets the value of the expirationDate property.
- *
+ *
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
- *
+ *
*/
public void setExpirationDate(DateTime value) {
this.expirationDate = value;
/**
* Gets the value of the completeListSize property.
- *
+ *
* @return
* possible object is
* {@link BigInteger }
- *
+ *
*/
public BigInteger getCompleteListSize() {
return completeListSize;
/**
* Sets the value of the completeListSize property.
- *
+ *
* @param value
* allowed object is
* {@link BigInteger }
- *
+ *
*/
public void setCompleteListSize(BigInteger value) {
this.completeListSize = value;
/**
* Gets the value of the cursor property.
- *
+ *
* @return
* possible object is
* {@link BigInteger }
- *
+ *
*/
public BigInteger getCursor() {
return cursor;
/**
* Sets the value of the cursor property.
- *
+ *
* @param value
* allowed object is
* {@link BigInteger }
- *
+ *
*/
public void setCursor(BigInteger value) {
this.cursor = value;
public SetSpec getSet() {
return set;
}
-
+
public void updateResults(Pager results) {
this.completeListSize = BigInteger.valueOf(results.getCount());
this.cursor = BigInteger.valueOf(results.getPageSize() * results.getCurrentIndex());