psdi.webclient.beans.asset

Class DynamicAssetUtil

  • java.lang.Object
    • psdi.webclient.beans.asset.DynamicAssetUtil


  • public class DynamicAssetUtil
    extends java.lang.Object
    This is a utility class that has helper methods to help facilitate the functionality from the pop up detail menus in the Relationships table inside the Relationships tab.
    • Constructor Detail

      • DynamicAssetUtil

        public DynamicAssetUtil()
    • Method Detail

      • isOwnerSelectActionMenu

        public static boolean isOwnerSelectActionMenu(WebClientEvent event)
        Determine if the owner is from the "Select Actions" menu. You should call this the first time a Databean is opened in either the initialize() or getMboSetRemote() methods, otherwise event.getSourceControlInstance() will return something other than what was the original owner.
        Parameters:
        event - the current event
        Returns:
        true if the owner is of type psdi.webclient.controls.ToolbarCombobox, otherwise false
      • getAssetNumFromEvent

        public static java.lang.String getAssetNumFromEvent(WebClientEvent event)
        Get the asset number the user selected from the menu popup in the Relationships table Either Source Asset or Target Asset
        Parameters:
        event - the current event
        Returns:
        the asset number
      • getAssetRemoteForAssetNum

        public static MboSetRemote getAssetRemoteForAssetNum(WebClientSession wcs,
                                                             java.lang.String assetNum)
                                                      throws MXException,
                                                             java.rmi.RemoteException
        Get an AssetRemote implementation for a given asset number, restricted to site id
        Parameters:
        wcs - the current session
        assetNum - the asset number to populate the AssetRemote with
        Throws:
        MXException
        java.rmi.RemoteException