Class ComponentService

    • Constructor Detail

      • ComponentService

        public ComponentService()
    • Method Detail

      • setRemoteInformations

        public void setRemoteInformations​(Component component,
                                          boolean bCache)
                                   throws fr.paris.lutece.util.httpaccess.HttpAccessException,
                                          IOException
        Description copied from interface: IComponentService
        Sets the remote informations.
        Specified by:
        setRemoteInformations in interface IComponentService
        Parameters:
        component - the component
        bCache - the b cache
        Throws:
        fr.paris.lutece.util.httpaccess.HttpAccessException - the http access exception
        IOException - Signals that an I/O exception has occurred.
      • getLastReleaseVersion

        public String getLastReleaseVersion​(String strArtifactId)
        Returns the LastAvailableVersion
        Specified by:
        getLastReleaseVersion in interface IComponentService
        Parameters:
        strArtifactId - the str artifact id
        Returns:
        The LastAvailableVersion
      • setLastReleaseVersion

        public void setLastReleaseVersion​(String strArtifactId,
                                          String strVersion)
        set the LastAvailableVersion set The LastAvailableVersion
        Specified by:
        setLastReleaseVersion in interface IComponentService
        Parameters:
        strArtifactId - the str artifact id
        strVersion - the str version
      • setLastReleaseNextSnapshotVersion

        public void setLastReleaseNextSnapshotVersion​(String strArtifactId,
                                                      String strVersion)
        set the LastAvailableVersion set The LastAvailableVersion
        Specified by:
        setLastReleaseNextSnapshotVersion in interface IComponentService
        Parameters:
        strArtifactId - the str artifact id
        strVersion - the str version
      • release

        public int release​(Component component,
                           Locale locale,
                           fr.paris.lutece.portal.business.user.AdminUser user,
                           javax.servlet.http.HttpServletRequest request,
                           boolean forceRelease)
        Description copied from interface: IComponentService
        Release.
        Specified by:
        release in interface IComponentService
        Parameters:
        component - the component
        locale - the locale
        user - the user
        request - the request
        forceRelease - the force release
        Returns:
        context id
      • release

        public int release​(Component component,
                           Locale locale,
                           fr.paris.lutece.portal.business.user.AdminUser user,
                           javax.servlet.http.HttpServletRequest request)
        Description copied from interface: IComponentService
        Release.
        Specified by:
        release in interface IComponentService
        Parameters:
        component - the component
        locale - the locale
        user - the user
        request - the request
        Returns:
        context id
      • getSearchComponent

        public fr.paris.lutece.portal.web.util.LocalizedPaginator<Component> getSearchComponent​(String strSearch,
                                                                                                javax.servlet.http.HttpServletRequest request,
                                                                                                Locale locale,
                                                                                                String strPaginateUrl,
                                                                                                String strCurrentPageIndex)
        Description copied from interface: IComponentService
        Gets the search component.
        Specified by:
        getSearchComponent in interface IComponentService
        Parameters:
        strSearch - the str search
        request - the request
        locale - the locale
        strPaginateUrl - the str paginate url
        strCurrentPageIndex - the str current page index
        Returns:
        local paginator
      • isErrorSnapshotComponentInformations

        public boolean isErrorSnapshotComponentInformations​(Component component,
                                                            String strComponentPomPath)
        Description copied from interface: IComponentService
        Checks if is error snapshot component informations.
        Specified by:
        isErrorSnapshotComponentInformations in interface IComponentService
        Parameters:
        component - the component
        strComponentPomPath - the str component pom path
        Returns:
        boolean
      • IsSearchComponentAuthorized

        public static boolean IsSearchComponentAuthorized​(fr.paris.lutece.portal.business.user.AdminUser adminUser)