Package org.pentaho.platform.plugin.services.importexport.exportManifest.bindings

Examples of org.pentaho.platform.plugin.services.importexport.exportManifest.bindings.EntityMetaData


  private void createEntityMetaData( File file, String userId, String projectId, Boolean isFolder, Boolean isHidden ) {
    if ( LocaleHelper.getLocale() == null ) {
      LocaleHelper.setLocale( Locale.getDefault() );
    }
    entityMetaData = new EntityMetaData();
    entityMetaData.setCreatedBy( userId );
    entityMetaData.setCreatedDate( XmlGregorianCalendarConverter.asXMLGregorianCalendar( new Date() ) );
    entityMetaData.setDescription( "Project folder for AgileBi Project named: " + projectId );
    entityMetaData.setIsHidden( isHidden );
    entityMetaData.setIsFolder( isFolder );
View Full Code Here


  private void createEntityMetaData( String rootFolder, RepositoryFile repositoryFile )
    throws ExportManifestFormatException {
    if ( LocaleHelper.getLocale() == null ) {
      LocaleHelper.setLocale( Locale.getDefault() );
    }
    entityMetaData = new EntityMetaData();
    entityMetaData.setCreatedBy( repositoryFile.getCreatorId() );
    entityMetaData.setCreatedDate( XmlGregorianCalendarConverter.asXMLGregorianCalendar( repositoryFile
        .getCreatedDate() ) );
    entityMetaData.setDescription( repositoryFile.getDescription() );
    entityMetaData.setIsHidden( repositoryFile.isHidden() );
View Full Code Here

   * there is no EntityMetaData present although this should not happen if the manifest is present at all.
   *
   * @return RepositoryFile
   */
  public RepositoryFile getRepositoryFile() {
    EntityMetaData emd = getEntityMetaData();
    if ( entityMetaData == null ) {
      return null;
    }
    return new RepositoryFile( null, emd.getName(), emd.isIsFolder(), emd.isIsHidden(), false, null, emd.getPath(),
        XmlGregorianCalendarConverter.asDate( emd.getCreatedDate() ), null, false, null, null, null, "en-US", emd
        .getTitle(), emd.getDescription(), null, null, 0, emd.getOwner(), null
    );
  }
View Full Code Here

TOP

Related Classes of org.pentaho.platform.plugin.services.importexport.exportManifest.bindings.EntityMetaData

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.