Package org.exoplatform.cs.service
Class CSSpaceService
- java.lang.Object
-
- org.exoplatform.cs.service.BaseService
-
- org.exoplatform.cs.service.CSSpaceService
-
public class CSSpaceService extends BaseService
Created by The eXo Platform SAS- Since:
- Apr 27, 2016
- Author:
- boubaker.khanfir@exoplatform.com
-
-
Field Summary
Fields Modifier and Type Field Description static StringCUSTOMERS_GROUP-
Fields inherited from class org.exoplatform.cs.service.BaseService
environmentDAO, spaceDAO, topicDAO, typeDAO
-
-
Constructor Summary
Constructors Constructor Description CSSpaceService(SpaceDAO spaceDAO, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.organization.OrganizationService organizationService, TicketService ticketService, org.exoplatform.services.listener.ListenerService listenerService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringconvertDate(DateFormat dateFormat, Date date)CalendarconvertToCalendar(String dateToFormat)SpaceDTOconvertToDTO(SpaceEntity spaceEntity)SpaceEntityconvertToEntity(SpaceDTO spaceDTO, SpaceEntity spaceEntity)List<SpaceDTO>getActiveByEndSubscriptionDate(Calendar fromDate, Calendar toDate)List<SpaceDTO>getActiveSpaces()Map<String,String>getAllSpaceNames()List<SpaceDTO>getAllSpaces()List<SpaceDTO>getDeactvatedSpaces()SpaceDTOgetSpace(String groupId)List<SpaceDTO>getSpaces(int offset, int limit)longgetSpacesCount()voidremoveSpace(String groupId)SpaceDTOsaveSpace(SpaceDTO spaceDTO)SpaceDTOupdateSpace(SpaceDTO spaceDTO)-
Methods inherited from class org.exoplatform.cs.service.BaseService
convert, convert
-
-
-
-
Field Detail
-
CUSTOMERS_GROUP
public static final String CUSTOMERS_GROUP
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CSSpaceService
public CSSpaceService(SpaceDAO spaceDAO, org.exoplatform.social.core.space.spi.SpaceService spaceService, org.exoplatform.services.organization.OrganizationService organizationService, TicketService ticketService, org.exoplatform.services.listener.ListenerService listenerService)
-
-
Method Detail
-
getActiveByEndSubscriptionDate
public List<SpaceDTO> getActiveByEndSubscriptionDate(Calendar fromDate, Calendar toDate)
-
getSpacesCount
public long getSpacesCount()
-
convertToEntity
public SpaceEntity convertToEntity(SpaceDTO spaceDTO, SpaceEntity spaceEntity)
-
convertToDTO
public SpaceDTO convertToDTO(SpaceEntity spaceEntity)
-
convertDate
public String convertDate(DateFormat dateFormat, Date date)
-
-