You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by Michael Brackx <mi...@gmail.com> on 2015/07/14 09:58:08 UTC
trunk - policy
Hi,
On trunk CmisObject.getPolicies() returns null when there are no policies.
Before, with 0.13.0, it returned an empty list.
Michael
Re: trunk - policy
Posted by Michael Brackx <mi...@gmail.com>.
No, not a major problem.
Michael
On Tue, Jul 14, 2015 at 1:45 PM, Florian Müller <fm...@apache.org> wrote:
> Hi Michael,
>
> That's true. Is this a major problem for you?
> The 0.13.0 JavaDoc of getPolicies() did not specify what is returned when
> no policies are applied. An application had to be prepared to get null here.
>
> I had to change and align the behavior of getPolicies() when I fixed an
> issue with refreshing objects. Now all attributes of an object (renditions,
> relationships, ACL, and policies) behave in the same way if they are not
> set, not requested, or empty - they return null.
> The JavaDoc has been updated accordingly.
>
>
> - Florian
>
>
>
> Hi,
>>
>> On trunk CmisObject.getPolicies() returns null when there are no policies.
>> Before, with 0.13.0, it returned an empty list.
>>
>> Michael
>>
>
>
Re: trunk - policy
Posted by Florian Müller <fm...@apache.org>.
Hi Michael,
That's true. Is this a major problem for you?
The 0.13.0 JavaDoc of getPolicies() did not specify what is returned
when no policies are applied. An application had to be prepared to get
null here.
I had to change and align the behavior of getPolicies() when I fixed an
issue with refreshing objects. Now all attributes of an object
(renditions, relationships, ACL, and policies) behave in the same way if
they are not set, not requested, or empty - they return null.
The JavaDoc has been updated accordingly.
- Florian
> Hi,
>
> On trunk CmisObject.getPolicies() returns null when there are no
> policies.
> Before, with 0.13.0, it returned an empty list.
>
> Michael