Forums de discussion

how to get Document Library Permissions

Kalyani Sadhu, modifié il y a 6 années.

how to get Document Library Permissions

New Member Envoyer: 1 Date d'inscription: 17/07/12 Publications récentes
Hello Team,

As i m trying to upgrade one of my portlets in which i was using the Document Library API to facilitate the customization of the Document Library Portlet.

I have used DLUtil.getEmailFileEntryAddedEnabled(PortletPreferences preferences) to retrieve add is allowed for that document library or not.

But i see in Liferay 7 these methods were been removed and i tried to see the BREAKING CHANGES and didnt find any references on this.

https://dev.liferay.com/develop/reference/-/knowledge_base/7-0/breaking-changes

Can anyone please let us know how should we be handling these changes. I have attached the code snippet used in my portlet.

Thanks
Seshu

Pièces jointes:

thumbnail
Andrew Jardine, modifié il y a 6 années.

RE: how to get Document Library Permissions

Liferay Legend Publications: 2416 Date d'inscription: 22/12/10 Publications récentes
I can see that there is a new method in the DLUtil in the 7 code base that is not in the 6.2 codebase. Maybe that's what you need to use now?

	public static Map<string, string> getEmailDefinitionTerms(
		RenderRequest request, String emailFromAddress, String emailFromName) {

		return getDL().getEmailDefinitionTerms(
			request, emailFromAddress, emailFromName);
	}

	public static Map<string, string> getEmailFromDefinitionTerms(
		RenderRequest request, String emailFromAddress, String emailFromName) {

		return getDL().getEmailFromDefinitionTerms(
			request, emailFromAddress, emailFromName);
	}</string,></string,>