Class SubtopicServiceImpl
- java.lang.Object
-
- de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl<P>
-
- de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.parts.EntityPartServiceImpl<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic,de.digitalcollections.model.api.identifiable.entity.Entity>
-
- de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.parts.SubtopicServiceImpl
-
- All Implemented Interfaces:
EntityPartService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic,de.digitalcollections.model.api.identifiable.entity.Entity>,SubtopicService,IdentifiableService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>,NodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
@Service public class SubtopicServiceImpl extends EntityPartServiceImpl<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic,de.digitalcollections.model.api.identifiable.entity.Entity> implements SubtopicService
Service for Subtopic handling.
-
-
Field Summary
-
Fields inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl
repository
-
-
Constructor Summary
Constructors Constructor Description SubtopicServiceImpl(SubtopicRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.parts.SubtopicaddSubtopicToParentSubtopic(UUID subtopicUuid, UUID parentSubtopicUuid)de.digitalcollections.model.api.identifiable.entity.parts.SubtopicaddSubtopicToParentTopic(UUID subtopicUuid, UUID parentTopicUuid)IntegerdeleteFromParentSubtopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, UUID parentSubtopicUuid)IntegerdeleteFromParentSubtopic(UUID subtopicUuid, UUID parentSubtopicUuid)IntegerdeleteFromParentTopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, UUID topicUuid)IntegerdeleteFromParentTopic(UUID subtopicUuid, UUID topicUuid)de.digitalcollections.model.api.view.BreadcrumbNavigationgetBreadcrumbNavigation(UUID nodeUuid)Build and return the breadcrumb navigation for the given node UUIDList<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getChildren(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getChildren(UUID uuid)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getChildren(UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)List<de.digitalcollections.model.api.identifiable.entity.Entity>getEntities(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)List<de.digitalcollections.model.api.identifiable.entity.Entity>getEntities(UUID subtopicUuid)List<de.digitalcollections.model.api.identifiable.resource.FileResource>getFileResources(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)List<de.digitalcollections.model.api.identifiable.resource.FileResource>getFileResources(UUID subtopicUuid)de.digitalcollections.model.api.identifiable.entity.parts.SubtopicgetParent(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic node)de.digitalcollections.model.api.identifiable.entity.parts.SubtopicgetParent(UUID nodeUuid)List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getSubtopicsOfEntity(UUID entityUuid)List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getSubtopicsOfFileResource(UUID fileResourceUuid)de.digitalcollections.model.api.identifiable.entity.TopicgetTopic(UUID subtopicUuid)List<de.digitalcollections.model.api.identifiable.entity.Entity>saveEntities(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, List<de.digitalcollections.model.api.identifiable.entity.Entity> entities)List<de.digitalcollections.model.api.identifiable.entity.Entity>saveEntities(UUID subtopicUuid, List<de.digitalcollections.model.api.identifiable.entity.Entity> entities)List<de.digitalcollections.model.api.identifiable.resource.FileResource>saveFileResources(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)List<de.digitalcollections.model.api.identifiable.resource.FileResource>saveFileResources(UUID subtopicUuid, List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)de.digitalcollections.model.api.identifiable.entity.parts.SubtopicsaveWithParentSubtopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, UUID parentSubtopicUuid)de.digitalcollections.model.api.identifiable.entity.parts.SubtopicsaveWithParentTopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, UUID parentTopicUuid)-
Methods inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.entity.parts.EntityPartServiceImpl
addRelatedEntity, addRelatedEntity, addRelatedFileresource, addRelatedFileresource, filteringForActive, getRelatedEntities, getRelatedEntities, getRelatedFileResources, getRelatedFileResources, saveRelatedEntities, saveRelatedEntities, saveRelatedFileResources, saveRelatedFileResources
-
Methods inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl
count, find, find, find, get, get, get, getByIdentifier, reduceMultilanguageFieldsToGivenLocale, save, update
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.entity.parts.EntityPartService
addRelatedEntity, addRelatedEntity, addRelatedFileresource, addRelatedFileresource, getRelatedEntities, getRelatedEntities, getRelatedFileResources, getRelatedFileResources, saveRelatedEntities, saveRelatedEntities, saveRelatedFileResources, saveRelatedFileResources
-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.IdentifiableService
cleanupLabelFromUnwantedLocales, count, find, find, find, get, get, getByIdentifier, save, update
-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.NodeService
getBreadcrumbNavigation
-
Methods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.entity.parts.SubtopicService
get
-
-
-
-
Constructor Detail
-
SubtopicServiceImpl
@Autowired public SubtopicServiceImpl(SubtopicRepository repository)
-
-
Method Detail
-
getChildren
public List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getChildren(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)
- Specified by:
getChildrenin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
-
getChildren
public List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getChildren(UUID uuid)
- Specified by:
getChildrenin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
-
getChildren
public de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getChildren(UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)
- Specified by:
getChildrenin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
-
getEntities
public List<de.digitalcollections.model.api.identifiable.entity.Entity> getEntities(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)
- Specified by:
getEntitiesin interfaceSubtopicService
-
getEntities
public List<de.digitalcollections.model.api.identifiable.entity.Entity> getEntities(UUID subtopicUuid)
- Specified by:
getEntitiesin interfaceSubtopicService
-
getParent
public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic getParent(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic node)
- Specified by:
getParentin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
-
getParent
public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic getParent(UUID nodeUuid)
- Specified by:
getParentin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
-
getSubtopicsOfEntity
public List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getSubtopicsOfEntity(UUID entityUuid)
- Specified by:
getSubtopicsOfEntityin interfaceSubtopicService
-
getSubtopicsOfFileResource
public List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getSubtopicsOfFileResource(UUID fileResourceUuid)
- Specified by:
getSubtopicsOfFileResourcein interfaceSubtopicService
-
saveEntities
public List<de.digitalcollections.model.api.identifiable.entity.Entity> saveEntities(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, List<de.digitalcollections.model.api.identifiable.entity.Entity> entities)
- Specified by:
saveEntitiesin interfaceSubtopicService
-
saveEntities
public List<de.digitalcollections.model.api.identifiable.entity.Entity> saveEntities(UUID subtopicUuid, List<de.digitalcollections.model.api.identifiable.entity.Entity> entities)
- Specified by:
saveEntitiesin interfaceSubtopicService
-
saveWithParentTopic
public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic saveWithParentTopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, UUID parentTopicUuid) throws IdentifiableServiceException- Specified by:
saveWithParentTopicin interfaceSubtopicService- Throws:
IdentifiableServiceException
-
saveWithParentSubtopic
public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic saveWithParentSubtopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, UUID parentSubtopicUuid) throws IdentifiableServiceException- Specified by:
saveWithParentSubtopicin interfaceSubtopicService- Throws:
IdentifiableServiceException
-
getFileResources
public List<de.digitalcollections.model.api.identifiable.resource.FileResource> getFileResources(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)
- Specified by:
getFileResourcesin interfaceSubtopicService
-
getFileResources
public List<de.digitalcollections.model.api.identifiable.resource.FileResource> getFileResources(UUID subtopicUuid)
- Specified by:
getFileResourcesin interfaceSubtopicService
-
saveFileResources
public List<de.digitalcollections.model.api.identifiable.resource.FileResource> saveFileResources(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)
- Specified by:
saveFileResourcesin interfaceSubtopicService
-
saveFileResources
public List<de.digitalcollections.model.api.identifiable.resource.FileResource> saveFileResources(UUID subtopicUuid, List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)
- Specified by:
saveFileResourcesin interfaceSubtopicService
-
deleteFromParentSubtopic
public Integer deleteFromParentSubtopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, UUID parentSubtopicUuid)
- Specified by:
deleteFromParentSubtopicin interfaceSubtopicService
-
deleteFromParentSubtopic
public Integer deleteFromParentSubtopic(UUID subtopicUuid, UUID parentSubtopicUuid)
- Specified by:
deleteFromParentSubtopicin interfaceSubtopicService
-
deleteFromParentTopic
public Integer deleteFromParentTopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, UUID topicUuid)
- Specified by:
deleteFromParentTopicin interfaceSubtopicService
-
deleteFromParentTopic
public Integer deleteFromParentTopic(UUID subtopicUuid, UUID topicUuid)
- Specified by:
deleteFromParentTopicin interfaceSubtopicService
-
addSubtopicToParentTopic
public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic addSubtopicToParentTopic(UUID subtopicUuid, UUID parentTopicUuid) throws IdentifiableServiceException
- Specified by:
addSubtopicToParentTopicin interfaceSubtopicService- Throws:
IdentifiableServiceException
-
addSubtopicToParentSubtopic
public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic addSubtopicToParentSubtopic(UUID subtopicUuid, UUID parentSubtopicUuid) throws IdentifiableServiceException
- Specified by:
addSubtopicToParentSubtopicin interfaceSubtopicService- Throws:
IdentifiableServiceException
-
getBreadcrumbNavigation
public de.digitalcollections.model.api.view.BreadcrumbNavigation getBreadcrumbNavigation(UUID nodeUuid)
Description copied from interface:NodeServiceBuild and return the breadcrumb navigation for the given node UUID- Specified by:
getBreadcrumbNavigationin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>- Parameters:
nodeUuid- the uuid of the node.- Returns:
- BreadcrumbNavigation with labels in all available languages
-
getTopic
public de.digitalcollections.model.api.identifiable.entity.Topic getTopic(UUID subtopicUuid)
- Specified by:
getTopicin interfaceSubtopicService
-
-