public Collection<ProfileID> getProfilesByAttribute( String attributeName, Object attributeValue, boolean isSlee11) throws UnrecognizedAttributeException, AttributeNotIndexedException, AttributeTypeMismatchException, SLEEException { if (logger.isDebugEnabled()) { logger.debug("getProfilesByAttribute( attributeName = "+attributeName+" , attributeValue = "+attributeValue+" , isSlee11 = "+isSlee11+" )"); } // We get profile entities Collection<ProfileEntity> profileEntities = getProfileEntitiesByAttribute(attributeName, attributeValue, isSlee11); // We need ProfileIDs Collection<ProfileID> profileIDs = new ArrayList<ProfileID>(); for(ProfileEntity profileEntity : profileEntities) { profileIDs.add( new ProfileID(profileEntity.getTableName(), profileEntity.getProfileName()) ); } return Collections.unmodifiableCollection( profileIDs ); }
/** * * @return */ public Collection<ProfileID> getProfiles() { List<ProfileID> result = new ArrayList<ProfileID>(); for (ProfileEntity profileEntity : component.getProfileEntityFramework().findAll(this.getProfileTableName())) { result.add(new ProfileID(profileTableName,profileEntity.getProfileName())); } return Collections.unmodifiableCollection(result); }
/** * * @param profileEntityAfterAction */ AbstractProfileEvent(ProfileEntity profileEntityAfterAction, ProfileManagementImpl profileManagement) { this.profileManagement = profileManagement; this.profileAfterAction = profileEntityAfterAction; this.profileAddress = new Address(AddressPlan.SLEE_PROFILE, profileEntityAfterAction.getTableName() + "/" + profileEntityAfterAction.getProfileName()); this.profileID = new ProfileID(this.profileAddress); }
Iterator it = profiles.iterator(); while (it.hasNext()) { profileIDs.add(new ProfileID(profileTableName, (String) it.next()));
Iterator it = profiles.iterator(); while (it.hasNext()) { profileIDs.add(new ProfileID(profileTableName, (String) it.next()));
profileIDs.add(new ProfileID(profileEntity.getTableName(),profileEntity.getProfileName()));
profileIDs.add(new ProfileID(profileEntity.getTableName(),profileEntity.getProfileName()));
return new ProfileID(profileTableName, (String) profiles.iterator() .next());
profileAddress, new ProfileID(profileAddress), profileManagement, activityContextInterface, profileTableActivityContextInterfaceFactory);
ProfileID profileID = new ProfileID(profileTableName, profileName); try { profileAddress, new ProfileID(profileAddress), profile, activityContextInterface, profileTableActivityContextInterfaceFactory); profileAddress, new ProfileID(profileAddress), profileBeforeUpdate, profile, activityContextInterface, profileTableActivityContextInterfaceFactory);