use of com.emc.ecs.management.entity.ObjectBucket in project ecs-dashboard by carone1.
the class BucketObjectCollection method collectObjectsPerBucket.
private void collectObjectsPerBucket() {
// Collect all objects in that bucket
logger.info("Collecting object for bucket: " + bucket.getName());
ObjectBucket objectBucket = getObjectBucket();
// Check if a search criteria was specified
if (collectionConfig.getQueryCriteria() != null) {
queryObjects(objectBucket);
} else {
// check whether bucket has search keys configured
if (objectBucket != null && objectBucket.getSearchMetadata() != null && !objectBucket.getSearchMetadata().isEmpty()) {
// need to query those objects for that bucket
if (!queryObjects(objectBucket)) {
// Something went wonky during the query operation
// revert to list object call
listObjects(objectBucket);
}
} else {
listObjects(objectBucket);
}
}
}
use of com.emc.ecs.management.entity.ObjectBucket in project ecs-dashboard by carone1.
the class BucketObjectVersionCollection method collectObjectsVersionsPerBucket.
private void collectObjectsVersionsPerBucket() {
// Collect all objects in that bucket
logger.info("Collecting object version for bucket: " + bucket.getName());
ObjectBucket objectBucket = getObjectBucket();
if (objectBucket != null) {
listObjectsVersions(objectBucket);
}
}
Aggregations