Hi Ayyoob,

The actual use case for this is there are some cases where we should only
need to have the enrolment info of a particular device. In that case we
should be able to keep the reference of the device along with the enrolment
info. That's why we have used device bean again inside of the enrolment
info in order to keep the reference.

However, there is no need to keep the complete device object inside the
enrolment info since it only requires the device identifier to identify the
device. We will change it ASAP.
Thank you for pointing it out.

Regards,

On Wed, Jul 22, 2015 at 8:06 AM, Ayyoob Hamza <ayy...@wso2.com> wrote:

> Hi,
> In CDM, Device class[1] has an attribute called EnrolmentInfo[2]. What is
> the reason for having a Device attribute once again within the
> EnrolmentInfo class ?.
>
>
> [1]
> https://github.com/wso2/carbon-device-mgt/blob/master/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/Device.java
> [2]
> https://github.com/wso2/carbon-device-mgt/blob/a5a9d02deec97dfd69d04c3b5c747fd3215a1323/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/EnrolmentInfo.java
>
> Thanks,
> *Ayyoob Hamza*
> *Software Engineer*
> WSO2 Inc.; http://wso2.com
> email: ayy...@wso2.com cell: +94 77 1681010 <%2B94%2077%207779495>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
Milan Harindu Perera
Software Engineer
*WSO2, Inc*
(+94) 77 309 7088
lean . enterprise . middleware
<http://lk.linkedin.com/in/milanharinduperera>
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to