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
Modifier and Type Method Description de.digitalcollections.model.api.identifiable.entity.parts.SubtopicaddSubtopicToParentSubtopic(java.util.UUID subtopicUuid, java.util.UUID parentSubtopicUuid)de.digitalcollections.model.api.identifiable.entity.parts.SubtopicaddSubtopicToParentTopic(java.util.UUID subtopicUuid, java.util.UUID parentTopicUuid)java.lang.IntegerdeleteFromParentSubtopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.UUID parentSubtopicUuid)java.lang.IntegerdeleteFromParentSubtopic(java.util.UUID subtopicUuid, java.util.UUID parentSubtopicUuid)java.lang.IntegerdeleteFromParentTopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.UUID topicUuid)java.lang.IntegerdeleteFromParentTopic(java.util.UUID subtopicUuid, java.util.UUID topicUuid)de.digitalcollections.model.api.view.BreadcrumbNavigationgetBreadcrumbNavigation(java.util.UUID nodeUuid)Build and return the breadcrumb navigation for the given node UUIDjava.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getChildren(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getChildren(java.util.UUID uuid)de.digitalcollections.model.api.paging.PageResponse<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getChildren(java.util.UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity>getEntities(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity>getEntities(java.util.UUID subtopicUuid)java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource>getFileResources(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource>getFileResources(java.util.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(java.util.UUID nodeUuid)java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getSubtopicsOfEntity(java.util.UUID entityUuid)java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>getSubtopicsOfFileResource(java.util.UUID fileResourceUuid)de.digitalcollections.model.api.identifiable.entity.TopicgetTopic(java.util.UUID subtopicUuid)java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity>saveEntities(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> entities)java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity>saveEntities(java.util.UUID subtopicUuid, java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> entities)java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource>saveFileResources(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource>saveFileResources(java.util.UUID subtopicUuid, java.util.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, java.util.UUID parentSubtopicUuid)de.digitalcollections.model.api.identifiable.entity.parts.SubtopicsaveWithParentTopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.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, saveRelatedFileResourcesMethods inherited from class de.digitalcollections.cudami.server.business.impl.service.identifiable.IdentifiableServiceImpl
count, find, find, find, get, get, get, getByIdentifier, reduceMultilanguageFieldsToGivenLocale, save, updateMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, saveRelatedFileResourcesMethods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.IdentifiableService
cleanupLabelFromUnwantedLocales, count, find, find, find, get, get, getByIdentifier, save, updateMethods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.NodeService
getBreadcrumbNavigationMethods inherited from interface de.digitalcollections.cudami.server.business.api.service.identifiable.entity.parts.SubtopicService
get
-
Constructor Details
-
SubtopicServiceImpl
-
-
Method Details
-
getChildren
public java.util.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 java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getChildren(java.util.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(java.util.UUID uuid, de.digitalcollections.model.api.paging.PageRequest pageRequest)- Specified by:
getChildrenin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
-
getEntities
public java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> getEntities(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)- Specified by:
getEntitiesin interfaceSubtopicService
-
getEntities
public java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> getEntities(java.util.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(java.util.UUID nodeUuid)- Specified by:
getParentin interfaceNodeService<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic>
-
getSubtopicsOfEntity
public java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getSubtopicsOfEntity(java.util.UUID entityUuid)- Specified by:
getSubtopicsOfEntityin interfaceSubtopicService
-
getSubtopicsOfFileResource
public java.util.List<de.digitalcollections.model.api.identifiable.entity.parts.Subtopic> getSubtopicsOfFileResource(java.util.UUID fileResourceUuid)- Specified by:
getSubtopicsOfFileResourcein interfaceSubtopicService
-
saveEntities
public java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> saveEntities(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> entities)- Specified by:
saveEntitiesin interfaceSubtopicService
-
saveEntities
public java.util.List<de.digitalcollections.model.api.identifiable.entity.Entity> saveEntities(java.util.UUID subtopicUuid, java.util.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, java.util.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, java.util.UUID parentSubtopicUuid) throws IdentifiableServiceException- Specified by:
saveWithParentSubtopicin interfaceSubtopicService- Throws:
IdentifiableServiceException
-
getFileResources
public java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> getFileResources(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic)- Specified by:
getFileResourcesin interfaceSubtopicService
-
getFileResources
public java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> getFileResources(java.util.UUID subtopicUuid)- Specified by:
getFileResourcesin interfaceSubtopicService
-
saveFileResources
public java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> saveFileResources(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)- Specified by:
saveFileResourcesin interfaceSubtopicService
-
saveFileResources
public java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> saveFileResources(java.util.UUID subtopicUuid, java.util.List<de.digitalcollections.model.api.identifiable.resource.FileResource> fileResources)- Specified by:
saveFileResourcesin interfaceSubtopicService
-
deleteFromParentSubtopic
public java.lang.Integer deleteFromParentSubtopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.UUID parentSubtopicUuid)- Specified by:
deleteFromParentSubtopicin interfaceSubtopicService
-
deleteFromParentSubtopic
public java.lang.Integer deleteFromParentSubtopic(java.util.UUID subtopicUuid, java.util.UUID parentSubtopicUuid)- Specified by:
deleteFromParentSubtopicin interfaceSubtopicService
-
deleteFromParentTopic
public java.lang.Integer deleteFromParentTopic(de.digitalcollections.model.api.identifiable.entity.parts.Subtopic subtopic, java.util.UUID topicUuid)- Specified by:
deleteFromParentTopicin interfaceSubtopicService
-
deleteFromParentTopic
public java.lang.Integer deleteFromParentTopic(java.util.UUID subtopicUuid, java.util.UUID topicUuid)- Specified by:
deleteFromParentTopicin interfaceSubtopicService
-
addSubtopicToParentTopic
public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic addSubtopicToParentTopic(java.util.UUID subtopicUuid, java.util.UUID parentTopicUuid) throws IdentifiableServiceException- Specified by:
addSubtopicToParentTopicin interfaceSubtopicService- Throws:
IdentifiableServiceException
-
addSubtopicToParentSubtopic
public de.digitalcollections.model.api.identifiable.entity.parts.Subtopic addSubtopicToParentSubtopic(java.util.UUID subtopicUuid, java.util.UUID parentSubtopicUuid) throws IdentifiableServiceException- Specified by:
addSubtopicToParentSubtopicin interfaceSubtopicService- Throws:
IdentifiableServiceException
-
getTopic
public de.digitalcollections.model.api.identifiable.entity.Topic getTopic(java.util.UUID subtopicUuid)- Specified by:
getTopicin interfaceSubtopicService
-