joynr.infrastructure.GlobalDomainAccessControllerAbstractProvider Maven / Gradle / Ivy
/*
*
* Copyright (C) 2011 - 2015 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.DomainRoleEntry;
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 fireDomainRoleEntryChanged(ChangeType typeOfChange, DomainRoleEntry newDomainRoleEntry) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireDomainRoleEntryChanged(typeOfChange, newDomainRoleEntry);
}
}
public void fireMasterAccessControlEntryChanged(ChangeType typeOfChange, MasterAccessControlEntry newMasterAce) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireMasterAccessControlEntryChanged(typeOfChange, newMasterAce);
}
}
public void fireMediatorAccessControlEntryChanged(ChangeType typeOfChange, MasterAccessControlEntry newMediatorAce) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireMediatorAccessControlEntryChanged(typeOfChange, newMediatorAce);
}
}
public void fireOwnerAccessControlEntryChanged(ChangeType typeOfChange, OwnerAccessControlEntry newOwnerAce) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireOwnerAccessControlEntryChanged(typeOfChange, newOwnerAce);
}
}
public void fireMasterRegistrationControlEntryChanged(ChangeType typeOfChange, MasterRegistrationControlEntry newMasterRce) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireMasterRegistrationControlEntryChanged(typeOfChange, newMasterRce);
}
}
public void fireMediatorRegistrationControlEntryChanged(ChangeType typeOfChange, MasterRegistrationControlEntry newMediatorRce) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireMediatorRegistrationControlEntryChanged(typeOfChange, newMediatorRce);
}
}
public void fireOwnerRegistrationControlEntryChanged(ChangeType typeOfChange, OwnerRegistrationControlEntry newOwnerRce) {
if (globalDomainAccessControllerSubscriptionPublisher != null) {
globalDomainAccessControllerSubscriptionPublisher.fireOwnerRegistrationControlEntryChanged(typeOfChange, newOwnerRce);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy