use of com.enonic.xp.repository.RepositoryId in project xp by enonic.
the class BaseSiteHandler method doCreatePortalRequest.
protected PortalRequest doCreatePortalRequest(final WebRequest webRequest, final String baseUri, final String baseSubPath) {
final RepositoryId repositoryId = findRepository(baseSubPath);
final Branch branch = findBranch(baseSubPath);
final ContentPath contentPath = findContentPath(baseSubPath);
final PortalRequest portalRequest = new PortalRequest(webRequest);
portalRequest.setBaseUri(baseUri);
portalRequest.setRepositoryId(repositoryId);
portalRequest.setBranch(branch);
portalRequest.setContentPath(contentPath);
return portalRequest;
}
Aggregations