Class AgendaEventDateOptionSpaceScopeResolver
java.lang.Object
org.exoplatform.agenda.mcp.AgendaEventDateOptionSpaceScopeResolver
- All Implemented Interfaces:
io.meeds.mcp.server.plugin.SpaceScopeResolver
@Service("agendaEventDateOptionSpaceScopeResolver")
@Profile("mcp-server")
public class AgendaEventDateOptionSpaceScopeResolver
extends Object
implements io.meeds.mcp.server.plugin.SpaceScopeResolver
Tells which space a proposed date of a date poll belongs to, for the space
scope of the tools that reach a date poll through one of its dates: the
space of the poll's event, by the same rule as
AgendaEventSpaceScopeResolver. A missing date, or one whose event
belongs to no space, belongs to no space. Read as the system, for the space
scope decision only.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAgendaEventDateOptionSpaceScopeResolver(org.exoplatform.agenda.service.AgendaEventDatePollService agendaEventDatePollService, AgendaEventSpaceScopeResolver eventSpaceScopeResolver) -
Method Summary
-
Field Details
-
NAME
-
-
Constructor Details
-
AgendaEventDateOptionSpaceScopeResolver
@Autowired public AgendaEventDateOptionSpaceScopeResolver(org.exoplatform.agenda.service.AgendaEventDatePollService agendaEventDatePollService, AgendaEventSpaceScopeResolver eventSpaceScopeResolver) - Parameters:
agendaEventDatePollService- reads the date optioneventSpaceScopeResolver- tells the space of its event
-
-
Method Details
-
getName
- Specified by:
getNamein interfaceio.meeds.mcp.server.plugin.SpaceScopeResolver- Returns:
- "event_date_option"
-
spaceOf
- Specified by:
spaceOfin interfaceio.meeds.mcp.server.plugin.SpaceScopeResolver- Parameters:
objectId- the date option id- Returns:
- the id of the space of the date option's event, or null for a missing date option, an event of no space, an id that isn't a positive number, or a lookup that fails
-
canEdit
Tells whether a person could edit, in person, the event the date option belongs to, asAgendaEventSpaceScopeResolver.canEdit(String, String)tells it.- Specified by:
canEditin interfaceio.meeds.mcp.server.plugin.SpaceScopeResolver- Parameters:
objectId- the date option iduserName- the person a digital worker would confirm the date for- Returns:
- true when the person could edit the option's event; false for a missing option, an id that isn't one, or a lookup that fails
-