@Named(value="default") public class GroupFacetImpl extends org.sonatype.nexus.repository.FacetSupport implements GroupFacet
GroupFacet
implementation.Modifier and Type | Class and Description |
---|---|
static class |
GroupFacetImpl.Config |
Modifier and Type | Field and Description |
---|---|
protected CacheController |
cacheController |
static String |
CONFIG_KEY |
Constructor and Description |
---|
GroupFacetImpl(org.sonatype.nexus.repository.manager.RepositoryManager repositoryManager,
org.sonatype.nexus.validation.ConstraintViolationFactory constraintViolationFactory,
org.sonatype.nexus.repository.Type groupType) |
Modifier and Type | Method and Description |
---|---|
List<org.sonatype.nexus.repository.Repository> |
allMembers()
Return list of all member repositories including transitive
|
protected void |
doConfigure(org.sonatype.nexus.repository.config.Configuration configuration) |
protected void |
doDestroy() |
protected void |
doUpdate(org.sonatype.nexus.repository.config.Configuration configuration) |
protected void |
doValidate(org.sonatype.nexus.repository.config.Configuration configuration) |
void |
invalidateGroupCaches()
Removes all entries from the group cache and the member caches.
|
boolean |
isStale(org.sonatype.nexus.repository.view.Content content)
Returns
true if the content is considered stale; otherwise false . |
List<org.sonatype.nexus.repository.Repository> |
leafMembers()
Return the full list of members, including the members of groups, but excluding groups.
|
void |
maintainCacheInfo(org.sonatype.nexus.common.collect.AttributesMap attributesMap)
Maintains the latest cache information in the given content's attributes.
|
boolean |
member(org.sonatype.nexus.repository.Repository repository)
Check if given repository is a member of the group.
|
boolean |
member(String repositoryName)
Check if given repository is a member of the group.
|
List<org.sonatype.nexus.repository.Repository> |
members()
Return list of (non-transitive) member repositories.
|
attach, delete, destroy, doDelete, doInit, doStart, doStop, facet, getEventBus, getEventManager, getRepository, getStateGuard, init, installDependencies, optionalFacet, start, stop, update, validate
public static final String CONFIG_KEY
protected CacheController cacheController
@Inject public GroupFacetImpl(org.sonatype.nexus.repository.manager.RepositoryManager repositoryManager, org.sonatype.nexus.validation.ConstraintViolationFactory constraintViolationFactory, @Named(value="group") org.sonatype.nexus.repository.Type groupType)
protected void doValidate(org.sonatype.nexus.repository.config.Configuration configuration) throws Exception
doValidate
in class org.sonatype.nexus.repository.FacetSupport
Exception
protected void doConfigure(org.sonatype.nexus.repository.config.Configuration configuration) throws Exception
doConfigure
in class org.sonatype.nexus.repository.FacetSupport
Exception
protected void doUpdate(org.sonatype.nexus.repository.config.Configuration configuration) throws Exception
doUpdate
in class org.sonatype.nexus.repository.FacetSupport
Exception
protected void doDestroy() throws Exception
doDestroy
in class org.sonatype.nexus.repository.FacetSupport
Exception
public boolean member(String repositoryName)
GroupFacet
member
in interface GroupFacet
public boolean member(org.sonatype.nexus.repository.Repository repository)
GroupFacet
member
in interface GroupFacet
public List<org.sonatype.nexus.repository.Repository> members()
GroupFacet
members
in interface GroupFacet
public List<org.sonatype.nexus.repository.Repository> leafMembers()
GroupFacet
leafMembers
in interface GroupFacet
public List<org.sonatype.nexus.repository.Repository> allMembers()
GroupFacet
allMembers
in interface GroupFacet
public void invalidateGroupCaches()
GroupFacet
invalidateGroupCaches
in interface GroupFacet
public boolean isStale(@Nullable org.sonatype.nexus.repository.view.Content content)
GroupFacet
true
if the content is considered stale; otherwise false
.isStale
in interface GroupFacet
public void maintainCacheInfo(org.sonatype.nexus.common.collect.AttributesMap attributesMap)
GroupFacet
maintainCacheInfo
in interface GroupFacet
Copyright © 2008–2021 Sonatype, Inc.. All rights reserved.