Giter Site home page Giter Site logo

Comments (4)

sammefford avatar sammefford commented on June 12, 2024

I'll need the following methods to be able to run this: getDocumentPropertiesString getDocumentPermissionsString getDocumentCollectionsString

from java-client-api.

sravanr avatar sravanr commented on June 12, 2024

public String getDocumentCollectionsString(DocumentCollections collections)
{
Iterator iCollections = collections.iterator();
String stringCollections = "size:" + collections.size() + "|";
while (iCollections.hasNext()) {
// Get element
Object element = iCollections.next();
stringCollections = stringCollections + element + "|";
}

    return stringCollections;
}   

*/
public String getDocumentPermissionsString(DocumentPermissions permissions)
{
Set setPermissions = permissions.entrySet();
Iterator iPermissions = setPermissions.iterator();
String stringPermissions = "size:" + permissions.size() + "|";
while(iPermissions.hasNext())
{
Map.Entry mePermissions = (Map.Entry)iPermissions.next();
stringPermissions = stringPermissions + mePermissions.getKey() + ":" + mePermissions.getValue() + "|";
}

    return stringPermissions;
}

public String getDocumentPropertiesString(DocumentProperties properties)
{
Set setProperties = properties.entrySet();
Iterator iProperties = setProperties.iterator();
String stringProperties = "size:" + properties.size() + "|";
while(iProperties.hasNext())
{
Map.Entry meProperties = (Map.Entry)iProperties.next();
stringProperties = stringProperties + meProperties.getKey() + ":" + meProperties.getValue() + "|";
}

    return stringProperties;
}

from java-client-api.

sravanr avatar sravanr commented on June 12, 2024

I see this is being a test issue, considering the returned URI's are not sorted , we can close this issue or we can work on java client api to make them to be sorted in the order they send.

from java-client-api.

sammefford avatar sammefford commented on June 12, 2024

Ok, thanks, Sravan. Based on our discussions for this release, the REST API will not support bulk document retrieval in any guaranteed order. So we'll accept your test has to account for the returned document in unspecified order.

from java-client-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.