public boolean canAddMember(String realmName,String idType,String containerIDType) throws AMConsoleException {
  boolean can=false;
  try {
    IdType type=IdUtils.getType(idType);
    Set canAdd=type.canAddMembers();
    IdType ctype=IdUtils.getType(containerIDType);
    can=canAdd.contains(ctype);
  }
 catch (  IdRepoException e) {
    debug.warning("EntitiesModelImpl.canAddMember",e);
    throw new AMConsoleException(getErrorString(e));
  }
  return can;
}

public boolean canAddMember ( String realmName , String idType , String containerIDType ) throws AMConsoleException { boolean can = false ; try { IdType type = IdUtils . getType ( idType ) ; Set canAdd = type . canAddMembers ( ) ; IdType ctype = IdUtils . getType ( containerIDType ) ; can = canAdd . contains ( ctype ) ; } catch ( IdRepoException e ) { debug . warning ( "EntitiesModelImpl.canAddMember" , e ) ; throw new AMConsoleException ( getErrorString ( e ) ) ; } return can ; }
returns true of members can be added to a type .
