Hi Vijay

Generally, modifying the UI is not available through the user plugins.

However, you can implement your logic and throw 'CancelException' when
needed with status and message.

For example:

throw new CancelException("file is not permitted", 409);

When a user will try to deploy with HTTP client (such as curl), he will get
this:

Query:

curl -uadmin:password -T examples.desktop
http://localhost:8081/artifactory/libs-release-local/file.txt


Result:

{

  "errors" : [ {

    "status" : 409,

    "message" : "org.artifactory.exception.CancelException: file is not
permitted"

 } ]

When a user will try to deploy through the UI, you will see something
similar to the attached screenshot.


[image: Inline image 2]


Hope this helps.
Shay.


On Thu, Feb 20, 2014 at 3:48 AM, vmungara [via Artifactory] <
[email protected]> wrote:

> bump!!
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://forums.jfrog.org/is-there-a-way-to-customize-GUI-in-Artifactory-Pro-tp7579580p7579633.html
>  To start a new topic under Artifactory - Users, email
> [email protected]
> To unsubscribe from Artifactory, click 
> here<http://forums.jfrog.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2380776&code=c2hheWJAamZyb2cuY29tfDIzODA3NzZ8MTU0NDg2MTQ3OA==>
> .
> NAML<http://forums.jfrog.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>


exception.png (318K) 
<http://forums.jfrog.org/attachment/7579643/0/exception.png>




--
View this message in context: 
http://forums.jfrog.org/is-there-a-way-to-customize-GUI-in-Artifactory-Pro-tp7579580p7579643.html
Sent from the Artifactory - Users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Managing the Performance of Cloud-Based Applications
Take advantage of what the Cloud has to offer - Avoid Common Pitfalls.
Read the Whitepaper.
http://pubads.g.doubleclick.net/gampad/clk?id=121054471&iu=/4140/ostg.clktrk
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to