mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
. Fixes for:
http://issues.alfresco.com/browse/WCM-218 http://issues.alfresco.com/browse/WCM-237 http://issues.alfresco.com/browse/AWC-991 http://issues.alfresco.com/browse/AWC-1078 git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@4969 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -554,7 +554,7 @@ public final class Utils
|
||||
/**
|
||||
* Enum representing the client URL type to generate
|
||||
*/
|
||||
public enum URLMode {HTTP_DOWNLOAD, HTTP_INLINE, WEBDAV, CIFS, SHOW_DETAILS, FTP}
|
||||
public enum URLMode {HTTP_DOWNLOAD, HTTP_INLINE, WEBDAV, CIFS, SHOW_DETAILS, BROWSE, FTP}
|
||||
|
||||
/**
|
||||
* Generates a URL for the given usage for the given node.
|
||||
@@ -665,12 +665,12 @@ public final class Utils
|
||||
DictionaryService dd = Repository.getServiceRegistry(context).getDictionaryService();
|
||||
|
||||
// default to showing details of content
|
||||
String outcome = "showDocDetails";
|
||||
String outcome = ExternalAccessServlet.OUTCOME_DOCDETAILS;
|
||||
|
||||
// if the node is a type of folder then make the outcome to show space details
|
||||
if (dd.isSubClass(node.getType(), ContentModel.TYPE_FOLDER))
|
||||
{
|
||||
outcome = "showSpaceDetails";
|
||||
outcome = ExternalAccessServlet.OUTCOME_SPACEDETAILS;
|
||||
}
|
||||
|
||||
// build the url
|
||||
@@ -680,6 +680,13 @@ public final class Utils
|
||||
break;
|
||||
}
|
||||
|
||||
case BROWSE:
|
||||
{
|
||||
url = ExternalAccessServlet.generateExternalURL(ExternalAccessServlet.OUTCOME_BROWSE,
|
||||
Repository.getStoreRef().getProtocol() + "/" +
|
||||
Repository.getStoreRef().getIdentifier() + "/" + node.getId());
|
||||
}
|
||||
|
||||
case FTP:
|
||||
{
|
||||
// not implemented yet!
|
||||
|
Reference in New Issue
Block a user