Interface SilverpeasComponent

    • Method Detail

      • getByInstanceId

        static Optional<SilverpeasComponent> getByInstanceId​(String componentInstanceId)
        Gets a silverpeas component from the specified component instance identifier.
        Parameters:
        componentInstanceId - a component instance identifier as string.
        Returns:
        an optional silverpeas component of SilverpeasComponent.
      • getName

        String getName()
        Gets the type of the component.
        Returns:
        the application name.
      • getLabel

        String getLabel​(String lang)
        Gets the value of the label property according to a given language.
        Parameters:
        lang - the language into which the label must be translated.
        Returns:
        possible object is Multilang
      • getDescription

        String getDescription​(String lang)
        Gets the value of the description property according to a given language.
        Parameters:
        lang - the language into which the description must be translated.
        Returns:
        possible object is Multilang
      • isPersonal

        default boolean isPersonal()
        Indicates if the component instance is a personal one.
        A personal component instance is linked to a user.
        Returns:
        true if it is a personal one, false otherwise.
      • isInheritSpaceRightsByDefault

        default boolean isInheritSpaceRightsByDefault()
        Gets the value of the inheritSpaceRights property.
      • isPublicByDefault

        default boolean isPublicByDefault()
        Gets the value of the publicByDefault property.
      • isVisible

        boolean isVisible()
        Gets the value of the visible property.
      • getParameters

        List<Parameter> getParameters()
        Gets the instance parameters of the Silverpeas component.
        Returns:
        list of Parameter
      • hasParameterDefined

        boolean hasParameterDefined​(String parameterName)
        Indicates if a parameter is defined which name is equal to the given method parameter.
        Parameters:
        parameterName - the parameter name to perform.
        Returns:
        true if a parameter is defined behind the specified method parameter, false otherwise.
      • getSortedParameters

        List<Parameter> getSortedParameters()
        Gets same parameters as getParameters(), sorted by order and name.
        Returns:
        sorted parameters.
      • getGroupsOfParameters

        List<GroupOfParameters> getGroupsOfParameters()
        Gets groups of parameters.
        Returns:
        the list of groups of parameters.
      • isWorkflow

        default boolean isWorkflow()
        Is this component is a workflow?
        Returns:
        true if this component satisfies the behavior of a workflow, that is to say if it defines a workflow. False if it is a regular Silverpeas. application.
      • isTopicTracker

        default boolean isTopicTracker()
        Is this component is a topic tracker?
        Returns:
        true if this component satisfies the behavior of a topic tracker.