This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /** | |
| * Uses AWS-SDK v3 | |
| */ | |
| import { | |
| AttributeValue, | |
| BatchWriteItemCommand, | |
| BatchWriteItemCommandInput, | |
| DynamoDBClient, | |
| ScanCommand, | |
| ScanCommandInput |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import logging | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from datetime import datetime | |
| from waste_collection_schedule import Collection | |
| TITLE = "Newcastle Under Lyme Borough Council" | |
| DESCRIPTION = "Source for waste collection services for Newcastle Under Lyme Borough Council" | |
| URL = "https://www.newcastle-staffs.gov.uk" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.logging.Log | |
| import org.apache.commons.logging.LogFactory | |
| import org.openiam.idm.srvc.property.service.PropertyValueCache | |
| import org.springframework.context.ApplicationContext | |
| // Dependencies | |
| Log log = LogFactory.getLog("propertValueExample") // Logging | |
| ApplicationContext appContext = (ApplicationContext) context // IoC Container | |
| PropertyValueCache propertyValueCache = appContext.getBean(PropertyValueCache.class) // Global Settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.commons.logging.Log | |
| import org.apache.commons.logging.LogFactory | |
| class LoggingExample { | |
| private static final Log log = LogFactory.getLog("LoggingExample") | |
| public void methodName() { | |
| log.info("methodName has been called") | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.openiam.api.connector.model.UserConnectorObject | |
| import org.openiam.api.connector.user.response.TestProvisioningConnectorResponse | |
| import org.openiam.base.ws.ResponseStatus | |
| import org.openiam.connector.core.base.commands.AbstractCommandExecutor | |
| import org.openiam.connector.core.base.exception.ConnectorException | |
| class TestConnection extends AbstractCommandExecutor<UserConnectorObject, TestProvisioningConnectorResponse> { | |
| @Override | |
| TestProvisioningConnectorResponse perform(UserConnectorObject userConnectorObject) throws ConnectorException { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List | |
| import org.apache.commons.logging.Log | |
| import org.apache.commons.logging.LogFactory | |
| import org.openiam.common.beans.mq.UserRabbitMQService | |
| import org.openiam.idm.srvc.user.dto.User | |
| import org.openiam.idm.srvc.user.dto.UserCollection | |
| import org.springframework.context.ApplicationContext | |
| // Dependencies | |
| Log log = LogFactory.getLog("findUserTest") // Logging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List | |
| import org.apache.commons.logging.Log | |
| import org.apache.commons.logging.LogFactory | |
| import org.openiam.idm.searchbeans.UserSearchBean | |
| import org.openiam.idm.srvc.user.dto.User | |
| import org.openiam.srvc.user.UserDataWebService | |
| import org.springframework.context.ApplicationContext | |
| // Dependencies | |
| Log log = LogFactory.getLog("findUserTest") // Logging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List | |
| import org.apache.commons.logging.Log | |
| import org.apache.commons.logging.LogFactory | |
| import org.openiam.idm.searchbeans.UserSearchBean | |
| import org.openiam.idm.srvc.user.dto.User | |
| import org.openiam.srvc.user.UserDataWebService | |
| import org.springframework.context.ApplicationContext | |
| // Dependencies | |
| Log log = LogFactory.getLog("findUserTest") // Logging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List | |
| import org.apache.commons.logging.Log | |
| import org.apache.commons.logging.LogFactory | |
| import org.openiam.base.request.BaseSearchServiceRequest | |
| import org.openiam.base.request.BaseServiceRequest | |
| import org.openiam.base.response.data.IntResponse | |
| import org.openiam.base.response.data.BaseDataResponse | |
| import org.openiam.base.ws.MatchType | |
| import org.openiam.base.ws.SearchParam | |
| import org.openiam.common.beans.mq.RabbitMQSender |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import java.util.List | |
| import org.apache.commons.logging.Log | |
| import org.apache.commons.logging.LogFactory | |
| import org.openiam.base.ws.MatchType | |
| import org.openiam.base.ws.SearchParam | |
| import org.openiam.common.beans.mq.UserRabbitMQService | |
| import org.openiam.idm.searchbeans.UserSearchBean | |
| import org.openiam.idm.srvc.user.dto.User | |
| import org.openiam.idm.srvc.user.dto.UserCollection | |
| import org.openiam.idm.srvc.user.dto.UserStatusEnum |
NewerOlder