From 95b549da2cfd6d4e1bff9f3b82fcb5ae0f08743a Mon Sep 17 00:00:00 2001 From: Rogiel Date: Fri, 20 Jan 2012 00:42:10 -0200 Subject: [PATCH] Implements 4shared.com service --- .../httpchannel/service/AccountDetails.java | 13 + .../httpchannel/wirecopy/ChannelCopyTest.java | 4 +- .../httpchannel-service-4shared/pom.xml | 38 + .../shared/soap/client/AccountItem.java | 313 +++ .../shared/soap/client/AccountItemArray.java | 69 + .../shared/soap/client/ApiException.java | 49 + .../shared/soap/client/DesktopApp.wsdl | 2307 +++++++++++++++++ .../shared/soap/client/DesktopAppJax2.java | 1495 +++++++++++ .../soap/client/DesktopAppJax2Service.java | 58 + .../shared/soap/client/DirHistoryDTO.java | 253 ++ .../soap/client/DirHistoryDTOArray.java | 69 + .../soap/client/DirHistoryDTOArrayArray.java | 69 + .../shared/soap/client/ExifInfo.java | 206 ++ .../shared/soap/client/ExifInfoArray.java | 69 + .../shared/soap/client/FaultBean.java | 87 + .../shared/soap/client/FileUploadInfo.java | 144 + .../shared/soap/client/LongArray.java | 69 + .../pmstation/shared/soap/client/Mp3Info.java | 293 +++ .../shared/soap/client/Mp3InfoArray.java | 69 + .../shared/soap/client/ObjectFactory.java | 205 ++ .../shared/soap/client/SettingsGroup.java | 106 + .../soap/client/SettingsGroupArray.java | 69 + .../soap/client/SharedFolderProperties.java | 429 +++ .../client/SharedFolderPropertiesArray.java | 69 + .../shared/soap/client/StringArray.java | 69 + .../shared/soap/client/UserSetting.java | 215 ++ .../shared/soap/client/UserSettings.java | 96 + .../shared/soap/client/UserSettingsArray.java | 69 + .../shared/soap/client/package-info.java | 2 + .../service/fourshared/FourSharedService.java | 261 ++ .../com.rogiel.httpchannel.service.Service | 1 + .../fourshared/FourSharedServiceTest.java | 36 + .../DepositFilesService.java | 2 +- .../com.rogiel.httpchannel.service.Service | 2 +- .../service/impl/DepositFilesServiceTest.java | 1 + .../{ => service}/filesonic/FileSonicAPI.java | 8 +- .../{impl => filesonic}/FileSonicService.java | 3 +- .../{ => service}/filesonic/xml/FSAPI.java | 2 +- .../filesonic/xml/FSGetUploadURL.java | 2 +- .../filesonic/xml/FSResponse.java | 2 +- .../{ => service}/filesonic/xml/FSUpload.java | 2 +- .../com.rogiel.httpchannel.service.Service | 2 +- .../{impl => hotfile}/HotFileService.java | 2 +- .../com.rogiel.httpchannel.service.Service | 2 +- .../service/impl/DiscoveryTest.java | 1 + .../service/impl/HotFileServiceTest.java | 1 + .../MegaUploadDownloaderConfiguration.java | 2 +- .../MegaUploadService.java | 2 +- .../MegaUploadUploaderConfiguration.java | 4 +- .../com.rogiel.httpchannel.service.Service | 2 +- .../service/impl/DiscoveryTest.java | 1 + .../service/impl/MegaUploadServiceTest.java | 2 + .../MultiUploadService.java | 10 +- .../MultiUploadUploaderConfiguration.java | 37 +- .../com.rogiel.httpchannel.service.Service | 2 +- .../service/impl/MultiUploadServiceTest.java | 1 + .../UploadHereService.java | 2 +- .../com.rogiel.httpchannel.service.Service | 2 +- .../service/impl/UploadHereServiceTest.java | 1 + .../UploadKingService.java | 2 +- .../com.rogiel.httpchannel.service.Service | 2 +- .../service/impl/UploadKingServiceTest.java | 1 + .../{impl => zshare}/ZShareService.java | 2 +- .../ZShareUploaderConfiguration.java | 2 +- .../com.rogiel.httpchannel.service.Service | 2 +- httpchannel-service/pom.xml | 1 + .../src/main/archetype-resources/pom.xml | 16 - .../httpchannel/service/impl/MyService.java | 153 -- .../com.rogiel.httpchannel.service.Service | 1 - .../META-INF/maven/archetype-metadata.xml | 13 - .../src/site/xdoc/service-table.xml | 10 + .../src/test/resources/upload-test-file.txt | 3 + .../httpchannel/util/htmlparser/HTMLPage.java | 5 + 73 files changed, 7397 insertions(+), 217 deletions(-) create mode 100644 httpchannel-api/src/main/java/com/rogiel/httpchannel/service/AccountDetails.java create mode 100644 httpchannel-service/httpchannel-service-4shared/pom.xml create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/AccountItem.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/AccountItemArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ApiException.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopApp.wsdl create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopAppJax2.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopAppJax2Service.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTO.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTOArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTOArrayArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ExifInfo.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ExifInfoArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/FaultBean.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/FileUploadInfo.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/LongArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/Mp3Info.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/Mp3InfoArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ObjectFactory.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SettingsGroup.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SettingsGroupArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SharedFolderProperties.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SharedFolderPropertiesArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/StringArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSetting.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSettings.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSettingsArray.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/package-info.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/java/org/httpchannel/service/fourshared/FourSharedService.java create mode 100644 httpchannel-service/httpchannel-service-4shared/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service create mode 100644 httpchannel-service/httpchannel-service-4shared/src/test/java/org/httpchannel/service/fourshared/FourSharedServiceTest.java rename httpchannel-service/httpchannel-service-depositfiles/src/main/java/com/rogiel/httpchannel/service/{impl => depositfiles}/DepositFilesService.java (96%) rename httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/{ => service}/filesonic/FileSonicAPI.java (86%) rename httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/{impl => filesonic}/FileSonicService.java (98%) rename httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/{ => service}/filesonic/xml/FSAPI.java (91%) rename httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/{ => service}/filesonic/xml/FSGetUploadURL.java (93%) rename httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/{ => service}/filesonic/xml/FSResponse.java (92%) rename httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/{ => service}/filesonic/xml/FSUpload.java (93%) rename httpchannel-service/httpchannel-service-hotfile/src/main/java/com/rogiel/httpchannel/service/{impl => hotfile}/HotFileService.java (99%) rename httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/{impl => megaupload}/MegaUploadDownloaderConfiguration.java (93%) rename httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/{impl => megaupload}/MegaUploadService.java (99%) rename httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/{impl => megaupload}/MegaUploadUploaderConfiguration.java (90%) rename httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/{impl => multiupload}/MultiUploadService.java (93%) rename httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/{impl => multiupload}/MultiUploadUploaderConfiguration.java (74%) rename httpchannel-service/httpchannel-service-uploadhere/src/main/java/com/rogiel/httpchannel/service/{impl => uploadhere}/UploadHereService.java (96%) rename httpchannel-service/httpchannel-service-uploadking/src/main/java/com/rogiel/httpchannel/service/{impl => uploadking}/UploadKingService.java (96%) rename httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/{impl => zshare}/ZShareService.java (96%) rename httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/{impl => zshare}/ZShareUploaderConfiguration.java (94%) delete mode 100644 httpchannel-service/src/main/archetype-resources/pom.xml delete mode 100644 httpchannel-service/src/main/archetype-resources/src/main/java/com/rogiel/httpchannel/service/impl/MyService.java delete mode 100644 httpchannel-service/src/main/archetype-resources/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service delete mode 100644 httpchannel-service/src/main/resources/META-INF/maven/archetype-metadata.xml create mode 100644 httpchannel-service/src/test/resources/upload-test-file.txt diff --git a/httpchannel-api/src/main/java/com/rogiel/httpchannel/service/AccountDetails.java b/httpchannel-api/src/main/java/com/rogiel/httpchannel/service/AccountDetails.java new file mode 100644 index 0000000..beab719 --- /dev/null +++ b/httpchannel-api/src/main/java/com/rogiel/httpchannel/service/AccountDetails.java @@ -0,0 +1,13 @@ +/** + * + */ +package com.rogiel.httpchannel.service; + +/** + * @author Rogiel + */ +public interface AccountDetails { + String getUsername(); + + AuthenticationService getService(); +} diff --git a/httpchannel-channelcopy/src/test/java/com/rogiel/httpchannel/wirecopy/ChannelCopyTest.java b/httpchannel-channelcopy/src/test/java/com/rogiel/httpchannel/wirecopy/ChannelCopyTest.java index f594d04..9a0474e 100644 --- a/httpchannel-channelcopy/src/test/java/com/rogiel/httpchannel/wirecopy/ChannelCopyTest.java +++ b/httpchannel-channelcopy/src/test/java/com/rogiel/httpchannel/wirecopy/ChannelCopyTest.java @@ -24,8 +24,8 @@ import java.nio.file.Paths; import org.junit.Test; import com.rogiel.httpchannel.copy.ChannelCopy; -import com.rogiel.httpchannel.service.impl.MegaUploadService; -import com.rogiel.httpchannel.service.impl.MultiUploadService; +import com.rogiel.httpchannel.service.megaupload.MegaUploadService; +import com.rogiel.httpchannel.service.multiupload.MultiUploadService; public class ChannelCopyTest { @Test diff --git a/httpchannel-service/httpchannel-service-4shared/pom.xml b/httpchannel-service/httpchannel-service-4shared/pom.xml new file mode 100644 index 0000000..eebd78d --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/pom.xml @@ -0,0 +1,38 @@ + + + 4.0.0 + + httpchannel-service + com.rogiel.httpchannel + 1.0.1-SNAPSHOT + ../pom.xml + + httpchannel-service-4shared + com.rogiel.httpchannel.services + HttpChannel/Service/4Shared + Provides upload access to 4shared.com + + + org.apache.axis2 + axis2 + 1.6.1 + pom + + + org.apache.james + apache-mime4j + 0.7.2 + pom + + + javax.xml.ws + jaxws-api + 2.2.7 + + + com.sun.xml.ws + jaxws-rt + 2.2.7-promoted-b09 + + + diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/AccountItem.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/AccountItem.java new file mode 100644 index 0000000..0c59ce7 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/AccountItem.java @@ -0,0 +1,313 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for accountItem complex type. + * + *

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

+ * <complexType name="accountItem">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="date" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="directory" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="downloadCount" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="downloadLink" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="empty" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="md5" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="parentId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="removed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="shared" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="size" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="version" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "accountItem", propOrder = { + "date", + "directory", + "downloadCount", + "downloadLink", + "empty", + "id", + "md5", + "name", + "parentId", + "removed", + "shared", + "size", + "version" +}) +public class AccountItem { + + protected XMLGregorianCalendar date; + protected boolean directory; + protected int downloadCount; + protected String downloadLink; + protected boolean empty; + protected long id; + protected String md5; + protected String name; + protected long parentId; + protected boolean removed; + protected boolean shared; + protected long size; + protected int version; + + /** + * Gets the value of the date property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getDate() { + return date; + } + + /** + * Sets the value of the date property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setDate(XMLGregorianCalendar value) { + this.date = value; + } + + /** + * Gets the value of the directory property. + * + */ + public boolean isDirectory() { + return directory; + } + + /** + * Sets the value of the directory property. + * + */ + public void setDirectory(boolean value) { + this.directory = value; + } + + /** + * Gets the value of the downloadCount property. + * + */ + public int getDownloadCount() { + return downloadCount; + } + + /** + * Sets the value of the downloadCount property. + * + */ + public void setDownloadCount(int value) { + this.downloadCount = value; + } + + /** + * Gets the value of the downloadLink property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDownloadLink() { + return downloadLink; + } + + /** + * Sets the value of the downloadLink property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDownloadLink(String value) { + this.downloadLink = value; + } + + /** + * Gets the value of the empty property. + * + */ + public boolean isEmpty() { + return empty; + } + + /** + * Sets the value of the empty property. + * + */ + public void setEmpty(boolean value) { + this.empty = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the md5 property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMd5() { + return md5; + } + + /** + * Sets the value of the md5 property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMd5(String value) { + this.md5 = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the parentId property. + * + */ + public long getParentId() { + return parentId; + } + + /** + * Sets the value of the parentId property. + * + */ + public void setParentId(long value) { + this.parentId = value; + } + + /** + * Gets the value of the removed property. + * + */ + public boolean isRemoved() { + return removed; + } + + /** + * Sets the value of the removed property. + * + */ + public void setRemoved(boolean value) { + this.removed = value; + } + + /** + * Gets the value of the shared property. + * + */ + public boolean isShared() { + return shared; + } + + /** + * Sets the value of the shared property. + * + */ + public void setShared(boolean value) { + this.shared = value; + } + + /** + * Gets the value of the size property. + * + */ + public long getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + */ + public void setSize(long value) { + this.size = value; + } + + /** + * Gets the value of the version property. + * + */ + public int getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + */ + public void setVersion(int value) { + this.version = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/AccountItemArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/AccountItemArray.java new file mode 100644 index 0000000..8bac423 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/AccountItemArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for accountItemArray complex type. + * + *

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

+ * <complexType name="accountItemArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://api.soap.shared.pmstation.com/}accountItem" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "accountItemArray", propOrder = { + "item" +}) +public class AccountItemArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link AccountItem } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ApiException.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ApiException.java new file mode 100644 index 0000000..a8b49c2 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ApiException.java @@ -0,0 +1,49 @@ +package com.pmstation.shared.soap.client; + +import javax.xml.ws.WebFault; + +/** + * This class was generated by the JAXWS SI. JAX-WS RI 2.1-02/02/2007 03:56 + * AM(vivekp)-FCS Generated source version: 2.1 + * + */ +@WebFault(name = "ApiException", targetNamespace = "http://api.soap.shared.pmstation.com/") +public class ApiException extends Exception { + private static final long serialVersionUID = -2632015347300569935L; + + /** + * Java type that goes as soapenv:Fault detail element. + * + */ + private FaultBean faultInfo; + + /** + * + * @param message + * @param faultInfo + */ + public ApiException(String message, FaultBean faultInfo) { + super(message); + this.faultInfo = faultInfo; + } + + /** + * + * @param message + * @param faultInfo + * @param cause + */ + public ApiException(String message, FaultBean faultInfo, Throwable cause) { + super(message, cause); + this.faultInfo = faultInfo; + } + + /** + * + * @return returns fault bean: com.pmstation.shared.soap.client.FaultBean + */ + public FaultBean getFaultInfo() { + return faultInfo; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopApp.wsdl b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopApp.wsdl new file mode 100644 index 0000000..0f65144 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopApp.wsdl @@ -0,0 +1,2307 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopAppJax2.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopAppJax2.java new file mode 100644 index 0000000..91710f8 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopAppJax2.java @@ -0,0 +1,1495 @@ +package com.pmstation.shared.soap.client; + +import javax.jws.WebMethod; +import javax.jws.WebParam; +import javax.jws.WebResult; +import javax.jws.WebService; +import javax.jws.soap.SOAPBinding; +import javax.xml.bind.annotation.XmlSeeAlso; + +/** + * This class was generated by the JAXWS SI. JAX-WS RI 2.1-02/02/2007 03:56 + * AM(vivekp)-FCS Generated source version: 2.1 + * + */ +@WebService(name = "DesktopAppJax2", targetNamespace = "http://api.soap.shared.pmstation.com/") +@SOAPBinding(style = SOAPBinding.Style.RPC) +@XmlSeeAlso({ ObjectFactory.class }) +public interface DesktopAppJax2 { + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String run(@WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") String arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long getFreeSpace( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItem + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItem getRoot( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns java.lang.String + */ + @WebMethod + @WebResult(partName = "return") + public String login( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1); + + /** + * + * @return returns boolean + */ + @WebMethod + @WebResult(partName = "return") + public boolean hasRightUpload(); + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getItems( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void uploadCancelFile( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getFiles( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") LongArray arg2) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long getSpaceLimit( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.DirHistoryDTOArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public DirHistoryDTOArray getHistory( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getPlaylistLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.UserSettings + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public UserSettings getSettings( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") int arg2) + throws ApiException; + + /** + * + * @return returns com.pmstation.shared.soap.client.StringArray + */ + @WebMethod + @WebResult(partName = "return") + public StringArray getToolList(); + + /** + * + * @param arg1 + * @param arg0 + * @return returns java.lang.String + */ + @WebMethod + @WebResult(partName = "return") + public String getToolUrl( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1); + + /** + * + * @param arg1 + * @param arg0 + * @return returns java.lang.String + */ + @WebMethod + @WebResult(partName = "return") + public String getToolVersion( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1); + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.StringArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public StringArray getFileDescription( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getDirDescription( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.FileUploadInfo + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public FileUploadInfo simpleUploadStart( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") long arg4) + throws ApiException; + + /** + * + * @param arg5 + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @param arg6 + * @param arg7 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String setFileDescription( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") String arg4, + @WebParam(name = "arg5", partName = "arg5") String arg5, + @WebParam(name = "arg6", partName = "arg6") boolean arg6, + @WebParam(name = "arg7", partName = "arg7") boolean arg7) + throws ApiException; + + /** + * + * @param arg5 + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String setDirDescription( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") boolean arg4, + @WebParam(name = "arg5", partName = "arg5") boolean arg5) + throws ApiException; + + /** + * + * @param arg5 + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @param arg6 + * @param arg7 + * @param arg8 + * @param arg9 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String reportAbuse( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") boolean arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") String arg4, + @WebParam(name = "arg5", partName = "arg5") String arg5, + @WebParam(name = "arg6", partName = "arg6") String arg6, + @WebParam(name = "arg7", partName = "arg7") String arg7, + @WebParam(name = "arg8", partName = "arg8") String arg8, + @WebParam(name = "arg9", partName = "arg9") String arg9) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.StringArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public StringArray checkSettings( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") UserSettings arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.StringArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public StringArray applySettings( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") UserSettings arg2) + throws ApiException; + + /** + * + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns int + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public int checkSharedDirAccess( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") String arg4) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String checkSubdomain( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long createNewFolder( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String createUploadSessionKey( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns boolean + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public boolean creatNewFolder( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String decodeId( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") String arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long decodeLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") String arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void deleteFile( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void deleteFileFinal( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void deleteFolder( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void deleteFolderFinal( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void downloadFinished( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getAllFolders( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getAllItems( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @return returns long + */ + @WebMethod + @WebResult(partName = "return") + public long getCurrentUploaderVersion(); + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getDirectLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") String arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItem + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItem getDirInfo( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getFileDownloadLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItem + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItem getFileInfo( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns + * com.pmstation.shared.soap.client.SharedFolderPropertiesArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public SharedFolderPropertiesArray getFolderSharingProperties( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.DirHistoryDTOArrayArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public DirHistoryDTOArrayArray getHistoriesFromId( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") LongArray arg2, + @WebParam(name = "arg3", partName = "arg3") LongArray arg3) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.DirHistoryDTOArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public DirHistoryDTOArray getHistoryFromId( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") long arg3) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long getHistoryLastId( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItem + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItem getItemInfo( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") boolean arg3) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long getItemsCount( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getItemsPartial( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") int arg3, + @WebParam(name = "arg4", partName = "arg4") int arg4) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long getMaxFileSize( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long getNewFileDataCenter( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @return returns long + */ + @WebMethod + @WebResult(partName = "return") + public long getNotOwnedSizeLimit(); + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.DirHistoryDTOArrayArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public DirHistoryDTOArrayArray getNotRecursiveHistories( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") LongArray arg2, + @WebParam(name = "arg3", partName = "arg3") LongArray arg3) + throws ApiException; + + /** + * + * @return returns com.pmstation.shared.soap.client.StringArray + */ + @WebMethod + @WebResult(partName = "return") + public StringArray getOperationDescriptions(); + + /** + * + * @return returns long + */ + @WebMethod + @WebResult(partName = "return") + public long getOwnedSizeLimit(); + + /** + * + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getRecycleBinItems( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getDirLinkItems( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getSharedDirItems( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") String arg4) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns java.lang.String + */ + @WebMethod + @WebResult(partName = "return") + public String getUploadFormUrl( + @WebParam(name = "arg0", partName = "arg0") int arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1); + + /** + * + * @param arg1 + * @param arg0 + * @return returns boolean + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public boolean isAccountActive( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns boolean + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public boolean isAccountBanned( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns boolean + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public boolean isAccountPremium( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns boolean + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public boolean isExistsLoginPassword( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void markSynchronized( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg5 + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String pasteFilesDirs( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") boolean arg3, + @WebParam(name = "arg4", partName = "arg4") LongArray arg4, + @WebParam(name = "arg5", partName = "arg5") LongArray arg5) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long renameFile( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long renameFolder( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void restoreFile( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void restoreFiles( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") LongArray arg2) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String setFolderSharingProperties( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") SharedFolderProperties arg3) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns java.lang.String + */ + @WebMethod + @WebResult(partName = "return") + public String signup( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1); + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @throws ApiException + */ + @WebMethod + public void syncFinished( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns boolean + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public boolean uploaderLoggedIn( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") String arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String uploadFinishFile( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns boolean + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public boolean uploadStartedFileExists( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long uploadStartFile( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") long arg4) + throws ApiException; + + /** + * + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long uploadStartFileUpdate( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") long arg4) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + */ + @WebMethod + @WebResult(partName = "return") + public String signupUsername( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") String arg2); + + /** + * + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.UserSettingsArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public UserSettingsArray getAllSettings( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.SettingsGroupArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public SettingsGroupArray getSettingGroups( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String addToMyAccount( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.AccountItemArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public AccountItemArray getFavorites( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long addToFavorites( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns long + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public long removeFromFavorites( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg1 + * @param arg0 + * @return returns int + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public int emptyRecycleBin( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.Mp3Info + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public Mp3Info getMp3FileInfo( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") String arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.Mp3InfoArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public Mp3InfoArray getMp3FileInfos( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.ExifInfoArray + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public ExifInfoArray getExifFileInfos( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns com.pmstation.shared.soap.client.ExifInfo + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public ExifInfo getExifFileInfo( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") String arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getPreviewLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getVideoPreviewLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getSmallImageLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") int arg3) + throws ApiException; + + /** + * + * @param arg4 + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getSharedPlaylistLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") String arg3, + @WebParam(name = "arg4", partName = "arg4") String arg4) + throws ApiException; + + /** + * + * @param arg3 + * @param arg2 + * @param arg1 + * @param arg0 + * @return returns java.lang.String + * @throws ApiException + */ + @WebMethod + @WebResult(partName = "return") + public String getFileVersionLink( + @WebParam(name = "arg0", partName = "arg0") String arg0, + @WebParam(name = "arg1", partName = "arg1") String arg1, + @WebParam(name = "arg2", partName = "arg2") long arg2, + @WebParam(name = "arg3", partName = "arg3") int arg3) + throws ApiException; + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopAppJax2Service.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopAppJax2Service.java new file mode 100644 index 0000000..c318f99 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DesktopAppJax2Service.java @@ -0,0 +1,58 @@ +package com.pmstation.shared.soap.client; + +import java.net.URL; + +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; + +/** + * This class was generated by the JAXWS SI. JAX-WS RI 2.1-02/02/2007 03:56 + * AM(vivekp)-FCS Generated source version: 2.1 + * + */ +@WebServiceClient(name = "DesktopAppJax2Service", targetNamespace = "http://api.soap.shared.pmstation.com/", wsdlLocation = "file:///home/tinedel/projects/4shared-api/src/com/pmstation/shared/soap/client/DesktopApp.wsdl") +public class DesktopAppJax2Service extends Service { + + private final static URL DESKTOPAPPJAX2SERVICE_WSDL_LOCATION = DesktopAppJax2Service.class.getResource("DesktopApp.wsdl");; + + public DesktopAppJax2Service(URL wsdlLocation, QName serviceName) { + super(wsdlLocation, serviceName); + } + + public DesktopAppJax2Service() { + super(DESKTOPAPPJAX2SERVICE_WSDL_LOCATION, new QName( + "http://api.soap.shared.pmstation.com/", + "DesktopAppJax2Service")); + } + + /** + * + * @return returns DesktopAppJax2 + */ + @WebEndpoint(name = "DesktopAppJax2Port") + public DesktopAppJax2 getDesktopAppJax2Port() { + return (DesktopAppJax2) super.getPort(new QName( + "http://api.soap.shared.pmstation.com/", "DesktopAppJax2Port"), + DesktopAppJax2.class); + } + + /** + * + * @param features + * A list of {@link javax.xml.ws.WebServiceFeature} to configure + * on the proxy. Supported features not in the + * features parameter will have their default + * values. + * @return returns DesktopAppJax2 + */ + @WebEndpoint(name = "DesktopAppJax2Port") + public DesktopAppJax2 getDesktopAppJax2Port(WebServiceFeature... features) { + return (DesktopAppJax2) super.getPort(new QName( + "http://api.soap.shared.pmstation.com/", "DesktopAppJax2Port"), + DesktopAppJax2.class, features); + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTO.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTO.java new file mode 100644 index 0000000..554ccb2 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTO.java @@ -0,0 +1,253 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for dirHistoryDTO complex type. + * + *

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

+ * <complexType name="dirHistoryDTO">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="compId" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="date" type="{http://www.w3.org/2001/XMLSchema}dateTime" minOccurs="0"/>
+ *         <element name="dirId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="fileId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="operation" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="parentDirId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="sourceDirId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *         <element name="sourceFileId" type="{http://www.w3.org/2001/XMLSchema}long" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dirHistoryDTO", propOrder = { + "compId", + "date", + "dirId", + "fileId", + "id", + "operation", + "parentDirId", + "sourceDirId", + "sourceFileId" +}) +public class DirHistoryDTO { + + protected String compId; + protected XMLGregorianCalendar date; + protected Long dirId; + protected Long fileId; + protected long id; + protected int operation; + protected long parentDirId; + protected Long sourceDirId; + protected Long sourceFileId; + + /** + * Gets the value of the compId property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCompId() { + return compId; + } + + /** + * Sets the value of the compId property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCompId(String value) { + this.compId = value; + } + + /** + * Gets the value of the date property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getDate() { + return date; + } + + /** + * Sets the value of the date property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setDate(XMLGregorianCalendar value) { + this.date = value; + } + + /** + * Gets the value of the dirId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getDirId() { + return dirId; + } + + /** + * Sets the value of the dirId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setDirId(Long value) { + this.dirId = value; + } + + /** + * Gets the value of the fileId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getFileId() { + return fileId; + } + + /** + * Sets the value of the fileId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setFileId(Long value) { + this.fileId = value; + } + + /** + * Gets the value of the id property. + * + */ + public long getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(long value) { + this.id = value; + } + + /** + * Gets the value of the operation property. + * + */ + public int getOperation() { + return operation; + } + + /** + * Sets the value of the operation property. + * + */ + public void setOperation(int value) { + this.operation = value; + } + + /** + * Gets the value of the parentDirId property. + * + */ + public long getParentDirId() { + return parentDirId; + } + + /** + * Sets the value of the parentDirId property. + * + */ + public void setParentDirId(long value) { + this.parentDirId = value; + } + + /** + * Gets the value of the sourceDirId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSourceDirId() { + return sourceDirId; + } + + /** + * Sets the value of the sourceDirId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSourceDirId(Long value) { + this.sourceDirId = value; + } + + /** + * Gets the value of the sourceFileId property. + * + * @return + * possible object is + * {@link Long } + * + */ + public Long getSourceFileId() { + return sourceFileId; + } + + /** + * Sets the value of the sourceFileId property. + * + * @param value + * allowed object is + * {@link Long } + * + */ + public void setSourceFileId(Long value) { + this.sourceFileId = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTOArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTOArray.java new file mode 100644 index 0000000..8e71ddc --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTOArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for dirHistoryDTOArray complex type. + * + *

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

+ * <complexType name="dirHistoryDTOArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://api.soap.shared.pmstation.com/}dirHistoryDTO" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dirHistoryDTOArray", propOrder = { + "item" +}) +public class DirHistoryDTOArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DirHistoryDTO } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTOArrayArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTOArrayArray.java new file mode 100644 index 0000000..9c954fa --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/DirHistoryDTOArrayArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for dirHistoryDTOArrayArray complex type. + * + *

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

+ * <complexType name="dirHistoryDTOArrayArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://api.soap.shared.pmstation.com/}dirHistoryDTOArray" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "dirHistoryDTOArrayArray", propOrder = { + "item" +}) +public class DirHistoryDTOArrayArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link DirHistoryDTOArray } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ExifInfo.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ExifInfo.java new file mode 100644 index 0000000..2982e2e --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ExifInfo.java @@ -0,0 +1,206 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for exifInfo complex type. + * + *

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

+ * <complexType name="exifInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dateTime" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="empty" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="fileId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="heigth" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="make" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="model" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="width" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "exifInfo", propOrder = { + "dateTime", + "empty", + "fileId", + "heigth", + "make", + "model", + "width" +}) +public class ExifInfo { + + protected String dateTime; + protected boolean empty; + protected long fileId; + protected String heigth; + protected String make; + protected String model; + protected String width; + + /** + * Gets the value of the dateTime property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDateTime() { + return dateTime; + } + + /** + * Sets the value of the dateTime property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDateTime(String value) { + this.dateTime = value; + } + + /** + * Gets the value of the empty property. + * + */ + public boolean isEmpty() { + return empty; + } + + /** + * Sets the value of the empty property. + * + */ + public void setEmpty(boolean value) { + this.empty = value; + } + + /** + * Gets the value of the fileId property. + * + */ + public long getFileId() { + return fileId; + } + + /** + * Sets the value of the fileId property. + * + */ + public void setFileId(long value) { + this.fileId = value; + } + + /** + * Gets the value of the heigth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeigth() { + return heigth; + } + + /** + * Sets the value of the heigth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeigth(String value) { + this.heigth = value; + } + + /** + * Gets the value of the make property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMake() { + return make; + } + + /** + * Sets the value of the make property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMake(String value) { + this.make = value; + } + + /** + * Gets the value of the model property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getModel() { + return model; + } + + /** + * Sets the value of the model property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setModel(String value) { + this.model = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWidth(String value) { + this.width = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ExifInfoArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ExifInfoArray.java new file mode 100644 index 0000000..5244308 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ExifInfoArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for exifInfoArray complex type. + * + *

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

+ * <complexType name="exifInfoArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://api.soap.shared.pmstation.com/}exifInfo" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "exifInfoArray", propOrder = { + "item" +}) +public class ExifInfoArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link ExifInfo } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/FaultBean.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/FaultBean.java new file mode 100644 index 0000000..74d4ba5 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/FaultBean.java @@ -0,0 +1,87 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for faultBean complex type. + * + *

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

