Class InsertService

  • All Implemented Interfaces:
    Localizable, fr.paris.lutece.portal.service.rbac.RBACResource

    public class InsertService
    extends java.lang.Object
    implements fr.paris.lutece.portal.service.rbac.RBACResource, Localizable
    The insert Service
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String RESOURCE_TYPE  
    • Constructor Summary

      Constructors 
      Constructor Description
      InsertService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getActionBeanString()
      Returns the ActionBean
      java.lang.String getId()
      Returns the insert service Id
      java.lang.String getLabel()
      Returns the insert service label
      java.lang.String getLabelKey()
      Returns the insert service label
      java.lang.String getName()
      Returns the insert service name
      java.lang.String getNameKey()
      Returns the insert service name
      java.lang.String getPluginName()
      Return the name of the plugin
      java.lang.String getResourceId()
      Returns the resource Id of the current object
      java.lang.String getResourceTypeCode()
      Returns the Resource Type Code that identify the resource type
      InsertServiceSelectionBean getSelectionActionBean()
      Returns the Bean to select an object
      java.lang.String getSelectorUI​(javax.servlet.http.HttpServletRequest request)
      Get the UI to select an object
      boolean isEnabled()
      Tells if the insertservice is enable (plugin activated).
      void setActionBeanClassName​(java.lang.String strSelectionBean)
      Register the name of the Action Bean associated with the service
      void setActionBeanString​(java.lang.String strActionBean)
      Set the ActionBean of the insert service
      void setId​(java.lang.String strId)
      Set the Id of the insert service
      void setLabelKey​(java.lang.String strLabelKey)
      Set the name of the insert service
      void setLocale​(java.util.Locale locale)
      Implements Localizable
      void setNameKey​(java.lang.String strNameKey)
      Set the name of the insert service
      void setPluginName​(java.lang.String strPluginName)
      Set the plugin name of the insert service
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • InsertService

        public InsertService()
    • Method Detail

      • getId

        public java.lang.String getId()
        Returns the insert service Id
        Returns:
        The Id as a String
      • setId

        public void setId​(java.lang.String strId)
        Set the Id of the insert service
        Parameters:
        strId - the id
      • getNameKey

        public java.lang.String getNameKey()
        Returns the insert service name
        Returns:
        The name key as a String
      • getName

        public java.lang.String getName()
        Returns the insert service name
        Returns:
        The name as a String
      • setNameKey

        public void setNameKey​(java.lang.String strNameKey)
        Set the name of the insert service
        Parameters:
        strNameKey - the label
      • getLabelKey

        public java.lang.String getLabelKey()
        Returns the insert service label
        Returns:
        The label key as a String
      • getLabel

        public java.lang.String getLabel()
        Returns the insert service label
        Returns:
        The label as a String
      • setLabelKey

        public void setLabelKey​(java.lang.String strLabelKey)
        Set the name of the insert service
        Parameters:
        strLabelKey - the label
      • getActionBeanString

        public java.lang.String getActionBeanString()
        Returns the ActionBean
        Returns:
        The ActionBean as a String
      • setActionBeanString

        public void setActionBeanString​(java.lang.String strActionBean)
        Set the ActionBean of the insert service
        Parameters:
        strActionBean - the ActionBean
      • setActionBeanClassName

        public void setActionBeanClassName​(java.lang.String strSelectionBean)
        Register the name of the Action Bean associated with the service
        Parameters:
        strSelectionBean - The ActionBean to use
      • getPluginName

        public java.lang.String getPluginName()
        Return the name of the plugin
        Returns:
        The name of the plugin
      • setPluginName

        public void setPluginName​(java.lang.String strPluginName)
        Set the plugin name of the insert service
        Parameters:
        strPluginName - the plugin name
      • getSelectorUI

        public java.lang.String getSelectorUI​(javax.servlet.http.HttpServletRequest request)
        Get the UI to select an object
        Parameters:
        request - The Http request.
        Returns:
        HTML code of the page as string
      • isEnabled

        public boolean isEnabled()
        Tells if the insertservice is enable (plugin activated).
        Returns:
        Returns the state of the insert service : enable or disable
      • getResourceTypeCode

        public java.lang.String getResourceTypeCode()
        Returns the Resource Type Code that identify the resource type
        Specified by:
        getResourceTypeCode in interface fr.paris.lutece.portal.service.rbac.RBACResource
        Returns:
        The Resource Type Code
      • getResourceId

        public java.lang.String getResourceId()
        Returns the resource Id of the current object
        Specified by:
        getResourceId in interface fr.paris.lutece.portal.service.rbac.RBACResource
        Returns:
        The resource Id of the current object
      • setLocale

        public void setLocale​(java.util.Locale locale)
        Implements Localizable
        Specified by:
        setLocale in interface Localizable
        Parameters:
        locale - The current locale