[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wsas-java-dev
Subject:    Re: [Dev] Getting the permitted operations related to a particular stage in App Factory
From:       Thilini Ishaka <thilini () wso2 ! com>
Date:       2013-01-31 5:12:11
Message-ID: CAN3YY5g97cAj3K7tZoP+chnoP0bM82Ys2KwUCbz-8-gv7WgxLg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Achala,

How about getting the transition events from the lifecycle config? I think
that's the best possible way to do this.

for eg: lifecycle config may have following transition events for
Development stage.
 <state id="Development">
             ........
                    <transition event="Promote" target="ReadyForQA"/>
                    <transition event="On Hold" target="OnHold"/>
</state>

Please check whether any operation in
CustomLifecyclesChecklistAdminService provides this
info/or other way we can get this events.

Thanks
Thilini

On Thu, Jan 31, 2013 at 9:54 AM, Achala Aponso <achala@wso2.com> wrote:

> As per the offline discussion with Manjula, the permission is decided in
> the perspective of the user and the current scheme does not allow to get
> the permitted operations for a particular stage. So, how about the option
> related to the semantic value in the configuration file.
>
> How should I proceed ... What will be the best approach for this.
>
> Thanks,
>
>
> On Thu, Jan 31, 2013 at 9:05 AM, Achala Aponso <achala@wso2.com> wrote:
>
>> Hi,
>>
>> According to the current permission scheme , is it possible to do the
>> $subject.
>>
>> After looking in to the current scheme , the permission is decided in the
>> perspective of the user.
>>
>> E.g: the user has permission for a particular stage
>>         the user has permission to a particular operation. (demote,
>> promote)
>>
>> Is there a way to check the necessary operations for a particular stage.
>>
>> E.g:: Retire option is available for the Production stage, (and the other
>> operations are not allowed ).
>>
>> Another option is to use a semantic value in the configuration file.
>> (appfactory.xml) . A semantic value can be used , in a scenario where the
>> "Production" stage is given another name.
>>
>> Thanks,
>>
>> --
>> Achala Aponso
>> Software Engineer; WSO2 Inc.; http://wso2.com,
>> Email: achala@wso2.com Mobile: +94 (77) 5234925
>> Blog: http://achala11.blogspot.com/
>>
>>
>
>
>
> --
> Achala Aponso
> Software Engineer; WSO2 Inc.; http://wso2.com,
> Email: achala@wso2.com Mobile: +94 (77) 5234925
> Blog: http://achala11.blogspot.com/
>
>
> _______________________________________________
> Dev mailing list
> Dev@wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>


-- 
*Thilini Ishaka
WSO2 Inc. http://wso2.com*
*bolg: thiliniishaka.blogspot.com*
*linkedin: http://lk.linkedin.com/in/thiliniishaka*
*twitter: https://twitter.com/#!/ThiliniIsh*

[Attachment #5 (text/html)]

Hi Achala,<div><br></div><div>How about getting the transition events from the \
lifecycle config? I think that&#39;s the best possible way to do this. \
</div><div><br>for eg: lifecycle config may have following transition events for \
Development stage.</div>

<div> &lt;state id=&quot;Development&quot;&gt;</div><div>             \
........<br><div>                    &lt;transition event=&quot;Promote&quot; \
target=&quot;ReadyForQA&quot;/&gt;  </div><div>                    &lt;transition \
event=&quot;On Hold&quot; target=&quot;OnHold&quot;/&gt; </div>

<div>&lt;/state&gt;</div><div><br></div><div>Please check whether any operation in \
<span style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">CustomLifecyclesChecklistAdmin</span><span \
style="font-size:13px;color:rgb(34,34,34);font-family:arial,sans-serif;background-color:rgb(255,255,255)">Service</span> \
provides this info/or other way we can get this events.</div>

<div><br></div><div>Thanks</div><div>Thilini</div><div><br></div><div \
class="gmail_quote">On Thu, Jan 31, 2013 at 9:54 AM, Achala Aponso <span \
dir="ltr">&lt;<a href="mailto:achala@wso2.com" \
target="_blank">achala@wso2.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">As per the offline discussion with Manjula, the permission is \
decided in the perspective of the user and the current scheme does not allow to get \
the permitted operations for a particular stage. So, how about the option related to \
the semantic value in the configuration file.<br>


<br>How should I proceed ... What will be the best approach for \
this.<br><br>Thanks,<div class="HOEnZb"><div class="h5"><br><br><div \
class="gmail_quote">On Thu, Jan 31, 2013 at 9:05 AM, Achala Aponso <span \
dir="ltr">&lt;<a href="mailto:achala@wso2.com" \
target="_blank">achala@wso2.com</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">Hi,<br><br>According to the current permission scheme , is it \
possible to do the $subject.<br><br>After looking in to the current scheme , the \
permission is decided in the perspective of the user.<br>


<br>E.g: the user has permission for a particular stage<br>
        the user has permission to a particular operation. (demote, \
promote)<br><br>Is there a way to check the necessary operations for a particular \
stage.<br><br>E.g:: Retire option is available for the Production stage, (and the \
other operations are not allowed ).<br>



<br>Another option is to use a semantic value in the configuration file. \
(appfactory.xml) . A semantic value can be used , in a scenario where the \
&quot;Production&quot; stage is given another name.<br><br>Thanks,<span><font \
color="#888888"><br>


<br>
-- <br>Achala Aponso<br>Software Engineer; WSO2 Inc.; <a href="http://wso2.com" \
target="_blank">http://wso2.com</a>,<br>Email: <a href="mailto:achala@wso2.com" \
target="_blank">achala@wso2.com</a> Mobile: <a href="tel:%2B94%20%2877%29%205234925" \
value="+94775234925" target="_blank">+94 (77) 5234925</a><br>



Blog: <a href="http://achala11.blogspot.com/" \
target="_blank">http://achala11.blogspot.com/</a><br> <br> \
</font></span></blockquote></div><br><br clear="all"><br>-- <br>Achala \
Aponso<br>Software Engineer; WSO2 Inc.; <a href="http://wso2.com" \
target="_blank">http://wso2.com</a>,<br>Email: <a href="mailto:achala@wso2.com" \
target="_blank">achala@wso2.com</a> Mobile: <a href="tel:%2B94%20%2877%29%205234925" \
value="+94775234925" target="_blank">+94 (77) 5234925</a><br>


Blog: <a href="http://achala11.blogspot.com/" \
target="_blank">http://achala11.blogspot.com/</a><br> <br> \
</div></div><br>_______________________________________________<br> Dev mailing \
list<br> <a href="mailto:Dev@wso2.org">Dev@wso2.org</a><br>
<a href="http://wso2.org/cgi-bin/mailman/listinfo/dev" \
target="_blank">http://wso2.org/cgi-bin/mailman/listinfo/dev</a><br> \
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><span \
style="color:black"></span><div><font color="#666666" \
style="color:rgb(136,136,136);border-collapse:collapse" size="1" face="&#39;times new \
roman&#39;, serif"><i>Thilini Ishaka<br>

<span style="border-collapse:separate">WSO2 Inc. <span \
style="border-collapse:collapse"><a href="http://wso2.com/" \
style="color:rgb(17,85,204)" \
target="_blank">http://wso2.com</a></span></span></i></font><div><div><div \
style="border-collapse:collapse;color:rgb(136,136,136)">

<font color="#666666" size="1" face="&#39;times new roman&#39;, serif"><i>bolg: <a \
href="http://thiliniishaka.blogspot.com/" style="color:rgb(17,85,204)" \
target="_blank">thiliniishaka.blogspot.com</a></i></font></div><div \
style="border-collapse:collapse;color:rgb(136,136,136)">

<font color="#666666" size="1" face="&#39;times new roman&#39;, serif"><i>linkedin: \
<a href="http://lk.linkedin.com/in/thiliniishaka" \
target="_blank">http://lk.linkedin.com/in/thiliniishaka</a></i></font></div><div><font \
color="#888888" size="1" face="&#39;times new roman&#39;, serif"><span \
style="border-collapse:collapse"><i>twitter: <a \
href="https://twitter.com/#!/ThiliniIsh" \
target="_blank">https://twitter.com/#!/ThiliniIsh</a></i></span></font></div>

</div></div></div><div><div></div></div>
</div>



_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic