Revision ef6fa21a src/com/rackspace/cloud/files/api/client/ContainerObjectManager.java

b/src/com/rackspace/cloud/files/api/client/ContainerObjectManager.java
7 7
import java.net.URI;
8 8
import java.net.URISyntaxException;
9 9
import java.util.ArrayList;
10
import java.util.List;
10 11

  
11 12
import javax.xml.parsers.FactoryConfigurationError;
12 13
import javax.xml.parsers.ParserConfigurationException;
......
77 78

  
78 79
				xmlReader.parse(new InputSource(new StringReader(body)));
79 80
				files = filesXMLParser.getViewFiles();
81
				for(ContainerObjects o :files)
82
					o.setContainerName(passName);
80 83

  
81 84
			} else {
82 85
				CloudServersFaultXMLParser parser = new CloudServersFaultXMLParser();
......
112 115
		return files;
113 116

  
114 117
	}
118
	
119
	public ArrayList<ContainerObjects> createListMyShared(boolean detail,
120
			String passName, List<Container> containers) throws CloudServersException {
121

  
122
		ArrayList<ContainerObjects> files = new ArrayList<ContainerObjects>();
123
		for(Container con :containers ){
124
			if(con.getName().equalsIgnoreCase("trash")||con.getName().equals(Container.MYSHARED)||con.getName().equals(Container.OTHERS)){}
125
			else
126
			try{
127
				ArrayList<ContainerObjects> temp = createList(detail, con.getName());
128
				for(ContainerObjects o : temp){
129
					if(o.isShared())
130
						files.add(o);
131
				}
132
			}
133
			catch(CloudServersException e){
134
				
135
			}
136
		}
137
		return files;
138

  
139
	}
115 140

  
116 141
	public HttpBundle deleteObject(String Container, String Object)
117 142
			throws CloudServersException {

Also available in: Unified diff