@Override
 public void onNotification(SilverpeasNotification notification, NotificationTopic onTopic) {
   if (onTopic.getName().equals(ADMIN_TOPIC.getTopicName())) {
     SpaceLogicalDeletionNotification deletion = (SpaceLogicalDeletionNotification) notification;
     String spaceId = deletion.getSpaceId();
     SilverpeasServiceProvider.getPersonalizationService().resetDefaultSpace(spaceId);
   }
 }
예제 #2
0
 private UserPreferences getUserPreferences() {
   return SilverpeasServiceProvider.getPersonalizationService().getUserSettings(getUserId());
 }