GUACAMOLE-5: Increase the documentation factor of DirectoryResource.

This commit is contained in:
Michael Jumper
2016-07-12 21:42:15 -07:00
parent aeec3eca40
commit abef36e11f

View File

@@ -158,6 +158,7 @@ public class DirectoryResource<InternalType extends Identifiable, ExternalType>
identifiers = objectPermissions.getAccessibleObjects(permissions, identifiers);
}
// Translate each retrieved object into the corresponding external object
Map<String, ExternalType> apiObjects = new HashMap<String, ExternalType>();
for (InternalType object : directory.getAll(identifiers))
apiObjects.put(object.getIdentifier(), translator.toExternalObject(object));