}
}
}
if (isUserInFullAccessGroup == true) {
final ContentMenuEntryPanel menu = new ContentMenuEntryPanel(getNewContentMenuChildId(), new Link<Void>(ContentMenuEntryPanel.LINK_ID) {
@Override
public void onClick()
{
final PageParameters params = new PageParameters();
params.set(PARAM_PARENT_SKILL_ID, id);
final SkillEditPage skillEditPage = new SkillEditPage(params);
skillEditPage.setReturnToPage(SkillEditPage.this);
setResponsePage(skillEditPage);
};
}, getString("plugins.skillmatrix.skill.menu.addSubSkill"));
addContentMenuEntry(menu);
}
final Integer[] trainingGroupIds = form.skillRight.getTrainingAccessGroupIds(getData());
boolean isUserInTrainingGroup = false;
trainingLoop:
for (final Integer i: curUserGroupIds) {
for (final Integer j : trainingGroupIds) {
if (i == j) {
isUserInTrainingGroup = true;
break trainingLoop;
}
}
}
if (isUserInTrainingGroup == true) {
final ContentMenuEntryPanel menu = new ContentMenuEntryPanel(getNewContentMenuChildId(), new Link<Void>(ContentMenuEntryPanel.LINK_ID) {
@Override
public void onClick()
{
final PageParameters params = new PageParameters();
params.add(TrainingEditPage.PARAM_PARENT_SKILL_ID, id);
final TrainingEditPage trainingEditPage = new TrainingEditPage(params);
trainingEditPage.setReturnToPage(SkillEditPage.this);
setResponsePage(trainingEditPage);
};
}, getString("plugins.skillmatrix.skilltraining.menu"));
addContentMenuEntry(menu);
}
if (isUserInFullAccessGroup == true) {
final ContentMenuEntryPanel menu = new ContentMenuEntryPanel(getNewContentMenuChildId(), new Link<Void>(ContentMenuEntryPanel.LINK_ID) {
@Override
public void onClick()
{
final PageParameters params = new PageParameters();
params.add(SkillRatingListPage.PARAM_SKILL_ID, id);