コード例 #1
0
 @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());
 }