public String readNewestUrlNameForId(CmsDbContext dbc, CmsUUID id) throws CmsDataAccessException {

        List<CmsUrlNameMappingEntry> entries = getVfsDriver(dbc).readUrlNameMappingEntries(
            dbc,
            dbc.currentProject().isOnlineProject(),
            CmsUrlNameMappingFilter.ALL.filterStructureId(id));
        if (entries.isEmpty()) {
            return null;
        }

        Collections.sort(entries, new UrlNameMappingComparator());
        CmsUrlNameMappingEntry lastEntry = entries.get(entries.size() - 1);
        return lastEntry.getName();
    }
public String readNewestUrlNameForId ( CmsDbContext dbc , CmsUUID id ) throws CmsDataAccessException { List < CmsUrlNameMappingEntry > entries = getVfsDriver ( dbc ) . readUrlNameMappingEntries ( dbc , dbc . currentProject ( ) . isOnlineProject ( ) , CmsUrlNameMappingFilter . ALL . filterStructureId ( id ) ) ; if ( entries . isEmpty ( ) ) { return null ; } Collections . sort ( entries , new UrlNameMappingComparator ( ) ) ; CmsUrlNameMappingEntry lastEntry = entries . get ( entries . size ( ) - 1 ) ; return lastEntry . getName ( ) ; }
Reads the URL name which has been most recently mapped to the given structure id, or null
if no URL name is mapped to the id.<p>

@param dbc the current database context
@param id a structure id
@return the name which has been most recently mapped to the given structure id

@throws CmsDataAccessException if something goes wrong