}
public AlertHistoryView(String tableTitle, int[] resourceIds) {
super(tableTitle, new SortSpecifier[] { DEFAULT_SORT_SPECIFIER });
Criteria initialCriteria = new Criteria();
AlertPriority[] priorityValues = AlertPriority.values();
String[] priorityNames = new String[priorityValues.length];
for (int i = 0, priorityValuesLength = priorityValues.length; i < priorityValuesLength; i++) {
priorityNames[i] = priorityValues[i].name();
}
initialCriteria.addCriteria(AlertDataSource.FILTER_PRIORITIES, priorityNames);
initialCriteria.setAttribute("resourceIds", resourceIds);
setInitialCriteria(initialCriteria);
this.context = new EntityContext();
this.context.type = EntityContext.Type.SubsystemView;
this.hasWriteAccess = true;