/** * Sets the requested constraint on tags to the conjunction of the given tags. * * @param tags the tags to use * * @see #setTagConstraint(String[][]) */ @Override public void setTags(String[] tags) { String[][] tc = null; if (tags != null) { int n = tags.length; tc = new String[n][]; for (int i = 0; i < n; i++) tc[i] = new String[] {tags[i]}; } setTagConstraint(tc); }
/** * Creates a list objects request from these criteria. * * @return the new request */ public ListObjectsRequest toRequest() { ListObjectsRequest lor; String[] stc = simpleTagsConjunction(); if (stc != null) { lor = new ListObjectsRequest(); lor.setTags(stc); } else { lor = new ListObjectsRequest2(); ((ListObjectsRequest2) lor).setTagConstraint(tags); } lor.setTagPrefixes(tagPrefixes); lor.setTypes(types); lor.setFrom(from); lor.setUntil(until); lor.setCreationTimestampFrom(creationTimestampFrom); lor.setCreationTimeStampUntil(creationTimestampUntil); lor.setUsePartStamps(usePartStamps); lor.setPartSearchKey(psk); return lor; }
String[][] tc = new String[1][]; tc[0] = critResponse.getSecurityCriterion(); req2.setTagConstraint(tc); } else { req2.setTagConstraint(tc); } else { tc[i] = new String[] {request.getTags()[i]}; req2.setTagConstraint(tc);