Return-Path: X-Original-To: apmail-chemistry-commits-archive@www.apache.org Delivered-To: apmail-chemistry-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 03FD4D7D3 for ; Mon, 27 May 2013 17:22:13 +0000 (UTC) Received: (qmail 69244 invoked by uid 500); 27 May 2013 17:22:12 -0000 Delivered-To: apmail-chemistry-commits-archive@chemistry.apache.org Received: (qmail 69098 invoked by uid 500); 27 May 2013 17:22:10 -0000 Mailing-List: contact commits-help@chemistry.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@chemistry.apache.org Delivered-To: mailing list commits@chemistry.apache.org Received: (qmail 68767 invoked by uid 99); 27 May 2013 17:22:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 May 2013 17:22:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 May 2013 17:21:49 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 81F8E2388C3E; Mon, 27 May 2013 17:20:35 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1486674 [25/44] - in /chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings: ./ css/ images/ images/logos/ xref-test/ xref-test/org/ xref-test/org/apache/ xref-test/org/apache/chemistry/... Date: Mon, 27 May 2013 17:20:22 -0000 To: commits@chemistry.apache.org From: gabriele@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130527172035.81F8E2388C3E@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Added: chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/SpiSessionParameter.html URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/SpiSessionParameter.html?rev=1486674&view=auto ============================================================================== --- chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/SpiSessionParameter.html (added) +++ chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/SpiSessionParameter.html Mon May 27 17:20:16 2013 @@ -0,0 +1,44 @@ + + + + +SpiSessionParameter xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.client.bindings.spi.atompub;
+20  
+21  /**
+22   * Internal session parameters.
+23   */
+24  public final class SpiSessionParameter {
+25  
+26      public static final String LINK_CACHE = "org.apache.chemistry.opencmis.binding.atompub.linkcache";
+27  
+28      private SpiSessionParameter() {
+29      }
+30  }
+
+
+ + Added: chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/VersioningServiceImpl.html URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/VersioningServiceImpl.html?rev=1486674&view=auto ============================================================================== --- chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/VersioningServiceImpl.html (added) +++ chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/VersioningServiceImpl.html Mon May 27 17:20:16 2013 @@ -0,0 +1,302 @@ + + + + +VersioningServiceImpl xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.client.bindings.spi.atompub;
+20  
+21  import java.io.OutputStream;
+22  import java.util.ArrayList;
+23  import java.util.List;
+24  
+25  import org.apache.chemistry.opencmis.client.bindings.spi.BindingSession;
+26  import org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomElement;
+27  import org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomEntry;
+28  import org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomFeed;
+29  import org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects.AtomLink;
+30  import org.apache.chemistry.opencmis.client.bindings.spi.http.Output;
+31  import org.apache.chemistry.opencmis.client.bindings.spi.http.Response;
+32  import org.apache.chemistry.opencmis.commons.data.Acl;
+33  import org.apache.chemistry.opencmis.commons.data.ContentStream;
+34  import org.apache.chemistry.opencmis.commons.data.ExtensionsData;
+35  import org.apache.chemistry.opencmis.commons.data.ObjectData;
+36  import org.apache.chemistry.opencmis.commons.data.Properties;
+37  import org.apache.chemistry.opencmis.commons.enums.IncludeRelationships;
+38  import org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException;
+39  import org.apache.chemistry.opencmis.commons.exceptions.CmisInvalidArgumentException;
+40  import org.apache.chemistry.opencmis.commons.exceptions.CmisObjectNotFoundException;
+41  import org.apache.chemistry.opencmis.commons.impl.Constants;
+42  import org.apache.chemistry.opencmis.commons.impl.ReturnVersion;
+43  import org.apache.chemistry.opencmis.commons.impl.UrlBuilder;
+44  import org.apache.chemistry.opencmis.commons.impl.dataobjects.AccessControlListImpl;
+45  import org.apache.chemistry.opencmis.commons.spi.Holder;
+46  import org.apache.chemistry.opencmis.commons.spi.VersioningService;
+47  
+48  /**
+49   * Versioning Service AtomPub client.
+50   */
+51  public class VersioningServiceImpl extends AbstractAtomPubService implements VersioningService {
+52  
+53      /**
+54       * Constructor.
+55       */
+56      public VersioningServiceImpl(BindingSession session) {
+57          setSession(session);
+58      }
+59  
+60      public void checkOut(String repositoryId, Holder<String> objectId, ExtensionsData extension,
+61              Holder<Boolean> contentCopied) {
+62          if ((objectId == null) || (objectId.getValue() == null) || (objectId.getValue().length() == 0)) {
+63              throw new CmisInvalidArgumentException("Object id must be set!");
+64          }
+65  
+66          // find the link
+67          String link = loadCollection(repositoryId, Constants.COLLECTION_CHECKEDOUT);
+68  
+69          if (link == null) {
+70              throw new CmisObjectNotFoundException("Unknown repository or checkedout collection not supported!");
+71          }
+72  
+73          UrlBuilder url = new UrlBuilder(link);
+74  
+75          // set up object and writer
+76          final AtomEntryWriter entryWriter = new AtomEntryWriter(createIdObject(objectId.getValue()),
+77                  getCmisVersion(repositoryId));
+78  
+79          // post move request
+80          Response resp = post(url, Constants.MEDIATYPE_ENTRY, new Output() {
+81              public void write(OutputStream out) throws Exception {
+82                  entryWriter.write(out);
+83              }
+84          });
+85  
+86          // parse the response
+87          AtomEntry entry = parse(resp.getStream(), AtomEntry.class);
+88  
+89          objectId.setValue(entry.getId());
+90  
+91          lockLinks();
+92          try {
+93              // clean up cache
+94              removeLinks(repositoryId, entry.getId());
+95  
+96              // walk through the entry
+97              for (AtomElement element : entry.getElements()) {
+98                  if (element.getObject() instanceof AtomLink) {
+99                      addLink(repositoryId, entry.getId(), (AtomLink) element.getObject());
+100                 }
+101             }
+102         } finally {
+103             unlockLinks();
+104         }
+105 
+106         if (contentCopied != null) {
+107             contentCopied.setValue(null);
+108         }
+109     }
+110 
+111     public void cancelCheckOut(String repositoryId, String objectId, ExtensionsData extension) {
+112         // find the link
+113         String link = loadLink(repositoryId, objectId, Constants.REL_SELF, Constants.MEDIATYPE_ENTRY);
+114 
+115         if (link == null) {
+116             throwLinkException(repositoryId, objectId, Constants.REL_SELF, Constants.MEDIATYPE_ENTRY);
+117         }
+118 
+119         // prefer working copy link if available
+120         // (workaround for non-compliant repositories)
+121         String wcLink = getLink(repositoryId, objectId, Constants.REL_WORKINGCOPY, Constants.MEDIATYPE_ENTRY);
+122         if (wcLink != null) {
+123             link = wcLink;
+124         }
+125 
+126         delete(new UrlBuilder(link));
+127     }
+128 
+129     public void checkIn(String repositoryId, Holder<String> objectId, Boolean major, Properties properties,
+130             ContentStream contentStream, String checkinComment, List<String> policies, Acl addAces, Acl removeAces,
+131             ExtensionsData extension) {
+132         // we need an object id
+133         if ((objectId == null) || (objectId.getValue() == null) || (objectId.getValue().length() == 0)) {
+134             throw new CmisInvalidArgumentException("Object id must be set!");
+135         }
+136 
+137         // find the link
+138         String link = loadLink(repositoryId, objectId.getValue(), Constants.REL_SELF, Constants.MEDIATYPE_ENTRY);
+139 
+140         if (link == null) {
+141             throwLinkException(repositoryId, objectId.getValue(), Constants.REL_SELF, Constants.MEDIATYPE_ENTRY);
+142         }
+143 
+144         // prefer working copy link if available
+145         // (workaround for non-compliant repositories)
+146         String wcLink = getLink(repositoryId, objectId.getValue(), Constants.REL_WORKINGCOPY, Constants.MEDIATYPE_ENTRY);
+147         if (wcLink != null) {
+148             link = wcLink;
+149         }
+150 
+151         UrlBuilder url = new UrlBuilder(link);
+152         url.addParameter(Constants.PARAM_CHECKIN_COMMENT, checkinComment);
+153         url.addParameter(Constants.PARAM_MAJOR, major);
+154         url.addParameter(Constants.PARAM_CHECK_IN, "true");
+155 
+156         // set up writer
+157         final AtomEntryWriter entryWriter = new AtomEntryWriter(createObject(properties, policies),
+158                 getCmisVersion(repositoryId), contentStream);
+159 
+160         // update
+161         Response resp = put(url, Constants.MEDIATYPE_ENTRY, new Output() {
+162             public void write(OutputStream out) throws Exception {
+163                 entryWriter.write(out);
+164             }
+165         });
+166 
+167         // parse new entry
+168         AtomEntry entry = parse(resp.getStream(), AtomEntry.class);
+169 
+170         // we expect a CMIS entry
+171         if (entry.getId() == null) {
+172             throw new CmisConnectionException("Received Atom entry is not a CMIS entry!");
+173         }
+174 
+175         // set object id
+176         objectId.setValue(entry.getId());
+177 
+178         AccessControlListImpl originalAces = null;
+179 
+180         lockLinks();
+181         try {
+182             // clean up cache
+183             removeLinks(repositoryId, entry.getId());
+184 
+185             // walk through the entry
+186             for (AtomElement element : entry.getElements()) {
+187                 if (element.getObject() instanceof AtomLink) {
+188                     addLink(repositoryId, entry.getId(), (AtomLink) element.getObject());
+189                 } else if (element.getObject() instanceof ObjectData) {
+190                     // extract current ACL
+191                     ObjectData object = (ObjectData) element.getObject();
+192                     if (object.getAcl() != null) {
+193                         originalAces = new AccessControlListImpl(object.getAcl().getAces());
+194                         originalAces.setExact(object.isExactAcl());
+195                     }
+196                 }
+197             }
+198         } finally {
+199             unlockLinks();
+200         }
+201 
+202         // handle ACL modifications
+203         if ((originalAces != null) && (isAclMergeRequired(addAces, removeAces))) {
+204             // merge and update ACL
+205             Acl newACL = mergeAcls(originalAces, addAces, removeAces);
+206             if (newACL != null) {
+207                 updateAcl(repositoryId, entry.getId(), newACL, null);
+208             }
+209         }
+210     }
+211 
+212     public List<ObjectData> getAllVersions(String repositoryId, String objectId, String versionSeriesId, String filter,
+213             Boolean includeAllowableActions, ExtensionsData extension) {
+214         List<ObjectData> result = new ArrayList<ObjectData>();
+215 
+216         // find the link
+217         String link = loadLink(repositoryId, objectId, Constants.REL_VERSIONHISTORY, Constants.MEDIATYPE_FEED);
+218 
+219         if (link == null) {
+220             throwLinkException(repositoryId, objectId, Constants.REL_VERSIONHISTORY, Constants.MEDIATYPE_FEED);
+221         }
+222 
+223         UrlBuilder url = new UrlBuilder(link);
+224         url.addParameter(Constants.PARAM_FILTER, filter);
+225         url.addParameter(Constants.PARAM_ALLOWABLE_ACTIONS, includeAllowableActions);
+226 
+227         // read and parse
+228         Response resp = read(url);
+229         AtomFeed feed = parse(resp.getStream(), AtomFeed.class);
+230 
+231         // get the versions
+232         if (!feed.getEntries().isEmpty()) {
+233             for (AtomEntry entry : feed.getEntries()) {
+234                 ObjectData version = null;
+235 
+236                 lockLinks();
+237                 try {
+238                     // clean up cache
+239                     removeLinks(repositoryId, entry.getId());
+240 
+241                     // walk through the entry
+242                     for (AtomElement element : entry.getElements()) {
+243                         if (element.getObject() instanceof AtomLink) {
+244                             addLink(repositoryId, entry.getId(), (AtomLink) element.getObject());
+245                         } else if (element.getObject() instanceof ObjectData) {
+246                             version = (ObjectData) element.getObject();
+247                         }
+248                     }
+249                 } finally {
+250                     unlockLinks();
+251                 }
+252 
+253                 if (version != null) {
+254                     result.add(version);
+255                 }
+256             }
+257         }
+258 
+259         return result;
+260     }
+261 
+262     public ObjectData getObjectOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
+263             Boolean major, String filter, Boolean includeAllowableActions, IncludeRelationships includeRelationships,
+264             String renditionFilter, Boolean includePolicyIds, Boolean includeACL, ExtensionsData extension) {
+265 
+266         ReturnVersion returnVersion = ReturnVersion.LATEST;
+267         if ((major != null) && (major.booleanValue())) {
+268             returnVersion = ReturnVersion.LASTESTMAJOR;
+269         }
+270 
+271         return getObjectInternal(repositoryId, IdentifierType.ID, objectId, returnVersion, filter,
+272                 includeAllowableActions, includeRelationships, renditionFilter, includePolicyIds, includeACL, extension);
+273     }
+274 
+275     public Properties getPropertiesOfLatestVersion(String repositoryId, String objectId, String versionSeriesId,
+276             Boolean major, String filter, ExtensionsData extension) {
+277 
+278         ReturnVersion returnVersion = ReturnVersion.LATEST;
+279         if ((major != null) && (major.booleanValue())) {
+280             returnVersion = ReturnVersion.LASTESTMAJOR;
+281         }
+282 
+283         ObjectData object = getObjectInternal(repositoryId, IdentifierType.ID, objectId, returnVersion, filter,
+284                 Boolean.FALSE, IncludeRelationships.NONE, "cmis:none", Boolean.FALSE, Boolean.FALSE, extension);
+285 
+286         return object.getProperties();
+287     }
+288 }
+
+
+ + Added: chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomAcl.html URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomAcl.html?rev=1486674&view=auto ============================================================================== --- chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomAcl.html (added) +++ chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomAcl.html Mon May 27 17:20:16 2013 @@ -0,0 +1,67 @@ + + + + +AtomAcl xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects;
+20  
+21  import org.apache.chemistry.opencmis.commons.data.Acl;
+22  
+23  /**
+24   * AtomAcl.
+25   */
+26  public class AtomAcl extends AtomBase {
+27  
+28      private static final long serialVersionUID = 1L;
+29  
+30      private Acl acl;
+31  
+32      public AtomAcl() {
+33          super();
+34      }
+35  
+36      public AtomAcl(Acl acl) {
+37          this();
+38          setACL(acl);
+39      }
+40  
+41      @Override
+42      public String getType() {
+43          return "ACL";
+44      }
+45  
+46      public Acl getACL() {
+47          return acl;
+48      }
+49  
+50      public void setACL(Acl acl) {
+51          this.acl = acl;
+52      }
+53  }
+
+
+ + Added: chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomAllowableActions.html URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomAllowableActions.html?rev=1486674&view=auto ============================================================================== --- chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomAllowableActions.html (added) +++ chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomAllowableActions.html Mon May 27 17:20:16 2013 @@ -0,0 +1,67 @@ + + + + +AtomAllowableActions xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects;
+20  
+21  import org.apache.chemistry.opencmis.commons.data.AllowableActions;
+22  
+23  /**
+24   * AtomAllowableActions.
+25   */
+26  public class AtomAllowableActions extends AtomBase {
+27  
+28      private static final long serialVersionUID = 1L;
+29  
+30      private AllowableActions allowableActions;
+31  
+32      public AtomAllowableActions() {
+33          super();
+34      }
+35  
+36      public AtomAllowableActions(AllowableActions allowableActions) {
+37          this();
+38          setAllowableActions(allowableActions);
+39      }
+40  
+41      @Override
+42      public String getType() {
+43          return "Allowable Actions";
+44      }
+45  
+46      public AllowableActions getAllowableActions() {
+47          return allowableActions;
+48      }
+49  
+50      public void setAllowableActions(AllowableActions allowableActions) {
+51          this.allowableActions = allowableActions;
+52      }
+53  }
+
+
+ + Added: chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.html URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.html?rev=1486674&view=auto ============================================================================== --- chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.html (added) +++ chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomBase.html Mon May 27 17:20:16 2013 @@ -0,0 +1,62 @@ + + + + +AtomBase xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects;
+20  
+21  import java.io.Serializable;
+22  import java.util.ArrayList;
+23  import java.util.List;
+24  
+25  /**
+26   * Base type for Atom responses.
+27   */
+28  public abstract class AtomBase implements Serializable {
+29  
+30      private static final long serialVersionUID = 1L;
+31  
+32      private final List<AtomElement> elements = new ArrayList<AtomElement>();
+33  
+34      protected AtomBase() {
+35      }
+36  
+37      public abstract String getType();
+38  
+39      public List<AtomElement> getElements() {
+40          return elements;
+41      }
+42  
+43      public void addElement(AtomElement element) {
+44          if (element != null) {
+45              elements.add(element);
+46          }
+47      }
+48  }
+
+
+ + Added: chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.html URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.html?rev=1486674&view=auto ============================================================================== --- chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.html (added) +++ chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomElement.html Mon May 27 17:20:16 2013 @@ -0,0 +1,66 @@ + + + + +AtomElement xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects;
+20  
+21  import java.io.Serializable;
+22  
+23  import javax.xml.namespace.QName;
+24  
+25  /**
+26   * Atom Element.
+27   */
+28  public class AtomElement implements Serializable {
+29  
+30      private static final long serialVersionUID = 1L;
+31  
+32      private final QName name;
+33      private final Object object;
+34  
+35      public AtomElement(QName name, Object object) {
+36          this.name = name;
+37          this.object = object;
+38      }
+39  
+40      public QName getName() {
+41          return name;
+42      }
+43  
+44      public Object getObject() {
+45          return object;
+46      }
+47  
+48      @Override
+49      public String toString() {
+50          return name + ": " + object;
+51      }
+52  }
+
+
+ + Added: chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.html URL: http://svn.apache.org/viewvc/chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.html?rev=1486674&view=auto ============================================================================== --- chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.html (added) +++ chemistry/site/trunk/content/java/0.9.0/maven/chemistry-opencmis-client/chemistry-opencmis-client-bindings/xref/org/apache/chemistry/opencmis/client/bindings/spi/atompub/objects/AtomEntry.html Mon May 27 17:20:16 2013 @@ -0,0 +1,65 @@ + + + + +AtomEntry xref + + + +
+
+1   /*
+2    * Licensed to the Apache Software Foundation (ASF) under one
+3    * or more contributor license agreements.  See the NOTICE file
+4    * distributed with this work for additional information
+5    * regarding copyright ownership.  The ASF licenses this file
+6    * to you under the Apache License, Version 2.0 (the
+7    * "License"); you may not use this file except in compliance
+8    * with the License.  You may obtain a copy of the License at
+9    *
+10   * http://www.apache.org/licenses/LICENSE-2.0
+11   *
+12   * Unless required by applicable law or agreed to in writing,
+13   * software distributed under the License is distributed on an
+14   * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+15   * KIND, either express or implied.  See the License for the
+16   * specific language governing permissions and limitations
+17   * under the License.
+18   */
+19  package org.apache.chemistry.opencmis.client.bindings.spi.atompub.objects;
+20  
+21  /**
+22   * Atom Entry.
+23   */
+24  public class AtomEntry extends AtomBase {
+25  
+26      private static final long serialVersionUID = 1L;
+27  
+28      private String id;
+29  
+30      public AtomEntry() {
+31          super();
+32      }
+33  
+34      @Override
+35      public String getType() {
+36          return "Atom Entry";
+37      }
+38  
+39      public String getId() {
+40          return id;
+41      }
+42  
+43      public void setId(String id) {
+44          this.id = id;
+45      }
+46  
+47      @Override
+48      public String toString() {
+49          return "Entry \"" + id + "\": " + getElements();
+50      }
+51  }
+
+
+ +