コード例 #1
0
 public TaggableActivity getActivity(String activityRef, TaggingProvider provider) {
   // We aren't picky about the provider, so ignore that argument.
   TaggableActivity activity = null;
   if (checkReference(activityRef)) {
     WizardReference reference = WizardReference.getReference(activityRef);
     if (reference != null) {
       WizardPageDefinition def =
           wizardManager.getWizardPageDefinition(idManager.getId(reference.getId()), true);
       activity = getActivity(def);
     }
   }
   return activity;
 }
コード例 #2
0
 public String getContext(String ref) {
   String context = null;
   WizardReference reference = WizardReference.getReference(ref);
   if (reference != null) {
     if (WizardReference.REF_DEF.equals(reference.getType())) {
       context =
           wizardManager.getWizardPageDefinition(idManager.getId(reference.getId())).getSiteId();
     } else {
       context =
           matrixManager
               .getWizardPage(idManager.getId(reference.getId()))
               .getPageDefinition()
               .getSiteId();
     }
   }
   return context;
 }