Uses of Interface
com.atlassian.confluence.api.model.relations.RelationDescriptor
Packages that use RelationDescriptor
Package
Description
This package contains the code which communicates with Confluence via REST API.
-
Uses of RelationDescriptor in com.atlassian.confluence.api.impl.service.relation
Classes in com.atlassian.confluence.api.impl.service.relation that implement RelationDescriptorModifier and TypeClassDescriptionclassAuthenticatedUserRelationDescriptor<S extends User,T extends Relatable> AValidatingRelationDescriptorwhich checks that theUserfor which the relation is being created is also the currently authenticated user.classDefaultValidatingRelationDescriptor<S extends Relatable,T extends Relatable> Methods in com.atlassian.confluence.api.impl.service.relation with parameters of type RelationDescriptorModifier and TypeMethodDescription<S extends Relatable,T extends Relatable>
RelationService.RelatableFinder<S> RelationServiceImpl.findSources(T target, RelationDescriptor<S, T> relationDescriptor) <S extends Relatable,T extends Relatable>
RelationService.RelatableFinder<T> RelationServiceImpl.findTargets(S source, RelationDescriptor<S, T> relationDescriptor) RelationServiceImpl.isRelated(S source, RelationDescriptor<S, T> relationDescriptor, T target) RelationServiceImpl.removeAllRelationsFromEntityWithType(RelationDescriptor<S, T> relationDescriptor, Relatable relatable) Constructors in com.atlassian.confluence.api.impl.service.relation with parameters of type RelationDescriptorModifierConstructorDescriptionprotectedAuthenticatedUserRelationDescriptor(RelationDescriptor relationDescriptor) protectedDefaultValidatingRelationDescriptor(RelationDescriptor relationDescriptor) -
Uses of RelationDescriptor in com.atlassian.confluence.api.model.relations
Subinterfaces of RelationDescriptor in com.atlassian.confluence.api.model.relationsModifier and TypeInterfaceDescriptioninterfaceValidatingRelationDescriptor<S extends Relatable,T extends Relatable> ARelationDescriptorwhich provides a method to perform validation on descriptor operations.Classes in com.atlassian.confluence.api.model.relations that implement RelationDescriptorModifier and TypeClassDescriptionclassAbstractRelationDescriptor<S extends Relatable,T extends Relatable> Relation descriptor, which should be used as a base class for all custom relation descriptors.final classclassThe descriptor of relations capturing both direct and indirect contributors of a content.final classFavouriteRelationDescriptor<T extends Relatable>The built-in relationship type for favourites.final classLikeRelationDescriptor<T extends Relatable>final classNamedRelationDescriptor<S extends Relatable,T extends Relatable> Simple implementation ofRelationDescriptor, which allows to create simple named relation descriptors.classRepresents that a user has modified content, regardless of whether that change has been reverted.Methods in com.atlassian.confluence.api.model.relations that return RelationDescriptorModifier and TypeMethodDescriptionRelationInstance.getRelationDescriptor()static <S extends Relatable,T extends Relatable>
RelationDescriptor<S, T> RelationDescriptors.lookupBuiltinOrCreate(Class<S> sourceClass, String name, Class<T> targetClass) Get one of the built-in RelationDescriptor objects (for example FavouriteRelationDescriptor).Methods in com.atlassian.confluence.api.model.relations with parameters of type RelationDescriptorModifier and TypeMethodDescriptionstatic <S extends Relatable,T extends Relatable>
RelationInstance.RelationInstanceBuilder<S, T> RelationInstance.builder(S source, RelationDescriptor<S, T> relationDescriptor, T target) static <S extends Relatable,T extends Relatable>
ValidationResultRelationDescriptors.canRelate(S source, RelationDescriptor<S, T> relationDescriptor, T target) Deprecated.since 5.11. -
Uses of RelationDescriptor in com.atlassian.confluence.api.service.relations
Methods in com.atlassian.confluence.api.service.relations with parameters of type RelationDescriptorModifier and TypeMethodDescription<S extends Relatable,T extends Relatable>
RelationService.RelatableFinder<S> RelationService.findSources(T target, RelationDescriptor<S, T> relationDescriptor) Create a finder to find sources of a relation.<S extends Relatable,T extends Relatable>
RelationService.RelatableFinder<T> RelationService.findTargets(S source, RelationDescriptor<S, T> relationDescriptor) Create a finder to find targets of a relation.RelationService.isRelated(S source, RelationDescriptor<S, T> relationDescriptor, T target) Determine whether a given source and target are related by the given relationRelationService.removeAllRelationsFromEntityWithType(RelationDescriptor<S, T> relationDescriptor, Relatable relatable) Remove all relations of the given type where the given entity participates<S extends Relatable,T extends Relatable>
ValidationResultRelationService.Validator.validateCreate(S source, RelationDescriptor<S, T> relationDescriptor, T target) Validate create operation<S extends Relatable,T extends Relatable>
ValidationResultRelationService.Validator.validateDelete(S source, RelationDescriptor<S, T> relationDescriptor, T target) Validate delete operation<S extends Relatable,T extends Relatable>
ValidationResultRelationService.Validator.validateDeleteAllWithType(Relatable relatable, RelationDescriptor<S, T> relationDescriptor) Validate the delete all operation<S extends Relatable,T extends Relatable>
ValidationResultRelationService.Validator.validateFetch(S source, RelationDescriptor<S, T> relationDescriptor, T target) Validate fetch operation to check whether a user can view the specifed relation -
Uses of RelationDescriptor in com.atlassian.confluence.dmz.relations
Methods in com.atlassian.confluence.dmz.relations with parameters of type RelationDescriptorModifier and TypeMethodDescriptionRelationManager.addRelation(RelatableEntity source, RelatableEntity target, RelationDescriptor relationDescriptor) Create a new relation between 2 entities.static RelationshipTypeEnumRelationshipTypeEnum.getRelationshipType(RelationDescriptor<?, ?> relationDescriptor) Returns type of relationship based on relation descriptor.static RelationshipTypeEnumRelationshipTypeEnum.getRelationshipType(RelationDescriptor<?, ?> relationDescriptor, boolean throwOnError) Returns type of relationship based on relation descriptor.booleanRelationManager.isRelated(RelatableEntity source, RelatableEntity target, RelationDescriptor relationDescriptor) Checks if given entities are related.voidRelationManager.moveRelationsToContent(RelatableEntity fromRelatableEntity, RelatableEntity toRelatableEntity, RelationDescriptor descriptor) Moves all the relations of the specified type from one entity to another.intRelationManager.removeAllRelationsFromEntityWithType(RelationDescriptor relationDescriptor, RelatableEntity relatableEntity) This method remove all relations of the given type where the given entity participatesvoidRelationManager.removeRelation(RelatableEntity source, RelatableEntity target, RelationDescriptor relationDescriptor) Delete relation. -
Uses of RelationDescriptor in com.atlassian.confluence.dmz.relations.query
Methods in com.atlassian.confluence.dmz.relations.query that return RelationDescriptorMethods in com.atlassian.confluence.dmz.relations.query with parameters of type RelationDescriptorModifier and TypeMethodDescriptionstatic <E extends RelatableEntity>
RelationQuery.BuilderRelationQuery.create(@NonNull E entity, @NonNull RelationDescriptor relationDescriptor) RelationQuery.Builder.relation(@NonNull RelationDescriptor<?, ?> relationDescriptor) Constructors in com.atlassian.confluence.dmz.relations.query with parameters of type RelationDescriptorModifierConstructorDescriptionBuilder(@NonNull R entity, @NonNull RelationDescriptor<?, ?> relationDescriptor) -
Uses of RelationDescriptor in com.atlassian.confluence.internal.relations
Methods in com.atlassian.confluence.internal.relations with parameters of type RelationDescriptorModifier and TypeMethodDescriptionDefaultRelationManager.addRelation(RelatableEntity source, RelatableEntity target, RelationDescriptor relationDescriptor) booleanDefaultRelationManager.isRelated(RelatableEntity source, RelatableEntity target, RelationDescriptor relationDescriptor) voidDefaultRelationManager.moveRelationsToContent(RelatableEntity fromRelatableEntity, RelatableEntity toRelatableEntity, RelationDescriptor descriptor) intDefaultRelationManager.removeAllRelationsFromEntityWithType(RelationDescriptor relationDescriptor, RelatableEntity relatableEntity) voidDefaultRelationManager.removeRelation(RelatableEntity source, RelatableEntity target, RelationDescriptor relationDescriptor) static ValidationResultRelationUtils.validateAgainstApiModel(RelatableEntity source, RelatableEntity target, RelationDescriptor relationDescriptor) Helper method, which can be used to validate relation based on input parameters. -
Uses of RelationDescriptor in com.atlassian.confluence.internal.relations.dao
Methods in com.atlassian.confluence.internal.relations.dao with parameters of type RelationDescriptorModifier and TypeMethodDescriptionRelationDao.createRelationEntity(S source, T target, RelationDescriptor<?, ?> relationDescriptor) Create new relation.@Nullable RelationEntity<S, T> RelationDao.getRelationEntity(S source, T target, RelationDescriptor<?, ?> relationDescriptor) Get relation for given content, type and name.intRelationDao.getRelationsCount(S source, T target, RelationDescriptor<?, ?> relationDescriptor) Get total number of relations for given content, type and name. -
Uses of RelationDescriptor in com.atlassian.confluence.internal.relations.dao.hibernate
Methods in com.atlassian.confluence.internal.relations.dao.hibernate with parameters of type RelationDescriptorModifier and TypeMethodDescriptionprotected RelationEntity<S, T> HibernateRelationDao.constructRelationEntity(RelationEntity<S, T> relationEntity, S source, T target, RelationDescriptor<?, ?> relationDescriptor) protected RelationEntity<ConfluenceUser, ContentEntityObject> User2ContentHibernateRelationDao.constructRelationEntity(RelationEntity<ConfluenceUser, ContentEntityObject> relationEntity, ConfluenceUser source, ContentEntityObject target, RelationDescriptor<?, ?> relationDescriptor) HibernateRelationDao.createRelationEntity(S source, T target, RelationDescriptor<?, ?> relationDescriptor) protected @NonNull List<RelationEntity<S, T>> HibernateRelationDao.getRelationEntities(String queryName, S source, T target, RelationDescriptor<?, ?> relationDescriptor) @Nullable Content2ContentRelationEntityContent2ContentHibernateRelationDao.getRelationEntity(ContentEntityObject source, ContentEntityObject target, RelationDescriptor<?, ?> relationDescriptor) @Nullable User2ContentRelationEntityUser2ContentHibernateRelationDao.getRelationEntity(ConfluenceUser source, ContentEntityObject target, RelationDescriptor<?, ?> relationDescriptor) @Nullable User2UserRelationEntityUser2UserHibernateRelationDao.getRelationEntity(ConfluenceUser source, ConfluenceUser target, RelationDescriptor<?, ?> relationDescriptor) intContent2ContentHibernateRelationDao.getRelationsCount(ContentEntityObject source, ContentEntityObject target, RelationDescriptor<?, ?> relationDescriptor) intUser2ContentHibernateRelationDao.getRelationsCount(ConfluenceUser source, ContentEntityObject target, RelationDescriptor<?, ?> relationDescriptor) intUser2UserHibernateRelationDao.getRelationsCount(ConfluenceUser source, ConfluenceUser target, RelationDescriptor<?, ?> relationDescriptor) -
Uses of RelationDescriptor in com.atlassian.confluence.rest.client
Methods in com.atlassian.confluence.rest.client with parameters of type RelationDescriptorModifier and TypeMethodDescription<S extends Relatable,T extends Relatable>
CompletionStage<Boolean> RemoteRelationService.isRelatedCompletionStage(S source, RelationDescriptor<S, T> relationDescriptor, T target) Determine whether a given source and target are related by the given relation -
Uses of RelationDescriptor in com.atlassian.confluence.rest.client.impl
Methods in com.atlassian.confluence.rest.client.impl with parameters of type RelationDescriptorModifier and TypeMethodDescription<S extends Relatable,T extends Relatable>
CompletionStage<Boolean> RemoteRelationServiceImpl.isRelatedCompletionStage(S source, RelationDescriptor<S, T> relationDescriptor, T target)