Hide an extension plugin on certain properties? How can we achieve this?

I want to hide some portlets on the section view summary based on a particular property that comes from the PropertyProvider adapter class. Can you please help with that?

I refer to the following example to hide the summary portlet for the rack section, but his does not work. Please tell where I was wrong.

< id = "com.vmware.samples.rack.RackSummaryView extension" >

< extendedPoint > com.vmware.samples.rack.summarySectionViews < / extendedPoint >

< object >

< name > Test Portlet < / name >

< componentClass className="com.vmware.samples.chassisrackui.views.RackSummaryView"/ >

< / object >

< metadata >

< objectType > samples: Rack < / Type_objet >

conditions of <>

< com.vmware.data.query.PropertyConstraint >

chassis of < propertyName > < / propertyName >

equal to < comparator > < / comparator >

< comparableValue >

false < string > < / String >

< / comparableValue >

< /com.vmware.data.query.PropertyConstraint >

< / conditions >

< / metadata >

< / extension >

Filtering, hide/show a vSphere web plugin extension of the customer on the basis of a custom property for
objects of vSphere

Since week last two that I'm trying to figure out how can we filter the extensions point in vsphere client of web based on custom property coming from java services

I'm tempted after the thing to hide/filter summary portlet in vsphere client of web for the data store object type.

This, to register the property in the property provider adapter class. This property value will be back based on the substitution of this class which is getProperties() that return the result set.

Service of Java code:

package com.test.adapters;

import java.util.ArrayList;

import java.util.List;

import java.util.Random;

import com.vmware.vim25.InvalidPropertyFaultMsg;

import com.vmware.vim25.RuntimeFaultFaultMsg;

com.vmware.vise.data.query import. *;

/ public class TestPropertyAdpater implements PropertyProviderAdapter {}

private static final String CUSTOMPROPERTY = "customProperty".

public TestPropertyAdpater (DataServiceExtensionRegistry extensionRegistry) {}

VmTypeInfo TypeInfo = new TypeInfo();

vmTypeInfo.type = "Datastore";

vmTypeInfo.properties = new String() {CUSTOMPROPERTY};

TypeInfo [] providerTypes = new [] {vmTypeInfo} TypeInfo.

extensionRegistry.registerDataAdapter (this, providerTypes);

}

@Override

public ResultSet getProperties (PropertyRequestSpec propertyRequest) {}

ResultSet result = new ResultSet();

try {}

List resultItems = new ArrayList ();

If (propertyRequest.properties! = null)

(& propertyRequest.properties.length > 0) {}

String [] listPropertyNames = propertyRequest.properties [0] .propertyNames;

for (String propertyName: listPropertyNames) {}

for (object dsRef: propertyRequest.objects) {}

ResultItem resultItem = getDsProperties (dsRef,

propertyName);

If (resultItem! = null) {}

resultItems.add (resultItem);

}

}

}

} else

result. Items = resultItems.toArray (new [] {} ResultItem);

} catch (Exception e) {}

Passing the exception the result allows display an error

notification

in the user interface of the client.

result. Error = e;

}

return the result;

}

Private ResultItem getDsProperties (Object dsRef, String propertyName)

throws InvalidPropertyFaultMsg, {RuntimeFaultFaultMsg}

ResultItem ri = new ResultItem();

ri.resourceObject = dsRef;

PropertyValue pvCustomProperty = new PropertyValue();

pvCustomProperty.resourceObject = dsRef;

pvCustomProperty.propertyName = CUSTOMPROPERTY;

pvCustomProperty.value = new Random () .nextBoolean (); / / Here taken random Boolean value which will take in plugin.xml. The real return, you can filter the extension point using the property

LAUGHED. Properties = new [] {pvCustomProperty} PropertyValue;

return of ri;

}

}

Flex code plugin.xml:


For the filter, hide/show summary portlet on basis of the property that comes from the dam (Data Access Manager library) in our code of the property is "customProperty" which we recorded to retrieve dynamic Boolean value since appearing above the java code.

