Add welcome message on creation ...

This commit is contained in:
Paulo Gustavo Veiga
2012-07-13 21:07:51 -03:00
parent 86fca31251
commit b05e25b43f
7 changed files with 108 additions and 21 deletions

View File

@@ -219,20 +219,7 @@ public class MindmapServiceImpl
}
}
@Override
public void addWelcomeMindmap(User user) throws WiseMappingException {
final MindMap savedWelcome = findMindmapById(Constants.WELCOME_MAP_ID);
// Is there a welcomed map configured ?
if (savedWelcome != null) {
final MindMap welcomeMap = new MindMap();
welcomeMap.setTitle(savedWelcome.getTitle() + " " + user.getFirstname());
welcomeMap.setDescription(savedWelcome.getDescription());
welcomeMap.setXml(savedWelcome.getXml());
addMindmap(welcomeMap, user);
}
}
@Override
public List<MindMapHistory> findMindmapHistory(int mindmapId) {