Example usage for com.liferay.portal.atom AtomUtil createCollectionLink

List of usage examples for com.liferay.portal.atom AtomUtil createCollectionLink

Introduction

In this page you can find the example usage for com.liferay.portal.atom AtomUtil createCollectionLink.

Prototype

public static String createCollectionLink(AtomRequestContext atomRequestContext, String collectionName) 

Source Link

Usage

From source file:com.liferay.document.library.internal.atom.FolderAtomCollectionAdapter.java

License:Open Source License

@Override
public AtomEntryContent getEntryContent(Folder folder, AtomRequestContext atomRequestContext) {

    AtomEntryContent atomEntryContent = new AtomEntryContent(AtomEntryContent.Type.XML);

    String srcLink = AtomUtil.createCollectionLink(atomRequestContext,
            FileEntryAtomCollectionAdapter.COLLECTION_NAME);

    srcLink += "?folderId=" + folder.getFolderId();

    atomEntryContent.setSrcLink(srcLink);

    return atomEntryContent;
}

From source file:com.liferay.portlet.documentlibrary.atom.FolderAtomCollectionAdapter.java

License:Open Source License

public AtomEntryContent getEntryContent(Folder folder, AtomRequestContext atomRequestContext) {

    AtomEntryContent atomEntryContent = new AtomEntryContent(AtomEntryContent.Type.XML);

    String srcLink = AtomUtil.createCollectionLink(atomRequestContext,
            FileEntryAtomCollectionAdapter.COLLECTION_NAME);

    srcLink += "?folderId=" + folder.getFolderId();

    atomEntryContent.setSrcLink(srcLink);

    return atomEntryContent;
}