Hi all,
In GovernanceArtifact there are two methods each to retrieve lifecyle name
and lifecycle namespace.

   1. getLCName / getLifecycleName
   2. getLCState / getLCState

There is no significant difference between the usage, both can be use to
retrieve the lifecycle name and state. But these methods are totally
different in their implementations.
getLCName and getLCState methods are the getter method for the lcName and
lcState attributes which are in GovernanceArtifact. These attributes are
initialized when we retrieve artifact instance and not changed afterwards.
getLifecycleName and getLifecycleState are methods which retrieve the
lifecycle name and lifecycle state directly from the database by calling
registry.get method.
So getLifecycleName and getLifecycleState is reliable but with the cost of
additional registry.get.

Additionally getLCName and getLCState ethods are using to list down the
governance artifacts in list view in Management Console. If we used
 getLifecycleName and getLifecycleState methods to list artifacts, then
there will be a considerable performance hit.
Also if we use the getLCName and getLCState to retrieve the lifecycle name
and state, then there will be a reliability issue.

AFAIU, Only solution for this is introduce BE pagination and use
getLifecycleName and getLifecycleState methods. So shall we keep methods
until we introduce the BE pagination? Any other solutions?

thanks
Eranda


*
*
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to