/* * (non-Javadoc) * * @see * cc.kune.core.server.manager.GroupManager#setGroupBackgroundImage(cc.kune * .domain.Group, java.lang.String, java.lang.String) */ @Override public void setGroupBackgroundImage( final Group group, final String backgroundFileName, final String mime) { clearGroupBackImage(group); group.setBackgroundImage(backgroundFileName); group.setBackgroundMime(mime); }
/* * (non-Javadoc) * * @see * cc.kune.core.server.manager.GroupManager#clearGroupBackImage(cc.kune.domain * .Group) */ @Override public void clearGroupBackImage(final Group group) { final String file = group.getBackgroundImage(); if (file != null) { fileManager.rm(FileUtils.groupToDir(group.getShortName()), file); } group.setBackgroundImage(null); group.setBackgroundMime(null); }