This property, we put in the tag of propertyName in plugin.xml.

vsphere.core.datastore.summarySectionViews

Portlet test

Data store

customProperty

IS EQUAL TO

true

AND

This works perfectly for the version of the web client 5.1 and 5.5.

Thank you laurentsd

Tags: VMware

Similar Questions

  • I would change all the transitions at once from 1 to 2 - How can I achieve this goal

    I would like to change film inside all transitions by default 1 or 2 - How can I do?

    In iMovie, preferences, you can set the default transition duration 2 or what you want. Preferences are in the iMovie menu item.

  • user logon name determines the page that opens, how can I achieve this?

    I have the basic 101 for all users login page.

    Once the user logs on, if the username is "guest", I would like to open page 2006. If the user name is 'Member', I would like to open page 2001.

    Or another way to look at it with privileges. The guest has the privilege of 'Edit', the Member has the privilege of "administrator."

    So, if a client connects to the 101 page, the application sees the privilege of 'Edit' and opens the 2006 page.

    If a member connects to the 101 page, the application sees the 'administrator' privilege and opens the 2001 page.

    Can someone tell me how I can accomplish this? Maybe is there another way that might be better to achieve this?

    Thank you
    Maggie

    This city offers is the right idea, but you must also disable deep linking. So here's how I'd do:

    1 create a PL/SQL process on the login page that fires before the login process that contains a statement:

    : FSP_AFTER_LOGIN_URL: = null;

    2. change the connection process

    declare l_page varchar2(30);beginif :P101_USERNAME = 'guest' then l_page := '2006';elsif :P101_USERNAME = 'member' then l_page := '2001';else l_page := '1'; -- default home pageend if;wwv_flow_custom_auth_std.login(    P_UNAME       => :P101_USERNAME,    P_PASSWORD    => :P101_PASSWORD,    P_SESSION_ID  => v('APP_SESSION'),    P_FLOW_PAGE   => :APP_ID||':'||l_page    );end;
    

    3. create permission schemes to prevent some users from pages that they are not allowed to use.

    Of course the test for specific usernames in the code above could be made more generic by taking the username and determine which group he belongs and assigning after correct connection based on the Group page.

    Scott

  • I would like to use Safari AND firefox, how can I achieve this?

    For some things that I have to be able to use Safari and would like to know if you can help me to do it without getting rid of Firefox.
    Thanks, Bneeds

    Which browser is currently configured as the default browser?

    If Firefox is set as the default browser, then it is possible that the links that open the default browser will now open Firefox.

    You may need to reset the default browser Safari.

    • Safari > Preferences > general > default Web browser > 'default web browser '.
  • How can I achieve this effect in Photoshop?

    You see how the edges are a little darker? I forgot how to do this.

    18-red-round-corner-business-card.jpg

    Use an inner glow as a layer Style and change the blending mode that darkens as Multiple, or color + etc.. Inner glow retraces all the edges, while the inner shadow does that on both sides. This allows the less not destructive in order to adjust and test to your final result.

  • How can I achieve this effect in DW?

    Hi, I was looking for inspiration for a restaurant website and came across this model of restaurant Vietnamese - see below.  I would like to know if it is possible to create the slide show + scroll effects in this site of model on the pages of menu with Dreamweaver or Muse.  See the "Dish of the day" feature please.

    http://www.TemplateMonster.com/demo/53840.html

    brushwipe wrote:

    Thanks for all the comments. Great advice, but I liked the way that

    open images.

    Theres no parallax effect is in the url, show you that I can see.

    http://www.TemplateMonster.com/demo/53840.html

    No background image changes as you scroll down - it's just a big image:

    http://livedemo00.template-help.com/wt_53840/images/BG01.jpg

    I don't know what that uses as I have not dug deep enough code, but some css animation or jquery is the element in place at a certain height of the browser when you scroll

  • How can I achieve this effect?

    Skjermbilde 2012-01-26 kl. 10.52.12 PM.png

    Hello world! I ve been see this effect a lot lately and I would really like to know how.

    If you don't see it in the image I have uploaded, you can go to basware.com and watch.
    And if you don't know what im referring to effect, it's the texture in dotted lines in the photo.
    Moreover I also would like to know how to add a color to a photo and just bring out blacks, as they´ve does on their photo.

    Thanks in advance to all participants and please excuse my bad English

    Baardkolstad probably means that the model of halftone...

    I forgot where the functionality of dithering is in Photoshop (maybe filter - Pixelate,?) because that I do not use it, but the aid system must be able to turn up.

    -Christmas

  • How can I achieve this layout? DIV inside div tags

    Hello world
    I m beginner in web design. I am trying to create a layout like this
    http://ImageShack.us/photo/my-images/717/layoutproblem.jpg/

    But I m having difficulties to give the position,height, float and display the properties for the divs.
    Please note that there are the borders of the image on the left and right side of the div content and bottommargin.

    Thanks in advance.

    Two divs, two wide explicit and both floated left for the gallery and details.  Space them margins.

    Follow that with a single div width of the container for technical details and possibly the content.  No required positioning.  I'm not even sure that a wrapper is required because you can give the body tag with a width in CSS and use left/right auto margins to center the content.

    Why wouldn't work?

  • I don't want passwords on my Thunderbird e-mail account. How can I achieve this? Sys running. 8.1

    For a long time, I have been using my Thunderbird e-mail account without password. All of a sudden it is requiring a password once again, and I can't seem to bypass. Any ideas?

    abcja said

    For a long time, I have been using my Thunderbird e-mail account without password. All of a sudden it is requiring a password once again, and I can't seem to bypass. Any ideas?

  • I would like to put my hard drive WD Scorpio Black of my 'old' laptop in another. How can I achieve this?

    I have a laptop Gateway NV52 purchased Summer 2009. It had Windows Vista on it. A year ago, the Seagate 320 GB HDD crashed. I bought two a new HDD (an excellent Western Digital Scorpio Black, 500 GB) and Windows 7 Home Premium, I always have the discs and serial number for (so it isn't a pre-installed Windows version). I just bought a HP ProBook s 4530, which does not come with a 500 GB hard drive, but I don't want to have to re - install tons of software and games I have for work and pleasure. My job requires a lot of software, that which some I have to shell out hundreds of dollars to reinstall it on a new hard drive, since there is no way to disable my current drive. I could get in touch with the companies and ask permission to re - install with a new serial number and whatnot, but it's a lot of time that I don't have, and I heard co-workers that they often will not accept, because of rising rates of piracy.

    In any case, I'm wanting to know if it would be possible to disable Windows 7 on my current computer and then turn it back on with my serial number on the new. If I do this, Windows will then set up the new hardware? The hard drive I was expensive and there magnificent execution, better than one that is preinstalled on the HP. I don't want to give it up. I thought I could just put the new hard drive for HP in the old computer, reformat the hard drive and buy and install another version of 7 on it so that I can sell them.

    If someone can advise, it would be much appreciated!

    I'm not sure of the legal ramifications of what you want to do, but if the HP Win7 on it, then you actually have two licensed copies win7, one on each drive.
    The problem you'll encounter is the difference of between the bridge and the HP drivers. You might be able to do is to download all the drivers from HP on the WD, develop into folders so you can see the configuration and/or .inf files, put it in the ch, then start in safe mode. Then when it asks for drivers, you can point to the installation files.

    My guess is that you won't have much chance to do that. The only time I had this success was on the upgrade of motherboards that were very similar to the chipsets and same brand (to AMD, Intel for Intel AMD) processors. If there are different processors, all bets are open whether or not it will succeed.
    If all that you are missing are the keys to setup for the software you have installed on the bridge, there are programs on the internet that will allow you to find the keys to everything you have. You might want to try first before swapping discs and possibly making it useless for a laptop.

    Good luck with what stage you decide to take, but it may be easier in the long run to simply install the software on the new. If you really want the WD drive in HP, you can image the two discs with a program like Acronis True Image or Macrium Reflect which allows you to create and restore images on a CD to boot. Create images of each disk on an external drive, swap the drives in laptops, then boot from the CD of imaging and restore the image of HP on the WD drive which is now in the HP, then reinstall your programs.
    And a good time was had by all :-)

    SC Tom

  • How can I achieve this effect for blue bike?

    Hi all

    In Adobe Illustrator CC 2015 can what I use to get the blue as on the coins of this bike?

    Thank younyc-citi-bike-share-5.png

    You can apply the pixelation effect to a very low resolution as ppi 2 on an object with a gradient.

    But you have to turn large preview GPU (Cmd or Ctrl E) to see the effect, as it will print, export or recorded.

  • How can I achieve this effect on my drop shadow text in Illustrator? (Example)

    I am interested in the effect of shade on the word Smores (shadow consists of parallel lines instead of a thick line)

    Thank you for any input!

    http://www.thedieline.com/resource/11_2_2013_WilliamsSonomaHoliday2013_4.jpg?fileId=23825068

    Hello Brandon.

    I am attaching a file (below) that is another way to get the effect you're after, hope, you can follow my instructions, the effects are at the base, but you can customize the attributes to your own style of years requirements.

    I work with Illustrator CS5.1 and I guess that you know your way around the base of the Illustrator

    Hope it's useful.

  • How can I achieve this

    My dear

    If I have the query like this

    Select deptno, sum (count (*)) result (order by deptno)
    WCP
    Deptno group

    cause for example

    DEPTNO - result

    10 3
    20 8
    30 14

    Ok

    I would like to improve this query to give me the value

    for example

    DEPTNO - results - before_value
    10-----------------3 ------------- 0
    20-----------------8--------------3
    30-----------------14------------8

    and so on

    Thanks in advance

    Try this,

    SELECT deptno, result, LAG (result,1,0) OVER (ORDER BY deptno) before_value
      FROM (SELECT deptno, SUM (COUNT (*)) OVER (ORDER BY deptno) result
              FROM emp
            GROUP BY deptno)
    
    OUTPUT
    ------------------
    
    SQL> SELECT deptno, result, LAG (result,1,0) OVER (ORDER BY deptno) before_value
      2    FROM (SELECT deptno, SUM (COUNT (*)) OVER (ORDER BY deptno) result
      3            FROM emp
      4          GROUP BY deptno);
    
        DEPTNO     RESULT BEFORE_VALUE
    ---------- ---------- ------------
            10          3            0
            20          8            3
            30         14            8
    
    SQL> 
    

    G.

  • How can I recover this database?

    The computer that hosts my Oracle 10 g XE Server finally broke down... Luckily I have a backup of the system files, including my Oraclexe folder. I bought a new system and need to reinstall 10gXE oracle database again. I have an urgent need to convert the facility to resemble the database in the system, I lost. How can I achieve this?
    Thanks in advance for your help

    GSun wrote:
    Best way to recover the database from my own experience is to generate and keep your DOF of the database and the table of backup data using the export utility!

    And what happens when you lose your database business 6 hours after taking this export? You've lost only 6 hours of transactions.

    No, the best way to recover a database must follow the procedures documented in the Guide of the backup and recovery at http://docs.oracle.com/cd/E11882_01/backup.112/e10642/toc.htm
    And that starts with the use of rman to back up the database AND the archivelogs.

  • Firefox is remove my development extensions loading firefox, how can I stop this, I lose work

    I develop Firefox addons. Since the update to Firefox 18.0 removes my development extensions/files in the profile folder loading firefox, how can I stop this, I lose the job!

    It seems if being arrested do not know if it was a version update or disabling encryption EFS in Windows of profile records. I noticed EFS seems to cause problems in general.

Maybe you are looking for