/*
* Copyright (C) 2005-2010 Alfresco Software Limited.
*
* This file is part of Alfresco
*
* Alfresco is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Alfresco is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Alfresco. If not, see
* @see SysAdminParamsImpl#setAlfrescoHost(String) * @see SysAdminParamsImpl#setShareHost(String) */ public String getShareUrl() { return UrlUtil.getShareUrl(services.getSysAdminParams()); } /** * This method returns a URL which resolves to the configured Alfresco Share site URL. *
* @see SysAdminParamsImpl#setAlfrescoHost(String) * @see SysAdminParamsImpl#setShareHost(String) * @param siteShortName the shortName of the Site to build URL for * @return the Site or null if no such site exists */ public String getShareSiteUrl(String siteShortName) { StringBuilder result = new StringBuilder(UrlUtil.getShareUrl(services.getSysAdminParams())); result.append("/page"); if (siteShortName != null) { result.append("/site/").append(siteShortName); } return result.toString(); } }