+ * <complexType name="faultBean">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="details" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="exceptionClass" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "faultBean", propOrder = { + "details", + "exceptionClass" +}) +public class FaultBean { + + protected String details; + protected String exceptionClass; + + /** + * Gets the value of the details property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDetails() { + return details; + } + + /** + * Sets the value of the details property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDetails(String value) { + this.details = value; + } + + /** + * Gets the value of the exceptionClass property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getExceptionClass() { + return exceptionClass; + } + + /** + * Sets the value of the exceptionClass property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setExceptionClass(String value) { + this.exceptionClass = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/FileUploadInfo.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/FileUploadInfo.java new file mode 100644 index 0000000..b395041 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/FileUploadInfo.java @@ -0,0 +1,144 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for fileUploadInfo complex type. + * + *

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

+ * <complexType name="fileUploadInfo">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="fileId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="freeSpace" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="maxFileSize" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="uploadUrl" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "fileUploadInfo", propOrder = { + "fileId", + "freeSpace", + "maxFileSize", + "message", + "uploadUrl" +}) +public class FileUploadInfo { + + protected long fileId; + protected long freeSpace; + protected long maxFileSize; + protected String message; + protected String uploadUrl; + + /** + * Gets the value of the fileId property. + * + */ + public long getFileId() { + return fileId; + } + + /** + * Sets the value of the fileId property. + * + */ + public void setFileId(long value) { + this.fileId = value; + } + + /** + * Gets the value of the freeSpace property. + * + */ + public long getFreeSpace() { + return freeSpace; + } + + /** + * Sets the value of the freeSpace property. + * + */ + public void setFreeSpace(long value) { + this.freeSpace = value; + } + + /** + * Gets the value of the maxFileSize property. + * + */ + public long getMaxFileSize() { + return maxFileSize; + } + + /** + * Sets the value of the maxFileSize property. + * + */ + public void setMaxFileSize(long value) { + this.maxFileSize = value; + } + + /** + * Gets the value of the message property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMessage() { + return message; + } + + /** + * Sets the value of the message property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMessage(String value) { + this.message = value; + } + + /** + * Gets the value of the uploadUrl property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUploadUrl() { + return uploadUrl; + } + + /** + * Sets the value of the uploadUrl property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUploadUrl(String value) { + this.uploadUrl = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/LongArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/LongArray.java new file mode 100644 index 0000000..4538086 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/LongArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for longArray complex type. + * + *

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

+ * <complexType name="longArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://www.w3.org/2001/XMLSchema}long" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "longArray", namespace = "http://jaxb.dev.java.net/array", propOrder = { + "item" +}) +public class LongArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Long } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/Mp3Info.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/Mp3Info.java new file mode 100644 index 0000000..d2977cc --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/Mp3Info.java @@ -0,0 +1,293 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for mp3Info complex type. + * + *

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

+ * <complexType name="mp3Info">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="album" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="artist" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="bitrate" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="empty" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="fileId" type="{http://www.w3.org/2001/XMLSchema}long"/>
+ *         <element name="genre" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="length" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="preciseLength" type="{http://www.w3.org/2001/XMLSchema}float"/>
+ *         <element name="sampleRate" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="track" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="year" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mp3Info", propOrder = { + "album", + "artist", + "bitrate", + "empty", + "fileId", + "genre", + "length", + "preciseLength", + "sampleRate", + "title", + "track", + "year" +}) +public class Mp3Info { + + protected String album; + protected String artist; + protected int bitrate; + protected boolean empty; + protected long fileId; + protected String genre; + protected int length; + protected float preciseLength; + protected int sampleRate; + protected String title; + protected int track; + protected int year; + + /** + * Gets the value of the album property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAlbum() { + return album; + } + + /** + * Sets the value of the album property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAlbum(String value) { + this.album = value; + } + + /** + * Gets the value of the artist property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArtist() { + return artist; + } + + /** + * Sets the value of the artist property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArtist(String value) { + this.artist = value; + } + + /** + * Gets the value of the bitrate property. + * + */ + public int getBitrate() { + return bitrate; + } + + /** + * Sets the value of the bitrate property. + * + */ + public void setBitrate(int value) { + this.bitrate = value; + } + + /** + * Gets the value of the empty property. + * + */ + public boolean isEmpty() { + return empty; + } + + /** + * Sets the value of the empty property. + * + */ + public void setEmpty(boolean value) { + this.empty = value; + } + + /** + * Gets the value of the fileId property. + * + */ + public long getFileId() { + return fileId; + } + + /** + * Sets the value of the fileId property. + * + */ + public void setFileId(long value) { + this.fileId = value; + } + + /** + * Gets the value of the genre property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGenre() { + return genre; + } + + /** + * Sets the value of the genre property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGenre(String value) { + this.genre = value; + } + + /** + * Gets the value of the length property. + * + */ + public int getLength() { + return length; + } + + /** + * Sets the value of the length property. + * + */ + public void setLength(int value) { + this.length = value; + } + + /** + * Gets the value of the preciseLength property. + * + */ + public float getPreciseLength() { + return preciseLength; + } + + /** + * Sets the value of the preciseLength property. + * + */ + public void setPreciseLength(float value) { + this.preciseLength = value; + } + + /** + * Gets the value of the sampleRate property. + * + */ + public int getSampleRate() { + return sampleRate; + } + + /** + * Sets the value of the sampleRate property. + * + */ + public void setSampleRate(int value) { + this.sampleRate = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the track property. + * + */ + public int getTrack() { + return track; + } + + /** + * Sets the value of the track property. + * + */ + public void setTrack(int value) { + this.track = value; + } + + /** + * Gets the value of the year property. + * + */ + public int getYear() { + return year; + } + + /** + * Sets the value of the year property. + * + */ + public void setYear(int value) { + this.year = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/Mp3InfoArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/Mp3InfoArray.java new file mode 100644 index 0000000..0820f54 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/Mp3InfoArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for mp3InfoArray complex type. + * + *

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

+ * <complexType name="mp3InfoArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://api.soap.shared.pmstation.com/}mp3Info" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "mp3InfoArray", propOrder = { + "item" +}) +public class Mp3InfoArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link Mp3Info } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ObjectFactory.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ObjectFactory.java new file mode 100644 index 0000000..a653f22 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/ObjectFactory.java @@ -0,0 +1,205 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the com.pmstation.shared.soap.client package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _ApiException_QNAME = new QName("http://api.soap.shared.pmstation.com/", "ApiException"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.pmstation.shared.soap.client + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link StringArray } + * + */ + public StringArray createStringArray() { + return new StringArray(); + } + + /** + * Create an instance of {@link FileUploadInfo } + * + */ + public FileUploadInfo createFileUploadInfo() { + return new FileUploadInfo(); + } + + /** + * Create an instance of {@link UserSettings } + * + */ + public UserSettings createUserSettings() { + return new UserSettings(); + } + + /** + * Create an instance of {@link FaultBean } + * + */ + public FaultBean createFaultBean() { + return new FaultBean(); + } + + /** + * Create an instance of {@link ExifInfo } + * + */ + public ExifInfo createExifInfo() { + return new ExifInfo(); + } + + /** + * Create an instance of {@link UserSetting } + * + */ + public UserSetting createUserSetting() { + return new UserSetting(); + } + + /** + * Create an instance of {@link DirHistoryDTOArrayArray } + * + */ + public DirHistoryDTOArrayArray createDirHistoryDTOArrayArray() { + return new DirHistoryDTOArrayArray(); + } + + /** + * Create an instance of {@link ExifInfoArray } + * + */ + public ExifInfoArray createExifInfoArray() { + return new ExifInfoArray(); + } + + /** + * Create an instance of {@link AccountItemArray } + * + */ + public AccountItemArray createAccountItemArray() { + return new AccountItemArray(); + } + + /** + * Create an instance of {@link AccountItem } + * + */ + public AccountItem createAccountItem() { + return new AccountItem(); + } + + /** + * Create an instance of {@link DirHistoryDTOArray } + * + */ + public DirHistoryDTOArray createDirHistoryDTOArray() { + return new DirHistoryDTOArray(); + } + + /** + * Create an instance of {@link Mp3Info } + * + */ + public Mp3Info createMp3Info() { + return new Mp3Info(); + } + + /** + * Create an instance of {@link SharedFolderPropertiesArray } + * + */ + public SharedFolderPropertiesArray createSharedFolderPropertiesArray() { + return new SharedFolderPropertiesArray(); + } + + /** + * Create an instance of {@link DirHistoryDTO } + * + */ + public DirHistoryDTO createDirHistoryDTO() { + return new DirHistoryDTO(); + } + + /** + * Create an instance of {@link SettingsGroup } + * + */ + public SettingsGroup createSettingsGroup() { + return new SettingsGroup(); + } + + /** + * Create an instance of {@link Mp3InfoArray } + * + */ + public Mp3InfoArray createMp3InfoArray() { + return new Mp3InfoArray(); + } + + /** + * Create an instance of {@link SharedFolderProperties } + * + */ + public SharedFolderProperties createSharedFolderProperties() { + return new SharedFolderProperties(); + } + + /** + * Create an instance of {@link LongArray } + * + */ + public LongArray createLongArray() { + return new LongArray(); + } + + /** + * Create an instance of {@link SettingsGroupArray } + * + */ + public SettingsGroupArray createSettingsGroupArray() { + return new SettingsGroupArray(); + } + + /** + * Create an instance of {@link UserSettingsArray } + * + */ + public UserSettingsArray createUserSettingsArray() { + return new UserSettingsArray(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link FaultBean }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://api.soap.shared.pmstation.com/", name = "ApiException") + public JAXBElement createApiException(FaultBean value) { + return new JAXBElement(_ApiException_QNAME, FaultBean.class, null, value); + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SettingsGroup.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SettingsGroup.java new file mode 100644 index 0000000..17ee118 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SettingsGroup.java @@ -0,0 +1,106 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for settingsGroup complex type. + * + *

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

+ * <complexType name="settingsGroup">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="groupId" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="groupName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="translatedName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "settingsGroup", propOrder = { + "groupId", + "groupName", + "translatedName" +}) +public class SettingsGroup { + + protected int groupId; + protected String groupName; + protected String translatedName; + + /** + * Gets the value of the groupId property. + * + */ + public int getGroupId() { + return groupId; + } + + /** + * Sets the value of the groupId property. + * + */ + public void setGroupId(int value) { + this.groupId = value; + } + + /** + * Gets the value of the groupName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getGroupName() { + return groupName; + } + + /** + * Sets the value of the groupName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setGroupName(String value) { + this.groupName = value; + } + + /** + * Gets the value of the translatedName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTranslatedName() { + return translatedName; + } + + /** + * Sets the value of the translatedName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTranslatedName(String value) { + this.translatedName = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SettingsGroupArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SettingsGroupArray.java new file mode 100644 index 0000000..498939d --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SettingsGroupArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for settingsGroupArray complex type. + * + *

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

+ * <complexType name="settingsGroupArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://api.soap.shared.pmstation.com/}settingsGroup" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "settingsGroupArray", propOrder = { + "item" +}) +public class SettingsGroupArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link SettingsGroup } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SharedFolderProperties.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SharedFolderProperties.java new file mode 100644 index 0000000..ca878e2 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SharedFolderProperties.java @@ -0,0 +1,429 @@ + +package com.pmstation.shared.soap.client; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for sharedFolderProperties complex type. + * + *

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

+ * <complexType name="sharedFolderProperties">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="createSubFolders" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="delete" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="disableAnonimUpload" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="emailOnUpload" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="embed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="fileProperties" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="moderator" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="onlyPublic" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="password" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="publicSearch" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="search" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="shared" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="subdomainAllowed" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="subdomainName" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="thumbNailOn" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="updateFiles" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="upload" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="viewModeDetails" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="viewSubfolders" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="webGrab" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "sharedFolderProperties", propOrder = { + "createSubFolders", + "delete", + "disableAnonimUpload", + "emailOnUpload", + "embed", + "fileProperties", + "moderator", + "onlyPublic", + "password", + "publicSearch", + "search", + "shared", + "subdomainAllowed", + "subdomainName", + "thumbNailOn", + "updateFiles", + "upload", + "viewModeDetails", + "viewSubfolders", + "webGrab" +}) +public class SharedFolderProperties { + + protected boolean createSubFolders; + protected boolean delete; + protected boolean disableAnonimUpload; + protected boolean emailOnUpload; + protected boolean embed; + protected boolean fileProperties; + protected boolean moderator; + protected boolean onlyPublic; + protected String password; + protected boolean publicSearch; + protected boolean search; + protected boolean shared; + protected boolean subdomainAllowed; + protected String subdomainName; + protected boolean thumbNailOn; + protected boolean updateFiles; + protected boolean upload; + protected boolean viewModeDetails; + protected boolean viewSubfolders; + protected boolean webGrab; + + /** + * Gets the value of the createSubFolders property. + * + */ + public boolean isCreateSubFolders() { + return createSubFolders; + } + + /** + * Sets the value of the createSubFolders property. + * + */ + public void setCreateSubFolders(boolean value) { + this.createSubFolders = value; + } + + /** + * Gets the value of the delete property. + * + */ + public boolean isDelete() { + return delete; + } + + /** + * Sets the value of the delete property. + * + */ + public void setDelete(boolean value) { + this.delete = value; + } + + /** + * Gets the value of the disableAnonimUpload property. + * + */ + public boolean isDisableAnonimUpload() { + return disableAnonimUpload; + } + + /** + * Sets the value of the disableAnonimUpload property. + * + */ + public void setDisableAnonimUpload(boolean value) { + this.disableAnonimUpload = value; + } + + /** + * Gets the value of the emailOnUpload property. + * + */ + public boolean isEmailOnUpload() { + return emailOnUpload; + } + + /** + * Sets the value of the emailOnUpload property. + * + */ + public void setEmailOnUpload(boolean value) { + this.emailOnUpload = value; + } + + /** + * Gets the value of the embed property. + * + */ + public boolean isEmbed() { + return embed; + } + + /** + * Sets the value of the embed property. + * + */ + public void setEmbed(boolean value) { + this.embed = value; + } + + /** + * Gets the value of the fileProperties property. + * + */ + public boolean isFileProperties() { + return fileProperties; + } + + /** + * Sets the value of the fileProperties property. + * + */ + public void setFileProperties(boolean value) { + this.fileProperties = value; + } + + /** + * Gets the value of the moderator property. + * + */ + public boolean isModerator() { + return moderator; + } + + /** + * Sets the value of the moderator property. + * + */ + public void setModerator(boolean value) { + this.moderator = value; + } + + /** + * Gets the value of the onlyPublic property. + * + */ + public boolean isOnlyPublic() { + return onlyPublic; + } + + /** + * Sets the value of the onlyPublic property. + * + */ + public void setOnlyPublic(boolean value) { + this.onlyPublic = value; + } + + /** + * Gets the value of the password property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPassword() { + return password; + } + + /** + * Sets the value of the password property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPassword(String value) { + this.password = value; + } + + /** + * Gets the value of the publicSearch property. + * + */ + public boolean isPublicSearch() { + return publicSearch; + } + + /** + * Sets the value of the publicSearch property. + * + */ + public void setPublicSearch(boolean value) { + this.publicSearch = value; + } + + /** + * Gets the value of the search property. + * + */ + public boolean isSearch() { + return search; + } + + /** + * Sets the value of the search property. + * + */ + public void setSearch(boolean value) { + this.search = value; + } + + /** + * Gets the value of the shared property. + * + */ + public boolean isShared() { + return shared; + } + + /** + * Sets the value of the shared property. + * + */ + public void setShared(boolean value) { + this.shared = value; + } + + /** + * Gets the value of the subdomainAllowed property. + * + */ + public boolean isSubdomainAllowed() { + return subdomainAllowed; + } + + /** + * Sets the value of the subdomainAllowed property. + * + */ + public void setSubdomainAllowed(boolean value) { + this.subdomainAllowed = value; + } + + /** + * Gets the value of the subdomainName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubdomainName() { + return subdomainName; + } + + /** + * Sets the value of the subdomainName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubdomainName(String value) { + this.subdomainName = value; + } + + /** + * Gets the value of the thumbNailOn property. + * + */ + public boolean isThumbNailOn() { + return thumbNailOn; + } + + /** + * Sets the value of the thumbNailOn property. + * + */ + public void setThumbNailOn(boolean value) { + this.thumbNailOn = value; + } + + /** + * Gets the value of the updateFiles property. + * + */ + public boolean isUpdateFiles() { + return updateFiles; + } + + /** + * Sets the value of the updateFiles property. + * + */ + public void setUpdateFiles(boolean value) { + this.updateFiles = value; + } + + /** + * Gets the value of the upload property. + * + */ + public boolean isUpload() { + return upload; + } + + /** + * Sets the value of the upload property. + * + */ + public void setUpload(boolean value) { + this.upload = value; + } + + /** + * Gets the value of the viewModeDetails property. + * + */ + public boolean isViewModeDetails() { + return viewModeDetails; + } + + /** + * Sets the value of the viewModeDetails property. + * + */ + public void setViewModeDetails(boolean value) { + this.viewModeDetails = value; + } + + /** + * Gets the value of the viewSubfolders property. + * + */ + public boolean isViewSubfolders() { + return viewSubfolders; + } + + /** + * Sets the value of the viewSubfolders property. + * + */ + public void setViewSubfolders(boolean value) { + this.viewSubfolders = value; + } + + /** + * Gets the value of the webGrab property. + * + */ + public boolean isWebGrab() { + return webGrab; + } + + /** + * Sets the value of the webGrab property. + * + */ + public void setWebGrab(boolean value) { + this.webGrab = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SharedFolderPropertiesArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SharedFolderPropertiesArray.java new file mode 100644 index 0000000..67275b6 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/SharedFolderPropertiesArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for sharedFolderPropertiesArray complex type. + * + *

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

+ * <complexType name="sharedFolderPropertiesArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://api.soap.shared.pmstation.com/}sharedFolderProperties" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "sharedFolderPropertiesArray", propOrder = { + "item" +}) +public class SharedFolderPropertiesArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link SharedFolderProperties } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/StringArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/StringArray.java new file mode 100644 index 0000000..510d8cc --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/StringArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for stringArray complex type. + * + *

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

+ * <complexType name="stringArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "stringArray", namespace = "http://jaxb.dev.java.net/array", propOrder = { + "item" +}) +public class StringArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSetting.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSetting.java new file mode 100644 index 0000000..3ea497b --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSetting.java @@ -0,0 +1,215 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for userSetting complex type. + * + *

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

+ * <complexType name="userSetting">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="editable" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         <element name="id" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="possibleValues" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="title" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="type" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "userSetting", propOrder = { + "editable", + "id", + "name", + "possibleValues", + "title", + "type", + "value" +}) +public class UserSetting { + + protected boolean editable; + protected int id; + protected String name; + @XmlElement(nillable = true) + protected List possibleValues; + protected String title; + protected String type; + protected String value; + + /** + * Gets the value of the editable property. + * + */ + public boolean isEditable() { + return editable; + } + + /** + * Sets the value of the editable property. + * + */ + public void setEditable(boolean value) { + this.editable = value; + } + + /** + * Gets the value of the id property. + * + */ + public int getId() { + return id; + } + + /** + * Sets the value of the id property. + * + */ + public void setId(int value) { + this.id = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the possibleValues property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getPossibleValues() { + if (possibleValues == null) { + possibleValues = new ArrayList(); + } + return this.possibleValues; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSettings.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSettings.java new file mode 100644 index 0000000..cdf4089 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSettings.java @@ -0,0 +1,96 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for userSettings complex type. + * + *

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

+ * <complexType name="userSettings">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="settings" type="{http://api.soap.shared.pmstation.com/}userSetting" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="settingsGroup" type="{http://api.soap.shared.pmstation.com/}settingsGroup" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "userSettings", propOrder = { + "settings", + "settingsGroup" +}) +public class UserSettings { + + @XmlElement(nillable = true) + protected List settings; + protected SettingsGroup settingsGroup; + + /** + * Gets the value of the settings property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link UserSetting } + * + * + */ + public List getSettings() { + if (settings == null) { + settings = new ArrayList(); + } + return this.settings; + } + + /** + * Gets the value of the settingsGroup property. + * + * @return + * possible object is + * {@link SettingsGroup } + * + */ + public SettingsGroup getSettingsGroup() { + return settingsGroup; + } + + /** + * Sets the value of the settingsGroup property. + * + * @param value + * allowed object is + * {@link SettingsGroup } + * + */ + public void setSettingsGroup(SettingsGroup value) { + this.settingsGroup = value; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSettingsArray.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSettingsArray.java new file mode 100644 index 0000000..0b873d8 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/UserSettingsArray.java @@ -0,0 +1,69 @@ + +package com.pmstation.shared.soap.client; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for userSettingsArray complex type. + * + *

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

+ * <complexType name="userSettingsArray">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="item" type="{http://api.soap.shared.pmstation.com/}userSettings" maxOccurs="unbounded" minOccurs="0"/>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "userSettingsArray", propOrder = { + "item" +}) +public class UserSettingsArray { + + @XmlElement(nillable = true) + protected List item; + + /** + * Gets the value of the item property. + * + *

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

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

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

+ * Objects of the following type(s) are allowed in the list + * {@link UserSettings } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/package-info.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/package-info.java new file mode 100644 index 0000000..0c8558a --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/com/pmstation/shared/soap/client/package-info.java @@ -0,0 +1,2 @@ +@javax.xml.bind.annotation.XmlSchema(namespace = "http://api.soap.shared.pmstation.com/") +package com.pmstation.shared.soap.client; diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/java/org/httpchannel/service/fourshared/FourSharedService.java b/httpchannel-service/httpchannel-service-4shared/src/main/java/org/httpchannel/service/fourshared/FourSharedService.java new file mode 100644 index 0000000..e411cef --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/java/org/httpchannel/service/fourshared/FourSharedService.java @@ -0,0 +1,261 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ +package org.httpchannel.service.fourshared; + +import java.io.IOException; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.Future; + +import com.pmstation.shared.soap.client.ApiException; +import com.pmstation.shared.soap.client.DesktopAppJax2; +import com.pmstation.shared.soap.client.DesktopAppJax2Service; +import com.rogiel.httpchannel.service.AbstractAuthenticator; +import com.rogiel.httpchannel.service.AbstractHttpService; +import com.rogiel.httpchannel.service.AbstractUploader; +import com.rogiel.httpchannel.service.AuthenticationService; +import com.rogiel.httpchannel.service.Authenticator; +import com.rogiel.httpchannel.service.AuthenticatorCapability; +import com.rogiel.httpchannel.service.CapabilityMatrix; +import com.rogiel.httpchannel.service.Credential; +import com.rogiel.httpchannel.service.Service; +import com.rogiel.httpchannel.service.ServiceID; +import com.rogiel.httpchannel.service.ServiceMode; +import com.rogiel.httpchannel.service.UploadChannel; +import com.rogiel.httpchannel.service.UploadService; +import com.rogiel.httpchannel.service.Uploader; +import com.rogiel.httpchannel.service.UploaderCapability; +import com.rogiel.httpchannel.service.channel.LinkedUploadChannel; +import com.rogiel.httpchannel.service.channel.LinkedUploadChannel.LinkedUploadChannelCloseCallback; +import com.rogiel.httpchannel.service.config.NullAuthenticatorConfiguration; +import com.rogiel.httpchannel.service.config.NullUploaderConfiguration; +import com.rogiel.httpchannel.service.exception.AuthenticationInvalidCredentialException; +import com.rogiel.httpchannel.service.exception.AuthenticationServiceException; +import com.rogiel.httpchannel.service.exception.ChannelServiceException; +import com.rogiel.httpchannel.service.exception.DownloadLinkNotFoundException; +import com.rogiel.httpchannel.util.htmlparser.HTMLPage; + +/** + * This service handles uploads to 4shared.com. + * + * @author Rogiel + * @since 1.0 + */ +public class FourSharedService extends AbstractHttpService implements Service, + UploadService, + AuthenticationService { + /** + * This service ID + */ + public static final ServiceID SERVICE_ID = ServiceID.create("4shared"); + + private final DesktopAppJax2 api = new DesktopAppJax2Service() + .getDesktopAppJax2Port(); + + private String username; + private String password; + + @Override + public ServiceID getServiceID() { + return SERVICE_ID; + } + + @Override + public int getMajorVersion() { + return 1; + } + + @Override + public int getMinorVersion() { + return 0; + } + + @Override + public CapabilityMatrix getPossibleServiceModes() { + return new CapabilityMatrix(ServiceMode.UNAUTHENTICATED); + } + + @Override + public Uploader getUploader(String filename, + long filesize, NullUploaderConfiguration configuration) { + return new UploaderImpl(filename, filesize, configuration); + } + + @Override + public Uploader getUploader(String filename, + long filesize) { + return getUploader(filename, filesize, newUploaderConfiguration()); + } + + @Override + public NullUploaderConfiguration newUploaderConfiguration() { + // no configuration + return NullUploaderConfiguration.SHARED_INSTANCE; + } + + @Override + public long getMaximumFilesize() { + try { + final long free = api.getFreeSpace(username, password); + final long max = api.getMaxFileSize(username, password); + if (max < free) + return max; + else + return free; + } catch (ApiException e) { + return 0; + } + } + + @Override + public String[] getSupportedExtensions() { + // no extension restriction + return null; + } + + @Override + public CapabilityMatrix getUploadCapabilities() { + return new CapabilityMatrix( + UploaderCapability.NON_PREMIUM_ACCOUNT_UPLOAD, + UploaderCapability.PREMIUM_ACCOUNT_UPLOAD); + } + + @Override + public Authenticator getAuthenticator( + Credential credential, NullAuthenticatorConfiguration configuration) { + return new AuthenticatorImpl(credential, configuration); + } + + @Override + public Authenticator getAuthenticator( + Credential credential) { + return getAuthenticator(credential, newAuthenticatorConfiguration()); + } + + @Override + public NullAuthenticatorConfiguration newAuthenticatorConfiguration() { + return NullAuthenticatorConfiguration.SHARED_INSTANCE; + } + + @Override + public CapabilityMatrix getAuthenticationCapability() { + return new CapabilityMatrix(); + } + + protected class UploaderImpl extends + AbstractUploader implements + Uploader, + LinkedUploadChannelCloseCallback { + private Future uploadFuture; + + public UploaderImpl(String filename, long filesize, + NullUploaderConfiguration configuration) { + super(FourSharedService.this, filename, filesize, configuration); + } + + @Override + public UploadChannel openChannel() throws IOException { + try { + logger.debug("Starting upload to 4shared.com"); + final String sessionID = api.createUploadSessionKey(username, + password, -1); + logger.debug("SessionID: {}", sessionID); + if (sessionID == null || sessionID.length() == 0) + throw new ChannelServiceException("SessionID is invalid"); + + final long datacenterID = api.getNewFileDataCenter(username, + password); + logger.debug("DatacenterID: {}", datacenterID); + if (datacenterID <= 0) + throw new ChannelServiceException("DatacenterID is invalid"); + + final String uri = api.getUploadFormUrl((int) datacenterID, + sessionID); + logger.debug("Upload URI: {}", uri); + + // create a new channel + final LinkedUploadChannel channel = createLinkedChannel(this); + uploadFuture = multipartPost(uri) + .parameter("FilePart", channel).asPageAsync(); + + // wait for channel link + return waitChannelLink(channel, uploadFuture); + } catch (ApiException e) { + throw new ChannelServiceException(e); + } + } + + @Override + public String finish() throws IOException { + try { + final long linkID = Long.parseLong(uploadFuture.get() + .getInputValueById("uploadedFileId")); + return api.getFileDownloadLink(username, password, linkID); + } catch (InterruptedException e) { + return null; + } catch (ExecutionException e) { + throw (IOException) e.getCause(); + } catch (ApiException e) { + throw new DownloadLinkNotFoundException(e); + } + } + } + + protected class AuthenticatorImpl extends + AbstractAuthenticator implements + Authenticator { + public AuthenticatorImpl(Credential credential, + NullAuthenticatorConfiguration configuration) { + super(credential, configuration); + } + + @Override + public void login() throws IOException { + logger.debug("Logging to 4shared.com"); + + final String response = api.login(credential.getUsername(), + credential.getPassword()); + username = credential.getUsername(); + password = credential.getPassword(); + + try { + if (api.isAccountPremium(username, password)) + serviceMode = ServiceMode.PREMIUM; + else + serviceMode = ServiceMode.NON_PREMIUM; + } catch (ApiException e) { + throw new AuthenticationServiceException(e); + } + + if (!response.isEmpty()) + throw new AuthenticationInvalidCredentialException(); + } + + @Override + public void logout() throws IOException { + username = null; + password = null; + } + } + + @Override + public String toString() { + return this.getClass().getSimpleName() + " " + getMajorVersion() + "." + + getMinorVersion(); + } +} diff --git a/httpchannel-service/httpchannel-service-4shared/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-4shared/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service new file mode 100644 index 0000000..5ba0742 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -0,0 +1 @@ +org.httpchannel.service.fourshared.FourSharedService \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-4shared/src/test/java/org/httpchannel/service/fourshared/FourSharedServiceTest.java b/httpchannel-service/httpchannel-service-4shared/src/test/java/org/httpchannel/service/fourshared/FourSharedServiceTest.java new file mode 100644 index 0000000..59e5ac8 --- /dev/null +++ b/httpchannel-service/httpchannel-service-4shared/src/test/java/org/httpchannel/service/fourshared/FourSharedServiceTest.java @@ -0,0 +1,36 @@ +/** + * + */ +package org.httpchannel.service.fourshared; + +import java.io.IOException; +import java.net.URI; +import java.nio.file.Path; +import java.nio.file.Paths; + +import junit.framework.Assert; + +import org.junit.Test; + +import com.rogiel.httpchannel.service.helper.AuthenticationServices; +import com.rogiel.httpchannel.util.ChannelUtils; + +/** + * @author Rogiel + * + */ +public class FourSharedServiceTest { + private final FourSharedService service = new FourSharedService(); + + @Test + public void test() throws IOException { + AuthenticationServices.authenticator(service, "", "").login(); + + final Path path = Paths + .get("../src/test/resources/upload-test-file.txt"); + final URI uri = ChannelUtils.upload(service, path); + + Assert.assertNotNull(uri); + System.out.println(uri); + } +} diff --git a/httpchannel-service/httpchannel-service-depositfiles/src/main/java/com/rogiel/httpchannel/service/impl/DepositFilesService.java b/httpchannel-service/httpchannel-service-depositfiles/src/main/java/com/rogiel/httpchannel/service/depositfiles/DepositFilesService.java similarity index 96% rename from httpchannel-service/httpchannel-service-depositfiles/src/main/java/com/rogiel/httpchannel/service/impl/DepositFilesService.java rename to httpchannel-service/httpchannel-service-depositfiles/src/main/java/com/rogiel/httpchannel/service/depositfiles/DepositFilesService.java index 5f7f8dc..4c679fa 100644 --- a/httpchannel-service/httpchannel-service-depositfiles/src/main/java/com/rogiel/httpchannel/service/impl/DepositFilesService.java +++ b/httpchannel-service/httpchannel-service-depositfiles/src/main/java/com/rogiel/httpchannel/service/depositfiles/DepositFilesService.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.depositfiles; import java.io.IOException; import java.util.concurrent.ExecutionException; diff --git a/httpchannel-service/httpchannel-service-depositfiles/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-depositfiles/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service index 000989d..ec032cf 100644 --- a/httpchannel-service/httpchannel-service-depositfiles/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ b/httpchannel-service/httpchannel-service-depositfiles/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -1 +1 @@ -com.rogiel.httpchannel.service.impl.DepositFilesService \ No newline at end of file +com.rogiel.httpchannel.service.depositfiles.DepositFilesService \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-depositfiles/src/test/java/com/rogiel/httpchannel/service/impl/DepositFilesServiceTest.java b/httpchannel-service/httpchannel-service-depositfiles/src/test/java/com/rogiel/httpchannel/service/impl/DepositFilesServiceTest.java index 0a5f737..b3b89fc 100644 --- a/httpchannel-service/httpchannel-service-depositfiles/src/test/java/com/rogiel/httpchannel/service/impl/DepositFilesServiceTest.java +++ b/httpchannel-service/httpchannel-service-depositfiles/src/test/java/com/rogiel/httpchannel/service/impl/DepositFilesServiceTest.java @@ -31,6 +31,7 @@ import org.junit.Before; import org.junit.Test; import com.rogiel.httpchannel.service.UploaderCapability; +import com.rogiel.httpchannel.service.depositfiles.DepositFilesService; import com.rogiel.httpchannel.util.ChannelUtils; public class DepositFilesServiceTest { diff --git a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/FileSonicAPI.java b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/FileSonicAPI.java similarity index 86% rename from httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/FileSonicAPI.java rename to httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/FileSonicAPI.java index f64f445..f2c8995 100644 --- a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/FileSonicAPI.java +++ b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/FileSonicAPI.java @@ -16,16 +16,16 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.filesonic; +package com.rogiel.httpchannel.service.filesonic; import java.io.IOException; import java.net.URI; import javax.xml.bind.JAXB; -import com.rogiel.httpchannel.filesonic.xml.FSAPI; -import com.rogiel.httpchannel.filesonic.xml.FSGetUploadURL; -import com.rogiel.httpchannel.filesonic.xml.FSUpload; +import com.rogiel.httpchannel.service.filesonic.xml.FSAPI; +import com.rogiel.httpchannel.service.filesonic.xml.FSGetUploadURL; +import com.rogiel.httpchannel.service.filesonic.xml.FSUpload; /** * @author Rogiel diff --git a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/impl/FileSonicService.java b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/FileSonicService.java similarity index 98% rename from httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/impl/FileSonicService.java rename to httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/FileSonicService.java index bf59c60..5547da7 100644 --- a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/impl/FileSonicService.java +++ b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/FileSonicService.java @@ -16,14 +16,13 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.filesonic; import java.io.IOException; import java.util.concurrent.ExecutionException; import java.util.concurrent.Future; import java.util.regex.Pattern; -import com.rogiel.httpchannel.filesonic.FileSonicAPI; import com.rogiel.httpchannel.service.AbstractAuthenticator; import com.rogiel.httpchannel.service.AbstractHttpService; import com.rogiel.httpchannel.service.AbstractUploader; diff --git a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSAPI.java b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSAPI.java similarity index 91% rename from httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSAPI.java rename to httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSAPI.java index d1d2605..b0d08e3 100644 --- a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSAPI.java +++ b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSAPI.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.filesonic.xml; +package com.rogiel.httpchannel.service.filesonic.xml; /** * @author Rogiel diff --git a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSGetUploadURL.java b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSGetUploadURL.java similarity index 93% rename from httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSGetUploadURL.java rename to httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSGetUploadURL.java index 1c2296d..f199701 100644 --- a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSGetUploadURL.java +++ b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSGetUploadURL.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.filesonic.xml; +package com.rogiel.httpchannel.service.filesonic.xml; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; diff --git a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSResponse.java b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSResponse.java similarity index 92% rename from httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSResponse.java rename to httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSResponse.java index 8e5c088..ba09d55 100644 --- a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSResponse.java +++ b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSResponse.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.filesonic.xml; +package com.rogiel.httpchannel.service.filesonic.xml; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; diff --git a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSUpload.java b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSUpload.java similarity index 93% rename from httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSUpload.java rename to httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSUpload.java index d90432a..af637f4 100644 --- a/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/filesonic/xml/FSUpload.java +++ b/httpchannel-service/httpchannel-service-filesonic/src/main/java/com/rogiel/httpchannel/service/filesonic/xml/FSUpload.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.filesonic.xml; +package com.rogiel.httpchannel.service.filesonic.xml; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; diff --git a/httpchannel-service/httpchannel-service-filesonic/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-filesonic/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service index 15dd2f2..68246e1 100644 --- a/httpchannel-service/httpchannel-service-filesonic/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ b/httpchannel-service/httpchannel-service-filesonic/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -1 +1 @@ -com.rogiel.httpchannel.service.impl.FileSonicService \ No newline at end of file +com.rogiel.httpchannel.service.filesonic.FileSonicService \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-hotfile/src/main/java/com/rogiel/httpchannel/service/impl/HotFileService.java b/httpchannel-service/httpchannel-service-hotfile/src/main/java/com/rogiel/httpchannel/service/hotfile/HotFileService.java similarity index 99% rename from httpchannel-service/httpchannel-service-hotfile/src/main/java/com/rogiel/httpchannel/service/impl/HotFileService.java rename to httpchannel-service/httpchannel-service-hotfile/src/main/java/com/rogiel/httpchannel/service/hotfile/HotFileService.java index 9fcf2b1..f1e44a6 100644 --- a/httpchannel-service/httpchannel-service-hotfile/src/main/java/com/rogiel/httpchannel/service/impl/HotFileService.java +++ b/httpchannel-service/httpchannel-service-hotfile/src/main/java/com/rogiel/httpchannel/service/hotfile/HotFileService.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.hotfile; import java.io.IOException; import java.net.URI; diff --git a/httpchannel-service/httpchannel-service-hotfile/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-hotfile/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service index a46dd2c..8dae694 100644 --- a/httpchannel-service/httpchannel-service-hotfile/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ b/httpchannel-service/httpchannel-service-hotfile/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -1 +1 @@ -com.rogiel.httpchannel.service.impl.HotFileService \ No newline at end of file +com.rogiel.httpchannel.service.hotfile.HotFileService \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-hotfile/src/test/java/com/rogiel/httpchannel/service/impl/DiscoveryTest.java b/httpchannel-service/httpchannel-service-hotfile/src/test/java/com/rogiel/httpchannel/service/impl/DiscoveryTest.java index 3408708..6dbcdc0 100644 --- a/httpchannel-service/httpchannel-service-hotfile/src/test/java/com/rogiel/httpchannel/service/impl/DiscoveryTest.java +++ b/httpchannel-service/httpchannel-service-hotfile/src/test/java/com/rogiel/httpchannel/service/impl/DiscoveryTest.java @@ -23,6 +23,7 @@ import junit.framework.Assert; import org.junit.Test; import com.rogiel.httpchannel.service.helper.Services; +import com.rogiel.httpchannel.service.hotfile.HotFileService; /** * @author Rogiel diff --git a/httpchannel-service/httpchannel-service-hotfile/src/test/java/com/rogiel/httpchannel/service/impl/HotFileServiceTest.java b/httpchannel-service/httpchannel-service-hotfile/src/test/java/com/rogiel/httpchannel/service/impl/HotFileServiceTest.java index 2dc8561..d6494cd 100644 --- a/httpchannel-service/httpchannel-service-hotfile/src/test/java/com/rogiel/httpchannel/service/impl/HotFileServiceTest.java +++ b/httpchannel-service/httpchannel-service-hotfile/src/test/java/com/rogiel/httpchannel/service/impl/HotFileServiceTest.java @@ -47,6 +47,7 @@ import com.rogiel.httpchannel.service.UploaderCapability; import com.rogiel.httpchannel.service.exception.AuthenticationInvalidCredentialException; import com.rogiel.httpchannel.service.helper.Services; import com.rogiel.httpchannel.service.helper.UploadServices; +import com.rogiel.httpchannel.service.hotfile.HotFileService; import com.rogiel.httpchannel.util.ChannelUtils; public class HotFileServiceTest { diff --git a/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadDownloaderConfiguration.java b/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadDownloaderConfiguration.java similarity index 93% rename from httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadDownloaderConfiguration.java rename to httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadDownloaderConfiguration.java index 7aedf96..8399d53 100644 --- a/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadDownloaderConfiguration.java +++ b/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadDownloaderConfiguration.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.megaupload; import com.rogiel.httpchannel.service.AbstractDownloaderConfiguration; import com.rogiel.httpchannel.service.Downloader.DownloaderConfiguration; diff --git a/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadService.java b/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadService.java similarity index 99% rename from httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadService.java rename to httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadService.java index 0a66446..7b7163c 100644 --- a/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadService.java +++ b/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadService.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.megaupload; import java.io.IOException; import java.net.URI; diff --git a/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadUploaderConfiguration.java b/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadUploaderConfiguration.java similarity index 90% rename from httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadUploaderConfiguration.java rename to httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadUploaderConfiguration.java index 3437f8b..b3d6456 100644 --- a/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/impl/MegaUploadUploaderConfiguration.java +++ b/httpchannel-service/httpchannel-service-megaupload/src/main/java/com/rogiel/httpchannel/service/megaupload/MegaUploadUploaderConfiguration.java @@ -16,12 +16,12 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.megaupload; import com.rogiel.httpchannel.service.AbstractUploaderConfiguration; import com.rogiel.httpchannel.service.Uploader.DescriptionableUploaderConfiguration; import com.rogiel.httpchannel.service.Uploader.UploaderConfiguration; -import com.rogiel.httpchannel.service.impl.MegaUploadService.UploaderImpl; +import com.rogiel.httpchannel.service.megaupload.MegaUploadService.UploaderImpl; /** * Describes an configuration for an {@link UploaderImpl} diff --git a/httpchannel-service/httpchannel-service-megaupload/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-megaupload/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service index b8dea6b..3274a06 100644 --- a/httpchannel-service/httpchannel-service-megaupload/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ b/httpchannel-service/httpchannel-service-megaupload/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -1 +1 @@ -com.rogiel.httpchannel.service.impl.MegaUploadService \ No newline at end of file +com.rogiel.httpchannel.service.megaupload.MegaUploadService \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-megaupload/src/test/java/com/rogiel/httpchannel/service/impl/DiscoveryTest.java b/httpchannel-service/httpchannel-service-megaupload/src/test/java/com/rogiel/httpchannel/service/impl/DiscoveryTest.java index c32806e..420d0be 100644 --- a/httpchannel-service/httpchannel-service-megaupload/src/test/java/com/rogiel/httpchannel/service/impl/DiscoveryTest.java +++ b/httpchannel-service/httpchannel-service-megaupload/src/test/java/com/rogiel/httpchannel/service/impl/DiscoveryTest.java @@ -23,6 +23,7 @@ import junit.framework.Assert; import org.junit.Test; import com.rogiel.httpchannel.service.helper.Services; +import com.rogiel.httpchannel.service.megaupload.MegaUploadService; /** * @author Rogiel diff --git a/httpchannel-service/httpchannel-service-megaupload/src/test/java/com/rogiel/httpchannel/service/impl/MegaUploadServiceTest.java b/httpchannel-service/httpchannel-service-megaupload/src/test/java/com/rogiel/httpchannel/service/impl/MegaUploadServiceTest.java index f41fc7d..d561371 100644 --- a/httpchannel-service/httpchannel-service-megaupload/src/test/java/com/rogiel/httpchannel/service/impl/MegaUploadServiceTest.java +++ b/httpchannel-service/httpchannel-service-megaupload/src/test/java/com/rogiel/httpchannel/service/impl/MegaUploadServiceTest.java @@ -46,6 +46,8 @@ import com.rogiel.httpchannel.service.UploadChannel; import com.rogiel.httpchannel.service.UploaderCapability; import com.rogiel.httpchannel.service.exception.AuthenticationInvalidCredentialException; import com.rogiel.httpchannel.service.helper.UploadServices; +import com.rogiel.httpchannel.service.megaupload.MegaUploadDownloaderConfiguration; +import com.rogiel.httpchannel.service.megaupload.MegaUploadService; import com.rogiel.httpchannel.util.ChannelUtils; public class MegaUploadServiceTest { diff --git a/httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/impl/MultiUploadService.java b/httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/multiupload/MultiUploadService.java similarity index 93% rename from httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/impl/MultiUploadService.java rename to httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/multiupload/MultiUploadService.java index 6fcbc88..bc29bbe 100644 --- a/httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/impl/MultiUploadService.java +++ b/httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/multiupload/MultiUploadService.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.multiupload; import java.io.IOException; import java.net.URI; @@ -55,7 +55,7 @@ import com.rogiel.httpchannel.service.exception.DownloadLimitExceededException; import com.rogiel.httpchannel.service.exception.DownloadLinkNotFoundException; import com.rogiel.httpchannel.service.exception.DownloadNotAuthorizedException; import com.rogiel.httpchannel.service.exception.DownloadNotResumableException; -import com.rogiel.httpchannel.service.impl.MultiUploadUploaderConfiguration.MultiUploadMirrorService; +import com.rogiel.httpchannel.service.multiupload.MultiUploadUploaderConfiguration.MultiUploadMirrorService; import com.rogiel.httpchannel.util.PatternUtils; import com.rogiel.httpchannel.util.htmlparser.HTMLPage; @@ -221,6 +221,12 @@ public class MultiUploadService extends AbstractHttpService implements Service, .uploadServices()) { logger.debug("Adding {} as mirror", mirror.name()); request.parameter("service_" + mirror.id, 1); + final String[] login = configuration + .getAuthenticationForService(mirror); + if (login != null && login.length == 2) { + request.parameter("username_" + mirror.id, login[0]); + request.parameter("password_" + mirror.id, login[1]); + } } uploadFuture = request.asStringAsync(); diff --git a/httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/impl/MultiUploadUploaderConfiguration.java b/httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/multiupload/MultiUploadUploaderConfiguration.java similarity index 74% rename from httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/impl/MultiUploadUploaderConfiguration.java rename to httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/multiupload/MultiUploadUploaderConfiguration.java index 42052b2..da1f3d6 100644 --- a/httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/impl/MultiUploadUploaderConfiguration.java +++ b/httpchannel-service/httpchannel-service-multiupload/src/main/java/com/rogiel/httpchannel/service/multiupload/MultiUploadUploaderConfiguration.java @@ -16,14 +16,14 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.multiupload; import java.util.EnumSet; import com.rogiel.httpchannel.service.AbstractUploaderConfiguration; import com.rogiel.httpchannel.service.Uploader.DescriptionableUploaderConfiguration; import com.rogiel.httpchannel.service.Uploader.UploaderConfiguration; -import com.rogiel.httpchannel.service.impl.MultiUploadService.UploaderImpl; +import com.rogiel.httpchannel.service.multiupload.MultiUploadService.UploaderImpl; /** * Describes an configuration for an {@link UploaderImpl} @@ -42,6 +42,11 @@ public class MultiUploadUploaderConfiguration extends */ private EnumSet uploadServices = EnumSet .allOf(MultiUploadMirrorService.class); + /** + * The service authentication + */ + private final String[][] serviceAuthentication = new String[MultiUploadMirrorService + .values().length][]; /** * An enumeration containing all supported services for Multiupload @@ -82,11 +87,31 @@ public class MultiUploadUploaderConfiguration extends public MultiUploadUploaderConfiguration uploadService( MultiUploadMirrorService... services) { for (final MultiUploadMirrorService service : services) { + serviceAuthentication[service.ordinal()] = null; uploadServices.add(service); } return this; } + /** + * Adds this service as an desired mirror + * + * @param service + * the service + * @param username + * the service username + * @param password + * the service password + */ + public MultiUploadUploaderConfiguration uploadService( + MultiUploadMirrorService service, String username, String password) { + if (username != null && password != null) { + serviceAuthentication[service.ordinal()] = new String[] { username, + password }; + } + return uploadService(service); + } + /** * Checks if the service is on the desired mirror list * @@ -127,4 +152,12 @@ public class MultiUploadUploaderConfiguration extends public EnumSet uploadServices() { return uploadServices; } + + /** + * @return the configured authentication for the given service + */ + protected String[] getAuthenticationForService( + MultiUploadMirrorService service) { + return serviceAuthentication[service.ordinal()]; + } } diff --git a/httpchannel-service/httpchannel-service-multiupload/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-multiupload/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service index 4013beb..5d4a4ee 100644 --- a/httpchannel-service/httpchannel-service-multiupload/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ b/httpchannel-service/httpchannel-service-multiupload/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -1 +1 @@ -com.rogiel.httpchannel.service.impl.MultiUploadService \ No newline at end of file +com.rogiel.httpchannel.service.multiupload.MultiUploadService \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-multiupload/src/test/java/com/rogiel/httpchannel/service/impl/MultiUploadServiceTest.java b/httpchannel-service/httpchannel-service-multiupload/src/test/java/com/rogiel/httpchannel/service/impl/MultiUploadServiceTest.java index 15722dc..dcf0974 100644 --- a/httpchannel-service/httpchannel-service-multiupload/src/test/java/com/rogiel/httpchannel/service/impl/MultiUploadServiceTest.java +++ b/httpchannel-service/httpchannel-service-multiupload/src/test/java/com/rogiel/httpchannel/service/impl/MultiUploadServiceTest.java @@ -30,6 +30,7 @@ import org.junit.Before; import org.junit.Test; import com.rogiel.httpchannel.service.DownloadService; +import com.rogiel.httpchannel.service.multiupload.MultiUploadService; import com.rogiel.httpchannel.util.ChannelUtils; public class MultiUploadServiceTest { diff --git a/httpchannel-service/httpchannel-service-uploadhere/src/main/java/com/rogiel/httpchannel/service/impl/UploadHereService.java b/httpchannel-service/httpchannel-service-uploadhere/src/main/java/com/rogiel/httpchannel/service/uploadhere/UploadHereService.java similarity index 96% rename from httpchannel-service/httpchannel-service-uploadhere/src/main/java/com/rogiel/httpchannel/service/impl/UploadHereService.java rename to httpchannel-service/httpchannel-service-uploadhere/src/main/java/com/rogiel/httpchannel/service/uploadhere/UploadHereService.java index 8df5c69..b8eb49e 100644 --- a/httpchannel-service/httpchannel-service-uploadhere/src/main/java/com/rogiel/httpchannel/service/impl/UploadHereService.java +++ b/httpchannel-service/httpchannel-service-uploadhere/src/main/java/com/rogiel/httpchannel/service/uploadhere/UploadHereService.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.uploadhere; import java.io.IOException; import java.net.URI; diff --git a/httpchannel-service/httpchannel-service-uploadhere/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-uploadhere/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service index af09d29..966e11f 100644 --- a/httpchannel-service/httpchannel-service-uploadhere/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ b/httpchannel-service/httpchannel-service-uploadhere/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -1 +1 @@ -com.rogiel.httpchannel.service.impl.UploadKingService \ No newline at end of file +com.rogiel.httpchannel.service.uploadhere.UploadHereService \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-uploadhere/src/test/java/com/rogiel/httpchannel/service/impl/UploadHereServiceTest.java b/httpchannel-service/httpchannel-service-uploadhere/src/test/java/com/rogiel/httpchannel/service/impl/UploadHereServiceTest.java index 32cc017..5f2adf1 100644 --- a/httpchannel-service/httpchannel-service-uploadhere/src/test/java/com/rogiel/httpchannel/service/impl/UploadHereServiceTest.java +++ b/httpchannel-service/httpchannel-service-uploadhere/src/test/java/com/rogiel/httpchannel/service/impl/UploadHereServiceTest.java @@ -31,6 +31,7 @@ import org.junit.Before; import org.junit.Test; import com.rogiel.httpchannel.service.UploaderCapability; +import com.rogiel.httpchannel.service.uploadhere.UploadHereService; import com.rogiel.httpchannel.util.ChannelUtils; public class UploadHereServiceTest { diff --git a/httpchannel-service/httpchannel-service-uploadking/src/main/java/com/rogiel/httpchannel/service/impl/UploadKingService.java b/httpchannel-service/httpchannel-service-uploadking/src/main/java/com/rogiel/httpchannel/service/uploadking/UploadKingService.java similarity index 96% rename from httpchannel-service/httpchannel-service-uploadking/src/main/java/com/rogiel/httpchannel/service/impl/UploadKingService.java rename to httpchannel-service/httpchannel-service-uploadking/src/main/java/com/rogiel/httpchannel/service/uploadking/UploadKingService.java index d9fc852..58ad28a 100644 --- a/httpchannel-service/httpchannel-service-uploadking/src/main/java/com/rogiel/httpchannel/service/impl/UploadKingService.java +++ b/httpchannel-service/httpchannel-service-uploadking/src/main/java/com/rogiel/httpchannel/service/uploadking/UploadKingService.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.uploadking; import java.io.IOException; import java.net.URI; diff --git a/httpchannel-service/httpchannel-service-uploadking/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-uploadking/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service index af09d29..8431515 100644 --- a/httpchannel-service/httpchannel-service-uploadking/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ b/httpchannel-service/httpchannel-service-uploadking/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -1 +1 @@ -com.rogiel.httpchannel.service.impl.UploadKingService \ No newline at end of file +com.rogiel.httpchannel.service.uploadking.UploadKingService \ No newline at end of file diff --git a/httpchannel-service/httpchannel-service-uploadking/src/test/java/com/rogiel/httpchannel/service/impl/UploadKingServiceTest.java b/httpchannel-service/httpchannel-service-uploadking/src/test/java/com/rogiel/httpchannel/service/impl/UploadKingServiceTest.java index 33bdc9b..8222f5e 100644 --- a/httpchannel-service/httpchannel-service-uploadking/src/test/java/com/rogiel/httpchannel/service/impl/UploadKingServiceTest.java +++ b/httpchannel-service/httpchannel-service-uploadking/src/test/java/com/rogiel/httpchannel/service/impl/UploadKingServiceTest.java @@ -37,6 +37,7 @@ import com.rogiel.httpchannel.captcha.CaptchaService; import com.rogiel.httpchannel.captcha.impl.CaptchaTraderService; import com.rogiel.httpchannel.service.DownloadChannel; import com.rogiel.httpchannel.service.UploaderCapability; +import com.rogiel.httpchannel.service.uploadking.UploadKingService; import com.rogiel.httpchannel.util.ChannelUtils; public class UploadKingServiceTest { diff --git a/httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/impl/ZShareService.java b/httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/zshare/ZShareService.java similarity index 96% rename from httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/impl/ZShareService.java rename to httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/zshare/ZShareService.java index 4c41a84..bfe0c71 100644 --- a/httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/impl/ZShareService.java +++ b/httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/zshare/ZShareService.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.zshare; import com.rogiel.httpchannel.service.AbstractHttpService; import com.rogiel.httpchannel.service.CapabilityMatrix; diff --git a/httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/impl/ZShareUploaderConfiguration.java b/httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/zshare/ZShareUploaderConfiguration.java similarity index 94% rename from httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/impl/ZShareUploaderConfiguration.java rename to httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/zshare/ZShareUploaderConfiguration.java index 96b1f6f..6fd2478 100644 --- a/httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/impl/ZShareUploaderConfiguration.java +++ b/httpchannel-service/httpchannel-service-zshare/src/main/java/com/rogiel/httpchannel/service/zshare/ZShareUploaderConfiguration.java @@ -16,7 +16,7 @@ * specific language governing permissions and limitations * under the License. */ -package com.rogiel.httpchannel.service.impl; +package com.rogiel.httpchannel.service.zshare; import com.rogiel.httpchannel.service.AbstractUploaderConfiguration; import com.rogiel.httpchannel.service.Uploader.DescriptionableUploaderConfiguration; diff --git a/httpchannel-service/httpchannel-service-zshare/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/httpchannel-service-zshare/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service index 9b6dcd1..aeb8fe7 100644 --- a/httpchannel-service/httpchannel-service-zshare/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ b/httpchannel-service/httpchannel-service-zshare/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service @@ -1 +1 @@ -com.rogiel.httpchannel.service.impl.ZShareService \ No newline at end of file +com.rogiel.httpchannel.service.zshare.ZShareService \ No newline at end of file diff --git a/httpchannel-service/pom.xml b/httpchannel-service/pom.xml index 93d9992..0f670b7 100644 --- a/httpchannel-service/pom.xml +++ b/httpchannel-service/pom.xml @@ -22,6 +22,7 @@ httpchannel-service-hotfile httpchannel-service-filesonic httpchannel-service-zshare + httpchannel-service-4shared diff --git a/httpchannel-service/src/main/archetype-resources/pom.xml b/httpchannel-service/src/main/archetype-resources/pom.xml deleted file mode 100644 index f933d96..0000000 --- a/httpchannel-service/src/main/archetype-resources/pom.xml +++ /dev/null @@ -1,16 +0,0 @@ - - 4.0.0 - - httpchannel-service - com.rogiel.httpchannel - 1.0.1-SNAPSHOT - .. - - ${groupId} - ${artifactId} - ${version} - jar - HttpChannel/Service/MyService - Provides upload access to myservice.com - \ No newline at end of file diff --git a/httpchannel-service/src/main/archetype-resources/src/main/java/com/rogiel/httpchannel/service/impl/MyService.java b/httpchannel-service/src/main/archetype-resources/src/main/java/com/rogiel/httpchannel/service/impl/MyService.java deleted file mode 100644 index 0e7ff53..0000000 --- a/httpchannel-service/src/main/archetype-resources/src/main/java/com/rogiel/httpchannel/service/impl/MyService.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -package com.rogiel.httpchannel.service.impl; - -import java.io.IOException; -import java.util.concurrent.ExecutionException; -import java.util.concurrent.Future; -import java.util.regex.Pattern; - -import com.rogiel.httpchannel.captcha.ImageCaptcha; -import com.rogiel.httpchannel.captcha.ReCaptchaExtractor; -import com.rogiel.httpchannel.captcha.exception.UnsolvableCaptchaServiceException; -import com.rogiel.httpchannel.service.AbstractAuthenticator; -import com.rogiel.httpchannel.service.AbstractHttpService; -import com.rogiel.httpchannel.service.AbstractUploader; -import com.rogiel.httpchannel.service.AuthenticationService; -import com.rogiel.httpchannel.service.Authenticator; -import com.rogiel.httpchannel.service.AuthenticatorCapability; -import com.rogiel.httpchannel.service.CapabilityMatrix; -import com.rogiel.httpchannel.service.Credential; -import com.rogiel.httpchannel.service.Service; -import com.rogiel.httpchannel.service.ServiceID; -import com.rogiel.httpchannel.service.ServiceMode; -import com.rogiel.httpchannel.service.UploadChannel; -import com.rogiel.httpchannel.service.UploadService; -import com.rogiel.httpchannel.service.Uploader; -import com.rogiel.httpchannel.service.UploaderCapability; -import com.rogiel.httpchannel.service.channel.LinkedUploadChannel; -import com.rogiel.httpchannel.service.channel.LinkedUploadChannel.LinkedUploadChannelCloseCallback; -import com.rogiel.httpchannel.service.config.NullAuthenticatorConfiguration; -import com.rogiel.httpchannel.service.config.NullUploaderConfiguration; -import com.rogiel.httpchannel.service.exception.AuthenticationInvalidCredentialException; -import com.rogiel.httpchannel.util.htmlparser.HTMLPage; - -/** - * This service handles uploads to MyService.com. - * - * @author Rogiel - * @since 1.0 - */ -public class DepositFilesService extends AbstractHttpService implements - Service, UploadService { - /** - * This service ID - */ - public static final ServiceID SERVICE_ID = ServiceID.create("myservice"); - - @Override - public ServiceID getServiceID() { - return SERVICE_ID; - } - - @Override - public int getMajorVersion() { - return 1; - } - - @Override - public int getMinorVersion() { - return 0; - } - - @Override - public CapabilityMatrix getPossibleServiceModes() { - return new CapabilityMatrix(ServiceMode.UNAUTHENTICATED); - } - - @Override - public Uploader getUploader(String filename, - long filesize, NullUploaderConfiguration configuration) { - return new UploaderImpl(filename, filesize, configuration); - } - - @Override - public Uploader getUploader(String filename, - long filesize) { - return getUploader(filename, filesize, newUploaderConfiguration()); - } - - @Override - public NullUploaderConfiguration newUploaderConfiguration() { - // no configuration - return NullUploaderConfiguration.SHARED_INSTANCE; - } - - @Override - public long getMaximumFilesize() { - // no limit - return -1; - } - - @Override - public String[] getSupportedExtensions() { - // all extensions - return null; - } - - @Override - public CapabilityMatrix getUploadCapabilities() { - return new CapabilityMatrix( - UploaderCapability.UNAUTHENTICATED_UPLOAD, - UploaderCapability.NON_PREMIUM_ACCOUNT_UPLOAD, - UploaderCapability.PREMIUM_ACCOUNT_UPLOAD); - } - - protected class UploaderImpl extends - AbstractUploader implements - Uploader, - LinkedUploadChannelCloseCallback { - private Future uploadFuture; - - public UploaderImpl(String filename, long filesize, - NullUploaderConfiguration configuration) { - super(DepositFilesService.this, filename, filesize, configuration); - } - - @Override - public UploadChannel openChannel() throws IOException { - // TODO start upload - final LinkedUploadChannel channel = createLinkedChannel(this); - // TODO execute upload post - return waitChannelLink(channel, uploadFuture); - } - - @Override - public String finish() throws IOException { - try { - final HTMLPage page = uploadFuture.get(); - // return download link here - } catch (InterruptedException e) { - return null; - } catch (ExecutionException e) { - throw (IOException) e.getCause(); - } - } - } -} diff --git a/httpchannel-service/src/main/archetype-resources/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service b/httpchannel-service/src/main/archetype-resources/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service deleted file mode 100644 index caaa717..0000000 --- a/httpchannel-service/src/main/archetype-resources/src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service +++ /dev/null @@ -1 +0,0 @@ -com.rogiel.httpchannel.service.impl.MyService \ No newline at end of file diff --git a/httpchannel-service/src/main/resources/META-INF/maven/archetype-metadata.xml b/httpchannel-service/src/main/resources/META-INF/maven/archetype-metadata.xml deleted file mode 100644 index 1074aae..0000000 --- a/httpchannel-service/src/main/resources/META-INF/maven/archetype-metadata.xml +++ /dev/null @@ -1,13 +0,0 @@ - - httpchannel-service - - src/main/java/com/rogiel/httpchannel/service/impl/MyService.java - - - - src/main/resources/META-INF/services/com.rogiel.httpchannel.service.Service - - \ No newline at end of file diff --git a/httpchannel-service/src/site/xdoc/service-table.xml b/httpchannel-service/src/site/xdoc/service-table.xml index e1bff25..da4a360 100644 --- a/httpchannel-service/src/site/xdoc/service-table.xml +++ b/httpchannel-service/src/site/xdoc/service-table.xml @@ -20,6 +20,16 @@ + + + 4Shared + + 4shared + Yes (required) + Yes + requires authentication + No + DepositFiles diff --git a/httpchannel-service/src/test/resources/upload-test-file.txt b/httpchannel-service/src/test/resources/upload-test-file.txt new file mode 100644 index 0000000..3cfccc8 --- /dev/null +++ b/httpchannel-service/src/test/resources/upload-test-file.txt @@ -0,0 +1,3 @@ +This is a simple upload test file. + +This is for testing purposes only. \ No newline at end of file diff --git a/httpchannel-util/src/main/java/com/rogiel/httpchannel/util/htmlparser/HTMLPage.java b/httpchannel-util/src/main/java/com/rogiel/httpchannel/util/htmlparser/HTMLPage.java index 613427b..41898a6 100644 --- a/httpchannel-util/src/main/java/com/rogiel/httpchannel/util/htmlparser/HTMLPage.java +++ b/httpchannel-util/src/main/java/com/rogiel/httpchannel/util/htmlparser/HTMLPage.java @@ -184,6 +184,11 @@ public class HTMLPage { public String getInputValueById(final String id) { return inputValue(filter(InputTag.class, new InputIDFilter(id))); } + + public int getInputValueByIdInt(final String id) { + return Integer.parseInt(inputValue(filter(InputTag.class, new InputIDFilter(id)))); + } + public String getInputValue(final Pattern pattern) { return inputValue(filter(InputTag.class, new InputValuePatternFilter(