private static void storeversionAttribute(CloudBlobContainerWrapper container) {
HashMap<String,String> Metadata = container.getMetadata();
if (null == Metadata) {
Metadata = new HashMap<String,String>();
}
Metadata.put(VERSION_MetaDATA_KEY,CURRENT_WASB_VERSION);
if (Metadata.containsKey(OLD_VERSION_MetaDATA_KEY)) {
Metadata.remove(OLD_VERSION_MetaDATA_KEY);
}
container.setMetadata(Metadata);
}
private static String retrieveVersionAttribute(
CloudBlobContainerWrapper container) {
HashMap<String,String> Metadata = container.getMetadata();
if (Metadata == null) {
return null;
} else if (Metadata.containsKey(VERSION_MetaDATA_KEY)) {
return Metadata.get(VERSION_MetaDATA_KEY);
} else if (Metadata.containsKey(OLD_VERSION_MetaDATA_KEY)) {
return Metadata.get(OLD_VERSION_MetaDATA_KEY);
} else {
return null;
}
}
private static void storeversionAttribute(CloudBlobContainerWrapper container) {
HashMap<String,CURRENT_WASB_VERSION);
if (Metadata.containsKey(OLD_VERSION_MetaDATA_KEY)) {
Metadata.remove(OLD_VERSION_MetaDATA_KEY);
}
container.setMetadata(Metadata);
}
private static String retrieveVersionAttribute(
CloudBlobContainerWrapper container) {
HashMap<String,String> Metadata = container.getMetadata();
if (Metadata == null) {
return null;
} else if (Metadata.containsKey(VERSION_MetaDATA_KEY)) {
return Metadata.get(VERSION_MetaDATA_KEY);
} else if (Metadata.containsKey(OLD_VERSION_MetaDATA_KEY)) {
return Metadata.get(OLD_VERSION_MetaDATA_KEY);
} else {
return null;
}
}
private static void storeversionAttribute(CloudBlobContainerWrapper container) {
HashMap<String,CURRENT_WASB_VERSION);
if (Metadata.containsKey(OLD_VERSION_MetaDATA_KEY)) {
Metadata.remove(OLD_VERSION_MetaDATA_KEY);
}
container.setMetadata(Metadata);
}
private static String retrieveVersionAttribute(
CloudBlobContainerWrapper container) {
HashMap<String,String> Metadata = container.getMetadata();
if (Metadata == null) {
return null;
} else if (Metadata.containsKey(VERSION_MetaDATA_KEY)) {
return Metadata.get(VERSION_MetaDATA_KEY);
} else if (Metadata.containsKey(OLD_VERSION_MetaDATA_KEY)) {
return Metadata.get(OLD_VERSION_MetaDATA_KEY);
} else {
return null;
}
}
private static void storeversionAttribute(CloudBlobContainerWrapper container) {
HashMap<String,CURRENT_WASB_VERSION);
if (Metadata.containsKey(OLD_VERSION_MetaDATA_KEY)) {
Metadata.remove(OLD_VERSION_MetaDATA_KEY);
}
container.setMetadata(Metadata);
}
private static String retrieveVersionAttribute(
CloudBlobContainerWrapper container) {
HashMap<String,String> Metadata = container.getMetadata();
if (Metadata == null) {
return null;
} else if (Metadata.containsKey(VERSION_MetaDATA_KEY)) {
return Metadata.get(VERSION_MetaDATA_KEY);
} else if (Metadata.containsKey(OLD_VERSION_MetaDATA_KEY)) {
return Metadata.get(OLD_VERSION_MetaDATA_KEY);
} else {
return null;
}
}