Class ComponentEntity

  • All Implemented Interfaces:
    Serializable, WebEntity

    public class ComponentEntity
    extends StructureElementEntity<ComponentEntity>
    The component instance light entity is a ComponentInstLight object that is exposed in the web as an entity (web entity). As such, it publishes only some of its attributes. It represents a ComponentInstLight in Silverpeas plus some additional information such as the URI for accessing it.
    Author:
    Yohann Chastagnier
    See Also:
    Serialized Form
    • Constructor Detail

      • ComponentEntity

        protected ComponentEntity()
    • Method Detail

      • createFrom

        public static ComponentEntity createFrom​(ComponentInstLight component,
                                                 String language)
        Creates a new ComponentInstLight entity from the specified ComponentInstLight.
        Parameters:
        component - the ComponentInstLight to entitify.
        language - the current language.
        Returns:
        the entity representing the specified ComponentInstLight.
      • getName

        public String getName()
        Gets the name of the component.
        Returns:
        the name of the component.
      • getUrl

        public String getUrl()
        Gets the url of the component.
        Returns:
        the url of the component.