joynr.infrastructure.GlobalDomainAccessControllerAbstractProvider Maven / Gradle / Ivy
/*
*
* Copyright (C) 2011 - 2018 BMW Car IT GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// #####################################################
//#######################################################
//### ###
//## WARNING: This file is generated. DO NOT EDIT ##
//## All changes will be lost! ##
//### ###
//#######################################################
// #####################################################
package joynr.infrastructure;
import io.joynr.provider.AbstractJoynrProvider;
import java.util.Set;
import java.util.HashSet;
import io.joynr.pubsub.publication.BroadcastFilterImpl;
import joynr.infrastructure.DacTypes.ChangeType;
import joynr.infrastructure.DacTypes.MasterAccessControlEntry;
import joynr.infrastructure.DacTypes.MasterRegistrationControlEntry;
import joynr.infrastructure.DacTypes.OwnerAccessControlEntry;
import joynr.infrastructure.DacTypes.OwnerRegistrationControlEntry;
public abstract class GlobalDomainAccessControllerAbstractProvider extends AbstractJoynrProvider implements GlobalDomainAccessControllerProvider {
public GlobalDomainAccessControllerAbstractProvider() {
super();
}
private Set queuedBroadcastFilters = new HashSet<>();
protected GlobalDomainAccessControllerSubscriptionPublisher globalDomainAccessControllerSubscriptionPublisher;
@Override
public void setSubscriptionPublisher(GlobalDomainAccessControllerSubscriptionPublisher globalDomainAccessControllerSubscriptionPublisher) {
this.globalDomainAccessControllerSubscriptionPublisher = globalDomainAccessControllerSubscriptionPublisher;
for (BroadcastFilterImpl filter: queuedBroadcastFilters) {
this.globalDomainAccessControllerSubscriptionPublisher.addBroadcastFilter(filter);
}
queuedBroadcastFilters.clear();
}
public void addBroadcastFilter(BroadcastFilterImpl filter) {
if (this.globalDomainAccessControllerSubscriptionPublisher != null) {
this.globalDomainAccessControllerSubscriptionPublisher.addBroadcastFilter(filter);
} else {
queuedBroadcastFilters.add(filter);
}
}
public void addBroadcastFilter(BroadcastFilterImpl... filters){
if (this.globalDomainAccessControllerSubscriptionPublisher != null) {
this.globalDomainAccessControllerSubscriptionPublisher.addBroadcastFilter(filters);
} else {
for (BroadcastFilterImpl filter: filters) {
queuedBroadcastFilters.add(filter);
}
}
}
public void fireMasterAccessControlEntryChanged(ChangeType typeOfChange, MasterAccessControlEntry changedMasterAce, String... partitions) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireMasterAccessControlEntryChanged(typeOfChange, changedMasterAce, partitions);
}
}
public void fireMediatorAccessControlEntryChanged(ChangeType typeOfChange, MasterAccessControlEntry changedMediatorAce, String... partitions) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireMediatorAccessControlEntryChanged(typeOfChange, changedMediatorAce, partitions);
}
}
public void fireOwnerAccessControlEntryChanged(ChangeType typeOfChange, OwnerAccessControlEntry changedOwnerAce, String... partitions) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireOwnerAccessControlEntryChanged(typeOfChange, changedOwnerAce, partitions);
}
}
public void fireMasterRegistrationControlEntryChanged(ChangeType typeOfChange, MasterRegistrationControlEntry changedMasterRce, String... partitions) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireMasterRegistrationControlEntryChanged(typeOfChange, changedMasterRce, partitions);
}
}
public void fireMediatorRegistrationControlEntryChanged(ChangeType typeOfChange, MasterRegistrationControlEntry changedMediatorRce, String... partitions) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireMediatorRegistrationControlEntryChanged(typeOfChange, changedMediatorRce, partitions);
}
}
public void fireOwnerRegistrationControlEntryChanged(ChangeType typeOfChange, OwnerRegistrationControlEntry changedOwnerRce, String... partitions) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireOwnerRegistrationControlEntryChanged(typeOfChange, changedOwnerRce, partitions);
}
}
}