Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-85633

Can't access on com.liferay.portal.store.file.system.configuration.FileSystemStoreConfiguration

    Details

    • Type: Bug
    • Status: Verified
    • Resolution: Unresolved
    • Affects Version/s: 7.0.4 CE GA5
    • Fix Version/s: None
    • Component/s: Portal Configuration
    • Labels:
    • Fix Priority:
      2

      Description

      Hi,

      I have tried to read the configuration of com.liferay.portal.store.file.system.configuration.FileSystemStoreConfiguration into my custom module.

      (following this guide): https://dev.liferay.com/en/develop/tutorials/-/knowledge_base/7-0/implementing-configuration-actions#referencing-your-configuration-from-your-application-class

      I have searched in the liferay source the module that contain this class:

      Liferay Portal Store File System (363)
      --------------------------------------
      Manifest-Version = 1.0
      Bnd-LastModified = 1499971779997
      Bundle-ManifestVersion = 2
      Bundle-Name = Liferay Portal Store File System
      Bundle-SymbolicName = com.liferay.portal.store.file.system
      Bundle-Vendor = Liferay, Inc.
      Bundle-Version = 2.0.5
      Created-By = 1.8.0_121 (Oracle Corporation)
      Import-Package = aQute.bnd.annotation.metatype;version="[1.45,2)",com.liferay.document.library.kernel.exception;version="[1.0,2)",com.liferay.document.library.kernel.store;version="[1.0,2)",com.liferay.document.library.kernel.util;version="[1.0,2)",com.liferay.portal.configuration.metatype.annotations;version="[1.0,2)",com.liferay.portal.configuration.metatype.bnd.util;version="[2.0,3)",com.liferay.portal.convert.documentlibrary,com.liferay.portal.kernel.exception;version="[7.0,8)",com.liferay.portal.kernel.util;version="[7.0,8)",org.osgi.service.cm;version="[1.5,2)"
      Javac-Debug = on
      Javac-Deprecation = off
      Javac-Encoding = UTF-8
      Liferay-Releng-App-Description = Apps and Features: System Settings, Web Content Editors, Web Content Template Languages, Theme Tools, Mobile Device Rules, Facebook Authentication, LDAP Authentication, NTLM Authentication, OpenID Authentication, OpenSSO Authentication, Remote Authentication (AuthVerifiers), SSO-based Authentication, Token-based Authentication, Portal Scripting, Elasticsearch Support, Solr Support, Documents and Media Store Implementations, and more.<br /><br />The Foundation suite provides applications and features that extend the functionality provided by Liferay's core. Much of the functionality that belonged to Liferay's core prior to Liferay 7 has been extracted into the modules of the Foundation suite. The authentication modules provide a variety of mechanisms for allowing users and remote applications to authenticate to Liferay. The LDAP Authentication module allows administrators to establish connections to one or more LDAP directories from which users can be imported or exported. The SSO modules allow users to authenticate to Liferay using a variety of single-sign on solutions. The Token-based Authentication module allows users or remote applications to authenticate to Liferay without a password. The Scripting modules allow scripts to be written to invoke Liferay's API in several languages including Groovy, BeanShell, Python, Ruby, and JavaScript.<br /><br />This suite is available in the Liferay CE bundle.
      Liferay-Releng-App-Title = Liferay CE Foundation
      Liferay-Releng-Bundle = true
      Liferay-Releng-Category = Utility
      Liferay-Releng-Deprecated = false
      Liferay-Releng-Labs = false
      Liferay-Releng-Marketplace = true
      Liferay-Releng-Module-Group-Title = Data Stores
      Liferay-Releng-Portal-Required = true
      Liferay-Releng-Public = true
      Liferay-Releng-Restart-Required = true
      Liferay-Releng-Support-Url = http://www.liferay.com
      Liferay-Releng-Supported = false
      Private-Package = com.liferay.portal.store.file.system,com.liferay.portal.store.file.system.configuration,content
      Provide-Capability = osgi.service;objectClass:List<String>="com.liferay.document.library.kernel.store.Store",liferay.resource.bundle;bundle.symbolic.name="com.liferay.portal.store.file.system";resource.bundle.base.name="content.Language"
      Require-Capability = osgi.service;filter:="(objectClass=org.osgi.service.cm.ConfigurationAdmin)";effective:=active,osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.7))"
      Service-Component = OSGI-INF/com.liferay.portal.store.file.system.AdvancedFileSystemStore.xml,OSGI-INF/com.liferay.portal.store.file.system.FileSystemStore.xml
      Tool = Bnd-3.2.0.201605172007
      
      

       

      In order to read the configuration:

      _configuration = Configurable.createConfigurable(
      FileSystemStoreConfiguration.class, properties);

      I have imported the module into build.gradle of my custom module: 

      compileOnly group: "com.liferay", name: "com.liferay.portal.store.file.system", version: "2.0.5"
      

       

      The build finished successfully but eclipse IDE not resolve the class.

      When I deploy the module the error was:

      Unresolved requirement: Import-Package: com.liferay.portal.store.file.system.configuration_ [Sanitized]
      

       

      I think that the property Export-Package missing on Liferay Portal Store File System bnd file:

      Export-Package:\
      com.liferay.portal.store.file.system.configuration
      

       

       

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Days since last comment:
                1 year, 7 weeks, 3 days ago

                Packages

                Version Package