Search in sources :

Example 11 with MasterRegistrationControlEntry

use of joynr.infrastructure.DacTypes.MasterRegistrationControlEntry in project joynr by bmwcarit.

the class GlobalDomainAccessControlListEditorBean method updateMasterRegistrationControlEntry.

@Override
public Boolean updateMasterRegistrationControlEntry(MasterRegistrationControlEntry updatedMasterRce) {
    CreateOrUpdateResult<MasterRegistrationControlEntry> result = masterRegistrationControlEntryManager.createOrUpdate(updatedMasterRce, ControlEntryType.MASTER);
    if (result != null) {
        MasterRegistrationControlEntry entry = result.getEntry();
        globalDomainAccessControllerBean.doFireMasterRegistrationControlEntryChanged(result.getChangeType(), entry);
        return true;
    }
    return false;
}
Also used : MasterRegistrationControlEntry(joynr.infrastructure.DacTypes.MasterRegistrationControlEntry)

Aggregations

MasterRegistrationControlEntry (joynr.infrastructure.DacTypes.MasterRegistrationControlEntry)11 Test (org.junit.Test)8 ControlEntryType (io.joynr.accesscontrol.global.jee.persistence.ControlEntryType)4 HashMap (java.util.HashMap)4 Function (java.util.function.Function)3 DomainRoleEntryEntity (io.joynr.accesscontrol.global.jee.persistence.DomainRoleEntryEntity)2 Consumer (java.util.function.Consumer)2 MasterRegistrationControlEntryEntity (io.joynr.accesscontrol.global.jee.persistence.MasterRegistrationControlEntryEntity)1 Supplier (java.util.function.Supplier)1 ChangeType (joynr.infrastructure.DacTypes.ChangeType)1 Permission (joynr.infrastructure.DacTypes.Permission)1 TrustLevel (joynr.infrastructure.DacTypes.TrustLevel)1