public RepositoryResourceImpl createResourceFromAsset ( Asset ass , RepositoryConnection connection ) throws RepositoryBackendException { // No wlp information means no type set, so can't create a resource from this.... RepositoryResourceImpl result ; if ( null == ass . getWlpInformation ( ) || ass . getType ( ) == null ) { result = new RepositoryResourceImpl ( connection , ass ) { } ; } else { result = createResource ( ass . getType ( ) , connection , ass ) ; } result . parseAttachmentsInAsset ( ) ; return result ; }
Creates a resources from the supplied asset