public ProfileTable getProfileTable(String profileTableName) throws NullPointerException, UnrecognizedProfileTableNameException, SLEEException { return this.profileTable.getSleeContainer() .getSleeProfileTableManager().getProfileTable(profileTableName); }
public ProfileFacility getProfileFacility() { return sleeContainer.getSleeProfileTableManager().getProfileFacility(); }
public ProfileTableActivityContextInterfaceFactory getProfileTableActivityContextInterfaceFactory() { return sleeContainer.getSleeProfileTableManager() .getProfileTableActivityContextInterfaceFactory(); }
sleeContainer.getSleeProfileTableManager().getProfileFacility()); } catch (NameAlreadyBoundException ex) { sleeContainer.getSleeProfileTableManager().getProfileTableActivityContextInterfaceFactory()); } catch (NameAlreadyBoundException ex) {
.getClassLoader()); sleeContainer.getSleeProfileTableManager() .installProfileSpecification(component); componentsInstalled.add(component); updateSecurityPermissions(component, false); .values()) { if(componentsInstalled.contains(component)) { sleeContainer.getSleeProfileTableManager().uninstallProfileSpecification(component);
removeSecurityPermissions(component, false); sleeContainer.getSleeProfileTableManager() .uninstallProfileSpecification(component); componentRepositoryImpl.removeComponent(component .getProfileSpecificationID()); removeSecurityPermissions(component, false); sleeContainer.getSleeProfileTableManager() .closeEntityManagerFactory(component); logger.info("Finalized " + component);
public void reconfig() { for (String key : pools.keySet()) { ProfileTableImpl profileTable; try { profileTable = (ProfileTableImpl) sleeContainer.getSleeProfileTableManager().getProfileTable(key); } catch (UnrecognizedProfileTableNameException e) { throw new SLEEException(e.getMessage(),e); } createObjectPool(profileTable); } }
public ProfileTable getProfileTable(String profileTableName) throws NullPointerException, UnrecognizedProfileTableNameException, SLEEException { return sleeContainer.getSleeProfileTableManager().getProfileFacility().getProfileTable(profileTableName); }
public static NotificationSourceWrapper getCurrentNotificationSource() throws TransactionRequiredLocalException, SLEEException { if(logger.isTraceEnabled()) { logger.trace("Trying to get Notification source for profile table."); } final TransactionContext txContext = sleeContainer.getTransactionManager().getTransactionContext(); ProfileCallRecorderTransactionData data = (ProfileCallRecorderTransactionData) txContext.getData().get(TRANSACTION_CONTEXT_KEY); if (data == null) { throw new SLEEException("No Profile call recorder in memory, this is a bug."); } //IF data is present, there is something in it. String tableName = data.invokedProfileTablesNames.getLast(); try { return sleeContainer.getSleeProfileTableManager().getProfileTable(tableName).getProfileTableNotification(); } catch (UnrecognizedProfileTableNameException e) { throw new SLEEException("Failed to fetch notification source due to some system level error.", e); } }
private Collection<ProfileID> getAddressProfilesMatching(Address address, ServiceComponent serviceComponent, SbbComponent sbbComponent, SleeContainer sleeContainer) throws NullPointerException, UnrecognizedProfileTableNameException, SLEEException, UnrecognizedAttributeException, AttributeNotIndexedException, AttributeTypeMismatchException { logger.trace("getAddressProfilesMatching: sbbComponent: "+sbbComponent); logger.trace("getAddressProfilesMatching: sbbComponent: "+sbbComponent.getDescriptor()); logger.trace("getAddressProfilesMatching: sbbComponent: "+sbbComponent.getDescriptor().getSbbID()); ProfileSpecificationID addressProfileId = sbbComponent.getDescriptor().getAddressProfileSpecRef(); logger.trace("getAddressProfilesMatching: addressProfileId: "+addressProfileId); ProfileSpecificationComponent profileSpecificationComponent = sleeContainer.getComponentRepository().getComponentByID(addressProfileId); String addressProfileTable = serviceComponent.getDescriptor().getAddressProfileTable(); // Cannot find an address profile table spec. if (addressProfileTable == null) { throw new SLEEException("null address profile table in service !"); } ProfileTable profileTable = sleeContainer.getSleeProfileTableManager().getProfileTable(addressProfileTable); return profileTable.getProfilesByAttribute(profileSpecificationComponent.isSlee11() ? "address" : "addresses", address, profileSpecificationComponent.isSlee11()); }
/** * * @param sbbEntity * @param cmpFieldName * @return */ public static javax.slee.profile.ProfileLocalObject getCMPFieldOfTypeProfileLocalObject(SbbEntity sbbEntity,String cmpFieldName) { final Object cmpFieldValue = sbbEntity.getCMPField(cmpFieldName); if (cmpFieldValue == null) { return null; } else { final ProfileLocalObjectCmpValue profileLocalObjectCmpValue = (ProfileLocalObjectCmpValue) cmpFieldValue; try { final ProfileTable profileTable = sleeContainer.getSleeProfileTableManager().getProfileTable(profileLocalObjectCmpValue.getProfileTableName()); return profileTable.find(profileLocalObjectCmpValue.getProfileName()); } catch (UnrecognizedProfileTableNameException e) { return null; } } }
/** * Retrieves a profile given the cmp method name and profile id */ public static Object getProfileCMPMethod(SbbEntity sbbEntity, String getProfileCMPMethodName, ProfileID profileID) throws UnrecognizedProfileTableNameException, UnrecognizedProfileNameException { GetProfileCMPMethodDescriptor mGetProfileCMPMethod = sbbEntity.getSbbComponent() .getDescriptor().getGetProfileCMPMethods().get( getProfileCMPMethodName); if (mGetProfileCMPMethod == null) throw new AbstractMethodError("Profile CMP Method not found"); if (sbbEntity.getSbbObject().getState() != SbbObjectState.READY) { throw new IllegalStateException( "Could not invoke getProfileCMP Method, Sbb Object is not in the READY state!"); } ProfileManagement sleeProfileManager = sleeContainer .getSleeProfileTableManager(); ProfileTable profileTable = sleeProfileManager.getProfileTable(profileID.getProfileTableName()); if (!profileTable.profileExists(profileID.getProfileName())) { throw new UnrecognizedProfileNameException(profileID.toString()); } return profileTable.getProfile(profileID.getProfileName()).getProfileCmpSlee10Wrapper(); }