public void checkAll() {
if (!getAncestorOfType(UICalendarPortlet.class).getSpaceGroupId().equals("")) {
for(UIComponent component : getChildren()){
for (Calendar cal : getAllPublicCalendars()) {
if (cal.getId().equals(component.getId())) {
<BUG>String[] groupIds = cal.getGroups();</BUG>
if(getUICheckBoxInput(component.getId()) != null) {
<BUG>getUICheckBoxInput(component.getId()).setChecked(isCalendarOfSpace1(groupIds)) ;
</BUG>
}

public void checkAll() {
if (!getAncestorOfType(UICalendarPortlet.class).getSpaceGroupId().equals("")) {
for(UIComponent component : getChildren()){
for (Calendar cal : getAllPublicCalendars()) {
if (cal.getId().equals(component.getId())) {
if(getUICheckBoxInput(component.getId()) != null) {
getUICheckBoxInput(component.getId()).setChecked(isCalendarOfSpace1(cal)) ;
