Examples of existsMetadata()


Examples of com.hp.hpl.jena.tdb.base.file.MetaFile.existsMetaData()

        boolean newDataset = location.isMem() || ! FileOps.existsAnyFiles(location.getDirectoryPath()) ;

        MetaFile metafile = location.getMetaFile() ;
        boolean isPreMetadata = false ;
       
        if (!newDataset && metafile.existsMetaData())
        {
            // Existing metadata
            String verString = metafile.getProperty("tdb.create.version", "unknown") ;
            TDB.logInfo.debug("Location: " + location.toString()) ;
            TDB.logInfo.debug("Version:  " + verString) ;
View Full Code Here

Examples of com.hp.hpl.jena.tdb.base.file.MetaFile.existsMetaData()

        boolean newDataset = location.isMem() || ! FileOps.existsAnyFiles(location.getDirectoryPath()) ;

        MetaFile metafile = location.getMetaFile() ;
        boolean isPreMetadata = false ;
       
        if (!newDataset && metafile.existsMetaData())
        {
            // Existing metadata
            String verString = metafile.getProperty("tdb.create.version", "unknown") ;
            TDB.logInfo.debug("Location: " + location.toString()) ;
            TDB.logInfo.debug("Version:  " + verString) ;
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.existsMetadata()

    //-----------------------------------------------------------------------
    //--- check access
    int iLocalId = Integer.parseInt(id);
   
    if (!dataMan.existsMetadata(iLocalId))
      throw new IllegalArgumentException("Metadata not found --> " + id);

    //-----------------------------------------------------------------------
    //--- retrieve metadata status
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.existsMetadata()

        String id = Utils.getIdentifierFromParameters(params, context);
        String groupOwner = Util.getParam(params, "groupid");

        int iLocalId = Integer.parseInt(id);
        if (!dataMan.existsMetadata(iLocalId)) {
            throw new IllegalArgumentException("Metadata with identifier '" + id + "' not found.");
        }

        if (!accessMan.canEdit(context, id)) {
            throw new OperationNotAllowedEx();
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.existsMetadata()

    DataManager dataMan = gc.getBean(DataManager.class);
    String id = Utils.getIdentifierFromParameters(params, context);

    //--- check access
    int iLocalId = Integer.parseInt(id);
    if (!dataMan.existsMetadata(iLocalId))
      throw new IllegalArgumentException("Metadata not found --> " + id);

    //--- remove old operations
        context.getBean(MetadataRepository.class).update(iLocalId, new Updater<Metadata>() {
            @Override
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.existsMetadata()

    String rat = Util.getParam(params, Params.RATING);
    String ip  = context.getIpAddress();

    int iLocalId = Integer.parseInt(id);
    if (!dm.existsMetadata(iLocalId))
      throw new IllegalArgumentException("Metadata not found --> " + id);

    if (ip == null)
      ip = "???.???.???.???";
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.existsMetadata()

    AccessManager am = gc.getBean(AccessManager.class);
    String id = Utils.getIdentifierFromParameters(params, context);

    //--- check access
    int iLocalId = Integer.parseInt(id);
    if (!dataMan.existsMetadata(iLocalId))
      throw new IllegalArgumentException("Metadata not found --> " + id);

    //--- only allow the owner of the record to set its status
    if (!am.isOwner(context, id)) {
      throw new UnAuthorizedException("Only the owner of the metadata can set the status. User is not the owner of the metadata", null);
View Full Code Here

Examples of org.fao.geonet.kernel.DataManager.existsMetadata()

    //-----------------------------------------------------------------------
    //--- check access
    int iLocalId = Integer.parseInt(id);
   
    if (!dataMan.existsMetadata(iLocalId))
      throw new IllegalArgumentException("Metadata not found --> " + id);

    if (!am.isOwner(context,id))
      throw new IllegalArgumentException("You are not the owner of metadata --> "+id);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.