Rename getPropertyAndRemoveFromList() to pullProperty(). The original method remains in the code but marked deprecated.

This commit is contained in:
ryounes 2011-03-31 19:04:15 +00:00
parent 5021069574
commit 54de8d5f5b
2 changed files with 10 additions and 6 deletions

View file

@ -448,7 +448,12 @@ public class GroupedPropertyList extends BaseTemplateModel {
return null;
}
@Deprecated
public PropertyTemplateModel getPropertyAndRemoveFromList(String propertyUri) {
return pullProperty(propertyUri);
}
public PropertyTemplateModel pullProperty(String propertyUri) {
for (PropertyGroupTemplateModel pgtm : groups) {
List<PropertyTemplateModel> properties = pgtm.getProperties();
@ -470,6 +475,5 @@ public class GroupedPropertyList extends BaseTemplateModel {
}
return null;
}
}