Package io.meeds.gamification.service
Interface ConnectorSettingService
- All Known Implementing Classes:
ConnectorSettingServiceImpl
public interface ConnectorSettingService
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanManageConnectorSettings(org.exoplatform.services.security.Identity aclIdentity) Check whether user can can edit connectors Settings or notvoiddeleteConnectorSettings(String connectorName, org.exoplatform.services.security.Identity aclIdentity) Delete connector settings identified by connector namegetConnectorSecretKey(String connectorName) getConnectorSettings(String connectorName) getConnectorSettings(String connectorName, org.exoplatform.services.security.Identity aclIdentity) getConnectorsSettings(ConnectorService connectorService, org.exoplatform.services.security.Identity aclIdentity) Retrieves the list of Connectors settingvoidsaveConnectorSettings(RemoteConnectorSettings remoteConnectorSettings, org.exoplatform.services.security.Identity aclIdentity) Save connectorRemoteConnectorSettingswhich contains the api key, secret key and connector status
-
Method Details
-
saveConnectorSettings
void saveConnectorSettings(RemoteConnectorSettings remoteConnectorSettings, org.exoplatform.services.security.Identity aclIdentity) throws IllegalAccessException Save connectorRemoteConnectorSettingswhich contains the api key, secret key and connector status- Parameters:
remoteConnectorSettings-RemoteConnectorSettingsTo StoreaclIdentity- Security identity of user attempting to save connector settings- Throws:
IllegalAccessException
-
deleteConnectorSettings
void deleteConnectorSettings(String connectorName, org.exoplatform.services.security.Identity aclIdentity) throws IllegalAccessException Delete connector settings identified by connector name- Parameters:
connectorName- connector nameaclIdentity- Security identity of user attempting to retrieve connector settings- Throws:
IllegalAccessException
-
getConnectorSettings
RemoteConnectorSettings getConnectorSettings(String connectorName, org.exoplatform.services.security.Identity aclIdentity) throws IllegalAccessException - Parameters:
connectorName- connector nameaclIdentity- Security identity of user attempting to retrieve connector settings- Returns:
RemoteConnectorSettingsconnector settings- Throws:
IllegalAccessException
-
getConnectorSettings
- Parameters:
connectorName- connector name- Returns:
RemoteConnectorSettingsconnector settings
-
getConnectorSecretKey
- Parameters:
connectorName- connector name- Returns:
Stringconnector secret key
-
getConnectorsSettings
List<RemoteConnectorSettings> getConnectorsSettings(ConnectorService connectorService, org.exoplatform.services.security.Identity aclIdentity) throws IllegalAccessException Retrieves the list of Connectors setting- Parameters:
aclIdentity- Security identity of user attempting to retrieve connectors settings- Returns:
- list of
RemoteConnectorSettingsconnector settings - Throws:
IllegalAccessException
-
canManageConnectorSettings
boolean canManageConnectorSettings(org.exoplatform.services.security.Identity aclIdentity) Check whether user can can edit connectors Settings or not- Parameters:
aclIdentity- Security identity of user- Returns:
- true if user has enough privileges to edit connectors Setting, else false
-