Package eu.dnetlib.openaire.community
Class CommunityService
java.lang.Object
eu.dnetlib.openaire.community.CommunityService
@Service
@ConditionalOnProperty(value="openaire.exporter.enable.community",
havingValue="true")
public class CommunityService
extends Object
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCommunityActiveService(String id, String... services) voidaddCommunityAdvancedConstraint(String id, SelectionCriteria advancedCosntraint) voidaddCommunityDatasources(String id, CommunityDatasource... contentproviders) voidaddCommunityFOS(String id, String... foss) voidaddCommunityOrganizations(String id, CommunityOrganization... orgs) addCommunityProject(String id, CommunityProject project) voidaddCommunityProjects(String id, CommunityProject... projects) voidaddCommunityRemoveConstraint(String id, SelectionCriteria removeConstraint) voidaddCommunitySDG(String id, String... sdgs) voidaddCommunitySubjects(String id, String... subjects) voidaddCommunityZenodoCommunity(String id, String zenodoCommunity, boolean isMain) addPropagationOrganizationForCommunity(String communityId, String orgId, String logoUrl, String description, Boolean isSubscribed) addSubCommunity(String id, SubCommunity subcommunity) org.springframework.data.domain.Page<CommunityProjectExtended>getAllSubCommunityProjects(String id, String funder, String filter, int page, int size, String orderBy) getCommunity(String id) getCommunityDatasourcesWithDeposit(String id, boolean deposit) org.springframework.data.domain.Page<CommunityProjectExtended>getCommunityProjects(String id, String funder, String filter, int page, int size, String orderBy) getOpenAIRECommunitiesByZenodoId(String zenodoId) getPropagationOrganizationsForCommunity(String communityId) getSubCommunity(String id, String subCommunityId) newCommunity(CommunityDetails details) voidvoidremoveCommunityActiveService(String id, String... services) voidvoidremoveCommunityDatasources(String id, String... ids) voidremoveCommunityFOS(String id, String... foss) voidremoveCommunityOrganizations(String id, String... orgNames) voidremoveCommunityProjects(String id, String... ids) voidvoidremoveCommunitySDG(String id, String... sdgs) voidremoveCommunitySubjects(String id, String... subjects) voidremoveCommunityZenodoCommunity(String id, String zenodoCommunity, boolean isMain) removePropagationOrganizationForCommunity(String communityId, String... organizationIds) voidremoveSubCommunity(String communityId, String subCommunityId) saveCommunity(CommunityDetails details) voidupdateCommunity(String id, CommunityWritableProperties details) updateCommunityDatasourcesDeposit(String id, String dsId, Boolean deposit, String message) voidupdateSubCommunity(String subCommunityId, SubCommunityWritableProperties details)
-
Constructor Details
-
CommunityService
public CommunityService()
-
-
Method Details
-
listCommunities
-
newCommunity
- Throws:
CommunityException
-
saveCommunity
-
getCommunity
-
updateCommunity
-
removeCommunity
-
getCommunityProjects
public org.springframework.data.domain.Page<CommunityProjectExtended> getCommunityProjects(String id, String funder, String filter, int page, int size, String orderBy) throws CommunityException - Throws:
CommunityException
-
getAllSubCommunityProjects
public org.springframework.data.domain.Page<CommunityProjectExtended> getAllSubCommunityProjects(String id, String funder, String filter, int page, int size, String orderBy) throws CommunityException - Throws:
CommunityException
-
addCommunityProject
-
addCommunityProjects
- Throws:
CommunityException
-
removeCommunityProjects
-
getCommunityDatasources
-
getCommunityDatasourcesWithDeposit
public List<CommunityDatasourceExtended> getCommunityDatasourcesWithDeposit(String id, boolean deposit) -
updateCommunityDatasourcesDeposit
public CommunityDatasourceExtended updateCommunityDatasourcesDeposit(String id, String dsId, Boolean deposit, String message) -
addCommunityDatasources
-
removeCommunityDatasources
-
removeCommunityOrganizations
-
getCommunityOrganizations
-
addCommunityOrganizations
-
addCommunitySubjects
-
removeCommunitySubjects
-
addCommunityFOS
-
removeCommunityFOS
-
addCommunitySDG
-
removeCommunitySDG
-
addCommunityActiveService
-
removeCommunityActiveService
-
addCommunityAdvancedConstraint
-
removeCommunityAdvancedConstraint
-
addCommunityRemoveConstraint
-
removeCommunityRemoveConstraint
-
removeCommunityZenodoCommunity
-
addCommunityZenodoCommunity
-
getOpenAIRECommunitiesByZenodoId
-
getPropagationOrganizationCommunityMap
-
getDatasourceCommunityMap
-
getPropagationOrganizationsForCommunity
public Set<CommunityPropagationOrganization> getPropagationOrganizationsForCommunity(String communityId) -
addPropagationOrganizationForCommunity
-
removePropagationOrganizationForCommunity
public Set<CommunityPropagationOrganization> removePropagationOrganizationForCommunity(String communityId, String... organizationIds) -
getIISConfiguration
-
getCommunityFunders
-
getSubCommunity
-
getSubCommunitiesForCommunity
-
updateSubCommunity
-
addSubCommunity
- Throws:
CommunityException
-
removeSubCommunity
- Throws:
CommunityException
-