Examples of PortalException


Examples of org.jasig.portal.PortalException

              try {
                  ssup.setFolderAttributeValue(tab.getId(), "externalId", tabExternalId);
                  ulStore.setStructureStylesheetUserPreferences(staticData.getPerson(),
                                editedUserProfile.getProfileId(), ssup);
              } catch (Exception e) {
                throw new PortalException("Failed to set the 'externalId' attribute of tab '" +
                            tabId + "' in StructureStylesheetUserPreferences", e);
              }
          } else {
            // tabExternalId is not specified... need to remove it if present...
            if (ssup.getDefinedFolderAttributeValue(tab.getId(), "externalId") != null) {
              // It *is* previously specified, and being removed...
                  try {
                    // Setting to null and saving will remove it from DB.
                      ssup.setFolderAttributeValue(tab.getId(), "externalId", null);
                      ulStore.setStructureStylesheetUserPreferences(staticData.getPerson(),
                                  editedUserProfile.getProfileId(), ssup);
                  } catch (Exception e) {
                    throw new PortalException("Failed to remove the 'externalId' attribute of tab '" +
                                tabId + "' in StructureStylesheetUserPreferences", e);
                  }             
            }
          }

      } else {
       
          throw new PortalException("attempt.to.rename.immutable.tab" +tabId);
      }
      saveLayout(false);
  }
View Full Code Here

Examples of org.jasig.portal.PortalException

            StructureStylesheetUserPreferences ssup = userPrefs.getStructureStylesheetUserPreferences();
            ssup.setFolderAttributeValue(newTab.getId(), "externalId", tabExternalId);
            int profileId = editedUserProfile.getProfileId();
            ulStore.setStructureStylesheetUserPreferences(staticData.getPerson(), profileId, ssup);
        } catch (Exception e) {
          throw new PortalException("Failed to set the 'externalId' attribute of tab '" +
                newTab.getId() + "' in StructureStylesheetUserPreferences", e);
        }
    }

    saveLayout(false);
View Full Code Here

Examples of org.jasig.portal.PortalException

        try
        {
            def = crs.getChannelDefinition(pubId);
        } catch (Exception e)
        {
            throw new PortalException("unable.to.load.channel.definition "
                    + id, e);
        }
        return def.getParameters();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.