├── README.md ├── remotesync-api ├── .classpath ├── .gitignore ├── .project ├── .settings │ ├── PiwigoRemoteSync API Generator.launch │ ├── PiwigoRemoteSync API Junit AllTests.launch │ ├── PiwigoRemoteSync API Main.launch │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.jdt.ui.prefs │ └── org.eclipse.m2e.core.prefs ├── README.txt ├── license.txt ├── pom.xml └── src │ ├── gen │ ├── java │ │ └── org │ │ │ └── piwigo │ │ │ └── remotesync │ │ │ └── api │ │ │ ├── AbstractAPI.java │ │ │ ├── reflection │ │ │ └── ReflectionRegistry.java │ │ │ ├── request │ │ │ ├── PwgCaddieAddRequest.java │ │ │ ├── PwgCategoriesAddRequest.java │ │ │ ├── PwgCategoriesDeleteRequest.java │ │ │ ├── PwgCategoriesGetAdminListRequest.java │ │ │ ├── PwgCategoriesGetImagesRequest.java │ │ │ ├── PwgCategoriesGetListRequest.java │ │ │ ├── PwgCategoriesMoveRequest.java │ │ │ ├── PwgCategoriesSetInfoRequest.java │ │ │ ├── PwgCategoriesSetRepresentativeRequest.java │ │ │ ├── PwgExtensionsCheckUpdatesRequest.java │ │ │ ├── PwgExtensionsIgnoreUpdateRequest.java │ │ │ ├── PwgExtensionsUpdateRequest.java │ │ │ ├── PwgGetInfosRequest.java │ │ │ ├── PwgGetVersionRequest.java │ │ │ ├── PwgGroupsAddRequest.java │ │ │ ├── PwgGroupsAddUserRequest.java │ │ │ ├── PwgGroupsDeleteRequest.java │ │ │ ├── PwgGroupsDeleteUserRequest.java │ │ │ ├── PwgGroupsGetListRequest.java │ │ │ ├── PwgGroupsSetInfoRequest.java │ │ │ ├── PwgImagesAddChunkRequest.java │ │ │ ├── PwgImagesAddCommentRequest.java │ │ │ ├── PwgImagesAddFileRequest.java │ │ │ ├── PwgImagesAddRequest.java │ │ │ ├── PwgImagesAddSimpleRequest.java │ │ │ ├── PwgImagesCheckFilesRequest.java │ │ │ ├── PwgImagesCheckUploadRequest.java │ │ │ ├── PwgImagesDeleteRequest.java │ │ │ ├── PwgImagesExistRequest.java │ │ │ ├── PwgImagesGetInfoRequest.java │ │ │ ├── PwgImagesRateRequest.java │ │ │ ├── PwgImagesSearchRequest.java │ │ │ ├── PwgImagesSetInfoRequest.java │ │ │ ├── PwgImagesSetPrivacyLevelRequest.java │ │ │ ├── PwgImagesSetRankRequest.java │ │ │ ├── PwgImagesUploadRequest.java │ │ │ ├── PwgPermissionsAddRequest.java │ │ │ ├── PwgPermissionsGetListRequest.java │ │ │ ├── PwgPermissionsRemoveRequest.java │ │ │ ├── PwgPluginsGetListRequest.java │ │ │ ├── PwgPluginsPerformActionRequest.java │ │ │ ├── PwgRatesDeleteRequest.java │ │ │ ├── PwgSessionGetStatusRequest.java │ │ │ ├── PwgSessionLoginRequest.java │ │ │ ├── PwgSessionLogoutRequest.java │ │ │ ├── PwgTagsAddRequest.java │ │ │ ├── PwgTagsGetAdminListRequest.java │ │ │ ├── PwgTagsGetImagesRequest.java │ │ │ ├── PwgTagsGetListRequest.java │ │ │ ├── PwgThemesPerformActionRequest.java │ │ │ ├── PwgUsersAddRequest.java │ │ │ ├── PwgUsersDeleteRequest.java │ │ │ ├── PwgUsersGetListRequest.java │ │ │ ├── PwgUsersSetInfoRequest.java │ │ │ ├── ReflectionGetMethodDetailsRequest.java │ │ │ └── ReflectionGetMethodListRequest.java │ │ │ └── response │ │ │ ├── PwgCaddieCommonResponse.java │ │ │ ├── PwgCategoriesCommonResponse.java │ │ │ ├── PwgCategoriesDeleteResponse.java │ │ │ ├── PwgCategoriesMoveResponse.java │ │ │ ├── PwgCategoriesSetInfoResponse.java │ │ │ ├── PwgCategoriesSetRepresentativeResponse.java │ │ │ ├── PwgCommonResponse.java │ │ │ ├── PwgExtensionsCommonResponse.java │ │ │ ├── PwgExtensionsIgnoreUpdateResponse.java │ │ │ ├── PwgExtensionsUpdateResponse.java │ │ │ ├── PwgGroupsAddResponse.java │ │ │ ├── PwgGroupsAddUserResponse.java │ │ │ ├── PwgGroupsDeleteUserResponse.java │ │ │ ├── PwgGroupsGetListResponse.java │ │ │ ├── PwgGroupsSetInfoResponse.java │ │ │ ├── PwgImagesAddChunkResponse.java │ │ │ ├── PwgImagesAddCommentResponse.java │ │ │ ├── PwgImagesAddFileResponse.java │ │ │ ├── PwgImagesAddResponse.java │ │ │ ├── PwgImagesAddSimpleResponse.java │ │ │ ├── PwgImagesCheckFilesResponse.java │ │ │ ├── PwgImagesCheckUploadResponse.java │ │ │ ├── PwgImagesDeleteResponse.java │ │ │ ├── PwgImagesExistResponse.java │ │ │ ├── PwgImagesGetInfoResponse.java │ │ │ ├── PwgImagesRateResponse.java │ │ │ ├── PwgImagesSearchResponse.java │ │ │ ├── PwgImagesSetInfoResponse.java │ │ │ ├── PwgImagesSetPrivacyLevelResponse.java │ │ │ ├── PwgImagesSetRankResponse.java │ │ │ ├── PwgImagesUploadResponse.java │ │ │ ├── PwgPermissionsAddResponse.java │ │ │ ├── PwgPermissionsGetListResponse.java │ │ │ ├── PwgPermissionsRemoveResponse.java │ │ │ ├── PwgPluginsCommonResponse.java │ │ │ ├── PwgRatesCommonResponse.java │ │ │ ├── PwgSessionCommonResponse.java │ │ │ ├── PwgSessionLoginResponse.java │ │ │ ├── PwgSessionLogoutResponse.java │ │ │ ├── PwgTagsGetAdminListResponse.java │ │ │ ├── PwgTagsGetListResponse.java │ │ │ ├── PwgThemesCommonResponse.java │ │ │ ├── PwgThemesPerformActionResponse.java │ │ │ ├── PwgUsersAddResponse.java │ │ │ ├── PwgUsersGetListResponse.java │ │ │ ├── PwgUsersSetInfoResponse.java │ │ │ └── ReflectionCommonResponse.java │ └── resources │ │ └── org │ │ └── piwigo │ │ └── remotesync │ │ └── api │ │ └── reflection │ │ ├── pwg.caddie.add.xml │ │ ├── pwg.categories.add.xml │ │ ├── pwg.categories.delete.xml │ │ ├── pwg.categories.getAdminList.xml │ │ ├── pwg.categories.getImages.xml │ │ ├── pwg.categories.getList.xml │ │ ├── pwg.categories.move.xml │ │ ├── pwg.categories.setInfo.xml │ │ ├── pwg.categories.setRepresentative.xml │ │ ├── pwg.extensions.checkUpdates.xml │ │ ├── pwg.extensions.ignoreUpdate.xml │ │ ├── pwg.extensions.update.xml │ │ ├── pwg.getInfos.xml │ │ ├── pwg.getMissingDerivatives.xml │ │ ├── pwg.getVersion.xml │ │ ├── pwg.groups.add.xml │ │ ├── pwg.groups.addUser.xml │ │ ├── pwg.groups.delete.xml │ │ ├── pwg.groups.deleteUser.xml │ │ ├── pwg.groups.getList.xml │ │ ├── pwg.groups.setInfo.xml │ │ ├── pwg.images.add.xml │ │ ├── pwg.images.addChunk.xml │ │ ├── pwg.images.addComment.xml │ │ ├── pwg.images.addFile.xml │ │ ├── pwg.images.addSimple.xml │ │ ├── pwg.images.checkFiles.xml │ │ ├── pwg.images.checkUpload.xml │ │ ├── pwg.images.delete.xml │ │ ├── pwg.images.exist.xml │ │ ├── pwg.images.getInfo.xml │ │ ├── pwg.images.rate.xml │ │ ├── pwg.images.search.xml │ │ ├── pwg.images.setInfo.xml │ │ ├── pwg.images.setPrivacyLevel.xml │ │ ├── pwg.images.setRank.xml │ │ ├── pwg.images.upload.xml │ │ ├── pwg.permissions.add.xml │ │ ├── pwg.permissions.getList.xml │ │ ├── pwg.permissions.remove.xml │ │ ├── pwg.plugins.getList.xml │ │ ├── pwg.plugins.performAction.xml │ │ ├── pwg.rates.delete.xml │ │ ├── pwg.session.getStatus.xml │ │ ├── pwg.session.login.xml │ │ ├── pwg.session.logout.xml │ │ ├── pwg.tags.add.xml │ │ ├── pwg.tags.getAdminList.xml │ │ ├── pwg.tags.getImages.xml │ │ ├── pwg.tags.getList.xml │ │ ├── pwg.themes.performAction.xml │ │ ├── pwg.users.add.xml │ │ ├── pwg.users.delete.xml │ │ ├── pwg.users.getList.xml │ │ ├── pwg.users.setInfo.xml │ │ ├── reflection.getMethodDetails.xml │ │ └── reflection.getMethodList.xml │ ├── main │ ├── java │ │ └── org │ │ │ └── piwigo │ │ │ └── remotesync │ │ │ ├── api │ │ │ ├── API.java │ │ │ ├── AbstractMain.java │ │ │ ├── Constants.java │ │ │ ├── IClient.java │ │ │ ├── IClientConfiguration.java │ │ │ ├── ISyncConfiguration.java │ │ │ ├── Job.java │ │ │ ├── Main.java │ │ │ ├── Tasks.java │ │ │ ├── cache │ │ │ │ ├── AbstractCacheElement.java │ │ │ │ ├── AlbumCacheElement.java │ │ │ │ ├── ILegacyCacheElement.java │ │ │ │ ├── ImageCacheElement.java │ │ │ │ └── LegacyCache.java │ │ │ ├── client │ │ │ │ ├── AbstractClient.java │ │ │ │ ├── AuthenticatedWSClient.java │ │ │ │ ├── DryRunClient.java │ │ │ │ ├── SessionTask.java │ │ │ │ ├── TrustSSLCertificatesStrategy.java │ │ │ │ └── WSClient.java │ │ │ ├── conf │ │ │ │ ├── ConfigurationUtil.java │ │ │ │ ├── SyncConfiguration.java │ │ │ │ ├── SyncConfigurationValidator.java │ │ │ │ └── UserConfiguration.java │ │ │ ├── exception │ │ │ │ ├── ClientException.java │ │ │ │ ├── ClientRedirectException.java │ │ │ │ ├── ClientSSLException.java │ │ │ │ ├── ClientServerException.java │ │ │ │ ├── IORuntimeException.java │ │ │ │ ├── ServerException.java │ │ │ │ └── XMLRuntimeException.java │ │ │ ├── model │ │ │ │ ├── AbstractCategory.java │ │ │ │ ├── AdminCategory.java │ │ │ │ ├── Category.java │ │ │ │ ├── Derivative.java │ │ │ │ ├── Derivatives.java │ │ │ │ ├── Group.java │ │ │ │ ├── Image.java │ │ │ │ ├── Paging.java │ │ │ │ ├── Permission.java │ │ │ │ ├── Plugin.java │ │ │ │ ├── Tag.java │ │ │ │ ├── UploadCategory.java │ │ │ │ └── User.java │ │ │ ├── reflection │ │ │ │ ├── MethodReflection.java │ │ │ │ ├── ReflectionCustomization.java │ │ │ │ └── ReflectiveRequest.java │ │ │ ├── request │ │ │ │ ├── AbstractRequest.java │ │ │ │ ├── ComposedRequest.java │ │ │ │ ├── ComposedRequestIterator.java │ │ │ │ ├── IChunkable.java │ │ │ │ ├── PwgGetMissingDerivativesRequest.java │ │ │ │ ├── PwgImagesAddAllChunksRequest.java │ │ │ │ ├── PwgImagesAddFileWithChunkRequest.java │ │ │ │ └── PwgImagesAddWithChunkRequest.java │ │ │ ├── response │ │ │ │ ├── BasicResponse.java │ │ │ │ ├── ComposedResponse.java │ │ │ │ ├── PwgCaddieAddResponse.java │ │ │ │ ├── PwgCategoriesAddResponse.java │ │ │ │ ├── PwgCategoriesGetAdminListResponse.java │ │ │ │ ├── PwgCategoriesGetImagesResponse.java │ │ │ │ ├── PwgCategoriesGetListResponse.java │ │ │ │ ├── PwgExtensionsCheckUpdatesResponse.java │ │ │ │ ├── PwgGetInfosResponse.java │ │ │ │ ├── PwgGetMissingDerivativesResponse.java │ │ │ │ ├── PwgGetVersionResponse.java │ │ │ │ ├── PwgGroupsCommonResponse.java │ │ │ │ ├── PwgGroupsDeleteResponse.java │ │ │ │ ├── PwgImagesCommonResponse.java │ │ │ │ ├── PwgPermissionsCommonResponse.java │ │ │ │ ├── PwgPluginsGetListResponse.java │ │ │ │ ├── PwgPluginsPerformActionResponse.java │ │ │ │ ├── PwgRatesDeleteResponse.java │ │ │ │ ├── PwgSessionGetStatusResponse.java │ │ │ │ ├── PwgTagsAddResponse.java │ │ │ │ ├── PwgTagsCommonResponse.java │ │ │ │ ├── PwgTagsGetImagesResponse.java │ │ │ │ ├── PwgUsersCommonResponse.java │ │ │ │ ├── PwgUsersDeleteResponse.java │ │ │ │ ├── ReflectionGetMethodDetailsResponse.java │ │ │ │ ├── ReflectionGetMethodListResponse.java │ │ │ │ └── ServerResponse.java │ │ │ ├── sync │ │ │ │ ├── ConnectedWalker.java │ │ │ │ ├── DummyRunWalker.java │ │ │ │ ├── LoginJob.java │ │ │ │ ├── ProgressLinker.java │ │ │ │ ├── SyncDirectoryWalker.java │ │ │ │ └── SyncJob.java │ │ │ ├── type │ │ │ │ ├── MaxValueValidator.java │ │ │ │ ├── NotNullValueValidator.java │ │ │ │ ├── PositiveValueValidator.java │ │ │ │ ├── Type.java │ │ │ │ ├── TypeSwitch.java │ │ │ │ ├── TypeValueValidator.java │ │ │ │ └── ValueValidator.java │ │ │ ├── util │ │ │ │ ├── FileUtil.java │ │ │ │ └── StringUtil.java │ │ │ └── xml │ │ │ │ ├── BooleanConverter.java │ │ │ │ ├── DateTransform.java │ │ │ │ ├── FakePasswordConverter.java │ │ │ │ ├── PersisterFactory.java │ │ │ │ └── TypeConverter.java │ │ │ ├── generator │ │ │ ├── Generated.java │ │ │ └── WSJavaAPIWriter.java │ │ │ └── legacy │ │ │ ├── PwgSessionGetStatusRequestLegacy.java │ │ │ ├── PwgSessionGetStatusResponseLegacy.java │ │ │ └── VersionParser.java │ └── resources │ │ └── org │ │ └── piwigo │ │ └── remotesync │ │ └── generator │ │ ├── apiTemplate.jmte │ │ ├── reflectionTemplate.jmte │ │ ├── requestTemplate.jmte │ │ ├── responseCommonTemplate.jmte │ │ └── responseTemplate.jmte │ └── test │ ├── java │ └── org │ │ └── piwigo │ │ └── remotesync │ │ └── api │ │ └── test │ │ ├── APITest.java │ │ ├── AbstractTestCase.java │ │ ├── FileUtilTest.java │ │ ├── ImagesTest.java │ │ ├── RemotesyncAPIAllTests.java │ │ ├── RequestsTest.java │ │ └── SyncTest.java │ └── resources │ └── org │ └── piwigo │ └── remotesync │ └── api │ └── test │ ├── .gitignore │ ├── .piwigo_import_tree.txt │ ├── descript.ion │ ├── image.jpg │ ├── readme.txt │ └── testConfig.example ├── remotesync-ui ├── .classpath ├── .gitignore ├── .project ├── .settings │ ├── PiwigoRemoteSync UI MainUi Swing.launch │ ├── PiwigoRemoteSync UI MainUi TestClient.launch │ ├── PiwigoRemoteSync UI MainUi.launch │ ├── org.eclipse.jdt.core.prefs │ ├── org.eclipse.jdt.ui.prefs │ └── org.eclipse.m2e.core.prefs ├── license.txt ├── pom.xml └── src │ └── main │ ├── java │ └── org │ │ └── piwigo │ │ └── remotesync │ │ └── ui │ │ ├── MainReflectionUi.java │ │ ├── MainUi.java │ │ ├── pivot │ │ ├── ReflectionUI.java │ │ ├── RemotesyncUI.java │ │ ├── SyncConfigurationForm.java │ │ ├── SyncForm.java │ │ └── reflection │ │ │ ├── FileInput.java │ │ │ ├── MethodTree.java │ │ │ ├── Reflection.java │ │ │ ├── RequestForm.java │ │ │ └── RequestFormInput.java │ │ ├── swing │ │ ├── FinishUI.java │ │ ├── LoginUI.java │ │ ├── MainUI.java │ │ ├── OptionsUI.java │ │ ├── ProgressUI.java │ │ ├── RemotesyncUI.java │ │ ├── UploadUI.java │ │ └── elements │ │ │ ├── PassField.java │ │ │ ├── TextField.java │ │ │ └── TexturedButton.java │ │ └── utils │ │ └── WindowMover.java │ └── resources │ └── org │ └── piwigo │ └── remotesync │ └── ui │ ├── pivot │ ├── galleryConfigurationForm.bxml │ └── reflection │ │ ├── methodTree.bxml │ │ ├── reflection.bxml │ │ ├── requestForm.bxml │ │ └── requestFormInput.bxml │ └── swing │ ├── backBtn-hover.png │ ├── backBtn.png │ ├── closeBtn-hover.png │ ├── closeBtn.png │ ├── frame.png │ ├── logBtn-hover.png │ ├── logBtn.png │ ├── login.png │ ├── loginBtn-hover.png │ ├── loginBtn.png │ ├── optionsBtn-hover.png │ ├── optionsBtn.png │ ├── pickBtn-hover.png │ ├── pickBtn.png │ ├── sync.png │ ├── upload.png │ ├── uploadBtn-hover.png │ └── uploadBtn.png └── remotesync ├── .gitignore ├── .project ├── .settings └── org.eclipse.m2e.core.prefs ├── README.txt ├── license.txt └── pom.xml /remotesync-api/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /remotesync-api/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /remotesync-api/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | remotesync-api 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.jdt.core.javanature 22 | 23 | 24 | -------------------------------------------------------------------------------- /remotesync-api/.settings/PiwigoRemoteSync API Generator.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /remotesync-api/.settings/PiwigoRemoteSync API Main.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /remotesync-api/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.6 6 | -------------------------------------------------------------------------------- /remotesync-api/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /remotesync-api/README.txt: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------------- 2 | # Copyright (c) 2014 Matthieu Helleboid. 3 | # All rights reserved. This program and the accompanying materials 4 | # are made available under the terms of the GNU Public License v2.0 5 | # which accompanies this distribution, and is available at 6 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | # 8 | # Contributors: 9 | # Matthieu Helleboid - initial API and implementation 10 | #------------------------------------------------------------------------------- 11 | 12 | #backward compatibility for org.piwigo.remotesync.api.model 13 | do not remove fields 14 | modify fields carefully 15 | when adding new field use (required=false) : 16 | * @Element(required=false) 17 | * @Attribute(required=false) 18 | 19 | #to execute tests 20 | copy /remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/testConfig.example 21 | to /remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/testConfig 22 | and modify fields 23 | http://mygallery.piwigo.com 24 | username 25 | Base64password== 26 | execute tests with an empty gallery 27 | 28 | do not add /remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/testConfig 29 | to scm 30 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/PwgCategoriesGetAdminListRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.PwgCategoriesGetAdminListResponse; 15 | 16 | /** 17 | Get albums list as displayed on admin page. 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class PwgCategoriesGetAdminListRequest extends AbstractRequest { 21 | 22 | public PwgCategoriesGetAdminListRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return true; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "pwg.categories.getAdminList"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return PwgCategoriesGetAdminListResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/PwgExtensionsCheckUpdatesRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.PwgExtensionsCheckUpdatesResponse; 15 | 16 | /** 17 | Checks if piwigo or extensions are up to date. 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class PwgExtensionsCheckUpdatesRequest extends AbstractRequest { 21 | 22 | public PwgExtensionsCheckUpdatesRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return true; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "pwg.extensions.checkUpdates"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return PwgExtensionsCheckUpdatesResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/PwgGetInfosRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.PwgGetInfosResponse; 15 | 16 | /** 17 | Returns general informations. 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class PwgGetInfosRequest extends AbstractRequest { 21 | 22 | public PwgGetInfosRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return true; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "pwg.getInfos"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return PwgGetInfosResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/PwgGetVersionRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.PwgGetVersionResponse; 15 | 16 | /** 17 | Returns the Piwigo version. 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class PwgGetVersionRequest extends AbstractRequest { 21 | 22 | public PwgGetVersionRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return false; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "pwg.getVersion"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return PwgGetVersionResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/PwgImagesCheckUploadRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.PwgImagesCheckUploadResponse; 15 | 16 | /** 17 | Checks if Piwigo is ready for upload. 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class PwgImagesCheckUploadRequest extends AbstractRequest { 21 | 22 | public PwgImagesCheckUploadRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return true; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "pwg.images.checkUpload"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return PwgImagesCheckUploadResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/PwgPluginsGetListRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.PwgPluginsGetListResponse; 15 | 16 | /** 17 | Gets the list of plugins with id, name, version, state and description. 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class PwgPluginsGetListRequest extends AbstractRequest { 21 | 22 | public PwgPluginsGetListRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return true; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "pwg.plugins.getList"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return PwgPluginsGetListResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/PwgSessionLogoutRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.PwgSessionLogoutResponse; 15 | 16 | /** 17 | Ends the current session. 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class PwgSessionLogoutRequest extends AbstractRequest { 21 | 22 | public PwgSessionLogoutRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return false; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "pwg.session.logout"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return PwgSessionLogoutResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/PwgTagsGetAdminListRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.PwgTagsGetAdminListResponse; 15 | 16 | /** 17 | Admin only. 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class PwgTagsGetAdminListRequest extends AbstractRequest { 21 | 22 | public PwgTagsGetAdminListRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return true; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "pwg.tags.getAdminList"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return PwgTagsGetAdminListResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/request/ReflectionGetMethodListRequest.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | import org.piwigo.remotesync.api.response.ReflectionGetMethodListResponse; 15 | 16 | /** 17 | 18 | **/ 19 | @org.piwigo.remotesync.generator.Generated 20 | public class ReflectionGetMethodListRequest extends AbstractRequest { 21 | 22 | public ReflectionGetMethodListRequest() { 23 | } 24 | 25 | public boolean isNeedPwgToken() { 26 | return false; 27 | } 28 | 29 | public boolean isAdminOnly() { 30 | return false; 31 | }; 32 | 33 | public boolean isPostOnly() { 34 | return false; 35 | }; 36 | 37 | public String getWSMethodName() { 38 | return "reflection.getMethodList"; 39 | } 40 | 41 | public Class getReturnType() { 42 | return ReflectionGetMethodListResponse.class; 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgCaddieCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class PwgCaddieCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgCategoriesCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class PwgCategoriesCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgCategoriesDeleteResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgCategoriesDeleteResponse extends PwgCategoriesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgCategoriesMoveResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgCategoriesMoveResponse extends PwgCategoriesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgCategoriesSetInfoResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgCategoriesSetInfoResponse extends PwgCategoriesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgCategoriesSetRepresentativeResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgCategoriesSetRepresentativeResponse extends PwgCategoriesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class PwgCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgExtensionsCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class PwgExtensionsCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgExtensionsIgnoreUpdateResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgExtensionsIgnoreUpdateResponse extends PwgExtensionsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgExtensionsUpdateResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgExtensionsUpdateResponse extends PwgExtensionsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgGroupsAddResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgGroupsAddResponse extends PwgGroupsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgGroupsAddUserResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgGroupsAddUserResponse extends PwgGroupsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgGroupsDeleteUserResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgGroupsDeleteUserResponse extends PwgGroupsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgGroupsGetListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgGroupsGetListResponse extends PwgGroupsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgGroupsSetInfoResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgGroupsSetInfoResponse extends PwgGroupsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesAddChunkResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesAddChunkResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesAddCommentResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesAddCommentResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesAddFileResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesAddFileResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesAddResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesAddResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesAddSimpleResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesAddSimpleResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesCheckFilesResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesCheckFilesResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesCheckUploadResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesCheckUploadResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesDeleteResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesDeleteResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesExistResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesExistResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesGetInfoResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesGetInfoResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesRateResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesRateResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesSearchResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesSearchResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesSetInfoResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesSetInfoResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesSetPrivacyLevelResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesSetPrivacyLevelResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesSetRankResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgImagesSetRankResponse extends PwgImagesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgImagesUploadResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.model.UploadCategory; 14 | import org.simpleframework.xml.Element; 15 | 16 | @org.piwigo.remotesync.generator.Generated 17 | public class PwgImagesUploadResponse extends BasicResponse { 18 | 19 | @Element(required = false) 20 | public Integer image_id; 21 | 22 | @Element(required = false) 23 | public String src; 24 | 25 | @Element(required = false) 26 | public String square_src; 27 | 28 | @Element(required = false) 29 | public String name; 30 | 31 | @Element(required = false) 32 | public UploadCategory category; 33 | } 34 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgPermissionsAddResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgPermissionsAddResponse extends PwgPermissionsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgPermissionsGetListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgPermissionsGetListResponse extends PwgPermissionsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgPermissionsRemoveResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgPermissionsRemoveResponse extends PwgPermissionsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgPluginsCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class PwgPluginsCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgRatesCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class PwgRatesCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgSessionCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class PwgSessionCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgSessionLoginResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgSessionLoginResponse extends PwgSessionCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgSessionLogoutResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgSessionLogoutResponse extends PwgSessionCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgTagsGetAdminListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgTagsGetAdminListResponse extends PwgTagsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgTagsGetListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgTagsGetListResponse extends PwgTagsCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgThemesCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class PwgThemesCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgThemesPerformActionResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgThemesPerformActionResponse extends PwgThemesCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgUsersAddResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgUsersAddResponse extends PwgUsersCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgUsersGetListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgUsersGetListResponse extends PwgUsersCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/PwgUsersSetInfoResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | @org.piwigo.remotesync.generator.Generated 14 | public class PwgUsersSetInfoResponse extends PwgUsersCommonResponse { 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/java/org/piwigo/remotesync/api/response/ReflectionCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | @org.piwigo.remotesync.generator.Generated 16 | public abstract class ReflectionCommonResponse extends BasicResponse { 17 | } 18 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.caddie.add.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.caddie.add 3 | Adds elements to the caddie. Returns the number of elements added. 4 | 5 | 6 | image_id 7 | 0 8 | 1 9 | int positive notnull 10 | 11 | 12 | 13 | 1 14 | 15 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.categories.delete.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.categories.delete 3 | Deletes album(s). 4 | <br><b>photo_deletion_mode</b> can be "no_delete" (may create orphan photos), "delete_orphans" 5 | (default mode, only deletes photos linked to no other album) or "force_delete" (delete all photos, even those linked to other albums) 6 | 7 | 8 | category_id 9 | 0 10 | 1 11 | mixed 12 | 13 | 14 | photo_deletion_mode 15 | 1 16 | 0 17 | mixed 18 | delete_orphans 19 | 20 | 21 | pwg_token 22 | 0 23 | 0 24 | mixed 25 | 26 | 27 | 28 | 1 29 | 1 30 | 31 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.categories.getAdminList.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.categories.getAdminList 3 | Get albums list as displayed on admin page. 4 | 5 | 6 | 1 7 | 8 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.categories.getList.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.categories.getList 3 | Returns a list of categories. 4 | 5 | 6 | cat_id 7 | 1 8 | 0 9 | int positive 10 | Parent category. "0" or empty for root. 11 | 12 | 13 | recursive 14 | 1 15 | 0 16 | bool 17 | 0 18 | 19 | 20 | public 21 | 1 22 | 0 23 | bool 24 | 0 25 | 26 | 27 | tree_output 28 | 1 29 | 0 30 | bool 31 | 0 32 | 33 | 34 | fullname 35 | 1 36 | 0 37 | bool 38 | 0 39 | 40 | 41 | 42 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.categories.move.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.categories.move 3 | Move album(s). 4 | <br>Set parent as 0 to move to gallery root. Only virtual categories can be moved. 5 | 6 | 7 | category_id 8 | 0 9 | 1 10 | mixed 11 | 12 | 13 | parent 14 | 0 15 | 0 16 | int positive 17 | 18 | 19 | pwg_token 20 | 0 21 | 0 22 | mixed 23 | 24 | 25 | 26 | 1 27 | 1 28 | 29 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.categories.setInfo.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.categories.setInfo 3 | Changes properties of an album. 4 | 5 | 6 | category_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | name 13 | 1 14 | 0 15 | mixed 16 | 17 | 18 | comment 19 | 1 20 | 0 21 | mixed 22 | 23 | 24 | 25 | 1 26 | 1 27 | 28 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.categories.setRepresentative.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.categories.setRepresentative 3 | Sets the representative photo for an album. The photo doesn't have to belong to the album. 4 | 5 | 6 | category_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | image_id 13 | 0 14 | 0 15 | int positive notnull 16 | 17 | 18 | 19 | 1 20 | 1 21 | 22 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.extensions.checkUpdates.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.extensions.checkUpdates 3 | Checks if piwigo or extensions are up to date. 4 | 5 | 6 | 1 7 | 8 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.extensions.ignoreUpdate.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.extensions.ignoreUpdate 3 | <b>Webmaster only.</b> Ignores an extension if it needs update. 4 | 5 | 6 | type 7 | 1 8 | 0 9 | mixed 10 | plugins, languages, themes 11 | 12 | 13 | id 14 | 1 15 | 0 16 | mixed 17 | 18 | 19 | reset 20 | 1 21 | 0 22 | bool 23 | If true, all ignored extensions will be reinitilized. 24 | 0 25 | 26 | 27 | pwg_token 28 | 0 29 | 0 30 | mixed 31 | 32 | 33 | 34 | 1 35 | 36 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.extensions.update.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.extensions.update 3 | <b>Webmaster only.</b> 4 | 5 | 6 | type 7 | 0 8 | 0 9 | mixed 10 | plugins, languages, themes 11 | 12 | 13 | id 14 | 0 15 | 0 16 | mixed 17 | 18 | 19 | revision 20 | 0 21 | 0 22 | mixed 23 | 24 | 25 | pwg_token 26 | 0 27 | 0 28 | mixed 29 | 30 | 31 | 32 | 1 33 | 34 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.getInfos.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.getInfos 3 | Returns general informations. 4 | 5 | 6 | 1 7 | 8 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.getVersion.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.getVersion 3 | Returns the Piwigo version. 4 | 5 | 6 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.groups.add.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.groups.add 3 | Creates a group and returns the new group record. 4 | 5 | 6 | name 7 | 0 8 | 0 9 | mixed 10 | 11 | 12 | is_default 13 | 1 14 | 0 15 | bool 16 | 0 17 | 18 | 19 | 20 | 1 21 | 1 22 | 23 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.groups.addUser.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.groups.addUser 3 | Adds one or more users to a group. 4 | 5 | 6 | group_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | user_id 13 | 0 14 | 1 15 | int positive notnull 16 | 17 | 18 | pwg_token 19 | 0 20 | 0 21 | mixed 22 | 23 | 24 | 25 | 1 26 | 1 27 | 28 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.groups.delete.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.groups.delete 3 | Deletes a or more groups. Users and photos are not deleted. 4 | 5 | 6 | group_id 7 | 0 8 | 1 9 | int positive notnull 10 | 11 | 12 | pwg_token 13 | 0 14 | 0 15 | mixed 16 | 17 | 18 | 19 | 1 20 | 1 21 | 22 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.groups.deleteUser.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.groups.deleteUser 3 | Removes one or more users from a group. 4 | 5 | 6 | group_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | user_id 13 | 0 14 | 1 15 | int positive notnull 16 | 17 | 18 | pwg_token 19 | 0 20 | 0 21 | mixed 22 | 23 | 24 | 25 | 1 26 | 1 27 | 28 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.groups.setInfo.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.groups.setInfo 3 | Updates a group. Leave a field blank to keep the current value. 4 | 5 | 6 | group_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | name 13 | 1 14 | 0 15 | mixed 16 | 17 | 18 | is_default 19 | 1 20 | 0 21 | bool 22 | 23 | 24 | pwg_token 25 | 0 26 | 0 27 | mixed 28 | 29 | 30 | 31 | 1 32 | 1 33 | 34 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.addChunk.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.addChunk 3 | Add a chunk of a file. 4 | 5 | 6 | data 7 | 0 8 | 0 9 | mixed 10 | 11 | 12 | original_sum 13 | 0 14 | 0 15 | mixed 16 | 17 | 18 | type 19 | 1 20 | 0 21 | mixed 22 | Must be "file", for backward compatiblity "high" and "thumb" are allowed. 23 | file 24 | 25 | 26 | position 27 | 0 28 | 0 29 | mixed 30 | 31 | 32 | 33 | 1 34 | 1 35 | 36 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.addComment.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.addComment 3 | Adds a comment to an image. 4 | 5 | 6 | image_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | author 13 | 1 14 | 0 15 | mixed 16 | guest 17 | 18 | 19 | content 20 | 0 21 | 0 22 | mixed 23 | 24 | 25 | key 26 | 0 27 | 0 28 | mixed 29 | 30 | 31 | 32 | 1 33 | 34 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.addFile.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.addFile 3 | Add or update a file for an existing photo. 4 | <br>pwg.images.addChunk must have been called before (maybe several times). 5 | 6 | 7 | image_id 8 | 0 9 | 0 10 | int positive notnull 11 | 12 | 13 | type 14 | 1 15 | 0 16 | mixed 17 | Must be "file", for backward compatiblity "high" and "thumb" are allowed. 18 | file 19 | 20 | 21 | sum 22 | 0 23 | 0 24 | mixed 25 | 26 | 27 | 28 | 1 29 | 30 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.checkFiles.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.checkFiles 3 | Checks if you have updated version of your files for a given photo, the answer can be "missing", "equals" or "differs". 4 | <br>Don't use "thumbnail_sum" and "high_sum", these parameters are here for backward compatibility. 5 | 6 | 7 | image_id 8 | 0 9 | 0 10 | int positive notnull 11 | 12 | 13 | file_sum 14 | 1 15 | 0 16 | mixed 17 | 18 | 19 | thumbnail_sum 20 | 1 21 | 0 22 | mixed 23 | 24 | 25 | high_sum 26 | 1 27 | 0 28 | mixed 29 | 30 | 31 | 32 | 1 33 | 34 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.checkUpload.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.checkUpload 3 | Checks if Piwigo is ready for upload. 4 | 5 | 6 | 1 7 | 8 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.delete.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.delete 3 | Deletes image(s). 4 | 5 | 6 | image_id 7 | 0 8 | 1 9 | mixed 10 | 11 | 12 | pwg_token 13 | 0 14 | 0 15 | mixed 16 | 17 | 18 | 19 | 1 20 | 1 21 | 22 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.exist.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.exist 3 | Checks existence of images. 4 | <br>Give <b>md5sum_list</b> if $conf[uniqueness_mode]==md5sum. Give <b>filename_list</b> if $conf[uniqueness_mode]==filename. 5 | 6 | 7 | md5sum_list 8 | 1 9 | 0 10 | mixed 11 | 12 | 13 | filename_list 14 | 1 15 | 0 16 | mixed 17 | 18 | 19 | 20 | 1 21 | 22 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.getInfo.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.getInfo 3 | Returns information about an image. 4 | 5 | 6 | image_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | comments_page 13 | 1 14 | 0 15 | int positive 16 | 0 17 | 18 | 19 | comments_per_page 20 | 1 21 | 0 22 | int positive 23 | 10 24 | 20 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.rate.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.rate 3 | Rates an image. 4 | 5 | 6 | image_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | rate 13 | 0 14 | 0 15 | float 16 | 17 | 18 | 19 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.setPrivacyLevel.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.setPrivacyLevel 3 | Sets the privacy levels for the images. 4 | 5 | 6 | image_id 7 | 0 8 | 1 9 | int positive notnull 10 | 11 | 12 | level 13 | 0 14 | 0 15 | int positive 16 | 8 17 | 18 | 19 | 20 | 1 21 | 1 22 | 23 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.setRank.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.setRank 3 | Sets the rank of a photo for a given album. 4 | 5 | 6 | image_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | category_id 13 | 0 14 | 0 15 | int positive notnull 16 | 17 | 18 | rank 19 | 0 20 | 0 21 | int positive notnull 22 | 23 | 24 | 25 | 1 26 | 1 27 | 28 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.images.upload.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.images.upload 3 | Add an image. 4 | <br>Use the <b>$_FILES[image]</b> field for uploading file. 5 | <br>Set the form encoding to "form-data". 6 | <br>You can update an existing photo if you define an existing image_id. 7 | 8 | 9 | category 10 | 1 11 | 1 12 | int positive notnull 13 | 14 | 15 | name 16 | 1 17 | 0 18 | mixed 19 | 20 | 21 | level 22 | 1 23 | 0 24 | int positive 25 | 0 26 | 8 27 | 28 | 29 | pwg_token 30 | 0 31 | 0 32 | mixed 33 | 34 | 35 | 36 | 1 37 | 1 38 | 39 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.permissions.add.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.permissions.add 3 | Adds permissions to an album. 4 | 5 | 6 | cat_id 7 | 0 8 | 1 9 | int positive notnull 10 | 11 | 12 | group_id 13 | 1 14 | 1 15 | int positive notnull 16 | 17 | 18 | user_id 19 | 1 20 | 1 21 | int positive notnull 22 | 23 | 24 | recursive 25 | 1 26 | 0 27 | bool 28 | 0 29 | 30 | 31 | pwg_token 32 | 0 33 | 0 34 | mixed 35 | 36 | 37 | 38 | 1 39 | 1 40 | 41 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.permissions.getList.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.permissions.getList 3 | Returns permissions: user ids and group ids having access to each album ; this list can be filtered. 4 | <br>Provide only one parameter! 5 | 6 | 7 | cat_id 8 | 1 9 | 1 10 | int positive notnull 11 | 12 | 13 | group_id 14 | 1 15 | 1 16 | int positive notnull 17 | 18 | 19 | user_id 20 | 1 21 | 1 22 | int positive notnull 23 | 24 | 25 | 26 | 1 27 | 28 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.permissions.remove.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.permissions.remove 3 | Removes permissions from an album. 4 | 5 | 6 | cat_id 7 | 0 8 | 1 9 | int positive notnull 10 | 11 | 12 | group_id 13 | 1 14 | 1 15 | int positive notnull 16 | 17 | 18 | user_id 19 | 1 20 | 1 21 | int positive notnull 22 | 23 | 24 | pwg_token 25 | 0 26 | 0 27 | mixed 28 | 29 | 30 | 31 | 1 32 | 1 33 | 34 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.plugins.getList.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.plugins.getList 3 | Gets the list of plugins with id, name, version, state and description. 4 | 5 | 6 | 1 7 | 8 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.plugins.performAction.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.plugins.performAction 3 | 4 | 5 | action 6 | 0 7 | 0 8 | mixed 9 | install, activate, deactivate, uninstall, delete 10 | 11 | 12 | plugin 13 | 0 14 | 0 15 | mixed 16 | 17 | 18 | pwg_token 19 | 0 20 | 0 21 | mixed 22 | 23 | 24 | 25 | 1 26 | 27 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.rates.delete.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.rates.delete 3 | Deletes all rates for a user. 4 | 5 | 6 | user_id 7 | 0 8 | 0 9 | int positive notnull 10 | 11 | 12 | anonymous_id 13 | 1 14 | 0 15 | mixed 16 | 17 | 18 | image_id 19 | 1 20 | 0 21 | int positive notnull 22 | 23 | 24 | 25 | 1 26 | 1 27 | 28 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.session.getStatus.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.session.getStatus 3 | Gets information about the current session. Also provides a token useable with admin methods. 4 | 5 | 6 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.session.login.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.session.login 3 | Tries to login the user. 4 | 5 | 6 | username 7 | 0 8 | 0 9 | mixed 10 | 11 | 12 | password 13 | 0 14 | 0 15 | mixed 16 | 17 | 18 | 19 | 1 20 | 21 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.session.logout.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.session.logout 3 | Ends the current session. 4 | 5 | 6 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.tags.add.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.tags.add 3 | Adds a new tag. 4 | 5 | 6 | name 7 | 0 8 | 0 9 | mixed 10 | 11 | 12 | 13 | 1 14 | 15 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.tags.getAdminList.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.tags.getAdminList 3 | <b>Admin only.</b> 4 | 5 | 6 | 1 7 | 8 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.tags.getList.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.tags.getList 3 | Retrieves a list of available tags. 4 | 5 | 6 | sort_by_counter 7 | 1 8 | 0 9 | bool 10 | 0 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.themes.performAction.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.themes.performAction 3 | 4 | 5 | action 6 | 0 7 | 0 8 | mixed 9 | activate, deactivate, delete, set_default 10 | 11 | 12 | theme 13 | 0 14 | 0 15 | mixed 16 | 17 | 18 | pwg_token 19 | 0 20 | 0 21 | mixed 22 | 23 | 24 | 25 | 1 26 | 27 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.users.add.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.users.add 3 | Registers a new user. 4 | 5 | 6 | username 7 | 0 8 | 0 9 | mixed 10 | 11 | 12 | password 13 | 1 14 | 0 15 | mixed 16 | 17 | 18 | password_confirm 19 | 1 20 | 0 21 | mixed 22 | 23 | 24 | email 25 | 1 26 | 0 27 | mixed 28 | 29 | 30 | send_password_by_mail 31 | 1 32 | 0 33 | bool 34 | 0 35 | 36 | 37 | pwg_token 38 | 0 39 | 0 40 | mixed 41 | 42 | 43 | 44 | 1 45 | 1 46 | 47 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/pwg.users.delete.xml: -------------------------------------------------------------------------------- 1 | 2 | pwg.users.delete 3 | Deletes on or more users. Photos owned by this user are not deleted. 4 | 5 | 6 | user_id 7 | 0 8 | 1 9 | int positive notnull 10 | 11 | 12 | pwg_token 13 | 0 14 | 0 15 | mixed 16 | 17 | 18 | 19 | 1 20 | 1 21 | 22 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/reflection.getMethodDetails.xml: -------------------------------------------------------------------------------- 1 | 2 | reflection.getMethodDetails 3 | 4 | 5 | methodName 6 | 0 7 | 0 8 | mixed 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /remotesync-api/src/gen/resources/org/piwigo/remotesync/api/reflection/reflection.getMethodList.xml: -------------------------------------------------------------------------------- 1 | 2 | reflection.getMethodList 3 | 4 | 5 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/IClient.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api; 12 | 13 | import org.piwigo.remotesync.api.exception.ClientServerException; 14 | import org.piwigo.remotesync.api.request.AbstractRequest; 15 | import org.piwigo.remotesync.api.request.ComposedRequest; 16 | import org.piwigo.remotesync.api.response.BasicResponse; 17 | import org.piwigo.remotesync.api.response.ComposedResponse; 18 | 19 | public interface IClient { 20 | public T sendRequest(AbstractRequest request) throws ClientServerException; 21 | 22 | public ComposedResponse sendRequest(ComposedRequest composedRequest) throws ClientServerException; 23 | 24 | public IClient login() throws ClientServerException; 25 | 26 | public IClient logout() throws ClientServerException; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/IClientConfiguration.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api; 12 | 13 | public interface IClientConfiguration { 14 | public String getUrl(); 15 | 16 | public String getUsername(); 17 | public String getPassword(); 18 | 19 | public boolean getUsesProxy(); 20 | public String getProxyUrl(); 21 | public int getProxyPort(); 22 | public String getProxyUsername(); 23 | public String getProxyPassword(); 24 | 25 | public boolean getTrustSSLCertificates(); 26 | 27 | public int getChunkSize(); 28 | } 29 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/ISyncConfiguration.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api; 12 | 13 | public interface ISyncConfiguration extends IClientConfiguration { 14 | public String getDirectory(); 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/Job.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api; 12 | 13 | import org.slf4j.Logger; 14 | import org.slf4j.LoggerFactory; 15 | 16 | public abstract class Job { 17 | 18 | private static final Logger logger = LoggerFactory.getLogger(Job.class); 19 | private static boolean running; 20 | 21 | public synchronized void execute() { 22 | if (running) { 23 | return; 24 | } 25 | running = true; 26 | 27 | try { 28 | doExecute(); 29 | } catch (Exception e) { 30 | logger.error("Error in job " + this, e); 31 | } finally { 32 | running = false; 33 | } 34 | } 35 | 36 | public void executeInThread() { 37 | Thread t = new Thread(new Runnable() { 38 | public void run() { 39 | execute(); 40 | } 41 | }); 42 | t.start(); 43 | } 44 | 45 | protected abstract void doExecute() throws Exception; 46 | 47 | public boolean isRunning() { 48 | return running; 49 | } 50 | 51 | } -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/Main.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api; 12 | 13 | import org.piwigo.remotesync.api.AbstractMain; 14 | import org.slf4j.Logger; 15 | import org.slf4j.LoggerFactory; 16 | 17 | public class Main extends AbstractMain { 18 | static final Logger logger = LoggerFactory.getLogger(Main.class); 19 | 20 | public static void main(String[] args) { 21 | new Main().run(args); 22 | } 23 | 24 | protected void start() { 25 | logger.debug("will start batch Remotesync"); 26 | } 27 | 28 | // // TODO implement dry run 29 | // @Option(name = "-dryrun", usage = "do nothing") 30 | // public boolean dryrun = false; 31 | 32 | } 33 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/Tasks.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api; 12 | 13 | public class Tasks { 14 | //TODO position should be an int? 15 | //TODO uppercats as list 16 | //TODO verify remote version >= 2.6.x ? 17 | 18 | //TODO ask pierrick about pwg.extensions.ignoreUpdates 19 | //TODO ask pierrick about pwg.extensions.update 20 | 21 | //TODO return float/boolean/int instead of types 22 | 23 | //TODO implement debug option from UI 24 | //TODO implement progressmonitor 25 | //TODO implement estimated time 26 | //TODO implement allpaging 27 | //TODO implement request text : connecting to / uploading file 28 | //TODO implement pause/retry/save of composedrequest 29 | 30 | //TODO test upload with community plugin 31 | } 32 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/cache/AbstractCacheElement.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.cache; 12 | 13 | public abstract class AbstractCacheElement implements ILegacyCacheElement { 14 | protected String url; 15 | protected Integer id; 16 | 17 | public AbstractCacheElement() { 18 | } 19 | 20 | public AbstractCacheElement(String url, Integer id) { 21 | this.url = url; 22 | this.id = id; 23 | } 24 | 25 | public Integer getId() { 26 | return id; 27 | } 28 | 29 | public String getUrl() { 30 | return url; 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/cache/AlbumCacheElement.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.cache; 12 | 13 | public class AlbumCacheElement extends AbstractCacheElement { 14 | 15 | public AlbumCacheElement() { 16 | super(); 17 | } 18 | 19 | public AlbumCacheElement(String url, Integer id) { 20 | super(url, id); 21 | } 22 | 23 | @Override 24 | public String writeToString() { 25 | StringBuilder stringBuilder = new StringBuilder(); 26 | stringBuilder.append(url); 27 | stringBuilder.append(" album_id = "); 28 | stringBuilder.append(id); 29 | return stringBuilder.toString(); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/cache/ILegacyCacheElement.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.cache; 12 | 13 | public interface ILegacyCacheElement { 14 | 15 | public String writeToString(); 16 | 17 | } -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/cache/ImageCacheElement.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.cache; 12 | public class ImageCacheElement extends AbstractCacheElement { 13 | 14 | protected String filePathMD5; 15 | 16 | public ImageCacheElement() { 17 | } 18 | 19 | public ImageCacheElement(String url, Integer id, String filePathMD5) { 20 | super(url, id); 21 | this.filePathMD5 = filePathMD5; 22 | } 23 | 24 | public String getFilePathMD5() { 25 | return filePathMD5; 26 | } 27 | 28 | @Override 29 | public String writeToString() { 30 | StringBuilder stringBuilder = new StringBuilder(); 31 | stringBuilder.append(url); 32 | stringBuilder.append(" "); 33 | stringBuilder.append(filePathMD5); 34 | stringBuilder.append(" [id="); 35 | stringBuilder.append(id); 36 | stringBuilder.append("]"); 37 | return stringBuilder.toString(); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/client/SessionTask.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.client; 12 | 13 | import java.util.TimerTask; 14 | 15 | import org.piwigo.remotesync.api.sync.LoginJob; 16 | import org.slf4j.Logger; 17 | import org.slf4j.LoggerFactory; 18 | 19 | public class SessionTask extends TimerTask 20 | { 21 | 22 | private static final Logger logger = LoggerFactory.getLogger(SessionTask.class); 23 | 24 | private LoginJob loginJob = new LoginJob(); 25 | 26 | public void run() { 27 | try { 28 | logger.debug("----------------------------"); 29 | loginJob.doLogout(); 30 | loginJob.execute(); 31 | logger.debug("----------------------------"); 32 | } catch (Exception e) { 33 | logger.error("Error while refreshing session.. !"); 34 | } 35 | } 36 | 37 | } 38 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/client/TrustSSLCertificatesStrategy.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.client; 12 | 13 | import java.security.cert.CertificateException; 14 | import java.security.cert.X509Certificate; 15 | 16 | import org.apache.http.conn.ssl.TrustStrategy; 17 | 18 | public class TrustSSLCertificatesStrategy implements TrustStrategy { 19 | 20 | @Override 21 | public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException { 22 | return true; 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/exception/ClientException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.exception; 12 | 13 | public class ClientException extends ClientServerException { 14 | 15 | private static final long serialVersionUID = -1970930595990438153L; 16 | 17 | public ClientException(String errorMessage) { 18 | super(errorMessage); 19 | } 20 | 21 | public ClientException(String errorMessage, Exception exception) { 22 | super(errorMessage, exception); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/exception/ClientRedirectException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.exception; 12 | 13 | 14 | public class ClientRedirectException extends ClientException { 15 | 16 | private static final long serialVersionUID = -4061416823576651051L; 17 | 18 | private String destination; 19 | 20 | public ClientRedirectException(String message) { 21 | super(message); 22 | } 23 | 24 | public void setDestination(String destination) { 25 | this.destination = destination; 26 | } 27 | 28 | public String getDestination() { 29 | return destination; 30 | } 31 | } -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/exception/ClientSSLException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.exception; 12 | 13 | import javax.net.ssl.SSLException; 14 | 15 | 16 | public class ClientSSLException extends ClientException { 17 | 18 | private static final long serialVersionUID = -2534675861595722310L; 19 | 20 | public ClientSSLException(String message, SSLException exception) { 21 | super(message, exception); 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/exception/ClientServerException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.exception; 12 | 13 | public class ClientServerException extends Exception { 14 | 15 | private static final long serialVersionUID = -1982197686506297340L; 16 | 17 | public ClientServerException(String errorMessage) { 18 | super(errorMessage); 19 | } 20 | 21 | public ClientServerException(String errorMessage, Exception e) { 22 | super(errorMessage, e); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/exception/IORuntimeException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.exception; 12 | 13 | import java.io.IOException; 14 | 15 | public class IORuntimeException extends RuntimeException { 16 | 17 | public IORuntimeException(String message, IOException e) { 18 | super(message, e); 19 | } 20 | 21 | private static final long serialVersionUID = 8842996765838427856L; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/exception/ServerException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.exception; 12 | 13 | public class ServerException extends ClientServerException { 14 | 15 | private static final long serialVersionUID = 2346501268549926855L; 16 | 17 | public ServerException(String errorMessage) { 18 | super(errorMessage); 19 | } 20 | 21 | public ServerException(String errorMessage, Exception exception) { 22 | super(errorMessage, exception); 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/exception/XMLRuntimeException.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.exception; 12 | 13 | public class XMLRuntimeException extends RuntimeException { 14 | 15 | private static final long serialVersionUID = 5908888864015593941L; 16 | 17 | public XMLRuntimeException(String message, Exception e) { 18 | super(message, e); 19 | } 20 | 21 | } 22 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/AdminCategory.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import org.simpleframework.xml.Attribute; 14 | import org.simpleframework.xml.Element; 15 | 16 | public class AdminCategory extends AbstractCategory { 17 | 18 | @Attribute 19 | public String name; 20 | 21 | @Attribute 22 | public String uppercats; 23 | 24 | @Attribute 25 | public String global_rank; 26 | 27 | @Element(required=false) 28 | public String fullname; 29 | } 30 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/Category.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import org.simpleframework.xml.Element; 14 | 15 | public class Category extends AbstractCategory { 16 | 17 | @Element(required = false) 18 | public String global_rank; 19 | 20 | @Element(required = false) 21 | public String name; 22 | 23 | @Element(required = false) 24 | public String uppercats; 25 | } 26 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/Derivative.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import org.simpleframework.xml.Element; 14 | 15 | public class Derivative { 16 | @Element 17 | private String url; 18 | 19 | @Element 20 | private Integer width; 21 | 22 | @Element 23 | private Integer height; 24 | } 25 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/Derivatives.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import org.simpleframework.xml.Element; 14 | 15 | public class Derivatives { 16 | @Element 17 | public Derivative square; 18 | 19 | @Element 20 | public Derivative thumb; 21 | 22 | @Element 23 | public Derivative _2small; 24 | 25 | @Element 26 | public Derivative xsmall; 27 | 28 | @Element 29 | public Derivative small; 30 | 31 | @Element 32 | public Derivative medium; 33 | 34 | @Element 35 | public Derivative large; 36 | 37 | @Element 38 | public Derivative xlarge; 39 | 40 | @Element 41 | public Derivative xxlarge; 42 | } 43 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/Group.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import java.util.Date; 14 | 15 | import org.simpleframework.xml.Element; 16 | 17 | public class Group { 18 | @Element 19 | public Integer id; 20 | 21 | @Element 22 | public String name; 23 | 24 | @Element(name ="is_default") 25 | public Boolean isDefault; 26 | 27 | @Element(name ="nb_users") 28 | public Integer nbUsers; 29 | 30 | @Element(required=false) 31 | public Date lastmodified; 32 | } 33 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/Paging.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import org.simpleframework.xml.Attribute; 14 | 15 | /** 16 | * 17 | */ 18 | public class Paging { 19 | @Attribute 20 | public Integer page; 21 | 22 | @Attribute 23 | public Integer per_page; 24 | 25 | @Attribute 26 | public Integer count; 27 | 28 | @Attribute(required = false, name ="total_count") 29 | public Integer totalCount; 30 | } 31 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/Permission.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import java.util.List; 14 | 15 | import org.simpleframework.xml.Attribute; 16 | import org.simpleframework.xml.ElementList; 17 | import org.simpleframework.xml.Root; 18 | 19 | @Root(name = "category") 20 | public class Permission { 21 | @Attribute(name = "id") 22 | public Integer categoryId; 23 | 24 | @ElementList(name = "users") 25 | public List userIds; 26 | 27 | @ElementList(name = "groups") 28 | public List groupIds; 29 | 30 | @ElementList(name = "users_indirect") 31 | public List userIndirectIds; 32 | } 33 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/Plugin.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import org.simpleframework.xml.Element; 14 | import org.simpleframework.xml.Root; 15 | 16 | @Root(name = "item") 17 | public class Plugin { 18 | @Element 19 | public String id; 20 | 21 | @Element 22 | public String name; 23 | 24 | @Element 25 | public String version; 26 | 27 | @Element 28 | public String state; 29 | 30 | @Element(required = false) 31 | public String description; 32 | } 33 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/Tag.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import java.util.Date; 14 | 15 | import org.simpleframework.xml.Attribute; 16 | import org.simpleframework.xml.Element; 17 | 18 | public class Tag { 19 | @Attribute 20 | public Integer id; 21 | 22 | @Attribute 23 | public String name; 24 | 25 | @Attribute(name = "url_name") 26 | public String urlName; 27 | 28 | @Element(required=false) 29 | public Date lastmodified; 30 | } 31 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/UploadCategory.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import org.simpleframework.xml.Element; 14 | 15 | public class UploadCategory { 16 | 17 | @Element(required = false) 18 | public Integer id; 19 | 20 | @Element(required = false) 21 | public String nb_photos; 22 | 23 | @Element(required = false) 24 | public String label; 25 | } 26 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/model/User.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.model; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.Constants; 16 | import org.simpleframework.xml.Element; 17 | import org.simpleframework.xml.ElementList; 18 | 19 | public class User { 20 | 21 | @Element 22 | public Integer id; 23 | 24 | @Element 25 | public String username; 26 | 27 | @Element(required = false) 28 | public String email; 29 | 30 | @Element 31 | public Constants.UserType status; 32 | 33 | @Element 34 | public Integer level; 35 | 36 | @Element(required = false, name = "nb_image_page") 37 | public Integer nbImagePage; 38 | 39 | @ElementList 40 | public List groups; 41 | 42 | } 43 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/request/ComposedRequestIterator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | import java.util.Iterator; 14 | import java.util.List; 15 | 16 | import org.piwigo.remotesync.api.response.BasicResponse; 17 | 18 | public class ComposedRequestIterator implements Iterator> { 19 | 20 | private List> requests; 21 | 22 | private int index; 23 | 24 | public ComposedRequestIterator(List> requests) { 25 | this.requests = requests; 26 | } 27 | 28 | @Override 29 | public boolean hasNext() { 30 | return index < requests.size(); 31 | } 32 | 33 | @Override 34 | public AbstractRequest next() { 35 | return requests.get(index++); 36 | } 37 | 38 | @Override 39 | public void remove() { 40 | throw new UnsupportedOperationException(); 41 | } 42 | 43 | } 44 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/request/IChunkable.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.request; 12 | 13 | public interface IChunkable { 14 | public void setChunkSize(int chunkSize); 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/BasicResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.apache.commons.lang.builder.ToStringBuilder; 14 | import org.simpleframework.xml.Attribute; 15 | import org.simpleframework.xml.Root; 16 | 17 | @Root(name = "rsp") 18 | public class BasicResponse { 19 | 20 | @Attribute(name = "stat") 21 | public String status; 22 | 23 | protected String xmlContent; 24 | 25 | public String getXmlContent() { 26 | return xmlContent; 27 | } 28 | 29 | public void setXmlContent(String xmlContent) { 30 | this.xmlContent = xmlContent; 31 | } 32 | 33 | @Override 34 | public String toString() { 35 | return ToStringBuilder.reflectionToString(this); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/ComposedResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.ArrayList; 14 | import java.util.List; 15 | 16 | public class ComposedResponse extends BasicResponse { 17 | 18 | protected List responses = new ArrayList(); 19 | protected T response; 20 | 21 | public void addResponse(BasicResponse response) { 22 | responses.add(response); 23 | } 24 | 25 | public List getAllResponses() { 26 | return responses; 27 | } 28 | 29 | @SuppressWarnings("unchecked") 30 | public T getResponse() { 31 | return (T) responses.get(responses.size() - 1); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgCaddieAddResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.util.StringUtil; 14 | import org.simpleframework.xml.Text; 15 | import org.simpleframework.xml.core.Commit; 16 | 17 | public class PwgCaddieAddResponse extends BasicResponse { 18 | @Text 19 | private String result; 20 | 21 | public Integer added; 22 | 23 | @Commit 24 | public void commit() { 25 | added = Integer.parseInt(StringUtil.removeFormatting(result)); 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgCategoriesAddResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.simpleframework.xml.Element; 14 | 15 | 16 | public class PwgCategoriesAddResponse extends BasicResponse { 17 | 18 | @Element 19 | public String info; 20 | 21 | @Element 22 | public Integer id; 23 | } 24 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgCategoriesGetAdminListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.AdminCategory; 16 | import org.simpleframework.xml.ElementList; 17 | 18 | public class PwgCategoriesGetAdminListResponse extends BasicResponse { 19 | 20 | @ElementList 21 | public List categories; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgCategoriesGetImagesResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.Image; 16 | import org.piwigo.remotesync.api.model.Paging; 17 | import org.piwigo.remotesync.api.response.BasicResponse; 18 | import org.simpleframework.xml.Element; 19 | import org.simpleframework.xml.ElementList; 20 | 21 | public class PwgCategoriesGetImagesResponse extends BasicResponse { 22 | 23 | @Element 24 | public Paging paging; 25 | 26 | @ElementList 27 | public List images; 28 | } 29 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgCategoriesGetListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.Category; 16 | import org.simpleframework.xml.ElementList; 17 | 18 | public class PwgCategoriesGetListResponse extends BasicResponse { 19 | 20 | @ElementList 21 | public List categories; 22 | 23 | } 24 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgExtensionsCheckUpdatesResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.xml.BooleanConverter; 14 | import org.simpleframework.xml.Element; 15 | import org.simpleframework.xml.convert.Convert; 16 | 17 | public class PwgExtensionsCheckUpdatesResponse extends BasicResponse { 18 | 19 | @Element 20 | @Convert(BooleanConverter.class) 21 | public Boolean piwigo_need_update; 22 | 23 | @Element 24 | @Convert(BooleanConverter.class) 25 | public Boolean ext_need_update; 26 | } 27 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgGetMissingDerivativesResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.simpleframework.xml.ElementList; 16 | 17 | public class PwgGetMissingDerivativesResponse extends PwgCommonResponse { 18 | 19 | @ElementList(required=false) 20 | public List urls; 21 | } 22 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgGetVersionResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.util.StringUtil; 14 | import org.simpleframework.xml.Text; 15 | import org.simpleframework.xml.core.Commit; 16 | 17 | public class PwgGetVersionResponse extends BasicResponse { 18 | 19 | @Text 20 | public String version; 21 | 22 | @Commit 23 | public void commit() { 24 | version = StringUtil.removeFormatting(version); 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgGroupsCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.Group; 16 | import org.piwigo.remotesync.api.model.Paging; 17 | import org.simpleframework.xml.Element; 18 | import org.simpleframework.xml.ElementList; 19 | import org.simpleframework.xml.core.Commit; 20 | 21 | public abstract class PwgGroupsCommonResponse extends BasicResponse { 22 | @Element 23 | public Paging paging; 24 | 25 | @ElementList 26 | public List groups; 27 | 28 | @Commit 29 | private void commit() { 30 | if (groups.size() == 1) 31 | id = groups.get(0).id; 32 | } 33 | 34 | public Integer id; 35 | } 36 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgGroupsDeleteResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.simpleframework.xml.ElementList; 16 | 17 | public class PwgGroupsDeleteResponse extends BasicResponse { 18 | 19 | @ElementList(entry = "group_deleted", inline = true) 20 | public List deletedGroupNames; 21 | 22 | } 23 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgImagesCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | import org.simpleframework.xml.Element; 15 | 16 | public abstract class PwgImagesCommonResponse extends BasicResponse { 17 | 18 | @Element(required = false) 19 | public Integer image_id; 20 | 21 | @Element(required = false) 22 | public String url; 23 | } 24 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgPermissionsCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.Permission; 16 | import org.piwigo.remotesync.api.response.BasicResponse; 17 | import org.simpleframework.xml.ElementList; 18 | 19 | public abstract class PwgPermissionsCommonResponse extends BasicResponse { 20 | 21 | @ElementList(name = "categories") 22 | public List permissions; 23 | } 24 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgPluginsGetListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.Plugin; 16 | import org.piwigo.remotesync.api.response.PwgPluginsCommonResponse; 17 | import org.simpleframework.xml.ElementList; 18 | 19 | public class PwgPluginsGetListResponse extends PwgPluginsCommonResponse { 20 | @ElementList(inline = true) 21 | public List plugins; 22 | } 23 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgPluginsPerformActionResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.PwgPluginsCommonResponse; 14 | import org.piwigo.remotesync.api.util.StringUtil; 15 | import org.simpleframework.xml.Text; 16 | import org.simpleframework.xml.core.Commit; 17 | 18 | public class PwgPluginsPerformActionResponse extends PwgPluginsCommonResponse { 19 | @Text 20 | private String result; 21 | 22 | public Integer nb; 23 | 24 | @Commit 25 | public void commit() { 26 | nb = Integer.parseInt(StringUtil.removeFormatting(result)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgRatesDeleteResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.PwgRatesCommonResponse; 14 | import org.piwigo.remotesync.api.util.StringUtil; 15 | import org.simpleframework.xml.Text; 16 | import org.simpleframework.xml.core.Commit; 17 | 18 | public class PwgRatesDeleteResponse extends PwgRatesCommonResponse { 19 | @Text 20 | private String result; 21 | 22 | public Integer nb; 23 | 24 | @Commit 25 | public void commit() { 26 | nb = Integer.parseInt(StringUtil.removeFormatting(result)); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgSessionGetStatusResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.legacy.PwgSessionGetStatusResponseLegacy; 16 | import org.simpleframework.xml.ElementList; 17 | 18 | public class PwgSessionGetStatusResponse extends PwgSessionGetStatusResponseLegacy { 19 | 20 | /** 21 | * Casting our list of available_sizes here as it will not be used by the tool 22 | * @since v0.0.14 23 | */ 24 | @ElementList(required=false) 25 | public List available_sizes; 26 | 27 | } 28 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgTagsAddResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.simpleframework.xml.Element; 14 | 15 | public class PwgTagsAddResponse extends BasicResponse { 16 | @Element 17 | public Integer id; 18 | 19 | @Element 20 | public String info; 21 | } 22 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgTagsCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.Tag; 16 | import org.piwigo.remotesync.api.response.BasicResponse; 17 | import org.simpleframework.xml.ElementList; 18 | 19 | public abstract class PwgTagsCommonResponse extends BasicResponse { 20 | @ElementList 21 | public List tags; 22 | } 23 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgTagsGetImagesResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.Image; 16 | import org.piwigo.remotesync.api.model.Paging; 17 | import org.simpleframework.xml.Element; 18 | import org.simpleframework.xml.ElementList; 19 | 20 | public class PwgTagsGetImagesResponse extends BasicResponse { 21 | @Element 22 | public Paging paging; 23 | 24 | @ElementList 25 | public List images; 26 | } 27 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgUsersCommonResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.piwigo.remotesync.api.model.Paging; 16 | import org.piwigo.remotesync.api.model.User; 17 | import org.piwigo.remotesync.api.response.BasicResponse; 18 | import org.simpleframework.xml.Element; 19 | import org.simpleframework.xml.ElementList; 20 | 21 | public abstract class PwgUsersCommonResponse extends BasicResponse { 22 | @Element 23 | public Paging paging; 24 | 25 | @ElementList 26 | public List users; 27 | 28 | } 29 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/PwgUsersDeleteResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.util.StringUtil; 14 | import org.simpleframework.xml.Text; 15 | import org.simpleframework.xml.core.Commit; 16 | 17 | public class PwgUsersDeleteResponse extends BasicResponse { 18 | @Text 19 | private String result; 20 | 21 | public String message; 22 | 23 | @Commit 24 | public void commit() { 25 | message = StringUtil.removeFormatting(result); 26 | }} 27 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/ReflectionGetMethodListResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import java.util.List; 14 | 15 | import org.simpleframework.xml.ElementList; 16 | 17 | public class ReflectionGetMethodListResponse extends BasicResponse { 18 | @ElementList(name = "methods") 19 | public List methodNames; 20 | } 21 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/response/ServerResponse.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.simpleframework.xml.Attribute; 14 | import org.simpleframework.xml.Element; 15 | 16 | public class ServerResponse extends BasicResponse { 17 | 18 | @Element(name = "err", required = false) 19 | public Error error; 20 | 21 | public static class Error { 22 | @Attribute 23 | public Integer code; 24 | 25 | @Attribute(name = "msg") 26 | public String message; 27 | 28 | @Override 29 | public String toString() { 30 | return new StringBuilder(message).append(" (code : ").append(code).append(")").toString(); 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/sync/DummyRunWalker.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.sync; 12 | 13 | import java.io.File; 14 | 15 | import org.piwigo.remotesync.api.conf.SyncConfiguration; 16 | 17 | public class DummyRunWalker extends SyncDirectoryWalker { 18 | 19 | private int album_id; 20 | private int image_id; 21 | 22 | public DummyRunWalker(SyncConfiguration syncConfiguration) { 23 | super(syncConfiguration); 24 | } 25 | 26 | @Override 27 | protected Integer createAlbum(File directory, Integer parentAlbumId) { 28 | return ++album_id; 29 | } 30 | 31 | @Override 32 | protected Integer createImage(File file, Integer albumId) { 33 | return ++image_id; 34 | } 35 | } -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/type/NotNullValueValidator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.type; 12 | 13 | public class NotNullValueValidator extends ValueValidator { 14 | 15 | @Override 16 | public void check(Type type, Object object) { 17 | if (object != null) 18 | return; 19 | super.check(type, object); 20 | } 21 | 22 | @Override 23 | public String caseIntPositiveNotNull(Object object) { 24 | return "cannot be null"; 25 | } 26 | 27 | @Override 28 | public String caseFile(Object object) { 29 | return "cannot be null"; 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/type/PositiveValueValidator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.type; 12 | 13 | public class PositiveValueValidator extends ValueValidator { 14 | @Override 15 | public String caseFloatPositive(Object object) { 16 | return (Float) object > -1 ? OK : "must be positive"; 17 | } 18 | 19 | @Override 20 | public String caseIntPositive(Object object) { 21 | return (Integer) object > -1 ? OK : "must be positive"; 22 | } 23 | 24 | @Override 25 | public String caseIntPositiveNotNull(Object object) { 26 | return (Integer) object > -1 ? OK : "must be positive"; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/type/ValueValidator.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.type; 12 | 13 | public class ValueValidator extends TypeSwitch { 14 | protected static final String OK = "OK"; 15 | 16 | public void check(Type type, Object object) { 17 | String message = doSwitch(type, object); 18 | if (OK.equals(message)) 19 | return; 20 | else 21 | throw new RuntimeException(message); 22 | } 23 | 24 | @Override 25 | public String defaultCase(Object object) { 26 | return OK; 27 | } 28 | 29 | public static void checkValue(Type type, Integer maxValue, Object value) { 30 | if (value == null) { 31 | new NotNullValueValidator().check(type, value); 32 | return; 33 | } 34 | new TypeValueValidator().check(type, value); 35 | new PositiveValueValidator().check(type, value); 36 | if (maxValue != null) 37 | new MaxValueValidator(maxValue).check(type, value); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/xml/BooleanConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.xml; 12 | 13 | import org.apache.commons.lang.NotImplementedException; 14 | import org.simpleframework.xml.convert.Converter; 15 | import org.simpleframework.xml.stream.InputNode; 16 | import org.simpleframework.xml.stream.OutputNode; 17 | 18 | public class BooleanConverter implements Converter { 19 | 20 | @Override 21 | public Boolean read(InputNode node) throws Exception { 22 | String value = node.getValue(); 23 | if ("1".equals(value)) 24 | return true; 25 | else if ("0".equals(value)) 26 | return false; 27 | 28 | throw new NotImplementedException(); 29 | } 30 | 31 | @Override 32 | public void write(OutputNode node, Boolean external) { 33 | node.setValue(external ? "1" : "0"); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/xml/DateTransform.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.xml; 12 | 13 | import java.util.Date; 14 | 15 | import org.apache.commons.lang.NotImplementedException; 16 | import org.piwigo.remotesync.api.util.StringUtil; 17 | import org.simpleframework.xml.transform.Transform; 18 | 19 | public class DateTransform implements Transform { 20 | 21 | @Override 22 | public Date read(String value) throws Exception { 23 | return StringUtil.parseDate(value); 24 | } 25 | 26 | @Override 27 | public String write(Date value) throws Exception { 28 | throw new NotImplementedException(); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/xml/FakePasswordConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.xml; 12 | 13 | import org.piwigo.remotesync.api.util.StringUtil; 14 | import org.simpleframework.xml.convert.Converter; 15 | import org.simpleframework.xml.stream.InputNode; 16 | import org.simpleframework.xml.stream.OutputNode; 17 | 18 | public class FakePasswordConverter implements Converter { 19 | 20 | @Override 21 | public String read(InputNode node) throws Exception { 22 | return StringUtil.fakeDecryptPassword(node.getValue()); 23 | } 24 | 25 | @Override 26 | public void write(OutputNode node, String value) throws Exception { 27 | node.setValue(StringUtil.fakeEncryptPassword(value)); 28 | } 29 | 30 | } 31 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/xml/PersisterFactory.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.xml; 12 | 13 | import java.util.Date; 14 | 15 | import org.simpleframework.xml.convert.AnnotationStrategy; 16 | import org.simpleframework.xml.core.Persister; 17 | import org.simpleframework.xml.transform.RegistryMatcher; 18 | 19 | public class PersisterFactory { 20 | public static Persister createPersister() { 21 | RegistryMatcher registryMatcher = new RegistryMatcher(); 22 | registryMatcher.bind(Date.class, new DateTransform()); 23 | Persister persister = new Persister(new AnnotationStrategy(), registryMatcher); 24 | return persister; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/api/xml/TypeConverter.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.xml; 12 | 13 | import org.piwigo.remotesync.api.type.Type; 14 | import org.simpleframework.xml.convert.Converter; 15 | import org.simpleframework.xml.stream.InputNode; 16 | import org.simpleframework.xml.stream.OutputNode; 17 | 18 | public class TypeConverter implements Converter { 19 | 20 | @Override 21 | public Type read(InputNode node) throws Exception { 22 | return Type.fromTypeName(node.getValue()); 23 | } 24 | 25 | @Override 26 | public void write(OutputNode node, Type external) { 27 | node.setValue(external.typeName); 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/generator/Generated.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.generator; 12 | 13 | import java.lang.annotation.Retention; 14 | import java.lang.annotation.RetentionPolicy; 15 | 16 | @Retention(RetentionPolicy.RUNTIME) 17 | public @interface Generated { 18 | } 19 | -------------------------------------------------------------------------------- /remotesync-api/src/main/java/org/piwigo/remotesync/legacy/PwgSessionGetStatusRequestLegacy.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.legacy; 12 | 13 | import org.piwigo.remotesync.api.request.AbstractRequest; 14 | 15 | /** 16 | Gets information about the current session. Also provides a token useable with admin methods. 17 | **/ 18 | @org.piwigo.remotesync.generator.Generated 19 | public class PwgSessionGetStatusRequestLegacy extends AbstractRequest { 20 | 21 | public PwgSessionGetStatusRequestLegacy() { 22 | } 23 | 24 | public boolean isNeedPwgToken() { 25 | return false; 26 | } 27 | 28 | public boolean isAdminOnly() { 29 | return false; 30 | }; 31 | 32 | public boolean isPostOnly() { 33 | return false; 34 | }; 35 | 36 | public String getWSMethodName() { 37 | return "pwg.session.getStatus"; 38 | } 39 | 40 | public Class getReturnType() { 41 | return PwgSessionGetStatusResponseLegacy.class; 42 | } 43 | } 44 | -------------------------------------------------------------------------------- /remotesync-api/src/main/resources/org/piwigo/remotesync/generator/reflectionTemplate.jmte: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.reflection; 12 | 13 | import java.util.List; 14 | import java.util.ArrayList; 15 | import org.piwigo.remotesync.api.reflection.MethodReflection; 16 | import org.piwigo.remotesync.api.request.*; 17 | import org.piwigo.remotesync.api.response.*; 18 | 19 | ${generatedComment} 20 | public class ${reflectionName} { 21 | 22 | public static List methodDetails; 23 | 24 | static { 25 | methodDetails = new ArrayList();${foreach methodDetails methodDetail} 26 | methodDetails.add(new MethodReflection("${methodDetail.name}", "${methodDetail.name}.xml", ${methodDetail.camelCaseName}${request}.class, ${methodDetail.camelCaseName}${response}.class));${end} 27 | } 28 | } -------------------------------------------------------------------------------- /remotesync-api/src/main/resources/org/piwigo/remotesync/generator/responseCommonTemplate.jmte: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | import org.piwigo.remotesync.api.response.BasicResponse; 14 | 15 | ${generatedComment} 16 | public abstract class ${responseParentName} extends BasicResponse { 17 | } -------------------------------------------------------------------------------- /remotesync-api/src/main/resources/org/piwigo/remotesync/generator/responseTemplate.jmte: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.response; 12 | 13 | ${generatedComment} 14 | public class ${responseName} extends ${responseParentName} { 15 | } -------------------------------------------------------------------------------- /remotesync-api/src/test/java/org/piwigo/remotesync/api/test/RemotesyncAPIAllTests.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.api.test; 12 | 13 | import junit.framework.Test; 14 | import junit.framework.TestCase; 15 | import junit.framework.TestSuite; 16 | import ch.qos.logback.classic.Level; 17 | 18 | public class RemotesyncAPIAllTests extends TestCase { 19 | 20 | //when using mvn 21 | public static Level TEST_LOG_LEVEL = Level.INFO; 22 | 23 | public static Test suite() { 24 | //debug only when using suite 25 | TEST_LOG_LEVEL = Level.DEBUG; 26 | 27 | TestSuite suite = new TestSuite(RemotesyncAPIAllTests.class.getName()); 28 | // $JUnit-BEGIN$ 29 | suite.addTestSuite(FileUtilTest.class); 30 | suite.addTestSuite(SyncTest.class); 31 | suite.addTestSuite(APITest.class); 32 | suite.addTestSuite(ImagesTest.class); 33 | suite.addTestSuite(RequestsTest.class); 34 | // $JUnit-END$ 35 | return suite; 36 | } 37 | 38 | } 39 | -------------------------------------------------------------------------------- /remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/.gitignore: -------------------------------------------------------------------------------- 1 | /testConfig 2 | -------------------------------------------------------------------------------- /remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/descript.ion: -------------------------------------------------------------------------------- 1 | IMG_2531_1.jpg 2 | IMG_2538_1.jpg 3 | IMG_2544_1.jpg 4 | IMG_2563_1.jpg 5 | IMG_2539_1.jpg The greenhouses 6 | IMG_2545_1.jpg 7 | IMG_2558_1.jpg 8 | IMG_2564_1.jpg 9 | IMG_2527_1.jpg 10 | IMG_2534_1.jpg The Hot Wall 11 | IMG_2554_1.jpg 12 | IMG_2542_1.jpg Capability Brown's pond 13 | IMG_2555_1.jpg 14 | IMG_2561_1.jpg 15 | IMG_2530_1.jpg 16 | IMG_2537_1.jpg The Friends of Croome 17 | IMG_2556_1.jpg The Gardeners Cottage 18 | Croome Walled Gardens 1.jpg North-West-South panorama {scroll right} 19 | Croome Walled Gardens 2.jpg South-East-North panorama {scroll right} 20 | Croome Walled Gardens 3.jpg Hot Wall - Stable Block - Croome Court - Malvern Hills - Greenhouses - Gardeners Cottage 21 | -------------------------------------------------------------------------------- /remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/image.jpg -------------------------------------------------------------------------------- /remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/readme.txt: -------------------------------------------------------------------------------- 1 | Title: The Walled Gardens 2 | Date: 2009-09-26 3 | Copyright: Tadjio Szczepanik 4 | 5 | Details: 6 | Visit to the walled kitchen gardens at Croome Court 7 | -------------------------------------------------------------------------------- /remotesync-api/src/test/resources/org/piwigo/remotesync/api/test/testConfig.example: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | http://mygallery.piwigo.com 5 | username 6 | Xy1bXS1f 7 | false 8 | http://myproxy.server.com 9 | 8000 10 | 500 11 | 12 | 13 | -------------------------------------------------------------------------------- /remotesync-ui/.classpath: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /remotesync-ui/.gitignore: -------------------------------------------------------------------------------- 1 | /bin/ 2 | /target/ 3 | -------------------------------------------------------------------------------- /remotesync-ui/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | remotesync-ui 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.jdt.core.javabuilder 10 | 11 | 12 | 13 | 14 | org.eclipse.m2e.core.maven2Builder 15 | 16 | 17 | 18 | 19 | 20 | org.eclipse.m2e.core.maven2Nature 21 | org.eclipse.jdt.core.javanature 22 | 23 | 24 | -------------------------------------------------------------------------------- /remotesync-ui/.settings/PiwigoRemoteSync UI MainUi Swing.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /remotesync-ui/.settings/PiwigoRemoteSync UI MainUi TestClient.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /remotesync-ui/.settings/PiwigoRemoteSync UI MainUi.launch: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /remotesync-ui/.settings/org.eclipse.jdt.core.prefs: -------------------------------------------------------------------------------- 1 | eclipse.preferences.version=1 2 | org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6 3 | org.eclipse.jdt.core.compiler.compliance=1.6 4 | org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning 5 | org.eclipse.jdt.core.compiler.source=1.6 6 | -------------------------------------------------------------------------------- /remotesync-ui/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /remotesync-ui/src/main/java/org/piwigo/remotesync/ui/MainReflectionUi.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.ui; 12 | 13 | 14 | public class MainReflectionUi extends org.piwigo.remotesync.api.Main { 15 | public static void main(String[] args) { 16 | new MainReflectionUi().run(args); 17 | } 18 | 19 | protected void start() { 20 | org.piwigo.remotesync.ui.pivot.ReflectionUI.run(); 21 | }; 22 | } 23 | -------------------------------------------------------------------------------- /remotesync-ui/src/main/java/org/piwigo/remotesync/ui/MainUi.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.ui; 12 | 13 | import org.kohsuke.args4j.Option; 14 | import org.piwigo.remotesync.api.Main; 15 | 16 | public class MainUi extends Main { 17 | public static void main(String[] args) { 18 | new MainUi().start(); 19 | } 20 | 21 | @Option(name = "-batch", usage = "batch mode (no ui)") 22 | protected boolean batch = false; 23 | 24 | @Option(name = "-testclient", usage = "test api client ui") 25 | protected boolean testclient = false; 26 | 27 | @Option(name = "-swing", usage = "old swing ui") 28 | protected boolean swing = true; 29 | 30 | protected void start() { 31 | if (batch) 32 | super.start(); 33 | else if (testclient) 34 | org.piwigo.remotesync.ui.pivot.ReflectionUI.run(); 35 | else if (swing) 36 | org.piwigo.remotesync.ui.swing.RemotesyncUI.run(); 37 | else 38 | org.piwigo.remotesync.ui.pivot.RemotesyncUI.run(); 39 | }; 40 | } 41 | -------------------------------------------------------------------------------- /remotesync-ui/src/main/java/org/piwigo/remotesync/ui/pivot/SyncForm.java: -------------------------------------------------------------------------------- 1 | /******************************************************************************* 2 | * Copyright (c) 2014 Matthieu Helleboid. 3 | * All rights reserved. This program and the accompanying materials 4 | * are made available under the terms of the GNU Public License v2.0 5 | * which accompanies this distribution, and is available at 6 | * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | * 8 | * Contributors: 9 | * Matthieu Helleboid - initial API and implementation 10 | ******************************************************************************/ 11 | package org.piwigo.remotesync.ui.pivot; 12 | 13 | public class SyncForm { 14 | 15 | } 16 | -------------------------------------------------------------------------------- /remotesync-ui/src/main/java/org/piwigo/remotesync/ui/utils/WindowMover.java: -------------------------------------------------------------------------------- 1 | package org.piwigo.remotesync.ui.utils; 2 | 3 | import java.awt.MouseInfo; 4 | import java.awt.Point; 5 | import java.awt.event.MouseAdapter; 6 | import java.awt.event.MouseEvent; 7 | 8 | import javax.swing.JFrame; 9 | 10 | public class WindowMover extends MouseAdapter 11 | { 12 | 13 | private Point click; 14 | 15 | private JFrame window; 16 | 17 | public WindowMover(JFrame window) 18 | { 19 | this.window = window; 20 | } 21 | 22 | @Override 23 | public void mouseDragged(MouseEvent e) 24 | { 25 | if (click != null) { 26 | Point draggedPoint = MouseInfo.getPointerInfo().getLocation(); 27 | window.setLocation(new Point((int) draggedPoint.getX() - (int) click.getX(), (int) draggedPoint.getY() - (int) click.getY())); 28 | } 29 | } 30 | 31 | @Override 32 | public void mousePressed(MouseEvent e) 33 | { 34 | click = e.getPoint(); 35 | } 36 | 37 | } -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/pivot/reflection/methodTree.bxml: -------------------------------------------------------------------------------- 1 | 11 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/pivot/reflection/reflection.bxml: -------------------------------------------------------------------------------- 1 | 11 | 13 | 14 | -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/pivot/reflection/requestFormInput.bxml: -------------------------------------------------------------------------------- 1 | 11 | 13 | 14 | 19 | -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/backBtn-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/backBtn-hover.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/backBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/backBtn.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/closeBtn-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/closeBtn-hover.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/closeBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/closeBtn.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/frame.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/logBtn-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/logBtn-hover.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/logBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/logBtn.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/login.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/loginBtn-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/loginBtn-hover.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/loginBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/loginBtn.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/optionsBtn-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/optionsBtn-hover.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/optionsBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/optionsBtn.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/pickBtn-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/pickBtn-hover.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/pickBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/pickBtn.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/sync.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/sync.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/upload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/upload.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/uploadBtn-hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/uploadBtn-hover.png -------------------------------------------------------------------------------- /remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/uploadBtn.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Piwigo/Piwigo-Java/d751ad9d2b0f2ebd94cccc599e3b22b94e54e85b/remotesync-ui/src/main/resources/org/piwigo/remotesync/ui/swing/uploadBtn.png -------------------------------------------------------------------------------- /remotesync/.gitignore: -------------------------------------------------------------------------------- 1 | /target/ 2 | -------------------------------------------------------------------------------- /remotesync/.project: -------------------------------------------------------------------------------- 1 | 2 | 3 | remotesync 4 | 5 | 6 | 7 | 8 | 9 | org.eclipse.m2e.core.maven2Builder 10 | 11 | 12 | 13 | 14 | 15 | org.eclipse.m2e.core.maven2Nature 16 | 17 | 18 | -------------------------------------------------------------------------------- /remotesync/.settings/org.eclipse.m2e.core.prefs: -------------------------------------------------------------------------------- 1 | activeProfiles= 2 | eclipse.preferences.version=1 3 | resolveWorkspaceProjects=true 4 | version=1 5 | -------------------------------------------------------------------------------- /remotesync/README.txt: -------------------------------------------------------------------------------- 1 | #------------------------------------------------------------------------------- 2 | # Copyright (c) 2014 Matthieu Helleboid. 3 | # All rights reserved. This program and the accompanying materials 4 | # are made available under the terms of the GNU Public License v2.0 5 | # which accompanies this distribution, and is available at 6 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html 7 | # 8 | # Contributors: 9 | # Matthieu Helleboid - initial API and implementation 10 | #------------------------------------------------------------------------------- 11 | 12 | #install tools 13 | apt-get install git maven 14 | 15 | #clone remote sync 16 | git clone https://github.com/Piwigo/Piwigo-Java.git 17 | cd Piwigo-Java 18 | 19 | #build remote sync without tests 20 | cd remotesync 21 | mvn -Dmaven.test.skip=true clean package 22 | 23 | #show help 24 | java -jar target/remotesync.jar -help 25 | java -jar target/remotesync-ui.jar -help 26 | 27 | #launch remote sync ui 28 | java -jar target/remotesync-ui.jar 29 | --------------------------------------------------------------------------------