]>
git.argeo.org Git - lgpl/argeo-commons.git/blob - explorer/model/MaintainedRepositoryElem.java
1 package org
.argeo
.jcr
.ui
.explorer
.model
;
3 import javax
.jcr
.Repository
;
5 import org
.argeo
.ArgeoException
;
6 import org
.argeo
.eclipse
.ui
.TreeParent
;
7 import org
.argeo
.jcr
.MaintainedRepository
;
9 /** Wraps a {@link MaintainedRepository} */
10 public class MaintainedRepositoryElem
extends RepositoryElem
{
12 public MaintainedRepositoryElem(String alias
, Repository repository
,
14 super(alias
, repository
, parent
);
15 if (!(repository
instanceof MaintainedRepository
)) {
16 throw new ArgeoException("Repository " + alias
17 + " is not amiantained repository");
21 protected MaintainedRepository
getMaintainedRepository() {
22 return (MaintainedRepository
) getRepository();