-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider migration to dl-repository-shared layer #15
Comments
HI @izaera Looks promising, thanks! |
If you finally decide to apply it, ask me and I will give you a brief introduction on how it is supposed to work. Basically what I did is separating the portal stuff from the external repository stuff, so that you only have to deal with the external repository and not with Liferay portal. For example, when using dl-repository-shared you don't need to work with Liferay ids, only with the ones from your external repo. You don't even need to manipulate the RepositoryEntry table because it is not referenced anywhere in the interfaces you need to implement. You just provide an implementation for the file, folder and version object, and another one with the operations the repository support and that's all. |
+100 This looks very very good. I had to implement that myself, all the mapping. Btw. does it support DL permissions? Once the IDs are on the framework side the implementation cannot work with resource permissions. |
I'm not sure of what you mean. There's a place where you have to map method containsPermission() receives an ExtRepositoryPermission, which On 2/2/15 11:42, Tomáš Polešovský wrote:
|
I mean - portal admin creates custom role that is able to create DL -- tom + On Mon, Feb 2, 2015 at 11:47 AM, Ivan Zaera [email protected]
|
No idea :-(. I would have to check it in the code. I suppose the answer On 2/2/15 11:52, Tomáš Polešovský wrote:
|
Hi @topolik:
I didn't know you had created this connector. Looks good and it's a great idea.
I was wondering if you could be interested in looking at dl-repository-shared layer, which is a JAR file I wrote to make implementation of connectors much easier and maintainablec.
It's in here: https://github.com/liferay/liferay-plugins/tree/master/shared/dl-repository-shared
You can see how it is used in Documentum and Sharepoint connectors in liferay-plugins-ee.
If some day you consider to migrate to this new layer don't hesitate to ask me for any advice.
Cheers,
Ivan
The text was updated successfully, but these errors were encountered: