Ignore:
Timestamp:
04/28/20 12:56:50 (5 years ago)
Author:
bart
Message:

Release 1.4.0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/geniusweb/profilesserver/DefaultProfilesFactory.java

    r7 r12  
    11package geniusweb.profilesserver;
    22
     3import java.io.IOException;
    34import java.util.Collections;
    45import java.util.LinkedList;
     
    8485        }
    8586
     87        @Override
     88        public synchronized void putProfile(Profile profile) throws IOException {
     89                if (!available.containsKey(profile.getDomain())) {
     90                        throw new IOException("profile's domain does not exist");
     91                }
     92                add(profile);
     93        }
     94
    8695        /**************** support for updating ***************/
    8796        /**
Note: See TracChangeset for help on using the changeset viewer.